Intelligent pharmacy data processing method, device and equipment and storage medium

By acquiring pharmacy inventory data and user medication pickup behavior, and using genetic algorithms to optimize medication pickup notifications, the complexity of pharmacy inventory management is solved, enabling refined management of medications and timely and accurate medication pickup notifications.

CN120376078BActive Publication Date: 2026-02-27中国人民解放军总医院京南医疗区
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202510459061.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-04-14
Publication Date
2026-02-27
Estimated Expiration
2045-04-14

AI Technical Summary

Technical Problem

Pharmacy inventory management is complex, with a wide variety of medicines and inconsistent storage space, expiration dates, and dispensing frequencies, resulting in inaccurate and untimely medication collection notifications and making it difficult to achieve refined management.

Method used

By acquiring basic data on pharmacy inventory, combining user medication collection data and medication expiration date data, a genetic algorithm is used to optimize medication collection notifications, identify target medications, and send collection notifications. This includes analysis of medication storage conditions, collection probability, and space utilization.

Benefits of technology

It enables refined management of drug inventory, reduces waste from expired drugs, improves space utilization and drug circulation efficiency, ensures the rational use of drugs within their expiration date, and improves the timeliness and accuracy of drug dispensing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120376078B_ABST
    Figure CN120376078B_ABST
Patent Text Reader

Abstract

The application provides a kind of intelligent pharmacy data processing method, device, equipment and storage medium, belong to pharmacy data processing technical field, the intelligent pharmacy data processing method of the application can be based on drug time limit data, the storage space vacated after each time taking medicine of each drug storage object and each target probability corresponding to each drug storage object, determine the target drug that needs to be taken away from the inventory drug and the medicine taking notification data corresponding to the target drug, by comprehensively analyzing drug storage, time limit and user medicine taking data, accurately determine the space vacated after each drug storage object takes medicine and the probability of taking medicine, to determine the target drug that needs to be taken away from the inventory drug and the medicine taking notification data corresponding to the target drug, reduce drug waste, improve space utilization and drug circulation efficiency, can realize the fine management of inventory, ensure that the drug is reasonably used within the validity period, improve the timeliness and accuracy of related personnel taking medicine.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application 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

[0002] The pharmacy is an important node for managing and dispensing drugs. Some drugs need to be dispensed and delivered in the pharmacy after the user visits a doctor. 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 refrigerators, moisture-proof cabinets, etc.) is large, or new incoming drugs need to be stored, it may cause insufficient space.

[0003] The pharmacy needs to notify relevant personnel to come to take medicine in time. The purpose of this is to ensure that the pharmacy has enough space to store new incoming drugs or adjust inventory, and also allows relevant personnel to obtain the drugs they need in time. This practice is common in drug management and inventory control, and helps to optimize the use of space and the circulation of drugs in the pharmacy. However, there are many types of drugs, and storage space, expiration date and dispensing frequency are not the same, which requires accurate tracking and management, increasing the complexity of inventory management. The informationization degree of the inventory management of some pharmacies is not high, and it is difficult to accurately grasp the drug inventory in real time, thereby affecting the timeliness and accuracy of notifying relevant personnel to take medicine. SUMMARY

[0004] The present application provides an intelligent pharmacy data processing method, device, equipment and storage medium to solve the defect that the medicine taking notification is not accurate and timely in the prior art, and to achieve the effect of fine management of inventory.

[0005] The present application provides an intelligent pharmacy data processing method, comprising:

[0006] Obtaining the basic drug data of the inventory drugs of the pharmacy; the basic drug data includes drug storage data, drug time limit data and user medicine taking data;

[0007] Based on the drug storage data and the user medicine taking data, the storage space vacated by each drug storage object after each medicine taking is determined; based on the user medicine taking data, each target probability of each drug storage object taking away the corresponding inventory drug within a first time length is determined; the user medicine taking data includes the medicine taking history time of each drug storage object responding to the historical medicine taking notification;

[0008] Based on the drug time limit data, the storage space vacated by each drug storage object after each medicine taking, and the target probability corresponding to each drug storage object, the target drug that needs to be taken away from the inventory drug and the medicine taking notification data corresponding to the target drug are determined.

[0009] According to the intelligent pharmacy data processing method provided by the application, the target medicine and the medicine taking notification data corresponding to the target medicine are determined from the inventory medicine based on the medicine time limit data, the storage space vacated by each medicine taking object after each medicine taking, and each target probability corresponding to each medicine taking object, and the method comprises the following steps:

[0010] The first space vacated by a first object after taking away the corresponding inventory medicine in the first time length is determined, and the second space vacated by a second object after taking away the corresponding inventory medicine in the first time length is determined; the storage conditions of the first object and the second object are different;

