Traditional Chinese medicine central pharmacy management system based on traditional Chinese medicine shelf life
By designing a traditional Chinese medicine shelf life management system, the problem of special storage conditions and shelf life management complexity of traditional Chinese medicine pharmacy management has been solved, the efficient and safe management of Chinese medicines has been achieved, and the operational efficiency of the pharmacy and the quality of drug use have been improved.
Patent Information
- Application Number
- CN202410627676.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-21
- Publication Date
- 2024-08-23
AI Technical Summary
The management of traditional Chinese medicine pharmacies is faced with the special storage conditions and shelf life management complexity of traditional Chinese medicines, which results in low drug use safety and efficiency, making it difficult to meet the needs for high efficiency and accuracy.
Design a traditional Chinese medicine central pharmacy management system based on the shelf life of traditional Chinese medicine, including a traditional Chinese medicine shelf life management module, a traditional Chinese medicine storage module, a traditional Chinese medicine inventory management module and a traditional Chinese medicine outbound module, using traditional Chinese medicine information entry, classified storage, inventory monitoring, mixed inventory optimization algorithms and Storage environment adjustment enables real-time monitoring and automated management of traditional Chinese medicines.
It improves the safety and timeliness of drug use, reduces inventory costs, ensures that traditional Chinese medicines are stored in the best environment, reduces the waste of medicinal materials, and improves the pharmacy's work efficiency and response speed.
Smart Images

