A drug expiration date calculation system and method

CN122930440APending Publication Date: 2026-10-16义乌市妇幼保健院
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611227102.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-08-13
Publication Date
2026-10-16

AI Technical Summary

Technical Problem

这种处理方式虽然操作简单、易于执行,但忽视了不同品种、不同原包装剩余效期药品之间存在的显著差异

Benefits of technology

本发明的效期双重约束计算引擎同时内建了基于预设固定时长偏移的第一候选期限生成路径,以及基于原包装剩余有效期按预设比例折算的第二候选期限生成路径,并通过内置的比较逻辑强制选取两者中时序在先者作为最终的拆零后有效期截止日。系统并非对输入的日期信息进行简单的偏移运算,而是在每一次计算中主动执行一次比较判决。当原包装药品本身剩余有效期较短时,基于比例折算的第二候选期限将必然早于基于固定时长生成的第一候选期限,此时系统自动压制固定期限路径,转而采纳更为审慎的比例折算结果;反之,当原包装剩余有效期充裕时,固定期限路径则作为安全边界对结果形成有效约束。正是这一比较与选取机制的自动化执行,使得系统能够针对不同原包装效期状态的药品输出差异化的、且始终遵循“就严不就宽”原则的拆零效期,从而从源头上消除了传统固定标注方式在面对临近效期药品时因标注失当而可能引发的用药质量隐患,有力保障了拆零药品在整个使用周期内的安全性。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure SMS_9
    Figure SMS_9
  • Figure SMS_21
    Figure SMS_21
  • Figure SMS_68
    Figure SMS_68
Patent Text Reader

Abstract

The present application relates to the technical field of drug expiration date management, and particularly relates to a drug expiration date calculation system and method, comprising an information acquisition module, an expiration date double-constraint calculation engine, a prediction feedback analysis engine and an output control module. The expiration date double-constraint calculation engine selects the one with an earlier time sequence as the effective date after unpacking by comparing two candidate dates based on a fixed time length offset and a proportion conversion based on the remaining effective date of the original packaging, thereby realizing accurate dynamic approval of the expiration date. The prediction feedback analysis engine calculates the theoretical remaining inventory at the end of the predicted expiration date according to the current unpacked inventory, the recent consumption rate and the available days. The output control module controls the identification generation device to add warning or adjustment suggestion information on the physical label when there is positive remaining inventory at the end of the expiration date. The present application overcomes the defects of inaccurate labeling of traditional fixed expiration date and lagging inventory management, and improves the safety of drug use and the efficiency of drug resource utilization.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of drug expiration date management technology, specifically to a drug expiration date calculation system and method. Background Technology

[0002] Drug expiration date management is a core aspect of hospital pharmacy administration, directly impacting the safety and efficacy of clinical medications, as well as the rational allocation of drug resources and the avoidance of unnecessary losses. In routine pharmacy dispensing, repackaging is a fundamental and frequent operation, involving the repackaging of original packaged medications into smaller bags or vials according to prescription requirements for patient use. However, once repackaged, the medications are no longer protected by their original sealed packaging, making them significantly more susceptible to changes in storage conditions. Therefore, it is essential to relabel them with a more prudent temporary expiration date, shorter than the original packaging's expiration date, to ensure the medication remains in good condition when used by patients during their self-management. The re-verification of expiration dates for repackaged medications and their subsequent management has become a recognized challenge in pharmacy administration practice.

[0003] Currently, the common practice in medical institution pharmacies when dealing with the labeling of expiration dates for medications sold in smaller quantities is to uniformly label all such medications with a fixed expiration date based on established administrative guidelines or pre-set equipment rules. While this approach is simple and easy to implement, it overlooks the significant differences in remaining expiration dates between different types of medications and those in different original packaging. Especially for medications whose original packaging expiration date is nearing its end or has a short remaining shelf life, mechanically applying a uniform fixed date could potentially lead to patients actually consuming medications that have degraded or lost their potency, thus creating potential medication safety risks. Furthermore, for medications with sufficiently long remaining shelf lives, this fixed date may not adequately cover their actual safe usage window, indirectly limiting the rational use of the medication.