[0011] The first object and the second object are used as an initial population, and a genetic algorithm is used to start iteration; a fitness function is set based on the medicine time limit data and the size of the vacated space, and the first object and the second object are crossed and mutated, and the third space vacated by a third object after taking away the corresponding inventory medicine in the first time length is updated and determined; the volume of the third space is the maximum value in the iteration process.

[0012] According to the intelligent pharmacy data processing method provided by the application, the storage conditions include temperature and humidity.

[0013] According to the intelligent pharmacy data processing method provided by the application, the method further comprises: encoding the medicine taking information of each medicine taking object into a binary string, and each character in the binary string is used to indicate a kind of inventory medicine corresponding to the medicine taking object.

[0014] According to the intelligent pharmacy data processing method provided by the application, the target probability of each medicine taking object for taking away the corresponding inventory medicine in the first time length is determined based on the user medicine taking data.

[0015] Based on the user medicine taking data, the taking record of the inventory medicine in a statistical period is determined, and the average taking amount and the standard deviation of the inventory medicine are calculated;

[0016] Based on the average taking amount and the standard deviation of the inventory medicine, a probability density function of single taking amount is constructed by using a distribution fitting method;

[0017] The probability density function is integrated in the interval corresponding to the first time length to obtain the target probability in the interval.

[0018] According to the intelligent pharmacy data processing method provided by the application, the medicine taking notification data comprises: the medicine taking object notified and the frequency of sending the medicine taking notification to each medicine taking object.

[0019] According to the intelligent pharmacy data processing method provided by the application, before the basic medicine data of the inventory medicines of the pharmacy is acquired, the method comprises the following steps:

[0020] determining that the storage space utilization rate of the pharmacy exceeds a target proportion, or determining that the number of newly-incoming inventory medicines of the pharmacy is greater than a target number.

[0021] The application further provides an intelligent pharmacy data processing device, comprising:

[0022] an acquisition module, configured to acquire basic medicine data of inventory medicines of the pharmacy; the basic medicine data comprises medicine storage data, medicine time limit data and user medicine taking data;

[0023] a first processing module, configured to determine, based on the medicine storage data and the user medicine taking data, storage space vacated by each medicine storage object after each time of medicine taking; and determine, based on the user medicine taking data, each target probability of each medicine storage object taking away corresponding inventory medicines within a first time length; the user medicine taking data comprises medicine taking history time of each medicine storage object responding to historical medicine taking notifications;

[0024] a second processing module, configured to determine, based on the medicine time limit data, the storage space vacated by each medicine storage object after each time of medicine taking and the target probability corresponding to each medicine storage object, target medicines to be taken away from the inventory medicines and medicine taking notification data corresponding to the target medicines.

[0025] The application further provides an electronic device, comprising a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor implements the intelligent pharmacy data processing method according to any one of the above-mentioned methods when executing the program.

[0026] The application further provides a non-transitory computer readable storage medium, which stores a computer program, wherein the computer program is executable on a processor to implement the intelligent pharmacy data processing method according to any one of the above-mentioned methods.

[0027] The application further provides a computer program product, comprising a computer program, wherein the computer program is executable on a processor to implement the intelligent pharmacy data processing method according to any one of the above-mentioned methods.

[0028] The intelligent pharmacy data processing method, apparatus, equipment, and storage medium provided by this invention, through comprehensive analysis of drug storage, time expiration, and user drug retrieval data, accurately determines the space freed up after each drug retrieval and the probability of retrieval, thereby identifying the target drugs to be retrieved from the inventory and the corresponding retrieval notification data. This reduces drug waste due to expiration, improves space utilization and drug circulation efficiency, enables refined inventory management, ensures that drugs are used rationally within their expiration period, and improves the timeliness and accuracy of drug retrieval for relevant personnel. Attached Figure Description

[0029] To more clearly illustrate the technical solutions in this invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of this invention. For those skilled in the art, other drawings can be obtained from these drawings without creative effort.

[0030] Figure 1 This is one of the flowcharts illustrating the intelligent pharmacy data processing method provided by the present invention;

[0031] Figure 2 This is the second flowchart of the intelligent pharmacy data processing method provided by the present invention;

[0032] Figure 3 This is a schematic diagram of the intelligent pharmacy data processing device provided by the present invention;

[0033] Figure 4 This is a schematic diagram of the structure of the electronic device provided by the present invention. Detailed Implementation

[0034] To make the objectives, technical solutions, and advantages of this invention clearer, the technical solutions of this invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of this invention. All other embodiments obtained by those skilled in the art based on the embodiments of this invention without creative effort are within the scope of protection of this invention.

[0035] The following is combined Figures 1-4 The present invention describes a smart pharmacy data processing method, apparatus, device, and storage medium.

[0036] Smart pharmacies utilize big data, cloud computing, the Internet of Things, and other information technologies, combined with intelligent control systems, to intelligently manage, dispense, and distribute medicines. Through automated equipment and intelligent management systems, they can automate the storage, dispensing, sorting, transport, and distribution of medicines, improving drug management efficiency, reducing human error, and ensuring medication safety.

