Intelligent pharmacy data processing method and device, equipment and storage medium
Through intelligent pharmacy data processing methods and genetic algorithms to optimize drug inventory management, the complexity of pharmacy inventory is solved, and the refined management of drugs and the improvement of space utilization is achieved.
Patent Information
- Application Number
- CN202510459061.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-04-14
- Publication Date
- 2025-07-25
- Estimated Expiration
- 2045-04-14
AI Technical Summary
Pharmacy inventory management is complex and the notification of medication is not accurate and timely, resulting in expired and waste of drugs and low space utilization.
Through intelligent pharmacy data processing methods, comprehensive analysis of drug storage, time period and user drug acquisition data, genetic algorithms are used to optimize inventory management, determine target drugs and drug acquisition notifications, and improve space utilization and drug circulation efficiency.
It has achieved refined management of drugs, reduced expired waste of drugs, improved the timeliness and accuracy of drug acquisition, and optimized the utilization of drug inventory space.
Smart Images

Figure CN120376078A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of pharmacy data processing, and in particular, to an intelligent pharmacy data processing method, device, equipment, and storage medium. Background Art
[0002] The pharmacy is an important node for managing and dispensing drugs. Some drugs after a user's visit need to be dispensed and issued in the pharmacy. Many drugs require special storage conditions, such as refrigeration, moisture-proof, etc. The pharmacy has corresponding facilities, while the user's home may not have such conditions. When the number of drugs stored in the special storage space of the pharmacy (such as a refrigerator, moisture-proof cabinet, etc.) is large, or when newly stocked drugs need to be stored, it may lead to insufficient space.
[0003] The pharmacy needs to promptly notify relevant personnel to pick up the drugs. The purpose of doing this is to ensure that the pharmacy has enough space to store newly stocked drugs or adjust the inventory, and at the same time enable relevant personnel to obtain the drugs they need in a timely manner. This practice is common in drug management and inventory control, and helps to optimize the space utilization and drug circulation in the pharmacy. However, there are a wide variety of drug types, and the storage space, expiration date, and dispensing frequency are also different, which requires precise tracking and management, increasing the complexity of inventory management. The informatization level of inventory management in some pharmacies is not high, making it difficult to accurately grasp the drug inventory situation in real time, thus affecting the timeliness and accuracy of notifying relevant personnel to pick up the drugs. Summary of the Invention
[0004] The present invention provides an intelligent pharmacy data processing method, device, equipment, and storage medium, which are used to solve the defect that the drug pick-up notification in the prior art is not accurate and timely enough, and achieve the effect of realizing refined management of the inventory.
[0005] The present invention provides an intelligent pharmacy data processing method, including:
[0006] Obtain the basic drug data of the drugs in stock in the pharmacy; the basic drug data includes drug storage data, drug time limit data, and user drug pick-up data;
[0007] Based on the drug storage data and the user drug pick-up data, determine the storage space vacated by each drug storage object after each drug pick-up; based on the user drug pick-up data, determine the respective target probabilities of each drug storage object taking away the corresponding drugs in stock within a first time period; the user drug pick-up data includes the pick-up historical time of each drug storage object in response to the historical drug pick-up notification;
[0008] Based on the drug time limit data, the storage space vacated by each drug storage object after each drug pick-up, and the respective target probabilities corresponding to each drug storage object, determine the target drugs that need to be taken away from the drugs in stock and the drug pick-up notification data corresponding to the target drugs.
[0009] According to a smart pharmacy data processing method provided by the present invention, based on the drug time limit data, the storage space freed up by each drug storage object after each drug is taken out, and each target probability corresponding to each drug storage object, the target drug to be taken out and the drug taking notification data corresponding to the target drug are determined from the inventory drugs, including:
[0010] Determine a first space vacated by a first number of first objects taking out corresponding stock medicines within the first time period; determine a second space vacated by a second number of second objects taking out corresponding stock medicines within the first time period; the storage conditions of the first objects and the second objects are different;
[0011] The first object and the second object are used as the initial population, and iteration is started using a genetic algorithm. A fitness function is set based on the drug time limit data and the size of the vacated space. The first object and the second object are crossovered and mutated, and a third space vacated after a third number of third objects take away corresponding inventory drugs within the first time period is updated and determined; the volume of the third space is the maximum value during the iteration process.
[0012] According to a smart pharmacy data processing method provided by the present invention, the storage conditions include temperature and humidity.
[0013] According to a smart pharmacy data processing method provided by the present invention, the method also includes: encoding the drug collection information of each drug storage object into a binary string, each character in the binary string is used to indicate a stock drug corresponding to the drug storage object.
[0014] According to a smart pharmacy data processing method provided by the present invention, the method of determining the target probabilities of each drug storage object taking away the corresponding stock drugs within the first time period based on the user drug collection data includes:
[0015] Based on the user's drug collection data, determine the collection records of the inventory drugs within the statistical period, and calculate the average collection amount and standard deviation of the inventory drugs;
[0016] Based on the average amount and standard deviation of the drugs in stock, the probability density function of the single amount of drugs was constructed using the distribution fitting method.
[0017] The probability density function is integrated within the interval corresponding to the first duration to obtain the target probability within the interval.
[0018] According to a smart pharmacy data processing method provided by the present invention, the medicine collection notification data includes: the medicine storage object to be notified and the frequency of sending the medicine collection notification to each medicine storage object.
[0019] According to an intelligent pharmacy data processing method provided by the present invention, before obtaining the basic drug data of the drugs in stock in the pharmacy, the method includes:
[0020] Determine that the storage space utilization rate of the pharmacy exceeds the target ratio; or determine that the quantity of newly stocked drugs in the pharmacy is greater than the target quantity.
[0021] The present invention also provides an intelligent pharmacy data processing device, including:
[0022] An acquisition module, configured to acquire the basic drug data of the drugs in stock in the pharmacy; the basic drug data includes drug storage data, drug time limit data, and user drug collection data;
[0023] A first processing module, configured to determine the storage space vacated by each drug storage object after each drug collection based on the drug storage data and the user drug collection data; and determine each target probability that each drug storage object takes away the corresponding drugs in stock within a first time period based on the user drug collection data; the user drug collection data includes the historical drug collection times of each drug storage object in response to the historical drug collection notifications.
[0024] A second processing module, configured to determine the target drugs that need to be taken away from the drugs in stock and the drug collection notification data corresponding to the target drugs based on the drug time limit data, the storage space vacated by each drug storage object after each drug collection, and each target probability corresponding to each drug storage object.
[0025] The present invention also provides an electronic device, including a memory, a processor, and a computer program stored on the memory and executable on the processor, where when the processor executes the program, the intelligent pharmacy data processing method described in any one of the above is implemented.
[0026] The present invention also provides a non-transitory computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the intelligent pharmacy data processing method described in any one of the above is implemented.
[0027] The present invention also provides a computer program product, including a computer program, and when the computer program is executed by a processor, the intelligent pharmacy data processing method described in any one of the above is implemented.
[0028] The intelligent pharmacy data processing method, device, equipment and storage medium provided by the present invention comprehensively analyze drug storage, time limit and user drug-taking data, accurately determine the space vacated after each drug storage object takes the drug and the drug-taking probability, so as to determine the target drug to be taken from the in-stock drugs and the drug-taking notice data corresponding to the target drug, reduce drug expiration waste, improve space utilization rate and drug circulation efficiency, can realize refined management of the inventory, ensure that drugs are reasonably used within the validity period, and improve the timeliness and accuracy of relevant personnel taking drugs. BRIEF DESCRIPTION OF THE DRAWINGS
[0029] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the following will briefly introduce the drawings required for use in the description of the embodiments or the prior art. Obviously, the drawings in the following description are some embodiments of the present invention. For those of ordinary skill in the art, without creative efforts, other drawings can also be obtained based on these drawings.
[0030] Figure 1 is one of the flow diagrams of the intelligent pharmacy data processing method provided by the present invention;
[0031] Figure 2 is the second flow diagram of the intelligent pharmacy data processing method provided by the present invention;
[0032] Figure 3 is the structural diagram of the intelligent pharmacy data processing device provided by the present invention;
[0033] Figure 4 is the structural diagram of the electronic device provided by the present invention. DETAILED DESCRIPTION OF THE EMBODIMENTS
[0034] To make the objectives, technical solutions and advantages of the present invention clearer, the following will clearly and completely describe the technical solutions in the present invention with reference to the drawings in the present invention. Obviously, the described embodiments are some, but not all, of the embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts fall within the scope of protection of the present invention.
[0035] The following will describe Figures 1 - 4 the intelligent pharmacy data processing method, device, equipment and storage medium of the present invention.
[0036] An intelligent pharmacy uses information technologies such as big data, cloud computing, and the Internet of Things, combined with an intelligent control system, to intelligently process links such as drug management, dispensing, and distribution. Through automated equipment and intelligent management systems, it can achieve automated storage, dispensing, sorting, transmission, and distribution of drugs, improve drug management efficiency, reduce human errors, and ensure medication safety.
[0037] An intelligent pharmacy can classify and store drugs and accurately dispense them through automated equipment, improving the efficiency and accuracy of drug management. By analyzing drug usage data, drug inventory management can be optimized, reducing expiration and waste.
[0038] The pharmacy is an important node for managing and distributing drugs. After seeing a doctor, patients need to have their drugs dispensed and distributed at the pharmacy. Many drugs require special storage conditions, such as refrigeration, moisture-proof, etc. The pharmacy has corresponding facilities to meet these conditions, while patients' homes may not have such conditions. When the number of drugs stored in the special storage spaces of the pharmacy (such as refrigerators, moisture-proof cabinets, etc.) is large, or when newly stocked drugs need to be stored, it may lead to insufficient space.
[0039] The pharmacy needs to promptly notify relevant personnel to pick up their drugs to ensure that there is enough space in the pharmacy to store newly stocked drugs or adjust the inventory, and at the same time enable relevant personnel to obtain the drugs they need in a timely manner. Due to the large variety of drugs, the storage space, expiration date, and distribution frequency are also different, which increases the complexity of inventory management and requires precise tracking and management.
[0040] As Figure 1 shown, the intelligent pharmacy data processing method of the embodiment of the present invention mainly includes step 110, step 120, and step 130.
[0041] Step 110, obtaining the basic drug data of the drugs in stock in the pharmacy.
[0042] The basic drug data includes drug storage data, drug time limit data, and user drug pickup data.
[0043] The drug storage data refers to information about the storage situation of drugs in the pharmacy, including the storage location, storage quantity, storage conditions, and required storage space of the drugs.
[0044] Through the inventory management system of the pharmacy, the storage location, quantity, and storage space of the drugs can be obtained. For example, the system will record the specific location of each drug on the shelf or storage cabinet, as well as the current inventory quantity.
[0045] Drug time limit data refers to information related to the expiration date and remaining time of drugs, including the production date, expiration date, remaining expiration date of drugs, etc. The production date and expiration date of drugs are usually clearly marked on the drug packaging. These information can be obtained by manually entering or automatically scanning the barcode on the drug packaging, etc.
[0046] In the pharmacy management system, the purchase date, storage time of drugs, etc. will be recorded. Combining with the expiration date of drugs, the remaining expiration date of drugs can be calculated.
[0047] It can be understood that drug time limit data is crucial for drug management and dispensing. By monitoring the remaining expiration date of drugs, the pharmacy can reasonably arrange the order of drug use, give priority to using drugs close to the expiration date, reduce drug expiration waste, and ensure the safety of patients' medication.
[0048] User drug-taking data refers to information related to patients' or users' drug-taking behaviors, including drug-taking time, drug-taking frequency, drug-taking quantity, etc., for example, it can include historical drug-taking data.
[0049] The pharmacy system will save the drug-taking history records of patients, including the time of each drug-taking, drug name, drug-taking quantity, etc.
[0050] User drug-taking data can help the pharmacy predict the demand trend of drugs, and reasonably arrange drug inventory and dispensing work. At the same time, by analyzing the drug-taking frequency and habits of users, the pharmacy can provide more personalized services for patients, such as reminding patients to take drugs on time, etc.
[0051] For example, by combining drug storage data and user drug-taking data, the pharmacy can achieve automated drug dispensing and replenishment reminders. When the inventory quantity of a certain drug is lower than the preset safety inventory value, and there are many patients making appointments to take this drug recently, the system can automatically trigger the replenishment process to ensure the continuous supply of drugs. At the same time, the application of drug time limit data can further optimize inventory management, timely free up storage space and reduce the risk of drug expiration, improving the overall efficiency and quality of drug management.
[0052] Step 120, based on the drug storage data and user drug-taking data, determine the storage space vacated by each drug storage object after each drug-taking; based on the user drug-taking data, determine the respective target probabilities of each drug storage object taking away the corresponding inventory drugs within the first time period.
[0053] User drug-taking data includes the drug-taking historical time when each drug storage object responds to the historical drug-taking notice.
[0054] The drug storage data includes information such as the storage location of drugs, the storage quantity, the storage conditions, and the size of the storage space occupied by each drug. When a drug-taking object picks up drugs, the pharmacy management system can calculate the vacated storage space after the drugs are picked up based on the drug storage data. For example, if a certain drug originally occupied 10 storage positions in a refrigerator, and the occupancy decreased by 5 storage positions after the drugs were picked up, then the vacated storage space is 5 storage positions.
[0055] The drug-taking data of users includes information such as the drug-taking historical time, drug-taking frequency, and drug-taking quantity of each drug-taking object in response to historical drug-taking notifications. By analyzing these historical data, the probability that each drug-taking object picks up the corresponding inventory drugs within the first time period (such as one day, one week, etc.) can be determined. For example, if a certain drug-taking object has 10 records of picking up drugs on the second day after receiving the drug-taking notification in the past six months, then it can be estimated that the probability of it picking up drugs within the first time period (such as one day) is a relatively high value.
[0056] Step 130, based on the drug time limit data, the vacated storage space after each drug-taking object picks up drugs each time, and the respective target probabilities corresponding to each drug-taking object, determine the target drugs that need to be picked up from the inventory drugs and the drug-taking notification data corresponding to the target drugs.
[0057] The drug time limit data refers to the expiration date or the remaining available time of the drugs. The pharmacy needs to give priority to those drugs that are about to expire to avoid waste. For example, if a certain drug is about to expire within one month, then it may be preferentially determined as the target drug so that it can be picked up and used within the expiration date.
[0058] After each drug-taking object picks up drugs, the storage space of the pharmacy will change. Understanding the vacated space after each drug pick-up helps the pharmacy to reasonably arrange the inventory and ensure that there is enough space to store newly incoming drugs or conduct inventory adjustments. For example, if a certain drug-taking object often picks up a certain drug and a relatively large storage space can be vacated after the drugs are picked up, then the pharmacy may give priority to notifying this drug-taking object to pick up drugs to optimize space utilization.
[0059] The target probability refers to the possibility that each drug-taking object picks up the corresponding inventory drugs within a certain period of time. This can be determined by analyzing factors such as historical drug-taking data and the time of responding to drug-taking notifications. For example, if a certain drug-taking object has an 80% probability of picking up drugs on the second day after receiving the drug-taking notification in the past month, then its target probability is relatively high, and the pharmacy may give priority to considering the drug-taking needs of this drug-taking object.
[0060] In this case, the pharmacy can determine which drugs need to be taken away first from the stocked drugs. This may include drugs that are about to expire, drugs that can create more space after being taken, and drugs with a higher probability of being taken by the drug storage objects. Based on the target probability and the inventory situation, determine which drug storage objects need to be notified to pick up their drugs. For example, preferentially notify departments or patients with a higher demand for the target drugs and a greater probability of picking up their drugs. Arrange the notification frequency reasonably according to the historical drug-taking behaviors and demands of the drug storage objects. For those drug storage objects that often need to pick up their drugs or are not active in responding to drug pick-up notifications, a higher notification frequency can be set to ensure that they can obtain the required drugs in a timely manner.
[0061] In some implementations, the drug pick-up notification data includes: the notified drug storage objects and the frequency of sending drug pick-up notifications to each drug storage object.
[0062] According to the intelligent pharmacy data processing method of the embodiments of the present invention, by comprehensively analyzing drug storage, time limit, and user drug-taking data, accurately determine the space vacated after each drug storage object picks up their drugs and the drug-taking probability, so as to determine the target drugs that need to be taken away from the stocked drugs and the corresponding drug pick-up notification data, reduce drug expiration waste, improve space utilization rate and drug circulation efficiency, can achieve refined management of the inventory, ensure that drugs are reasonably used within the validity period, and improve the timeliness and accuracy of relevant personnel in picking up their drugs.
[0063] Before obtaining the basic drug data of the stocked drugs in the pharmacy, the intelligent pharmacy data processing method of the embodiments of the present invention further includes: determining that the space utilization rate of the pharmacy exceeds the target ratio; or determining that the quantity of newly stocked drugs in the pharmacy is greater than the target quantity.
[0064] The space utilization rate of the pharmacy exceeding the target ratio means that the current storage space of the pharmacy has reached a pre-set utilization rate threshold and may be about to face the problem of insufficient space. For example, if the target ratio is set at 80% and the current space utilization rate has reached 85%, then measures need to be taken to optimize the inventory and release space.
[0065] The quantity of newly stocked drugs in the pharmacy being greater than the target quantity indicates that a large number of new drugs have been stocked recently, exceeding the expected quantity of stocked drugs. This may result in the existing storage space being insufficient to accommodate the newly stocked drugs, or the need to adjust the inventory to reasonably arrange the storage locations of these new drugs.
[0066] When either of the above two situations is met, it is necessary to optimize the inventory management of the pharmacy to ensure that drugs can be reasonably stored and promptly dispensed.
[0067] In some embodiments, such as Figure 2As shown, based on the drug time limit data, the storage space vacated by each drug storage object after each drug pick-up, and the respective target probabilities corresponding to each drug storage object, determine the target drugs to be taken away from the inventory drugs and the pick-up notice data corresponding to the target drugs, including step 210 and step 220.
[0068] Step 210, determine the first space vacated after the first quantity of first objects pick up the corresponding inventory drugs within the first time period; determine the second space vacated after the second quantity of second objects pick up the corresponding inventory drugs within the first time period.
[0069] The storage conditions of the first object and the second object are different.
[0070] Step 220, take the first object and the second object as the initial population, start iteration using the genetic algorithm, and set the fitness function based on the drug time limit data and the vacated space size, perform crossover and mutation on the first object and the second object, and update and determine the third space vacated after the third quantity of third objects pick up the corresponding inventory drugs within the first time period.
[0071] The volume of the third space is the maximum value during the iteration process.
[0072] The first object and the second object are drug storage objects with different storage conditions. For example, the first object may be stored under refrigerated conditions, while the second object may be stored at room temperature.
[0073] Take the first object and the second object as the initial population. The pick-up information (whether to pick up drugs within the first time period) of each object is randomly initialized. For example, if there are 5 first objects and 3 second objects, the initial population may be a set containing 8 individuals, and each individual represents the pick-up status of a drug storage object.
[0074] The fitness function can be set by combining the drug time limit data and the vacated space size. For example, the fitness function F can be expressed as:
[0075] F = α × U + β × S;
[0076] Among them, α and β are weight coefficients used to balance the importance of the two factors; U represents the urgency of the drug (for example, drugs with a short expiration date have a higher priority); S represents the size of the vacated space after drug pick-up. For example, the size of the vacated space after drug pick-up can be obtained by multiplying the storage space of the corresponding inventory drug and the target probability.
[0077] For each individual (the set of drug pick-up objects), calculate the corresponding U and S according to its coding information, and then obtain the fitness value.
[0078] Determine the probability of an individual being selected based on its fitness value. The higher the fitness of an individual, the greater the probability of being selected. Specifically, first calculate the sum of the fitness values of all individuals, then calculate the relative fitness of each individual, generate a random number, and select an individual according to the relative fitness.
[0079] The single-point crossover method can be adopted. Randomly select a crossover point and exchange the coding segments of two parent individuals at this point to generate two new offspring individuals. For example, assume there are two parent individuals, representing two different medicine-taking schemes respectively, and their coding can be binary strings, such as "0101" and "1100". Each character in the binary string is used to indicate a kind of stocked medicine corresponding to the medicine storage object. Randomly select a crossover point, for example, at the 2nd position, and then exchange the coding segments after this point to generate two new offspring individuals "0100" and "1101". Or multi-point crossover can be used, select multiple crossover points for segment exchange to further increase genetic diversity. For example, perform crossover at the 1st and 3rd positions, and the parent individuals "0101" and "1100" may generate the offspring individuals "1101" and "0100".
[0080] Bit flip mutation can be adopted. For some bits in an individual's coding, randomly invert them. For example, the individual "0101" may mutate at the 2nd bit and become "0001", which means that the medicine-taking status of the medicine storage object corresponding to this bit has changed. It was originally taking medicine and now becomes not taking medicine, or vice versa.
[0081] During the iteration process, repeat the selection, crossover, and mutation operations to continuously update the population. In each generation, retain the individuals with higher fitness and eliminate the individuals with lower fitness. After iterating a certain number of times, it converges. For example, when reaching the preset number of iterations (such as 1000 generations), stop the iteration. Select the individual with the highest fitness value from the final population, decode it to obtain the corresponding medicine-taking scheme, that is, determine the third space vacated after the third object of the third quantity takes medicine within the first time period. Each individual in the population contains a certain number of first objects and second objects, and thus obtain the final point object.
[0082] In some implementation manners, the storage conditions include temperature and humidity.
[0083] In some implementation manners, encode the medicine-taking information of each medicine storage object as a binary string, and each character in the binary string is used to indicate a kind of stocked medicine corresponding to the medicine storage object.
[0084] In some implementation manners, based on the user's medicine-taking data, determine the respective target probabilities of each medicine storage object taking the corresponding stocked medicine within the first time period, including the following process.
[0085] Based on the user's medicine-taking data, the usage records of the in-stock medicines within the statistical period can be determined, and the average usage amount and standard deviation of the in-stock medicines can be calculated. Then, based on the average usage amount and standard deviation of the in-stock medicines, a probability density function of the single usage amount is constructed using the distribution fitting method. Integrating the probability density function over the interval corresponding to the first time period yields the target probability within that interval.
[0086] These medicine-taking records can be sorted in chronological order for subsequent statistical analysis. Calculate the average value of the medicines taken by each medicine storage object within the statistical period. For example, if a medicine storage object takes medicine 5 times in a month and the total amount of medicine taken is 100 tablets, the average usage amount is 20 tablets per time. Calculate the standard deviation of the amount of medicine taken to measure the degree of fluctuation in the amount of medicine taken. The larger the standard deviation, the greater the fluctuation in the amount of medicine taken; the smaller the standard deviation, the more stable the amount of medicine taken.
[0087] Based on the calculated average usage amount and standard deviation, select a suitable probability distribution model (such as normal distribution, Poisson distribution, etc.) to fit the distribution of the single usage amount. The constructed probability density function describes the probability density of the single usage amount near different values, that is, the relative possibility that the amount of medicine taken falls within a certain interval. Then, integrate the probability density function over the interval corresponding to the first time period to obtain the target probability.
[0088] The interval of the amount of medicine taken corresponding to the first time period (such as one week, half a month, etc.) can be determined. For example, if the first time period is one week and historical data shows that the amount of medicine taken within a week is usually between 1 box and 3 boxes, the integration interval is [1, 3]. Integrate the probability density function over this interval to calculate the probability that the amount of medicine taken falls within this interval, which is the target probability.
[0089] Through this method, based on historical medicine-taking data, the probability that each medicine storage object takes the corresponding in-stock medicines within the first time period can be accurately estimated, which helps the pharmacy to more accurately predict medicine demand, reasonably arrange inventory and allocate medicines, and improve the efficiency and service quality of medicine management.
[0090] The intelligent pharmacy data processing device provided by the present invention is described below. The intelligent pharmacy data processing device described below can be mutually referred to with the intelligent pharmacy data processing method described above.
[0091] As Figure 3 shown, the intelligent pharmacy data processing device of the embodiment of the present invention mainly includes an acquisition module 310, a first processing module 320, and a second processing module 330.
[0092] The acquisition module 310 is used to acquire the basic medicine data of the in-stock medicines in the pharmacy; the basic medicine data includes medicine storage data, medicine time limit data, and user medicine-taking data;
[0093] The first processing module 320 is configured to determine the storage space vacated by each drug storage object after each drug pick-up based on the drug storage data and the user drug pick-up data; and determine the respective target probabilities of each drug storage object taking the corresponding inventory drugs within the first time period based on the user drug pick-up data; the user drug pick-up data includes the historical pick-up times of each drug storage object in response to the historical drug pick-up notifications.
[0094] The second processing module 330 is configured to determine the target drugs to be taken away and the pick-up notification data corresponding to the target drugs from the inventory drugs based on the drug time limit data, the storage space vacated by each drug storage object after each drug pick-up, and the respective target probabilities of each drug storage object.
[0095] According to the intelligent pharmacy data processing device provided by the embodiment of the present invention, by comprehensively analyzing the drug storage, time limit, and user drug pick-up data, accurately determining the space vacated by each drug storage object after drug pick-up and the drug pick-up probability, so as to determine the target drugs to be taken away and the pick-up notification data corresponding to the target drugs from the inventory drugs, reducing drug expiration waste, improving space utilization rate and drug circulation efficiency, enabling refined management of the inventory, ensuring that drugs are reasonably used within the validity period, and improving the timeliness and accuracy of relevant personnel's drug pick-up.
[0096] Figure 4 An example of the physical structure diagram of an electronic device is shown as Figure 4 shown. The electronic device may include: a processor 410, a communication interface 420, a memory 430, and a communication bus 440. Among them, the processor 410, the communication interface 420, and the memory 430 communicate with each other through the communication bus 440. The processor 410 may call the logical instructions in the memory 430 to execute the intelligent pharmacy data processing method, and the method includes: obtaining the basic drug data of the inventory drugs in the pharmacy; the basic drug data includes drug storage data, drug time limit data, and user drug pick-up data; determining the storage space vacated by each drug storage object after each drug pick-up based on the drug storage data and the user drug pick-up data; determining the respective target probabilities of each drug storage object taking the corresponding inventory drugs within the first time period based on the user drug pick-up data; the user drug pick-up data includes the historical pick-up times of each drug storage object in response to the historical drug pick-up notifications; determining the target drugs to be taken away and the pick-up notification data corresponding to the target drugs from the inventory drugs based on the drug time limit data, the storage space vacated by each drug storage object after each drug pick-up, and the respective target probabilities of each drug storage object.
[0097] In addition, when the logical instructions in the above-mentioned memory 430 are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or a part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in various embodiments of the present invention. The aforementioned storage medium includes: various media that can store program codes, such as USB flash drives, mobile hard disks, read-only memories (ROM, Read-Only Memory), random access memories (RAM, Random Access Memory), magnetic disks, or optical discs.
[0098] On the other hand, the present invention also provides a computer program product. The computer program product includes a computer program that can be stored on a non-transitory computer-readable storage medium. When the computer program is executed by a processor, the computer can execute the intelligent pharmacy data processing method provided by the above-mentioned various methods. The method includes: obtaining the basic drug data of the stocked drugs in the pharmacy; the basic drug data includes drug storage data, drug time limit data, and user drug-taking data; based on the drug storage data and the user drug-taking data, determining the storage space vacated by each drug storage object after each drug-taking; based on the user drug-taking data, determining the respective target probabilities of each drug storage object taking away the corresponding stocked drugs within the first time period; the user drug-taking data includes the drug-taking historical times of each drug storage object in response to the historical drug-taking notifications; based on the drug time limit data, the storage space vacated by each drug storage object after each drug-taking, and the respective target probabilities corresponding to each drug storage object, determining the target drugs that need to be taken away from the stocked drugs and the drug-taking notification data corresponding to the target drugs.
[0099] In another aspect, the present invention also provides a non-transitory computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, it is configured to execute the intelligent pharmacy data processing method provided by the above-mentioned various methods. The method includes: obtaining the basic drug data of the drugs in stock in the pharmacy; the basic drug data includes drug storage data, drug time limit data, and user drug-taking data; based on the drug storage data and the user drug-taking data, determining the storage space vacated by each drug storage object after each drug-taking; based on the user drug-taking data, determining the respective target probabilities of each drug storage object taking the corresponding drugs in stock within the first time period; the user drug-taking data includes the historical drug-taking times of each drug storage object in response to the historical drug-taking notifications; based on the drug time limit data, the storage space vacated by each drug storage object after each drug-taking, and the respective target probabilities corresponding to each drug storage object, determining the target drugs that need to be taken away from the drugs in stock and the drug-taking notification data corresponding to the target drugs.
[0100] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed to multiple network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the solution of this embodiment. Those of ordinary skill in the art can understand and implement it without creative effort.
[0101] Through the description of the above embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the essence of the above technical solution, or the part that contributes to the prior art, can be embodied in the form of a software product. The computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, magnetic disk, optical disk, etc., and includes several instructions for causing a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.
[0102] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, and are not intended to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that they can still modify the technical solutions described in the foregoing embodiments, or perform equivalent replacements for some of the technical features; and these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. An intelligent pharmacy data processing method, characterized in that, include: Obtaining basic drug data of the drug inventory of the pharmacy; The basic drug data includes drug storage data, drug expiration data, and user drug collection data; Based on the drug storage data and the user drug collection data, determine the storage space freed up by each drug storage object after each drug collection; Based on the user medication collection data, determining each target probability that each medication storage object takes away the corresponding inventory medication within the first time period; the user medication collection data includes the medication collection history time of each medication storage object responding to the historical medication collection notification; Based on the drug time limit data, the storage space freed up after each drug storage object takes the drug each time, and the target probabilities corresponding to each drug storage object, the target drug that needs to be taken away and the drug taking notification data corresponding to the target drug are determined from the inventory drugs.
2. The intelligent pharmacy data processing method according to claim 1, wherein The step of determining the target drug to be taken away and the drug taking notification data corresponding to the target drug from the inventory drugs based on the drug time limit data, the storage space freed up after each drug storage object takes the drug each time, and the target probabilities corresponding to each drug storage object, includes: Determine a first space vacated by a first number of first objects taking out corresponding stock medicines within the first time period; determine a second space vacated by a second number of second objects taking out corresponding stock medicines within the first time period; the storage conditions of the first objects and the second objects are different; The first object and the second object are used as the initial population, and iteration is started using a genetic algorithm. A fitness function is set based on the drug time limit data and the size of the vacated space. The first object and the second object are crossovered and mutated, and a third space vacated after a third number of third objects take away corresponding inventory drugs within the first time period is updated and determined; the volume of the third space is the maximum value during the iteration process.
3. The intelligent pharmacy data processing method according to claim 2, wherein, The storage conditions include temperature and humidity.
4. The intelligent pharmacy data processing method according to claim 2, wherein The method further includes: encoding the drug retrieval information of each drug storage object into a binary string, wherein each character in the binary string is used to indicate a type of stock drug corresponding to the drug storage object.
5. The intelligent pharmacy data processing method according to claim 1, wherein The determining, based on the user's drug taking data, each target probability that each drug storage object takes away the corresponding stocked drugs within the first time period includes: Based on the user's drug collection data, determine the collection records of the inventory drugs within the statistical period, and calculate the average collection amount and standard deviation of the inventory drugs; Based on the average amount and standard deviation of the drugs in stock, the probability density function of the single amount of drugs was constructed using the distribution fitting method. The probability density function is integrated within the interval corresponding to the first duration to obtain the target probability within the interval.
6. The intelligent pharmacy data processing method according to claim 1, wherein The medicine collection notification data includes: the medicine storage objects to be notified and the frequency of sending the medicine collection notification to each medicine storage object.
7. The intelligent pharmacy data processing method according to claim 1, characterized in that, Before obtaining the basic drug data of the inventory drugs of the pharmacy, the method includes: Determine that the storage space utilization rate of the pharmacy exceeds a target ratio; or determine that the number of newly stored drugs in the pharmacy is greater than a target number.
8. An intelligent pharmacy data processing device, characterized in that, include: An acquisition module, used to acquire basic drug data of the drug inventory of the pharmacy; The basic drug data includes drug storage data, drug expiration data, and user drug collection data; A first processing module, configured to determine the storage space vacated by each medicine storage object after each medicine pickup based on the medicine storage data and the user medicine pickup data; Based on the user medicine pickup data, determine the respective target probabilities of each medicine storage object taking the corresponding stocked medicines within a first time period; the user medicine pickup data includes the historical medicine pickup times of each medicine storage object in response to historical medicine pickup notifications; A second processing module, configured to determine the target medicines that need to be taken and the medicine pickup notification data corresponding to the target medicines from the stocked medicines based on the medicine expiration date data, the storage space vacated by each medicine storage object after each medicine pickup, and the respective target probabilities corresponding to each medicine storage object.
9. An electronic device, comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, characterized in that, When the processor executes the program, it implements the intelligent pharmacy data processing method according to any one of claims 1 to 7.
10. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, it implements the intelligent pharmacy data processing method according to any one of claims 1 to 7.
Citation Information
Patent Citations
Intelligent pharmacy data processing method and device, computer equipment and storage medium
CN111599453A
Hospital medicine inventory intelligent management method and system based on big data
CN113948191A
Hospital medicine management system based on deep learning algorithm
CN115762735A
Intelligent environment adjusting method and system for pharmacy
CN116360530A
Intelligent medicine monitoring system
CN118737496A