Figure CN118536901A
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of pharmacy management, and in particular to a central pharmacy management system of traditional Chinese medicine based on the shelf life of traditional Chinese medicine. Background Art
[0002] At present, traditional Chinese medicine pharmacy management often faces many challenges, and each challenge poses a severe test to the pharmacy's operational efficiency and drug safety. The management of Chinese medicine not only involves the effective monitoring of the shelf life of drugs, but also includes the accuracy of inventory management and the appropriate regulation of the storage environment. The core of these challenges lies in the particularity of Chinese medicine. Compared with Western medicine, Chinese medicine has fundamental differences in storage conditions and shelf life.
[0003] First, the storage conditions of traditional Chinese medicine are particularly critical. Due to their natural properties and complex chemical composition structure, traditional Chinese medicines have extremely strict requirements on the temperature and humidity of the environment. Improper storage conditions can easily cause changes in the chemical composition of the medicine, thereby affecting the efficacy and even causing the medicine to deteriorate. For example, some medicines must be stored in a dry and low-temperature environment to avoid mildew, while others require specific humidity conditions to maintain their efficacy. This dependence on storage conditions increases the complexity of traditional pharmacy management.
[0004] Secondly, traditional inventory management usually relies on manual records and manual operations, which is not only inefficient but also prone to errors. Due to the wide variety of Chinese medicines, the storage conditions and shelf life of each herb are different, and manual management is difficult to be both accurate and efficient. In addition, human negligence or errors may result in the failure to discover the expiration of drugs in time, or the failure to adjust the storage environment as required, which is directly related to the safety of drug use and the therapeutic effect.
[0005] With the increasing demand for medical care and the general improvement in the quality of medical services, the existing management methods of Chinese medicine pharmacies have been unable to meet the needs of high efficiency and high accuracy. Inefficiency not only affects the quality of service and increases patient waiting time, but may also lead to waste of resources due to improper inventory management. More importantly, inaccurate inventory and shelf life management may lead to the use of poor quality or expired medicinal materials, which poses a potential risk to the patient's treatment safety.
[0006] Therefore, it is particularly important and urgent to develop a central pharmacy management system for traditional Chinese medicine based on the shelf life of traditional Chinese medicine. Summary of the invention
[0007] The embodiment of the present invention provides a central pharmacy management system of traditional Chinese medicine based on the shelf life of traditional Chinese medicine to solve the above-mentioned technical problems in the prior art.
[0008] In order to have a basic understanding of some aspects of the disclosed embodiments, a brief summary is given below. This summary is not intended to be a general review, nor is it intended to identify key / important components or to delineate the scope of protection of these embodiments. Its only purpose is to present some concepts in a simple form as a preface to the detailed description that follows.
[0009] A TCM central pharmacy management system based on the shelf life of traditional Chinese medicine, including a TCM shelf life management module, a TCM storage module, a TCM inventory management module and a TCM outbound module; wherein the TCM shelf life management module is used to input the basic information of the TCM and the corresponding shelf life information, and monitor and warn the shelf life of each TCM;
[0010] The Chinese medicine storage module is used to classify and store the Chinese medicine according to preset classification standards and storage conditions;
[0011] The Chinese medicine inventory management module is used to monitor the inventory of Chinese medicine in real time and output the corresponding optimal Chinese medicine replenishment quantity using the hybrid inventory optimization algorithm when an inventory warning occurs;
[0012] The Chinese medicine outbound module is used to automatically remind staff to give priority to medicines that are nearing their expiration date based on the expiration date of each Chinese medicine.
[0013] As a preferred embodiment, the Chinese medicine shelf life management module includes a Chinese medicine information entry module, a Chinese medicine shelf life setting module and a shelf life monitoring and early warning module; wherein the Chinese medicine information entry module is used to enter the basic information of each Chinese medicine, including name, specification, origin and batch;
[0014] The Chinese medicine shelf life setting module is used to set the shelf life of each Chinese medicine and the corresponding production date;
[0015] The shelf life monitoring and early warning module is used to regularly check the shelf life of stored traditional Chinese medicines and issue early warnings or reminders based on the shelf life situation.
[0016] Preferably, the Chinese medicine storage module includes a classification storage module and a storage environment adjustment module; wherein the classification storage module is used to classify and store the Chinese medicine according to its medicinal properties, uses, sources and characteristics;
[0017] The storage environment adjustment module is used to monitor the temperature, humidity and air quality information in the traditional Chinese medicine storage environment in real time, and automatically adjust the storage environment based on the monitoring data.
[0018] Preferably, the Chinese medicine inventory management module includes an inventory monitoring and warning module, a Chinese medicine demand prediction module and an optimal Chinese medicine supply analysis module; wherein the inventory monitoring and warning module is used to monitor the inventory status of Chinese medicine in real time, and issue an early warning or reminder when the inventory status is lower than a preset inventory threshold;
[0019] The Chinese medicine demand prediction module is used to predict the initial supply demand of each Chinese medicine to be replenished using a machine learning algorithm;
[0020] The optimal Chinese medicine replenishment quantity analysis module is used to use a hybrid inventory optimization algorithm to combine the initial replenishment demand of each Chinese medicine to be replenished to output the corresponding optimal Chinese medicine supply quantity.
[0021] Preferably, the Chinese medicine demand prediction module includes the following steps when using a machine learning algorithm to predict the initial supply demand of each Chinese medicine to be replenished:
[0022] The historical sales data of each Chinese medicine is collected and preprocessed; the correlation between sales features is analyzed based on the correlation analysis method, and highly correlated sales features are eliminated to obtain a data set;
[0023] Divide the data set into a training set and a test set based on a preset ratio, and use the training set and the test set to train and test the neural network model respectively to obtain a trained neural network model;
[0024] The current sales characteristics of each Chinese medicine to be replenished are respectively input into the trained neural network model, and the trained neural network model is used to output the corresponding initial supply quantity of each Chinese medicine to be replenished; wherein the current sales characteristics include the current time and date and the current price of each Chinese medicine to be replenished.
[0025] Preferably, the current sales characteristics of each Chinese medicine to be replenished are respectively input into the trained neural network model, and the trained neural network model is used to output the corresponding initial supply quantity of each Chinese medicine to be replenished, which also includes: combining the suggestions of Chinese medicine experts or pharmacy managers to determine the value range of the supply quantity of each Chinese medicine to be replenished.
[0026] Preferably, the optimal Chinese medicine replenishment quantity analysis module comprises:
[0027] Taking minimizing inventory cost as the objective function, the inventory capacity limit, capital limit and shelf life of traditional Chinese medicine are set as constraints; the supply of traditional Chinese medicine is encoded as supply individuals, and the initial supply population is randomly generated;
[0028] Calculate the fitness of each replenishment individual in the initial replenishment population, and update the historical best position and global best position of each replenishment individual in the initial replenishment population according to the fitness value; adjust the position of each replenishment individual in the initial replenishment population based on the speed update formula and the position update formula;
[0029] The replenishment individuals in the initial replenishment population are randomly paired, and the Euclidean distance between each pair of replenishment individuals is calculated. When the Euclidean distance is greater than the preset threshold, a crossover operation is performed, and when the Euclidean distance is less than the preset threshold, a mutation operation is performed;
[0030] Determine whether the preset number of iterations is satisfied. If not, return to the fitness calculation step. If so, decode the optimal replenishment amount individual in the final replenishment amount population as the Chinese medicine replenishment amount to obtain the optimal replenishment amount of each Chinese medicine to be supplemented.
[0031] The speed update formula is:
[0032] v i (t+1)=ω·v i (t)+c1·r1·[pbest i (t)-x i (t)]+c2·r2·[gbest(t)-x i (t)]
[0033] The position update formula is:
[0034] x i (t+1)=x i (t)+v i (t+1)
[0035] In the formula, v i (t+1) represents the velocity of particle i at time t+1; v i (t) represents the velocity of particle i at time t; ω represents the inertia weight; c1 represents the step length learning factor that adjusts the direction of the particle flying to the individual best position; c2 represents the step length learning factor that adjusts the particle flying to the global best position; r1 and r2 represent two random numbers in the interval [0,1] respectively; pbest i (t) represents the best historical position of particle i at time t; x i (t) represents the position of particle i at time t; x i (t+1) represents the position of particle i at time t+1; gbest(t) represents the global best position at time t.
[0036] Preferably, the replenishment individuals in the initial replenishment population are randomly paired in pairs, and the Euclidean distance between each pair of replenishment individuals is calculated. When the Euclidean distance is greater than a preset threshold, a crossover operation is performed, and when the Euclidean distance is less than the preset threshold, a mutation operation is performed, including:
[0037] The replenishment individuals in the initial replenishment population are randomly paired, and the Euclidean distance between each pair of replenishment individuals is calculated;
[0038] It is judged in turn whether the Euclidean distance between each pair of replenishment individuals is greater than the preset distance threshold. If so, a crossover operation is performed on the replenishment individual pair based on the single point crossover method with a preset crossover probability to obtain two new replenishment individuals; if not, a crossover operation is performed on the replenishment individual pair based on the basic position mutation method with a preset mutation probability;
[0039] The new replenishment individuals generated by the crossover operation and the mutation operation are used to replace the initial replenishment individuals, and the initial replenishment population is updated to obtain an updated replenishment population.
[0040] Preferably, the Chinese medicine outbound module includes an outbound request management module, a priority setting module and a medicine outbound reminder module; wherein the outbound request management module is used to process outbound requests, generate outbound documents, and update inventory records;
[0041] The priority setting module is used to set the priority rules for the release of Chinese medicines according to the shelf life of each Chinese medicine;
[0042] The drug delivery reminder module is used to automatically send drug delivery reminders to pharmacy managers according to the set priority rules.
[0043] The technical solution provided by the embodiment of the present invention may have the following beneficial effects:
[0044] 1) The present invention can monitor the shelf life of each Chinese medicine in real time through the Chinese medicine shelf life management module, and automatically remind pharmacy managers when the medicine is close to expiration, thereby greatly improving the safety and timeliness of medicine use.
[0045] 2) The present invention is provided with a traditional Chinese medicine inventory management module, so that not only can the machine learning algorithm be used to predict the initial replenishment demand of each traditional Chinese medicine to be replenished when an early warning occurs in the inventory, but also a hybrid inventory optimization algorithm can be used to output the corresponding optimal traditional Chinese medicine supply quantity in combination with the initial replenishment demand of each traditional Chinese medicine to be replenished, thereby minimizing the risk of excess while ensuring that the inventory demand is met, reducing inventory costs and improving capital utilization.
[0046] 3) The present invention can not only automatically adjust the storage conditions according to the real-time monitored environmental data (such as temperature, humidity and air quality) through the storage environment adjustment module to ensure that the Chinese medicine is stored in the optimal environment, thereby maintaining its efficacy and safety, but also set the priority according to the shelf life of the medicine through the Chinese medicine outbound module, so as to automatically remind the priority use of medicines nearing the expiration date, reduce the waste of medicinal materials, and improve the inventory turnover rate, thereby ensuring the rational use of Chinese medicinal materials and improving the work efficiency and response speed of the pharmacy.
[0047] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0048] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and, together with the description, serve to explain the principles of the invention.
[0049] Figure 1 It is a structural block diagram of a TCM central pharmacy management system based on the shelf life of TCM according to an exemplary embodiment.
[0050] In the figure:
[0051] 1. Chinese medicine shelf life management module; 11. Chinese medicine information entry module; 12. Chinese medicine shelf life setting module; 13. Shelf life monitoring and early warning module; 2. Chinese medicine storage module; 21. Classification storage module; 22. Storage environment adjustment module; 3. Chinese medicine inventory management module; 31. Inventory monitoring and early warning module; 32. Chinese medicine demand forecasting module; 33. Optimal Chinese medicine supply analysis module; 4. Chinese medicine outbound module; 41. Outbound request management module; 42. Priority setting module; 43. Drug outbound reminder module. DETAILED DESCRIPTION
[0052] The following description and accompanying drawings fully illustrate the specific embodiments of this article so that those skilled in the art can practice them. Parts and features of some embodiments may be included in or replace parts and features of other embodiments. The scope of the embodiments of this article includes the entire scope of the claims, as well as all available equivalents of the claims. Herein, the terms "first", "second", etc. are only used to distinguish one element from another, without requiring or implying any actual relationship or order between these elements. In fact, the first element can also be called the second element, and vice versa. Moreover, the terms "include", "comprise" or any other variant thereof are intended to cover non-exclusive inclusion, so that the structure, device or equipment including a series of elements includes not only those elements, but also other elements that are not explicitly listed, or also include elements inherent to such structure, device or equipment. In the absence of more restrictions, the elements defined by the sentence "including one..." do not exclude the existence of other identical elements in the structure, device or equipment including the elements. Each embodiment is described in a progressive manner herein, and each embodiment focuses on the differences from other embodiments, and the same and similar parts between the embodiments can be referred to each other.
[0053] The terms "longitudinal", "lateral", "upper", "lower", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside", "outside", etc. in this document indicate the orientation or position relationship based on the orientation or position relationship shown in the drawings, and are only for the convenience of describing this document and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operate in a specific orientation, and therefore cannot be understood as a limitation on the present invention. In the description of this document, unless otherwise specified and limited, the terms "installed", "connected", and "connected" should be understood in a broad sense, for example, it can be a mechanical connection or an electrical connection, it can also be the internal communication of two elements, it can be a direct connection, or it can be an indirect connection through an intermediate medium. For ordinary technicians in this field, the specific meanings of the above terms can be understood according to specific circumstances.
[0054] As used herein, the term "plurality" means two or more than two, unless otherwise specified.
[0055] In this document, the character " / " indicates that the preceding and following objects are in an "or" relationship. For example, A / B means: A or B.
[0056] In this article, the term "and / or" is a description of the association relationship between objects, indicating that three relationships may exist. For example, A and / or B means: A or B, or, A and B.
[0057] It should be understood that, although the various steps in the flow chart are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear description in this article, the execution of these steps is not strictly limited in order, and these steps can be executed in other orders. Moreover, at least a portion of the steps in the figure may include multiple sub-steps or multiple stages, and these sub-steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these sub-steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a portion of the sub-steps or stages of other steps.
[0058] Each module in the device or system of the present application can be implemented in whole or in part by software, hardware, or a combination thereof. The above modules can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute operations corresponding to the above modules.
[0059] In the absence of conflict, the embodiments of the present invention and the features of the embodiments may be combined with each other.
[0060] Figure 1An embodiment of a TCM central pharmacy management system based on the shelf life of TCM of the present invention is shown, and the TCM central pharmacy management system based on the shelf life of TCM comprises: a TCM shelf life management module 1, a TCM storage module 2, a TCM inventory management module 3 and a TCM outbound module 4;
[0061] Among them, the Chinese medicine shelf life management module 1 is used to input the basic information of Chinese medicine and the corresponding shelf life information, and monitor and warn the shelf life of each Chinese medicine;
[0062] Specifically, the Chinese medicine shelf life management module 1 includes a Chinese medicine information input module 11, a Chinese medicine shelf life setting module 12 and a shelf life monitoring and early warning module 13;
[0063] The Chinese medicine information input module 11 is used to input the basic information of each Chinese medicine, including name, specification, origin and batch, etc.;
[0064] The Chinese medicine shelf life setting module 12 is used to set the shelf life of each Chinese medicine and the corresponding production date;
[0065] The shelf life monitoring and warning module 13 is used to regularly check the shelf life of stored traditional Chinese medicines and issue warnings or reminders based on the shelf life situation.
[0066] The Chinese medicine storage module 2 is used to classify and store the Chinese medicine according to preset classification standards and storage conditions;
[0067] Specifically, the Chinese medicine storage module 2 includes a classification storage module 21 and a storage environment adjustment module 22;
[0068] The classification storage module 21 is used to classify and store the Chinese medicines according to their properties, uses, sources and characteristics;
[0069] In the TCM central pharmacy management system, the classification storage module 21 is designed to classify TCM according to different standards such as medicinal properties, uses, sources and characteristics, so as to facilitate management and retrieval. The following are the operation steps and functions of this module:
[0070] 1) Classification standard setting
[0071] Classification of medicinal properties: Traditional Chinese medicine is classified according to its four properties (cold, hot, warm, and cool) and five flavors (spicy, sweet, sour, bitter, and salty).
[0072] Usage classification: Classified according to the main therapeutic effects of traditional Chinese medicine, such as antipyretic drugs, heat-clearing drugs, laxatives, etc.
[0073] Source classification: Classify according to the plant, animal, mineral and other sources of Chinese medicine.
[0074] Characteristic classification: Classification based on the storage environment characteristics of traditional Chinese medicine, such as temperature, humidity, light, etc.
[0075] 2) Classification storage logic
[0076] Data entry: Enter the basic information of Chinese medicine, including name, medicinal properties, use, source, characteristics, etc.
[0077] Automatic classification: The system automatically classifies Chinese medicine into corresponding categories based on the entered information.
[0078] Category management: Allows administrators to manually adjust categories or add new categories.
[0079] 3) Classified information display
[0080] Classification list: Displays the classification of traditional Chinese medicine and the Chinese medicines it contains in list form.
[0081] Detailed information: Click on a category or specific Chinese medicine to view detailed information.
[0082] Through the classification storage module, the TCM central pharmacy can efficiently manage the inventory of TCM, making it easier for medical staff to find the required medicinal materials quickly and accurately. It also provides data support for the pharmacy's inventory optimization and sales analysis.
[0083] The storage environment adjustment module 22 is used to monitor the temperature, humidity and air quality information in the storage environment of traditional Chinese medicine in real time, and automatically adjust the storage environment based on the monitoring data.
[0084] In the TCM central pharmacy management system, the role of the storage environment adjustment module 22 is to ensure the stability of the TCM storage environment and the safety of the drug quality. The following are the functions and operation steps included in this module:
[0085] 1) Real-time monitoring
[0086] Temperature and humidity monitoring: By installing temperature and humidity sensors, the temperature and humidity of the traditional Chinese medicine storage area can be monitored in real time.
[0087] Air quality monitoring: Through air quality sensors, the air quality of the storage area, such as oxygen content, harmful gases, etc., can be monitored in real time.
[0088] 2) Data recording and analysis
[0089] Data recording: Record the monitored temperature, humidity and air quality data into the database.
[0090] Data analysis: Analyze changing trends in environmental data and predict potential environmental problems.
[0091] 3) Threshold setting
[0092] Set standards: Set the ideal range of temperature, humidity and air quality based on the storage requirements of traditional Chinese medicine.
[0093] Alarm threshold: Set the alarm threshold when the environmental parameters exceed the ideal range.
[0094] 4) Automatic adjustment
[0095] Temperature regulation: When the temperature exceeds the set range, the heating or cooling equipment is automatically started to adjust the temperature.
[0096] Humidity adjustment: When the humidity exceeds the set range, the humidification or dehumidification equipment is automatically started to adjust the humidity.
[0097] Air quality control: Automatically activate air purification equipment when air quality problems occur.
[0098] 5) Exception handling
[0099] Alarm notification: When environmental parameters exceed the alarm threshold, the management personnel will be notified through sound and light alarms, text messages, emails, etc.
[0100] Emergency measures: In severe abnormal situations, emergency measures are automatically initiated, such as closing relevant areas to prevent drug damage.
[0101] Through the storage environment adjustment module, the TCM central pharmacy can ensure that TCM is stored in a suitable environment, reduce drug damage caused by environmental factors, and improve the safety and quality of drug storage.
[0102] The Chinese medicine inventory management module 3 is used to monitor the Chinese medicine inventory in real time and output the corresponding optimal Chinese medicine replenishment quantity using the hybrid inventory optimization algorithm when an inventory warning occurs;
[0103] Specifically, the Chinese medicine inventory management module 3 includes an inventory monitoring and warning module 31, a Chinese medicine demand prediction module 32 and an optimal Chinese medicine supply analysis module 33;
[0104] The inventory monitoring and warning module 31 is used to monitor the inventory status of traditional Chinese medicine in real time and issue an early warning or reminder when the inventory status is lower than a preset inventory threshold;
[0105] The Chinese medicine demand prediction module 32 is used to predict the initial supply demand of each Chinese medicine to be replenished by using a machine learning algorithm, specifically including:
[0106] 1) Collect historical sales data of each Chinese medicine and preprocess it; analyze the correlation between sales features based on the correlation analysis method, and remove highly correlated sales features to obtain a data set;
[0107] Specifically, first, historical sales data is obtained from sales record systems, inventory management systems, etc., including Chinese medicine names, sales quantities, sales amounts, sales times, etc.; then, missing values, outliers, duplicate data, etc. are processed for the collected data to ensure data quality, and non-numeric data (such as time, Chinese medicine names) are converted into numerical data for easy analysis, and sales data from different time periods are integrated into one data set; then, key features that affect sales are selected, such as time, holidays, promotional activities, etc., and the correlation between features is calculated using methods such as the Pearson correlation coefficient and the Spearman rank correlation coefficient, and a correlation threshold is set, such as 0.8, to determine whether the correlation between features is too high; then, for feature pairs with correlations higher than the set threshold, one of the features is selected to be retained and the other is removed, and considering the importance of the features, the features that have a greater impact on sales are retained first; finally, the screened features are combined into a feature matrix to obtain a data set.
[0108] 2) Dividing the data set into a training set and a test set based on a preset ratio, and using the training set and the test set to train and test the neural network model respectively, to obtain a trained neural network model;
[0109] Specifically, according to the requirements of the problem and the amount of data, the ratio of the training set and the test set is preset. A common ratio is 70% training set and 30% test set. The data set is divided into training set and test set using a random allocation method to ensure that the two have similar distributions.
[0110] 3) respectively inputting the current sales characteristics of each Chinese medicine to be replenished into the trained neural network model, and using the trained neural network model to output the corresponding initial replenishment quantity of each Chinese medicine to be replenished; wherein the current sales characteristics include the current time and date and the current price of each Chinese medicine to be replenished.
[0111] In addition, the current sales characteristics of each Chinese medicine to be replenished are input into the trained neural network model respectively, and the trained neural network model is used to output the corresponding initial supply quantity of each Chinese medicine to be replenished, which also includes: combining the suggestions of Chinese medicine experts or pharmacy managers to determine the value range of the supply quantity of each Chinese medicine to be replenished.
[0112] When determining the range of the amount of each Chinese medicine to be supplemented, it is very important to combine the advice of Chinese medicine experts or pharmacy managers, because they have rich professional knowledge and practical experience. The following are the steps to determine the range of the amount of supplementation:
[0113] 1) Expert consultation
[0114] TCM experts: Consult TCM experts about the commonly used dosage, efficacy characteristics, safety range, etc. of traditional Chinese medicine.
[0115] Pharmacy managers: Understand pharmacy managers’ information on TCM sales, inventory turnover, market demand, etc.
[0116] 2) Data analysis
[0117] Historical sales data: Analyze historical sales data to identify sales trends and seasonal changes of traditional Chinese medicines.
[0118] Inventory data: Analyze current inventory levels, including inventory, turnover rate, loss rate, etc.
[0119] Market demand: Analyze market demand forecasts and consider future sales potential.
[0120] 3) Value range setting
[0121] Minimum replenishment quantity: Set minimum replenishment quantity based on minimum inventory requirements and safety stock levels.
[0122] Maximum supply quantity: The maximum supply quantity is set considering factors such as market capacity, storage capacity, and financial budget.
[0123] Dynamic Adjustment: Dynamically adjust supply ranges based on seasonal demand changes and special events (such as flu season).
[0124] 4) Risk Assessment
[0125] Supply chain risk: Assess the stability and potential risks of the supply chain, such as supply disruptions, quality issues, etc.
[0126] Financial Risk: Assess the financial impact of excess or insufficient inventory.
[0127] 5) Comprehensive decision-making
[0128] Decision Matrix: Create a decision matrix that takes into account expert advice, data analysis, risk assessment, and other factors.
[0129] Decision making: Based on the decision matrix and actual conditions, determine the range of the amount of each Chinese medicine to be supplemented.
[0130] 6) Continuous monitoring and optimization
[0131] Implementation monitoring: Continuously monitor sales and inventory during the replenishment process.
[0132] Feedback loop: adjust the supply range based on actual performance feedback.
[0133] Through these steps, it can be ensured that the replenishment of Chinese medicine meets clinical needs while effectively managing inventory and reducing risks. The advice of experts and the practical experience of pharmacy managers provide valuable reference for determining the replenishment amount.
[0134] The optimal Chinese medicine replenishment quantity analysis module 33 is used to output the corresponding optimal Chinese medicine replenishment quantity by combining the initial replenishment demand of each Chinese medicine to be replenished with the hybrid inventory optimization algorithm, specifically including:
[0135] Taking minimizing inventory cost as the objective function, the inventory capacity limit, capital limit and shelf life of traditional Chinese medicine are set as constraints; the supply of traditional Chinese medicine is encoded as supply individuals, and the initial supply population is randomly generated;
[0136] Calculate the fitness of each replenishment individual in the initial replenishment population, and update the historical best position and the global best position of each replenishment individual in the initial replenishment population according to the fitness value (i.e., for each replenishment individual, compare its current fitness value with its historical best fitness value. If the current fitness value is better, update the historical best position of the replenishment individual as the current position; after updating the historical best positions of all replenishment individuals, compare the fitness values of the historical best positions of all replenishment individuals, and select the historical best position of the replenishment individual with the best fitness value as the global best position); adjust the position of each replenishment individual in the initial replenishment population based on the speed update formula and the position update formula;
[0137] Specifically, the speed update formula is:
[0138] v i (t+1)=ω·v i (t)+c1·r1·[pbest i (t)-x i (t)]+c2·r2·[gbest(t)-x i (t)]
[0139] The position update formula is:
[0140] x i (t+1)=x i (t)+v i (t+1)
[0141] In the formula, v i (t+1) represents the velocity of particle i at time t+1; v i (t) represents the velocity of particle i at time t; ω represents the inertia weight; c1 represents the step length learning factor that adjusts the direction of the particle flying to the individual best position; c2 represents the step length learning factor that adjusts the particle flying to the global best position; r1 and r2 represent two random numbers in the interval [0,1] respectively; pbest i (t) represents the best historical position of particle i at time t; x i (t) represents the position of particle i at time t; x i(t+1) represents the position of particle i at time t+1; gbest(t) represents the global best position at time t.
[0142] The replenishment individuals in the initial replenishment population are randomly paired in pairs, and the Euclidean distance between each pair of replenishment individuals is calculated. When the Euclidean distance is greater than a preset threshold, a crossover operation is performed, and when the Euclidean distance is less than the preset threshold, a mutation operation is performed; specifically, the method comprises: judging in turn whether the Euclidean distance between each pair of replenishment individuals is greater than a preset distance threshold, and if so, performing a crossover operation on the replenishment individual pairs with a preset crossover probability based on a single-point crossover method to obtain two new replenishment individuals; if not, performing a crossover operation on the replenishment individual pairs with a preset mutation probability based on a basic position mutation method; replacing the initial replenishment individuals with the new replenishment individuals generated by the crossover operation and the mutation operation, updating the initial replenishment population, and obtaining an updated replenishment population.
[0143] Determine whether the preset number of iterations is satisfied. If not, return to the fitness calculation step. If so, decode the best supply amount individual in the final supply amount population into the Chinese medicine supply amount to obtain the best supply amount of each Chinese medicine to be supplemented.
[0144] The Chinese medicine outbound module 4 is used to automatically remind the staff to give priority to the medicines approaching the expiration date according to the expiration date of each Chinese medicine.
[0145] Specifically, the Chinese medicine outbound module 4 includes an outbound request management module 41, a priority setting module 42 and a medicine outbound reminder module 43;
[0146] The outbound request management module 41 is used to process outbound requests, generate outbound documents, and update inventory records;
[0147] A priority setting module 42, used to set the priority rules for the release of Chinese medicines from the warehouse according to the shelf life of each Chinese medicine;
[0148] The drug delivery reminder module 43 is used to automatically send drug delivery reminders to pharmacy managers according to a set priority rule.
[0149] Specifically, outbound reminders can be sent to pharmacy managers via voice, and the reminders include key information such as drug name, inventory status, and recommended outbound quantity. In addition, outbound reminders can be sorted according to the set priority rules to ensure that managers deal with the most urgent reminders first, and the frequency of reminders can be set according to the urgency of the drugs, such as increasing the frequency of reminders for drugs that are about to expire.
[0150] In summary, by means of the above technical scheme of the present invention, the present invention can monitor the shelf life of each Chinese medicine in real time through the Chinese medicine shelf life management module, and automatically remind the pharmacy management personnel when the medicine is close to expiration, greatly improving the safety and timeliness of the use of medicines. In addition, the present invention is provided with a Chinese medicine inventory management module, so that not only can the machine learning algorithm be used to predict the initial replenishment demand of each Chinese medicine to be replenished when the inventory is warned, but also the hybrid inventory optimization algorithm can be used to combine the initial replenishment demand of each Chinese medicine to be replenished to output the corresponding optimal Chinese medicine replenishment, so that the excess risk can be minimized under the condition of ensuring that the inventory demand is met, the inventory cost is reduced, and the capital utilization rate is improved. In addition, the present invention can not only automatically adjust the storage conditions according to the real-time monitored environmental data (such as temperature, humidity and air quality) through the storage environment adjustment module, ensure that the Chinese medicine is stored in the best environment, so as to maintain its efficacy and safety, but also can set the priority according to the shelf life of the medicine through the Chinese medicine outbound module, so that the medicine near the shelf life can be automatically reminded to use the medicines, reduce the waste of medicinal materials, and improve the inventory turnover rate, thereby ensuring the rational use of Chinese medicinal materials, and improving the work efficiency and response speed of the pharmacy.
[0151] The technical features of the above-mentioned embodiments can be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above-mentioned embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification. A person of ordinary skill in the art can understand that all or part of the steps in the above-mentioned embodiment method can be completed by instructing the relevant hardware through a program. The program can be stored in a computer-readable storage medium. When the program is executed, it includes the steps described in the above method, and the storage medium, such as ROM / RAM, a disk, an optical disk, etc.
[0152] The above-mentioned embodiments only express several implementation methods of the present invention, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for ordinary technicians in this field, several variations and improvements can be made without departing from the concept of the present invention, and these all belong to the protection scope of the present invention. Therefore, the protection scope of the patent of the present invention shall be subject to the attached claims.
Claims
1. A TCM central pharmacy management system based on the shelf life of traditional Chinese medicine, characterized in that: The TCM central pharmacy management system based on the shelf life of traditional Chinese medicine comprises a traditional Chinese medicine shelf life management module (1), a traditional Chinese medicine storage module (2), a traditional Chinese medicine inventory management module (3) and a traditional Chinese medicine outbound module (4); The Chinese medicine shelf life management module (1) is used to input the basic information of the Chinese medicine and the corresponding shelf life information, and monitor and warn the shelf life of each Chinese medicine; The traditional Chinese medicine storage module (2) is used to classify and store the traditional Chinese medicine according to preset classification standards and storage conditions; The Chinese medicine inventory management module (3) is used to monitor the Chinese medicine inventory in real time and output the corresponding optimal Chinese medicine replenishment quantity using a hybrid inventory optimization algorithm when an inventory warning occurs; The Chinese medicine outbound module (4) is used to automatically remind staff to give priority to medicines approaching their expiration dates according to the expiration dates of each Chinese medicine.
2. The TCM central pharmacy management system based on the shelf life of traditional Chinese medicine according to claim 1, characterized in that: The Chinese medicine shelf life management module (1) comprises a Chinese medicine information input module (11), a Chinese medicine shelf life setting module (12) and a shelf life monitoring and early warning module (13); The Chinese medicine information input module (11) is used to input the basic information of each Chinese medicine, including name, specification, origin and batch; The Chinese medicine shelf life setting module (12) is used to set the shelf life and corresponding production date of each Chinese medicine; The shelf life monitoring and warning module (13) is used to regularly check the shelf life of stored traditional Chinese medicines and issue warnings or reminders according to the shelf life situation.
3. The TCM central pharmacy management system based on the shelf life of traditional Chinese medicine according to claim 1, characterized in that: The traditional Chinese medicine storage module (2) comprises a classification storage module (21) and a storage environment adjustment module (22); The classification storage module (21) is used to classify and store the Chinese medicines according to their properties, uses, sources and characteristics; The storage environment adjustment module (22) is used to monitor the temperature, humidity and air quality information in the traditional Chinese medicine storage environment in real time, and automatically adjust the storage environment based on the monitoring data.
4. The TCM central pharmacy management system based on the shelf life of traditional Chinese medicine according to claim 1, characterized in that: The Chinese medicine inventory management module (3) comprises an inventory monitoring and early warning module (31), a Chinese medicine demand prediction module (32) and an optimal Chinese medicine supply quantity analysis module (33); The inventory monitoring and warning module (31) is used to monitor the inventory of traditional Chinese medicine in real time and issue an early warning or reminder when the inventory is lower than a preset inventory threshold; The Chinese medicine demand prediction module (32) is used to predict the initial supply demand of each Chinese medicine to be replenished by using a machine learning algorithm; The optimal Chinese medicine replenishment quantity analysis module (33) is used to utilize a hybrid inventory optimization algorithm to combine the initial replenishment demand of each Chinese medicine to be replenished and output the corresponding optimal Chinese medicine replenishment quantity.
5. The TCM central pharmacy management system based on the shelf life of traditional Chinese medicine according to claim 4 is characterized in that: The Chinese medicine demand prediction module (32) includes, when using a machine learning algorithm to predict the initial supply demand of each Chinese medicine to be replenished: The historical sales data of each Chinese medicine is collected and preprocessed; the correlation between sales features is analyzed based on the correlation analysis method, and highly correlated sales features are eliminated to obtain a data set; Divide the data set into a training set and a test set based on a preset ratio, and use the training set and the test set to train and test the neural network model respectively to obtain a trained neural network model; Input the current sales characteristics of each Chinese medicine to be replenished into the trained neural network model respectively, and use the trained neural network model to output the corresponding initial replenishment amount of each Chinese medicine to be replenished; Among them, the current sales characteristics include the current time and date and the current price of each Chinese medicine to be replenished.
6. The TCM central pharmacy management system based on the shelf life of traditional Chinese medicine according to claim 5, characterized in that: The method further comprises: after inputting the current sales characteristics of each Chinese medicine to be replenished into the trained neural network model and outputting the corresponding initial replenishment amount of each Chinese medicine to be replenished using the trained neural network model, it also includes: determining the value range of the replenishment amount of each Chinese medicine to be replenished in combination with the suggestions of Chinese medicine experts or pharmacy managers.
7. The TCM central pharmacy management system based on the shelf life of traditional Chinese medicine according to claim 1, characterized in that: The optimal Chinese medicine replenishment amount analysis module (33) comprises: Taking minimizing inventory cost as the objective function, the inventory capacity limit, capital limit and shelf life of traditional Chinese medicine are set as constraints; the supply of traditional Chinese medicine is encoded as supply individuals, and the initial supply population is randomly generated; Calculate the fitness of each replenishment individual in the initial replenishment population, and update the historical best position and global best position of each replenishment individual in the initial replenishment population according to the fitness value; adjust the position of each replenishment individual in the initial replenishment population based on the speed update formula and the position update formula; The replenishment individuals in the initial replenishment population are randomly paired, and the Euclidean distance between each pair of replenishment individuals is calculated. When the Euclidean distance is greater than the preset threshold, a crossover operation is performed, and when the Euclidean distance is less than the preset threshold, a mutation operation is performed; Determine whether the preset number of iterations is satisfied. If not, return to the fitness calculation step. If so, decode the best supply amount individual in the final supply amount population into the Chinese medicine supply amount to obtain the best supply amount of each Chinese medicine to be supplemented.
8. The TCM central pharmacy management system based on the shelf life of traditional Chinese medicine according to claim 7, characterized in that: The speed update formula is: v i (t+1)=ω·v i (t)+c1·r1·[pbest i (t)-x i (t)]+c2·r2·[gbest(t)-x i (t)] The position update formula is: x i (t+1)=x i (t)+v i (t+1) In the formula, v i (t+1) represents the velocity of particle i at time t+1; v i (t) represents the velocity of particle i at time t; ω represents the inertia weight; c1 represents the step length learning factor that adjusts the direction of the particle flying to the individual optimal position; c2 represents the step length learning factor that adjusts the particle to fly to the global optimal position; r1 and r2 represent two random numbers in the interval [0,1] respectively; pbest i (t) represents the best historical position of particle i at time t; x i (t) represents the position of particle i at time t; x i (t+1) represents the position of particle i at time t+1; gbest(t) represents the global best position at time t.
9. The TCM central pharmacy management system based on the shelf life of traditional Chinese medicine according to claim 7, characterized in that: The method of randomly pairing the replenishment individuals in the initial replenishment population, calculating the Euclidean distance between each pair of replenishment individuals, performing a crossover operation when the Euclidean distance is greater than a preset threshold, and performing a mutation operation when the Euclidean distance is less than the preset threshold includes: The replenishment individuals in the initial replenishment population are randomly paired, and the Euclidean distance between each pair of replenishment individuals is calculated; It is judged in turn whether the Euclidean distance between each pair of replenishment individuals is greater than the preset distance threshold. If so, a crossover operation is performed on the replenishment individual pair based on the single point crossover method with a preset crossover probability to obtain two new replenishment individuals; if not, a crossover operation is performed on the replenishment individual pair based on the basic position mutation method with a preset mutation probability; The new replenishment individuals generated by the crossover operation and the mutation operation are used to replace the initial replenishment individuals, and the initial replenishment population is updated to obtain an updated replenishment population.
10. The TCM central pharmacy management system based on the shelf life of TCM according to claim 1, characterized in that: The Chinese medicine outbound module (4) comprises an outbound request management module (41), a priority setting module (42) and a medicine outbound reminder module (43); The outbound request management module (41) is used to process outbound requests, generate outbound documents, and update inventory records; The priority setting module (42) is used to set the priority rules for the release of Chinese medicines from the warehouse according to the shelf life of each Chinese medicine; The medicine delivery reminder module (43) is used to automatically send a medicine delivery reminder to the pharmacy manager according to a set priority rule.
Citation Information
Cited By
Medicine cabinet remote management system, method, equipment and medium
CN119805994A
Traditional Chinese medicine central pharmacy management system
CN120412953A