[0037] Smart pharmacies can improve the efficiency and accuracy of drug management by using automated equipment to classify, store, and precisely dispense medicines. Analyzing drug usage data can optimize inventory management and reduce waste caused by expiration.

[0038] Pharmacies are crucial for managing and dispensing medications, as patients need their prescriptions filled and dispensed at the pharmacy after a medical visit. Many medications require special storage conditions, such as refrigeration and moisture protection. Pharmacies have the necessary facilities to meet these requirements, while patients' homes may not have such facilities. When a pharmacy's special storage space (such as refrigerated cabinets or dehumidifiers) is full of medications, or when new medications need to be stored, space may become insufficient.

[0039] Pharmacies need to promptly notify relevant personnel to pick up medications to ensure sufficient space for storing newly arrived drugs or adjusting inventory, while also enabling personnel to obtain the necessary medications in a timely manner. The wide variety of drugs, along with differences in storage space, expiration dates, and dispensing frequencies, increases the complexity of inventory management, requiring precise tracking and control.

[0040] like Figure 1 As shown, the intelligent pharmacy data processing method of this invention mainly includes steps 110, 120 and 130.

[0041] Step 110: Obtain basic drug data for the pharmacy's inventory.

[0042] Basic drug data includes drug storage data, drug expiration date data, and user drug collection data.

[0043] Drug storage data refers to information about the storage status of drugs in pharmacies, including the storage location, quantity, storage conditions, and required storage space.

[0044] A pharmacy's inventory management system can provide information on the storage location, quantity, and storage space of medicines. For example, the system records the specific location of each medicine on the shelf or in the storage cabinet, as well as the current inventory quantity.

[0045] The drug time limit data refers to information related to the effective period and remaining time of a drug, including the production date, effective period, and remaining effective period of the drug. The production date and effective period of a drug are usually clearly marked on the drug packaging, and these information can be obtained through manual input or automatic scanning of the bar code on the drug packaging.

[0046] The management system of the pharmacy records the purchase date and storage time of the drug, and in combination with the effective period of the drug, the remaining effective period of the drug can be calculated.

[0047] It can be understood that the drug time limit data is crucial for the management and allocation of drugs. By monitoring the remaining effective period of the drug, the pharmacy can reasonably arrange the order of drug use, preferentially use drugs approaching the effective period, reduce drug waste, and ensure patient safety.

[0048] The user drug taking data refers to information related to the behavior of patients or users taking drugs, including the time of taking drugs, the frequency of taking drugs, the amount of taking drugs, etc., which can include historical drug taking data.

[0049] The system of the pharmacy saves the history of patients taking drugs, including the time of each drug taking, the name of the drug, and the amount of taking drugs.

[0050] User drug taking data can help the pharmacy predict the demand trend of drugs, reasonably arrange drug inventory and allocation work. At the same time, by analyzing the frequency and habits of users taking drugs, the pharmacy can provide more personalized services to patients, such as reminding patients to take drugs on time.

[0051] For example, by combining drug storage data and user drug taking data, the pharmacy can achieve automated drug allocation and restocking reminders. When the inventory of a certain drug is lower than the preset safe inventory value, and there are more patients scheduled to take the drug in the near future, the system can automatically trigger the restocking process to ensure uninterrupted supply of the drug. At the same time, the application of drug time limit data can further optimize inventory management, timely release storage space and reduce the risk of drug expiration, improve the overall efficiency and quality of drug management.

[0052] Step 120, based on the drug storage data and the user drug taking data, determine the storage space released by each drug storage object after each drug taking; based on the user drug taking data, determine the target probability of each drug storage object taking away the corresponding inventory drug within the first time period.

[0053] The user drug taking data includes the history of each drug storage object responding to the historical drug taking notification.

[0054] The drug storage data includes information such as the storage location, storage quantity, storage condition, and the size of the storage space occupied by each drug. After a drug storage object takes drugs, the pharmacy management system can calculate the freed storage space after taking drugs according to the drug storage data. For example, if a certain drug originally occupies 10 storage positions of a refrigerated cabinet, and the occupation is reduced by 5 storage positions after taking drugs, then the freed storage space is 5 storage positions.

[0055] The user drug taking data includes information such as the historical drug taking time, drug taking frequency, and drug taking quantity of each drug storage object in response to the historical drug taking notification. Through analysis of these historical data, the probability of each drug storage object taking away the corresponding inventory drug within a first time length (such as a day, a week, etc.) can be determined. For example, if a certain drug storage object has 10 records of taking drugs the day after receiving the drug taking notification in the past half year, then the probability of its drug taking within a first time length (such as a day) can be estimated to be a relatively high value.