[0004] On the other hand, the uneven consumption of repackaged medications within the pharmacy also presents a problem during their internal circulation. Some repackaged batches of medications may not be fully distributed by the time their relabeled expiration date due to temporary reductions in demand in the corresponding departments or wards, resulting in unnecessary medication spoilage and economic losses. Under current technological conditions, pharmacy managers lack effective tools to predict whether a batch of repackaged medications will be consumed within the new expiration date, often resorting to reactive inventory checks and disposal as the expiration date approaches, indicating a significant lag in management measures. Furthermore, when clinical departments face medications with different repackaged expiration rules, calculating the actual usable period themselves not only increases the workload of manual calculations but also easily leads to management chaos due to calculation errors or misunderstandings of the rules.

[0005] Therefore, how to provide a system and method that can comprehensively consider the remaining expiration date of the original packaging of the drug and the management rules after dismantling, and can make forward-looking predictions on the consumption trend of dismantled inventory, in order to overcome the shortcomings of inaccurate labeling and untimely early warning in the existing management of the expiration date of dismantled drugs, has become a technical problem that urgently needs to be solved in this field. Summary of the Invention

[0006] The purpose of this invention is to provide a drug expiration date calculation system and method, which dynamically determines the expiration date after splitting into smaller units using a dual-constraint model, and predicts the remaining inventory at the end of the expiration date by combining the consumption rate, thereby achieving accurate labeling and waste warning.

[0007] To achieve the above-mentioned technical objectives and effects, the present invention is implemented through the following technical solution: A drug expiration date calculation system includes an information acquisition module, an expiration date dual-constraint calculation engine, a predictive feedback analysis engine, and an output control module; the information acquisition module is used to obtain the original packaging expiration date of the target repackaged drug. and splitting operation day The dual-constraint validity period calculation engine is configured with a preset first fixed duration offset. and the first remaining validity period ratio coefficient And perform the following calculations: according to the and Calculate the validity period of the first candidate split-off unit Second candidate split-effect ,in:

[0008]

[0009] Compare and Choose the date with the earliest expiration date as the valid expiration date after splitting into smaller units. ,Right now The predictive feedback analysis engine is used to obtain the current inventory quantity of the target split-item medicine. and the average daily consumption rate within the preset statistical period. And perform the following calculations: Calculate the number of days for self-splitting operations Until the expiry date after the splitting. Valid available days ; Calculate the theoretical remaining inventory at the end of the expected effective period. Its formula is:

[0010] The output control module is used to control the identifier generation device to output the expiration date after the splitting of parts. The expiration date is indicated, and the theoretical remaining inventory at the end of the expected expiration date is... When the value exceeds a preset warning threshold, the device controls the label generation device to attach inventory warning or adjustment suggestion information to the expiration date label.

[0011] Furthermore, the first fixed duration offset The preset timeframe is 6 months, and the first remaining effective ratio coefficient... The default value is 25%.

[0012] Furthermore, the average daily consumption rate Calculated using a sliding time window algorithm, specifically: the target split-up medicine within the day containing the split-up operation. The weighted average daily consumption over the past N days, where N is a preset positive integer.

[0013] Furthermore, the preset positive integer N is 7.

[0014] Furthermore, the output control module is further configured to: when the expected effective period ends with the theoretical remaining inventory... When the value is greater than zero and exceeds the preset warning threshold, a first type of feedback instruction is generated to control the printing device to mark the physical label containing [the specified information]. The system sends a warning message based on the numerical value and sends a second type of feedback instruction to the management terminal to prompt priority allocation and distribution.