[0056] Step 130, based on the drug time limit data, the freed storage space of each drug storage object after each drug taking, and the target probability of each drug storage object, determining the target drug to be taken away from the inventory drug and the drug taking notification data corresponding to the target drug.

[0057] The drug time limit data refers to the expiration date or remaining usable time of the drug. The pharmacy needs to give priority to those drugs that will soon expire to avoid waste. For example, if a certain drug will expire within a month, it may be determined as a target drug to be taken away and used within the valid period.

[0058] After each drug storage object takes drugs, the storage space of the pharmacy changes. Understanding the freed space after each drug taking helps the pharmacy to reasonably arrange the inventory to ensure enough space for new incoming drugs or inventory adjustment. For example, if a certain drug storage object often takes a certain drug and can free up a larger storage space after taking drugs, the pharmacy may prefer to notify the drug storage object to take drugs to optimize space utilization.

[0059] The target probability refers to the possibility of each drug storage object taking away the corresponding inventory drug within a certain time. This can be determined by analyzing historical drug taking data, the time of responding to the drug taking notification, and other factors. For example, if a certain drug storage object has an 80% probability of taking drugs the day after receiving the drug taking notification in the past month, then its target probability is relatively high, and the pharmacy may prefer to consider the drug taking demand of this drug storage object.

[0060] In this case, the pharmacy can determine which medicines need to be taken out from the inventory. This can include medicines that are about to expire, medicines that can free up more space after being taken out, and medicines that are more likely to be taken out by the storage object. According to the target probability and inventory, determine which storage objects need to be notified to come and take medicine. For example, preferentially notify those departments or patients who have a high demand for target medicines and a high probability of taking medicine. According to the historical behavior and demand of the storage object, the frequency of notification is reasonably arranged. For those who often need to take medicine or are not active in taking medicine, a higher notification frequency can be set to ensure that they can obtain the required medicines in time.

[0061] In some implementations, the medicine taking notification data includes: the notified storage objects and the frequency of sending medicine taking notification to each storage object.

[0062] According to the intelligent pharmacy data processing method of the embodiment of the application, the space freed up after each storage object takes medicine and the probability of taking medicine are accurately determined by comprehensively analyzing the medicine storage, time limit and user taking medicine data, so as to determine the target medicine to be taken out from the inventory medicine and the medicine taking notification data corresponding to the target medicine, reduce the waste of expired medicine, improve the space utilization rate and the medicine circulation efficiency, and realize the fine management of the inventory, ensure that the medicine is reasonably used within the effective period, and improve the timeliness and accuracy of the related personnel taking medicine.

[0063] Before obtaining the basic medicine data of the inventory medicines of the pharmacy, the intelligent pharmacy data processing method of the embodiment of the application further includes: determining that the storage space utilization rate of the pharmacy exceeds a target proportion; or determining that the number of new medicines entering the warehouse of the pharmacy is greater than a target number.

[0064] The storage space utilization rate of the pharmacy exceeding the target proportion represents that the current storage space of the pharmacy has reached a pre-set utilization rate threshold, and may face a problem of insufficient space. For example, if the target proportion is set to 80%, and the current storage space utilization rate has reached 85%, measures need to be taken to optimize the inventory and release the space.

[0065] The number of new medicines entering the warehouse of the pharmacy being greater than the target number indicates that a large number of new medicines have entered the warehouse in recent days, which exceeds the expected number of medicines entering the warehouse. This may result in that the existing storage space is insufficient to accommodate the new medicines entering the warehouse, or the inventory needs to be adjusted to reasonably arrange the storage position of the new medicines.

[0066] When one of the above two conditions is met, the inventory management of the pharmacy needs to be optimized to ensure that the medicines can be reasonably stored and timely allocated.

[0067] In some embodiments, as Figure 2As shown, based on the drug time limit data, the storage space vacated by each storage object after each drug taking, and the target probability corresponding to each storage object, the target drug to be taken away and the drug taking notification data corresponding to the target drug are determined from the inventory drugs, including steps 210 and 220.

[0068] Step 210, determine the first space vacated by the first number of first objects after taking away the corresponding inventory drugs within the first time length; determine the second space vacated by the second number of second objects after taking away the corresponding inventory drugs within the first time length.

[0069] The storage conditions of the first objects and the second objects are different.

[0070] Step 220, taking the first objects and the second objects as the initial population, starting iteration using genetic algorithm, and setting the fitness function based on the drug time limit data and the size of the vacated space, crossing and mutating the first objects and the second objects, updating and determining the third space vacated by the third number of third objects after taking away the corresponding inventory drugs within the first time length.

[0071] The volume of the third space is the maximum value in the iteration process.

[0072] The first objects and the second objects are storage objects with different storage conditions. For example, the first objects may be stored under refrigerated conditions, while the second objects may be stored under normal temperature conditions.

[0073] The first objects and the second objects are taken as the initial population. The drug taking information (whether to take drugs within the first time length) 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, each individual representing the drug taking state of a storage object.

[0074] The fitness function can be set in combination with the drug time limit data and the size of the vacated space. For example, the fitness function F can be represented as:

[0075] F = α × U + β × S;

[0076] Wherein, α and β are weight coefficients for balancing the importance of the two factors; U represents the urgency of the drug (such as high priority for drugs close to expiration); S represents the size of the space vacated after taking drugs. For example, the size of the space vacated after taking drugs can be obtained according to the product between the storage space of the corresponding inventory drug and the target probability.

[0077] For each individual (set of drug taking objects), the corresponding U and S are calculated according to the coding information, and then the fitness value is obtained.

[0078] The probability of being selected is determined according to the fitness value of the individual. The higher the fitness value, the greater the probability of being selected. Specifically, the sum of the fitness values of all individuals can be calculated first, then the relative fitness of each individual is calculated, and a random number is generated to select the individual according to the relative fitness.

[0079] Single-point crossover can be used to randomly select a crossover point and exchange the coding fragments of the two parent individuals at the point to generate two new offspring individuals. For example, assuming there are two parent individuals representing two different drug taking schemes, their codes can be binary strings such as "0101" and "1100". Each character in the binary string is used to indicate a kind of inventory medicine corresponding to the storage object. A crossover point is randomly selected, such as the 2nd position, and then the coding fragments after the point are exchanged to generate two new offspring individuals "0100" and "1101". Alternatively, multiple-point crossover can be used to select multiple crossover points for fragment exchange to further increase genetic diversity. For example, crossing at positions 1 and 3, the parents "0101" and "1100" can generate offspring "1101" and "0100".

[0080] Bit flip mutation can be used to randomly invert some bits in the code of an individual. For example, the individual "0101" can have a mutation at the 2nd position, becoming "0001", which means that the drug taking state of the storage object corresponding to the bit has changed. The original drug taking state is now changed to no drug taking, or vice versa.

[0081] The selection, crossover and mutation operations are repeated in the iteration process to continuously update the population. In each generation, individuals with higher fitness are retained and individuals with lower fitness are eliminated, and the iteration is converged after a certain number of iterations. For example, when the preset number of iterations (such as 1000 generations) is reached, the iteration is stopped. The individual with the highest fitness value is selected from the final population, and the corresponding drug taking scheme is decoded to determine the third space vacated by the third object after taking medicine in the first time period. Each population individual contains a certain number of first objects and second objects, and the final point object is obtained.

[0082] In some implementations, the storage conditions include temperature and humidity.

[0083] In some implementations, the drug taking information of each storage object is encoded as a binary string, and each character in the binary string is used to indicate a kind of inventory medicine corresponding to the storage object.

[0084] In some implementations, based on the user drug taking data, the target probability of each storage object taking away the corresponding inventory medicine in the first time period is determined, including the following process.

[0085] The taking record of the inventory medicine in a statistical period can be determined based on the user taking medicine data, and the average taking amount and the standard deviation of the inventory medicine are calculated; and based on the average taking amount and the standard deviation of the inventory medicine, a probability density function of the single taking amount is constructed by using a distribution fitting method; and the target probability in the interval corresponding to the first time length is obtained by integrating the probability density function in the interval.

[0086] The taking medicine records can be sorted in chronological order for subsequent statistical analysis. The average value of the taking medicine of each inventory object in the statistical period is calculated. For example, if a certain inventory object takes medicine 5 times in a month, and the total taking amount is 100 pieces, the average taking amount is 20 pieces / time. The standard deviation of the taking amount is calculated to measure the fluctuation degree of the taking amount. The larger the standard deviation, the greater the fluctuation of the taking amount; the smaller the standard deviation, the more stable the taking amount.

[0087] According to the calculated average taking amount and standard deviation, a suitable probability distribution model (such as normal distribution, Poisson distribution, etc.) is selected to fit the distribution of the single taking amount. The probability density function constructed describes the probability density of the single taking amount around different values, that is, the relative possibility of the taking amount falling in a certain interval. Then the target probability is obtained by integrating the probability density function in the interval corresponding to the first time length.

[0088] The taking amount interval corresponding to the first time length (such as one week, half a month, etc.) can be determined. For example, if the first time length is one week, and the historical data shows that the taking amount in one week is usually between 1 box and 3 boxes, then the integral interval is [1, 3]. The probability that the taking amount falls in the interval is calculated by integrating the probability density function in the interval, which is the target probability.

[0089] By this method, the probability that each inventory object takes away the corresponding inventory medicine in the first time length can be accurately estimated based on the historical taking medicine data, which helps the pharmacy to more accurately predict the demand for medicines, reasonably arrange the 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 application is described below. The intelligent pharmacy data processing device described below can be correspondingly referred to the intelligent pharmacy data processing method described above.