[0015] On the other hand, the present invention proposes a method for calculating the shelf life of a drug based on the above system, comprising the following steps: S1: Obtain the original packaging expiration date of the target repackaged medicine. Splitting operation day Current inventory quantity of repackaged goods and the average daily consumption rate within the preset statistical period. S2: Based on a preset first fixed duration offset and the first remaining validity period ratio coefficient Calculate the validity period of the first candidate component splitting. Second candidate split-effect ; S3: Select and The date that comes first in the time sequence will be the valid expiration date after splitting into smaller units. ,Right now ; S4: Calculate the self-splitting operation days Up to the effective expiration date after the splitting. Valid available days ; S5: Calculate the theoretical remaining inventory at the expected end of the effective period. Its formula is: ; S6: The control identifier generation device output includes the expiration date of the validity period after the item is removed. The expiration date is indicated, and in When the preset feedback conditions are met, an inventory status prompt message is added to the expiration date identifier.

[0016] Furthermore, the preset feedback condition in step S6 is: and The level exceeds the preset warning threshold for inventory waste.

[0017] Furthermore, the average daily consumption rate Obtained through the following method: acquiring the target dispensing medicine on the day including the dispensing operation. The daily consumption records over the past N days, including the total consumption records, are used to calculate their weighted average or arithmetic mean as... , where N is a preset positive integer.

[0018] On the other hand, the present invention proposes a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the above-described method.

[0019] The beneficial effects of this invention are: The dual-constraint expiration date calculation engine of this invention simultaneously incorporates a first candidate expiration date generation path based on a preset fixed-duration offset, and a second candidate expiration date generation path calculated based on the remaining expiration date of the original packaging at a preset ratio. Through built-in comparison logic, the earlier of the two is forcibly selected as the final expiration date after splitting. The system does not simply perform an offset operation on the input date information; instead, it actively performs a comparison decision in each calculation. When the remaining expiration date of the original packaged medicine is short, the second candidate expiration date calculated based on the ratio will inevitably be earlier than the first candidate expiration date generated based on the fixed-duration offset. In this case, the system automatically suppresses the fixed-duration path and adopts the more prudent ratio calculation result. Conversely, when the remaining expiration date of the original packaging is ample, the fixed-duration path serves as a safety boundary, effectively constraining the result. It is this automated execution of the comparison and selection mechanism that enables the system to output differentiated expiration dates for drugs with different original packaging expiration dates, and always follows the principle of "stricter rather than more lenient" for split-package expiration dates. This eliminates the potential quality risks that may arise from improper labeling when dealing with drugs nearing their expiration date, which is a consequence of traditional fixed labeling methods. This effectively ensures the safety of split-package drugs throughout their entire usage cycle.

[0020] The predictive feedback analysis engine of this invention incorporates three factors into a single computational framework: the inventory quantity at the time of the splitting operation, the available time window length determined by the expiration date calculation engine, and the daily average consumption rate trend extracted from recent consumption records based on a sliding time window algorithm. This framework calculates the theoretical remaining inventory at the expected expiration date. By introducing a sliding window statistical method with attenuation weights to obtain the daily average consumption rate, this rate value can sensitively reflect the actual fluctuation trend of recent clinical medication use behavior without being interfered with by long-term, occasional consumption anomalies. Based on this, the expected total consumption within the available time window, based on the current consumption trend, is deducted from the current inventory. The resulting remaining amount becomes the direct basis for determining whether the split-batch medication faces the risk of expiration and waste. This organically couples the time dimension of drug expiration with the behavioral dimension of clinical consumption, allowing pharmacy managers to obtain a clear prediction of the future destination of the batch of medication when the splitting operation occurs. This enables proactive intervention measures such as refilling and priority distribution, significantly improving the turnover efficiency and utilization level of drug resources and reducing unnecessary losses due to expiration.