[0091] As shown in Figure 3 The intelligent pharmacy data processing device of the embodiment of the present application mainly includes an acquisition module 310, a first processing module 320 and a second processing module 330.

[0092] The acquisition module 310 is used for acquiring the basic medicine data of the inventory medicine of the pharmacy; the basic medicine data includes medicine storage data, medicine time limit data and user taking medicine data;

[0093] The first processing module 320 is configured to determine the storage space vacated by each storage object after each time of taking medicine based on the medicine storage data and the user medicine taking data; determine each target probability of each storage object taking away the corresponding inventory medicine within a first time length based on the user medicine taking data; and the user medicine taking data includes the medicine taking history time of each storage object responding to the historical medicine taking notification.

[0094] The second processing module 330 is configured to determine the target medicine to be taken away from the inventory medicine and the medicine taking notification data corresponding to the target medicine based on the medicine time limit data, the storage space vacated by each storage object after each time of taking medicine, and each target probability corresponding to each storage object.

[0095] According to the intelligent pharmacy data processing device provided by the embodiment of the application, the space vacated by each storage object after taking medicine and the medicine taking probability are accurately determined by comprehensively analyzing the medicine storage, time limit and user medicine taking data, so that the target medicine to be taken away from the inventory medicine and the medicine taking notification data corresponding to the target medicine are determined, the waste of expired medicine is reduced, the space utilization rate and the medicine circulation efficiency are improved, the fine management of the inventory can be realized, the reasonable use of the medicine within the effective period is ensured, and the timeliness and accuracy of the medicine taking of the related personnel are improved.

[0096] Figure 4 An example of an entity structure diagram of an electronic device is shown in Figure 4 As shown, the electronic device can include a processor 410, a communication interface 420, a memory 430 and a communication bus 440, wherein the processor 410, the communication interface 420 and the memory 430 complete mutual communication through the communication bus 440. The processor 410 can call the logical instructions in the memory 430 to execute the intelligent pharmacy data processing method, which includes: acquiring the basic medicine data of the inventory medicine of the pharmacy; the basic medicine data includes medicine storage data, medicine time limit data and user medicine taking data; determining the storage space vacated by each storage object after each time of taking medicine based on the medicine storage data and the user medicine taking data; determining each target probability of each storage object taking away the corresponding inventory medicine within a first time length based on the user medicine taking data; the user medicine taking data includes the medicine taking history time of each storage object responding to the historical medicine taking notification; and determining the target medicine to be taken away from the inventory medicine and the medicine taking notification data corresponding to the target medicine based on the medicine time limit data, the storage space vacated by each storage object after each time of taking medicine, and each target probability corresponding to each storage object.

[0097] In addition, the logic instructions in the memory 430 described above can be implemented in the form of software function units and sold or used as independent products, and can be stored in a computer readable storage medium. Based on such understanding, the technical solutions of the present application essentially or the part that contributes to the prior art or part of the technical solutions 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 making a computer device (which can be a personal computer, a server, or a network device, etc.) execute all or part of the steps of the methods described in various embodiments of the present application. The aforementioned storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM, Read-Only Memory), a random access memory (RAM, Random Access Memory), a magnetic disk or an optical disk, and various media that can store program codes.

[0098] In another aspect, the present application also provides a computer program product, which comprises a computer program, the computer program can be stored on a non-transitory computer readable storage medium, and the computer program can be executed by a processor to enable a computer to execute the intelligent pharmacy data processing method provided by the above-mentioned method, the method comprising: obtaining basic medicine data of inventory medicines of a pharmacy; the basic medicine data comprises medicine storage data, medicine time limit data and user medicine taking data; based on the medicine storage data and the user medicine taking data, determining the storage space released by each medicine storage object after each medicine taking; based on the user medicine taking data, determining each target probability of each medicine storage object taking away the corresponding inventory medicine within a first time length; the user medicine taking data comprises medicine taking history time of each medicine storage object responding to historical medicine taking notification; based on the medicine time limit data, the storage space released by each medicine storage object after each medicine taking and the target probability corresponding to each medicine storage object, determining target medicines to be taken away from the inventory medicines and medicine taking notification data corresponding to the target medicines.

[0099] In yet another aspect, the present application also provides a non-transitory computer-readable storage medium having stored thereon a computer program, which, when executed by a processor, implements the intelligent pharmacy data processing method provided by the above method, and the method comprises: obtaining basic medicine data of inventory medicines of a pharmacy; the basic medicine data comprises medicine storage data, medicine time limit data, and user medicine taking data; based on the medicine storage data and the user medicine taking data, determining the storage space vacated by each medicine storage object after each time of medicine taking; based on the user medicine taking data, determining each target probability of each medicine storage object taking away the corresponding inventory medicine within a first time length; the user medicine taking data comprises medicine taking history time of each medicine storage object responding to a historical medicine taking notification; based on the medicine time limit data, the storage space vacated by each medicine storage object after each time of medicine taking, and each target probability of each medicine storage object, determining target medicines to be taken away from the inventory medicines and medicine taking notification data corresponding to the target medicines.

[0100] The device embodiments described above are merely illustrative, wherein the units described as separate components can or can not be physically separated, and the components displayed as units can or can not be physical units, i.e., can be located in one place or distributed on multiple network units. Part or all of the modules can be selected to achieve the purpose of the embodiment scheme according to actual needs. Those skilled in the art can understand and implement without creative labor.

[0101] From the above description of the embodiments, those skilled in the art can clearly understand that each embodiment can be realized by means of software and necessary general hardware platforms, and of course can also be realized by hardware. Based on such understanding, the above technical solutions can be embodied in the form of a software product, which can be stored in a computer readable storage medium, such as ROM / RAM, magnetic disk, optical disk, etc., and includes a plurality of instructions to make a computer device (which can be a personal computer, server, or network device, etc.) execute the methods described in each embodiment or some parts of the embodiment.

[0102] Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present application, and not to limit them; although the present application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that: it can still modify the technical solutions recorded in the foregoing embodiments, or make equivalent replacement to some technical features; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present application.

Claims

1. A smart pharmacy data processing method, characterized in that, The method comprises the following steps: obtaining basic medicine data of the inventory medicines of the pharmacy; the basic medicine data comprises medicine storage data, medicine time limit data and user medicine taking data; based on the medicine storage data and the user medicine taking data, determining the storage space vacated by each medicine storage object after each medicine taking; based on the user medicine taking data, determining each target probability of each medicine storage object taking away the corresponding inventory medicine within a first time length; the user medicine taking data comprises the medicine taking history time of each medicine storage object in response to the historical medicine taking notification; based on the medicine time limit data, the storage space vacated by each medicine storage object after each medicine taking and the target probability corresponding to each medicine storage object, determining the target medicine to be taken away from the inventory medicine and the medicine taking notification data corresponding to the target medicine; the step of determining the target medicine to be taken away from the inventory medicine and the medicine taking notification data corresponding to the target medicine based on the medicine time limit data, the storage space vacated by each medicine storage object after each medicine taking and the target probability corresponding to each medicine storage object comprises: determining the first space vacated by a first number of first objects after taking away the corresponding inventory medicine within the first time length; determining the second space vacated by a second number of second objects after taking away the corresponding inventory medicine within the first time length; the storage conditions of the first objects and the second objects are different; taking the first objects and the second objects as an initial population, starting iteration by using a genetic algorithm, and setting a fitness function based on the medicine time limit data and the size of the vacated space, and performing crossover and mutation on the first objects and the second objects to update and determine the third space vacated by a third number of third objects after taking away the corresponding inventory medicine within the first time length; the volume of the third space is the maximum value in the iteration process; the step of determining the target probability of each medicine storage object taking away the corresponding inventory medicine within a first time length based on the user medicine taking data comprises: based on the user medicine taking data, determining the use record of the inventory medicine within a statistical period, calculating the average use amount and the standard deviation of the inventory medicine; based on the average use amount and the standard deviation of the inventory medicine, constructing a probability density function of single use amount by using a distribution fitting method; integrating the probability density function in the interval corresponding to the first time length to obtain the target probability in the interval.

2. The smart pharmacy data processing method of claim 1, wherein, The storage conditions include temperature and humidity.

3. The smart pharmacy data processing method of claim 1, wherein, The method further comprises: encoding the medicine taking information of each medicine storage object into a binary string, and each character in the binary string is used to indicate a kind of inventory medicine corresponding to the medicine storage object.

4. The smart pharmacy data processing method of claim 1, wherein, The medicine taking notification data comprises: the notified medicine storage object and the frequency of sending the medicine taking notification to each medicine storage object.

5. The smart pharmacy data processing method of claim 1, wherein, Before the step of obtaining the basic medicine data of the inventory medicines of the pharmacy, the method comprises: determining that the storage space utilization rate of the pharmacy exceeds a target proportion; or determining that the number of new inventory medicines of the pharmacy is greater than a target number.