[0021] During system operation, when the predictive feedback analysis engine determines that the remaining inventory at the expected end of the expiration date reaches the preset trigger condition, the output control module does not merely generate a software prompt limited to the display interface. Instead, it directly sends a control command containing warning content or dispensing suggestions to the label generation device, driving the printing device to display this information as visual text on the physical label that will accompany the drug's circulation. This transforms electronic reminders, which are easily overlooked or delayed by operators, into an unavoidable visual element accompanying the entire physical circulation of the drug. Any medical or management personnel who subsequently come into contact with the unpacked drug can directly obtain the expiration date information and inventory warning information from the label content, without needing to log into the system separately or check backend reports. This closed-loop design, which achieves behavioral intervention by controlling the output content of external printing equipment, effectively bridges the execution gap between computational analysis and actual management actions, ensuring that data insights can be truly transformed into timely and effective management behaviors.

[0022] This invention designs the fixed duration offset and remaining shelf-life ratio coefficient, upon which the dual-constraint expiration date calculation relies, as configurable parameters at the system architecture level. This achieves a good decoupling between the underlying comparison and decision logic and the specific regulatory values ​​at the top level. When faced with differences in the specific numerical requirements for split-expiration date calculation rules in pharmaceutical management regulations of different countries or regions, or when management regulations in the same region are revised or adjusted, only the specific values ​​of the above parameters need to be modified in the system configuration interface. No reconstruction of the core algorithm code of the dual-constraint expiration date calculation engine, data flow paths, or even the interface logic between the system and other hospital information modules is required. This architectural strategy of separating the volatile business rule values ​​from the stable calculation framework not only significantly reduces the secondary development costs and maintenance complexity required to adapt the system to different deployment environments, but also gives the technical solution proposed in this invention long-term value and wide applicability as a general-purpose pharmaceutical management infrastructure component.

[0023] Of course, any product implementing this invention does not necessarily need to achieve all of the advantages described above at the same time. Detailed Implementation

[0024] The technical solutions in the embodiments of the present invention will be clearly and completely described below. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0025] Example 1

[0026] The drug expiration date calculation system described in this embodiment includes: Information acquisition module: Used to acquire relevant time data of the target repackaged medicine. Specifically, the information acquisition module acquires the original packaging's expiration date. and splitting operation day In some embodiments, The traceability code or barcode on the original medicine bottle can be scanned and automatically retrieved from the hospital information system (HIS). The default date can be the current system date, or it can be manually entered by the pharmacist.

[0027] Dual-constraint validity period calculation engine: This engine has a built-in preset first fixed duration offset. and the first remaining validity period ratio coefficient The engine receives... and Then, the core comparison and calculation logic is executed to generate an accurate effective deadline after splitting into smaller units. .

[0028] Predictive Feedback Analysis Engine: This engine is used to obtain the current inventory quantity of the target drug being sold in smaller quantities. and the average daily consumption rate within the preset statistical period. and based on Calculate the theoretical remaining inventory at the end of the expected effective period. .

[0029] Output control module: Electrically or communicatively connected to the label generation device (such as a label printer), used to drive the printer to generate and output physical labels containing expiration date information and prediction information.

[0030] In this embodiment, the calculation rules adopted by the dual-constraint expiration date calculation engine are based on relevant US FDA guidelines and domestic pharmaceutical management consensus, namely, "the expiration date of a solid dosage form after being repackaged should not exceed 6 months from the date of repackaging or 25% of the remaining shelf life of the drug, whichever is earlier." Correspondingly, this system transforms this rule into a specific mathematical model. The dual-constraint expiration date calculation engine is configured to perform the following calculation steps: 1. Calculate the expiration date of the first candidate repackaged dosage form. The calculation formula is as follows:

[0031] In some embodiments, the first fixed duration offset The default value is 6 months (or 180 days). It should be understood that this value can be modified in the system configuration file according to the pharmacopoeia regulations of different countries or regions, for example, to 3 months or 1 year. 2. Calculate the shelf life of the second candidate product. The calculation formula is as follows:

[0032] In some embodiments, the first remaining validity period ratio coefficient The default value is 25%. 3. Comparison and The earliest date in the sequence will be selected as the final valid deadline after splitting into smaller units. ,Right now:

[0033] The following is an illustration using a specific example: Assume the expiration date of the original packaging of a certain medicine is... The date the pharmacist performs the fractionalization procedure is December 31, 2025. It is January 1, 2025.

[0034] Remaining validity period = December 31, 2025 - January 1, 2025 = 365 days.

[0035] First candidate validity period .

[0036] Second candidate validity period = January 1, 2025 + approximately 91 days = April 2, 2025

[0037] Comparison results: (April 2, 2025) Earlier than (July 1, 2025), therefore .

[0038] As can be seen from the above calculations, for drugs with a short remaining shelf life, such as only 1 year in this embodiment, the system automatically breaks through the fixed mindset of 6 months and adopts a stricter 25% remaining shelf life rule, thereby ensuring medication safety.

[0039] In this embodiment, the predictive feedback analysis engine further performs the following operations: 1. Obtain the current inventory quantity of the target medicine to be sold in smaller quantities. This value can be manually entered by the pharmacist when dispensing medicines in smaller quantities, or it can be automatically obtained by connecting to a smart medicine cabinet system to obtain the current number of pills in the medicine bottle / bag.

[0040] 2. Obtain the average daily consumption rate within the preset statistical period. .

[0041] In some embodiments, Calculated using a sliding time window algorithm. Specifically, the system queries the target split-up medicine for days containing split-up operation data. The weighted average daily consumption is calculated based on consumption records over the past N days, including the previous day's consumption. For example, the consumption amounts for the previous 1 day, 2-3 days, and 4-7 days can be assigned decay weights of 0.5, 0.3, and 0.2 respectively to obtain a smoother value that better reflects recent trends. Of course, this weighting is only an example, and specific settings can be adapted according to the seasonal fluctuations in drug consumption or departmental medication habits.

[0042] As a preferred embodiment, N is set to 7 (i.e., the last 7 days). It should be understood that N can also be set to integers such as 3, 14, 30, etc., depending on the consumption fluctuation characteristics of the specific drug.

[0043] 3. Calculate the number of days for self-splitting operations. Until the expiry date after the splitting. Valid available days :

[0044] 4. Calculate the theoretical remaining inventory at the end of the expected effective period. Its formula is:

[0045] Continuing with the above example: Assuming the pharmacist dispensed 100 tablets, that is piece.

[0046] The system statistics show that the weighted average daily consumption of this drug over the past 7 days is as follows: Film / day.

[0047] Effective available days April 2, 2025 - January 1, 2025 = 91 days.

[0048] Total estimated consumption = piece.

[0049] calculate A negative number indicates that the batch of medicines sold in smaller quantities is expected to be consumed before its expiration date, and there is no risk of waste due to remaining stock before the expiration date.

[0050] If we assume that the average daily consumption of another chronic disease medication is If the quantity is per day, then: Total estimated consumption = Approximately 46 pieces.

[0051] calculate The positive number indicates that the pharmacy will still have approximately 54 unused tablets by the expiration date, facing the risk of waste.

[0052] It should be understood that when the calculated result is... A negative value indicates that the current inventory is expected to be insufficient to meet regular consumption needs within the expected shelf life of the repackaged medicine, and the medicine will be exhausted prematurely. In this case, the system determines that there is no risk of waste within the shelf life, and therefore does not trigger subsequent feedback instructions for waste warnings. Conversely, when... When the value is positive, the system will determine whether to trigger an early warning feedback of the corresponding level based on the magnitude of the positive value.

[0053] In this embodiment, the output control module determines the output based on the prediction result. Implement differentiated output control strategies: Standard Output: Regardless of the prediction result, the output control module controls the identifier generation device (printer) to generate an identifier containing the expiration date after the item is split. The expiration date is indicated. For example, the format is: Expiration date for single-use items: April 2, 2025.