6. An intelligent pharmacy data processing apparatus characterized by comprising: The method comprises the following steps: an obtaining module is configured to obtain basic medicine data of the inventory medicines of the pharmacy; the basic medicine data comprises medicine storage data, medicine time limit data and user medicine taking data; based on the medicine storage data and the user medicine taking data, determining the storage space vacated by each medicine storage object after each medicine taking; based on the user medicine taking data, determining each target probability of each medicine storage object taking away the corresponding inventory medicine within a first time length; the user medicine taking data comprises the medicine taking history time of each medicine storage object in response to the historical medicine taking notification; based on the medicine time limit data, the storage space vacated by each medicine storage object after each medicine taking and the target probability corresponding to each medicine storage object, determining the target medicine to be taken away from the inventory medicine and the medicine taking notification data corresponding to the target medicine; the step of determining the target medicine to be taken away from the inventory medicine and the medicine taking notification data corresponding to the target medicine based on the medicine time limit data, the storage space vacated by each medicine storage object after each medicine taking and the target probability corresponding to each medicine storage object comprises: determining the first space vacated by a first number of first objects after taking away the corresponding inventory medicine within the first time length; determining the second space vacated by a second number of second objects after taking away the corresponding inventory medicine within the first time length; the storage conditions of the first objects and the second objects are different; taking the first objects and the second objects as an initial population, starting iteration by using a genetic algorithm, and setting a fitness function based on the medicine time limit data and the size of the vacated space, and performing crossover and mutation on the first objects and the second objects to update and determine the third space vacated by a third number of third objects after taking away the corresponding inventory medicine within the first time length; the volume of the third space is the maximum value in the iteration process; the step of determining the target probability of each medicine storage object taking away the corresponding inventory medicine within a first time length based on the user medicine taking data comprises: based on the user medicine taking data, determining the use record of the inventory medicine within a statistical period, calculating the average use amount and the standard deviation of the inventory medicine; based on the average use amount and the standard deviation of the inventory medicine, constructing a probability density function of single use amount by using a distribution fitting method; integrating the probability density function in the interval corresponding to the first time length to obtain the target probability in the interval. The storage conditions include temperature and humidity. The method further comprises: encoding the medicine taking information of each medicine storage object into a binary string, and each character in the binary string is used to indicate a kind of inventory medicine corresponding to the medicine storage object. The medicine taking notification data comprises: the notified medicine storage object and the frequency of sending the medicine taking notification to each medicine storage object. The first processing module is configured to determine the storage space vacated by each storage object after each time of taking medicine based on the medicine storage data and the user taking medicine data. The second processing module is configured to determine the target medicine to be taken away from the inventory medicine and the taking medicine notification data corresponding to the target medicine based on the medicine time limit data, the storage space vacated by each storage object after each time of taking medicine, and the target probability corresponding to each storage object. The second processing module is configured to determine the target medicine to be taken away from the inventory medicine and the taking medicine notification data corresponding to the target medicine based on the medicine time limit data, the storage space vacated by each storage object after each time of taking medicine, and the target probability corresponding to each storage object. The second processing module is configured to determine the target medicine to be taken away from the inventory medicine and the taking medicine notification data corresponding to the target medicine based on the medicine time limit data, the storage space vacated by each storage object after each time of taking medicine, and the target probability corresponding to each storage object. The second processing module is configured to determine the target medicine to be taken away from the inventory medicine and the taking medicine notification data corresponding to the target medicine based on the medicine time limit data, the storage space vacated by each storage object after each time of taking medicine, and the target probability corresponding to each storage object. The second processing module is configured to determine the target medicine to be taken away from the inventory medicine and the taking medicine notification data corresponding to the target medicine based on the medicine time limit data, the storage space vacated by each storage object after each time of taking medicine, and the target probability corresponding to each storage object. The second processing module is configured to determine the target medicine to be taken away from the inventory medicine and the taking medicine notification data corresponding to the target medicine based on the medicine time limit data, the storage space vacated by each storage object after each time of taking medicine, and the target probability corresponding to each storage object. The second processing module is configured to determine the target medicine to be taken away from the inventory medicine and the taking medicine notification data corresponding to the target medicine based on the medicine time limit data, the storage space vacated by each storage object after each time of taking medicine, and the target probability corresponding to each storage object. The second processing module is configured to determine the target medicine to be taken away from the inventory medicine and the taking medicine notification data corresponding to the target medicine based on the medicine time limit data, the storage space vacated by each storage object after each time of taking medicine, and the target probability corresponding to each storage object. The second processing module is configured to determine the target medicine to be taken away from the inventory medicine and the taking medicine notification data corresponding to the target medicine based on the medicine time limit data, the storage space vacated by each storage object after each time of taking medicine, and the target probability corresponding to each storage object.

7. An electronic device comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, characterized in that, The second processing module is configured to determine the target medicine to be taken away from the inventory medicine and the taking medicine notification data corresponding to the target medicine based on the medicine time limit data, the storage space vacated by each storage object after each time of taking medicine, and the target probability corresponding to each storage object.

8. A non-transitory computer-readable storage medium having stored thereon a computer program, characterized in that, The second processing module is configured to determine the target medicine to be taken away from the inventory medicine and the taking medicine notification data corresponding to the target medicine based on the medicine time limit data, the storage space vacated by each storage object after each time of taking medicine, and the target probability corresponding to each storage object.

Citation Information

Patent Citations

  • Hospital medicine inventory intelligent management method and system based on big data

    CN113948191A

  • Intelligent medicine monitoring system

    CN118737496A