[0054] Early warning feedback output: When the theoretical remaining inventory at the end of the expected effective period... When the value exceeds a preset warning threshold (in some embodiments, this warning threshold is preset to 0, or preset to a small positive integer such as 5 pieces, indicating that a small amount is allowed to remain), the output control module further performs the following feedback action: Generate a first type of feedback instruction: Control the printing device to attach inventory warning or reassignment suggestion information to the expiration date label. For example, print "Note: 54 tablets are estimated to remain within the expiration date. It is recommended to prioritize reassignment to high-frequency departments" on the label.

[0055] Generate a second type of feedback instruction: Send a prompt message to the pharmacy management terminal (such as the pharmacist's workstation computer) via the network interface to remind the pharmacist that there is a risk of expiration and waste of the batch of medicines that have been split into smaller quantities, so that the pharmacist can adjust the distribution strategy in a timely manner.

[0056] Through the aforementioned feedback mechanism, this system not only provides an accurate tool for calculating the expiration date, but also establishes a closed-loop management process from data collection and analysis to behavioral intervention, effectively reducing the waste of drug resources.

[0057] In some embodiments, the above-described system functions are stored in the memory of a computing device in the form of a computer program and executed by a processor. The method for calculating the drug expiration date specifically includes the following steps: Step S1: Data Acquisition Step. The processor obtains the original packaging expiration date of the target repackaged medicine through the input / output interface. Splitting operation day Current inventory quantity of repackaged goods Simultaneously, the daily consumption records of this drug over the past 7 days were retrieved from historical databases, and the average daily consumption rate was calculated using a weighted average algorithm. .

[0058] Step S2: Calculation of candidate validity period. Call preset parameters. months and Perform the operation:

[0059]

[0060] Step S3: Final Validity Period Determination Step. Execute comparison logic: IF THEN ELSE .

[0061] Step S4: Calculation of the effective window. Calculation ,in This is a function to calculate the number of days between two dates.

[0062] Step S5: Remaining Inventory Forecasting Step. Calculation .

[0063] Step S6: Tag Output and Feedback Step. Generate a print instruction data packet conforming to the ZPL (Zebra Programming Language) or EPL standard, wherein the first data field is mapped to the expiration date after splitting. The formatted byte string. In response to Greater than a preset threshold (e.g.) Based on the judgment result, the second data field is appended with a text string containing the expected remaining amount, so that the corresponding warning label is displayed on the printed physical label.

[0064] In some embodiments, the present invention also provides a computer-readable storage medium, such as a hard disk, solid-state drive, optical disk, or dedicated storage chip of a hospital pharmacy management server. This storage medium stores computer program instructions for implementing all the functions described in Embodiments 1 and 2. When the storage medium is inserted into or connected to a general-purpose computer or a dedicated computing device, the processor loads and executes the program, thereby transforming the device into a dedicated device for drug expiration date management, achieving all the technical effects described in the present invention.

[0065] This invention proposes a drug expiration date calculation system and method, including an information acquisition module, a dual-constraint expiration date calculation engine, a predictive feedback analysis engine, and an output control module. The dual-constraint expiration date calculation engine compares two candidate expiration dates calculated based on a fixed duration offset and a proportion of the remaining shelf life of the original packaging, selecting the earlier date as the expiration date after dispensing, thus achieving accurate and dynamic verification of the expiration date. The predictive feedback analysis engine calculates the theoretical remaining inventory at the end of the expected expiration date based on the current inventory level after dispensing, the recent consumption rate, and the number of days of effective availability. When there is a positive remaining inventory at the end of the expiration date, the output control module controls the label generation device to attach warning or dispensing suggestion information to the physical label. This invention overcomes the shortcomings of inaccurate fixed-expiration labeling and lagging inventory management in traditional methods, improving medication safety and drug resource utilization efficiency.

[0066] The preferred embodiments of the present invention disclosed above are merely illustrative of the invention. These preferred embodiments do not exhaustively describe all details, nor do they limit the invention to the specific implementations described. Clearly, many modifications and variations can be made based on the content of this specification. This specification selects and specifically describes these embodiments to better explain the principles and practical applications of the invention, thereby enabling those skilled in the art to better understand and utilize the invention. The invention is limited only by the claims and their full scope and equivalents.

Claims

1. A drug expiration date calculation system, characterized in that, It includes an information acquisition module, a dual-constraint calculation engine for validity period, a predictive feedback analysis engine, and an output control module; The information collection module is used to obtain the original packaging expiration date of the target repackaged medicine. and splitting operation day The dual-constraint validity period calculation engine is configured with a preset first fixed duration offset. and the first remaining validity period ratio coefficient And perform the following calculations: according to the and Calculate the validity period of the first candidate split-off unit Second candidate split-effect period ,in: Compare and Choose the date with the earliest expiration date as the valid expiration date after splitting into smaller units. ,Right now The predictive feedback analysis engine is used to obtain the current inventory quantity of the target split-item medicine. and the average daily consumption rate within the preset statistical period. And perform the following calculations: Calculate the number of days for self-splitting operations Until the expiry date after the splitting. Valid available days ; Calculate the theoretical remaining inventory at the end of the expected effective period. Its formula is: The output control module is used to control the identifier generation device to output the expiration date after the splitting of parts. The expiration date is indicated, and the theoretical remaining inventory at the end of the expected expiration date is... When the value exceeds a preset warning threshold, the device controls the label generation device to attach inventory warning or adjustment suggestion information to the expiration date label.

2. The drug expiration date calculation system as described in claim 1, characterized in that, First fixed duration offset The preset timeframe is 6 months, and the first remaining effective ratio coefficient... The default value is 25%.

3. The drug expiration date calculation system as described in claim 1, characterized in that, The average daily consumption rate Calculated using a sliding time window algorithm, specifically: the target split-up medicine within the day containing the split-up operation. The weighted average daily consumption over the past N days, where N is a preset positive integer.

4. The drug expiration date calculation system as described in claim 3, characterized in that, The preset positive integer N is 7.

5. The drug expiration date calculation system as described in claim 1, characterized in that, The output control module is further configured to: when the theoretical remaining inventory at the end of the expected effective period... When the value is greater than zero and exceeds the preset warning threshold, a first type of feedback instruction is generated to control the printing device to mark the physical label containing [the specified information]. The system sends a warning message based on the numerical value and sends a second type of feedback instruction to the management terminal to prompt priority allocation and distribution.

6. A method for calculating the shelf life of a drug based on the system described in any one of claims 1 to 5, characterized in that, Includes the following steps: S1: Obtain the original packaging expiration date of the target repackaged medicine. Splitting operation day Current inventory quantity of repackaged goods and the average daily consumption rate within the preset statistical period. S2: Based on a preset first fixed duration offset and the first remaining validity period ratio coefficient Calculate the validity period of the first candidate component splitting. Second candidate split-effect ; S3: Select and The date that comes first in the time sequence will be the valid expiration date after splitting into smaller units. ,Right now ; S4: Calculate the self-splitting operation days Up to the effective expiration date after the splitting. Valid available days ; S5: Calculate the theoretical remaining inventory at the expected end of the effective period. Its formula is: ; S6: The control identifier generation device output includes the expiration date of the validity period after the item is removed. The expiration date is indicated, and in When the preset feedback conditions are met, an inventory status prompt message is added to the expiration date identifier.

7. The method as described in claim 6, characterized in that, The preset feedback condition in step S6 is: and The level exceeds the preset warning threshold for inventory waste.

8. The method as described in claim 6, characterized in that, The average daily consumption rate Obtained through the following method: acquiring the target dispensing medicine on the day including the dispensing operation. The daily consumption records over the past N days, including the total consumption records, are used to calculate their weighted average or arithmetic mean as... , where N is a preset positive integer.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the program is executed by the processor, it implements the steps of the method as described in any one of claims 6 to 8.