Dispensing method and device applied to dispensing machine
By determining the number and combination of drugs in the dispensing machine, the problem of difficult dispensing large prescriptions with large quantities of drugs is solved, and the orderly and efficient distribution of drugs is achieved.
Patent Information
- Application Number
- CN202411481216.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-23
- Publication Date
- 2025-02-14
AI Technical Summary
When faced with large prescriptions with large amounts of drugs, it is difficult for existing drug distributors to effectively distribute drugs, resulting in accumulation of drugs and difficulty in obtaining drugs, affecting the distribution efficiency and drug retrieval experience.
By determining the number of drugs to be sent based on the prescription, the size of the medicine box and the maximum single dose, the first and second doses of each drug are determined, and multiple doses and combinations are performed according to these times. Distribute medicines to ensure orderly distribution of medicines.
Effectively prevent drug accumulation, ensure orderly drug distribution, and improve drug distribution efficiency and drug picking experience.
Smart Images

Figure CN119423525A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of automated drug distribution, and in particular to a drug dispensing method and device used in a drug dispensing machine. Background Art
[0002] When existing medicine dispensing machines are dispensing medicines, they generally only perform one round of dispensing operations. For large prescriptions with a large number of medicines, due to the large number of medicines and the different sizes of medicine boxes, and the limitations of the structural design of the medicine dispensing machine itself, the medicines will accumulate at the medicine outlet of the medicine dispensing machine, and the medicines will not be able to reach the medicine collection port, and then the person who takes the medicine will not be able to take the medicine, which affects the efficiency of medicine dispensing and the medicine collection experience. Summary of the invention
[0003] The present application provides a medicine dispensing method and device applied to a medicine dispensing machine to solve the technical problem that existing medicine dispensing machines are difficult to dispense when faced with a prescription with a large number of medicines.
[0004] According to a first aspect of the embodiments of the present application, there is provided a medicine dispensing method applied to a medicine dispensing machine, comprising:
[0005] Determine several kinds of drugs to be dispensed according to the prescription, and obtain the number of medicine boxes, the size of the medicine boxes and the maximum single-time dispensing quantity of each kind of medicine;
[0006] Determine the first dispensing times for each drug according to the number of drug boxes and the maximum single dispensing quantity of each drug;
[0007] When the medicine dispensing machine is in the preset first medicine dispensing mode, the second medicine dispensing times of each medicine are determined according to the total number of the various medicine types;
[0008] According to the first dispensing number and the second dispensing number of each medicine, several medicines to be dispensed are dispensed.
[0009] The present application first determines the number of medicine boxes, the size of the medicine boxes and the maximum single dispensing quantity of various medicines in the medicines to be dispensed according to the prescription, and then determines the first dispensing number of each medicine, and then determines the second dispensing number of each medicine according to the dispensing mode of the dispensing machine, and dispenses the medicines according to the first dispensing number and the second dispensing number. A large prescription with a large number of medicines is split into a single medicine for dispensing according to the number of medicine boxes and the maximum single dispensing quantity, and then split into multiple dispensing of each medicine, which can prevent the problem of dispensing difficulties caused by medicine accumulation, ensure the orderly dispensing of medicines, and improve the efficiency of medicine dispensing and the experience of picking up medicines.
[0010] In certain embodiments of the present application, the first dispensing times of each drug are determined according to the number of drug boxes of various drugs and the maximum single dispensing quantity, and specifically include:
[0011] The first dispensing times for each drug are determined according to the number of medicine boxes for each drug and the maximum single dispensing quantity; wherein the first dispensing times are the non-negative integer quotient of the number of medicine boxes for each drug and the maximum single dispensing quantity.
[0012] The present application determines the first number of times each drug is dispensed based on the non-negative integer quotient of the number of medicine boxes for each drug and the maximum single dispense quantity, which is more in line with the actual drug dispense situation and improves the drug dispense efficiency during subsequent dispenses.
[0013] In certain embodiments of the present application, it further includes:
[0014] When the medicine dispensing machine is in the preset second medicine dispensing mode, the number of remaining medicine boxes of each medicine is determined according to the number of medicine boxes of each medicine, the maximum medicine dispensing amount at a time and the first medicine dispensing times;
[0015] Determine a plurality of first combinations of several kinds of medicines to be dispensed according to the number of remaining medicine boxes of each medicine, the size of the medicine boxes and the size of the medicine dispensing port of the preset medicine dispensing machine;
[0016] The plurality of drugs to be dispensed are dispensed according to the first dispensing times of each drug and the plurality of first combinations.
[0017] The present application determines the number of remaining medicine boxes for each medicine according to another dispensing mode of the medicine dispensing machine, and then obtains multiple first combinations of several medicines to be dispensed. In another dispensing mode of the medicine dispensing machine, the remaining medicines after being dispensed according to the first number of times for each medicine can be combined within the limit of the preset size of the medicine dispensing port of the medicine dispensing machine, and then the medicines are dispensed according to the multiple first combinations, which can further improve the efficiency of medicine dispensing without piling up the medicines.
[0018] In certain embodiments of the present application, the determining of a plurality of first combinations of several drugs to be dispensed according to the number of remaining medicine boxes of each drug, the size of the medicine box, and the size of the preset medicine dispensing port of the medicine dispensing machine specifically includes:
[0019] Constructing a first solution set of combinations of several drugs to be delivered according to the number of remaining medicine boxes and the size of medicine boxes for each drug;
[0020] According to the preset size of the medicine dispensing port of the medicine dispensing machine and the first solution set, based on the combinatorial optimization concept, multiple first combinations of several medicines to be dispensed are solved.
[0021] The present application first constructs a first solution set of combinations of several kinds of medicines to be dispensed. By defining the solution domain of the combination reasonably according to the number of remaining medicine boxes and the size of the medicine boxes for each medicine, and then according to the preset size of the medicine dispensing machine's medicine outlet, when multiple first combinations are solved based on the combinatorial optimization idea, the efficiency of medicine dispensing can be further improved without piling up medicines.
[0022] In certain embodiments of the present application, dispensing the plurality of drugs to be dispensed according to the first dispensing times of each drug and the plurality of first combinations specifically includes:
[0023] According to the first dispensing times of each drug, the drugs to be dispensed are dispensed multiple times in sequence. When the number of drugs on the conveying mechanism of the dispensing machine reaches the single maximum dispensing quantity corresponding to the currently dispensed drug, the drugs on the conveying mechanism are transported to the drug dispensing port, and the first drug dispensing announcement is issued until each drug is dispensed the corresponding first dispensing times;
[0024] The drug combinations among the multiple first combinations are selected in sequence as the current first combination, and the remaining drugs among the several drugs to be dispensed are dispensed, and each time the drug dispensing machine is controlled to drop the drugs to the transmission mechanism according to the current first combination, and when it is detected that the drugs on the transmission mechanism match the current first combination, the drugs on the transmission mechanism are transported to the drug dispensing port, and a second drug dispensing announcement is issued until the multiple first combinations are selected.
[0025] The present application first dispenses medicines according to the first dispensing times of each medicine. Each time medicines are dispensed, the number of medicines on the transmission mechanism of the dispensing machine meets the single maximum dispensing quantity of the current medicines. By splitting the medicine dispensing into multiple dispensings according to the first dispensing times of each medicine, it is possible to prevent the difficulty in dispensing medicines caused by the accumulation of medicines, improve the efficiency of medicine dispensing, and ensure that medicines are dispensed in an orderly manner; then, medicines are dispensed according to multiple first combinations, and each time medicines are dispensed, it is ensured that the medicines on the transmission mechanism match the current first combination, which can further improve the efficiency of medicine dispensing when medicines are not accumulated; at the same time, a medicine pickup broadcast is issued each time medicines are dispensed, which can promptly remind the person who picks up the medicines, thereby improving the medicine pickup experience.
[0026] According to a second aspect of the embodiment of the present application, there is provided a medicine dispensing device applied to a medicine dispensing machine, comprising a medicine information acquisition module, a first medicine dispensing determination module, a second medicine dispensing determination module and a first medicine dispensing module;
[0027] The drug information acquisition module is used to determine several drugs to be dispensed according to the prescription, and respectively obtain the number of medicine boxes, the size of the medicine boxes and the maximum single-dispensing quantity of each drug;
[0028] The first drug dispensing determination module is used to determine the first drug dispensing times of each drug according to the number of drug boxes and the maximum single drug dispensing quantity of each drug;
[0029] The second medicine dispensing determination module is used to determine the second medicine dispensing times of each medicine according to the total number of medicine types when the medicine dispensing machine is in the preset first medicine dispensing mode;
[0030] The first drug dispensing module is used to dispense several drugs to be dispensed according to the first dispensing frequency and the second dispensing frequency of each drug.
[0031] In certain embodiments of the present application, the first medication dispensing determination module includes a first medication dispensing determination submodule;
[0032] The first drug dispensing determination submodule is used to determine the first drug dispensing times for each drug according to the number of medicine boxes and the maximum single dispensing quantity of each drug; wherein the first drug dispensing times is the non-negative integer quotient of the number of medicine boxes and the maximum single dispensing quantity of each drug.
[0033] In certain embodiments of the present application, a second drug dispensing module is further included; the second drug dispensing module includes a third drug dispensing determination submodule, a first combination determination submodule, and a second drug dispensing submodule;
[0034] The third medicine dispensing determination submodule is used to determine the number of remaining medicine boxes of each medicine according to the number of medicine boxes of each medicine, the maximum single medicine dispensing amount and the first medicine dispensing number when the medicine dispensing machine is in the preset second medicine dispensing mode;
[0035] The first combination determination submodule is used to determine a plurality of first combinations of several medicines to be dispensed according to the number of remaining medicine boxes of each medicine, the size of the medicine boxes and the size of the medicine dispensing port of the preset medicine dispensing machine;
[0036] The second drug dispensing submodule is used to dispense several drugs to be dispensed according to the first drug dispensing times of each drug and the plurality of first combinations.
[0037] In certain embodiments of the present application, the first combination determination submodule includes a first solution set construction unit and a first combination solution unit;
[0038] The first solution set construction unit is used to construct a first solution set of combinations of several drugs to be issued according to the number of remaining medicine boxes and the size of the medicine boxes of each drug;
[0039] The first combination solving unit is used to solve a plurality of first combinations of several medicines to be dispensed based on a preset medicine dispensing port size of the medicine dispensing machine and the first solution set and based on a combinatorial optimization concept.
[0040] In certain embodiments of the present application, the second drug dispensing submodule includes a first drug dispensing unit and a second drug dispensing unit;
[0041] The first medicine dispensing unit is used to sequentially dispense a plurality of medicines to be dispensed multiple times according to the first medicine dispensing times of each medicine, and when the number of medicines on the conveying mechanism of the medicine dispensing machine reaches the single maximum medicine dispensing amount corresponding to the currently dispensed medicines, the medicines on the conveying mechanism are transported to the medicine dispensing port, and a first medicine dispensing announcement is issued until each medicine is dispensed the corresponding first medicine dispensing times;
[0042] The second medicine dispensing unit is used to sequentially select a medicine combination from the multiple first combinations as the current first combination, and to dispense the remaining medicines from the several kinds of medicines to be dispensed, and to control the medicine dispensing machine to drop the medicines to the transmission mechanism according to the current first combination each time dispensing, and when it is detected that the medicines on the transmission mechanism match the current first combination, the medicines on the transmission mechanism are transported to the medicine dispensing port, and a second medicine dispensing announcement is issued until the multiple first combinations are selected.
[0043] The present application first determines the number of medicine boxes, the size of the medicine boxes and the maximum single dispensing quantity of various medicines in the medicines to be dispensed according to the prescription, and then determines the first dispensing number of each medicine, and then determines the second dispensing number of each medicine according to the dispensing mode of the dispensing machine, and dispenses the medicines according to the first dispensing number and the second dispensing number. A large prescription with a large number of medicines is split into a single medicine for dispensing according to the number of medicine boxes and the maximum single dispensing quantity, and then split into multiple dispensing of each medicine, which can prevent the problem of dispensing difficulties caused by medicine accumulation, ensure the orderly dispensing of medicines, and improve the efficiency of medicine dispensing and the experience of picking up medicines. BRIEF DESCRIPTION OF THE DRAWINGS
[0044] Figure 1 : is a schematic flow chart of a medicine dispensing method applied to a medicine dispensing machine shown in certain embodiments of the present application;
[0045] Figure 2 : A module structure diagram of a medicine dispensing device applied to a medicine dispensing machine shown in certain embodiments of the present application. DETAILED DESCRIPTION
[0046] The embodiments of the present application are described in detail below, and examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals represent the same or similar elements or elements having the same or similar functions from beginning to end. The embodiments described below in conjunction with the accompanying drawings are exemplary and are only used to explain some embodiments of the present application, and should not be construed as limitations on the embodiments of the present application. Based on the embodiments shown in the present application, all other embodiments obtained by ordinary technicians in the field without making creative work are within the scope of protection of the present application.
[0047] In the description of this application, it should be understood that the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Therefore, a feature defined as "first" or "second" may explicitly or implicitly include at least one of the features. In the description of this application, unless otherwise clearly and specifically defined, "multiple" and "several" mean two or more.
[0048] When dispensing medicines, existing medicine dispensing machines usually only perform a single round of dispensing operations, that is, all the medicines to be dispensed are dispensed at one time. However, this method of dispensing medicines often causes medicines to pile up and block the medicine outlet of the medicine dispensing machine when facing a large prescription with a large number of medicines, making it impossible for the person to take the medicine, thereby affecting the efficiency of medicine dispensing and the experience of taking medicine. Therefore, how to solve the technical problem that existing medicine dispensing machines are difficult to dispense when facing a prescription with a large number of medicines still needs to be solved urgently.
[0049] Based on the above technical background, please refer to Figure 1 The present application embodiment provides a medicine dispensing method applied to a medicine dispensing machine, including steps S101 to S104, each of which is specifically as follows:
[0050] Step S101: Determine several kinds of medicines to be dispensed according to the prescription, and obtain the number of medicine boxes, the size of the medicine boxes and the maximum single-dispensing quantity of each kind of medicine.
[0051] In certain embodiments of the present application, the obtaining of the number of medicine boxes, the size of medicine boxes and the maximum single dispensing quantity of various medicines is specifically as follows:
[0052] Based on the preset hospital information database, the number and size of medicine boxes of various drugs are obtained respectively;
[0053] According to the size of the medicine boxes of various medicines and based on the preset size of the medicine dispensing machine's medicine dispensing port, the maximum single dispensing quantity of each medicine is calculated.
[0054] Step S102: Determine the first dispensing times for each medicine according to the number of medicine boxes of various medicines and the maximum single dispensing quantity.
[0055] In certain embodiments of the present application, the first dispensing times of each drug are determined according to the number of drug boxes of various drugs and the maximum single dispensing quantity, and specifically include:
[0056] The first dispensing times for each drug are determined according to the number of medicine boxes for each drug and the maximum single dispensing quantity; wherein the first dispensing times are the non-negative integer quotient of the number of medicine boxes for each drug and the maximum single dispensing quantity.
[0057] The present application determines the first number of times each drug is dispensed based on the non-negative integer quotient of the number of medicine boxes for each drug and the maximum single dispense quantity, which is more in line with the actual drug dispense situation and improves the drug dispense efficiency during subsequent dispenses.
[0058] In certain embodiments of the present application, when the first dispensing times of each medicine do not exceed 2 times, the medicine dispensing machine is set to a single dispensing mode and several kinds of medicines to be dispensed are dispensed; specifically, each time the medicine is dispensed, the medicine dispensing machine is controlled to drop all the currently dispensed medicines onto the conveying mechanism of the medicine dispensing machine, and after the currently dispensed medicines are dropped, the medicines on the conveying mechanism of the medicine dispensing machine are transported to the medicine dispensing port, and a medicine dispensing announcement is issued until the several kinds of medicines to be dispensed are dispensed. At this time, the dispensing of medicines by the medicine dispensing machine once corresponds to the dispensing of one kind of medicine, that is, the number of dispensing times = the number of medicine types.
[0059] Step S103: When the medicine dispensing machine is in the preset first medicine dispensing mode, the second medicine dispensing times for each medicine are determined according to the total number of the various medicine types.
[0060] In certain embodiments of the present application, the second dispensing times of each drug are determined according to the total number of types of various drugs, specifically:
[0061] The total number of types of various drugs is taken as the total second drug delivery number of several drugs to be delivered;
[0062] The second dispensing times of each drug are determined according to the overall second dispensing times.
[0063] Specifically, after calculating the first dispensing times for each drug, the number of remaining medicine boxes for each drug does not exceed the single maximum dispensing quantity of the corresponding drug, and the second dispensing times for each drug is 1. At this time, the total number of various types of drugs is the overall second dispensing times.
[0064] In certain embodiments of the present application, the preset first dispensing mode is a first split dispensing mode. Specifically, in the first split dispensing mode, the drugs are first dispensed according to the first dispensing times of each drug, and then the remaining drugs of the several drugs to be dispensed are dispensed according to the second dispensing times of each drug.
[0065] Step S104: Dispensing several drugs to be dispensed according to the first dispensing frequency and the second dispensing frequency of each drug.
[0066] In certain embodiments of the present application, it further includes:
[0067] When the medicine dispensing machine is in the preset second medicine dispensing mode, the number of remaining medicine boxes of each medicine is determined according to the number of medicine boxes of each medicine, the maximum medicine dispensing amount at a time and the first medicine dispensing times;
[0068] Determine a plurality of first combinations of several kinds of medicines to be dispensed according to the number of remaining medicine boxes of each medicine, the size of the medicine boxes and the size of the medicine dispensing port of the preset medicine dispensing machine;
[0069] The plurality of drugs to be dispensed are dispensed according to the first dispensing times of each drug and the plurality of first combinations.
[0070] In certain embodiments of the present application, the number of remaining medicine boxes for each medicine is determined according to the number of medicine boxes for each medicine, the maximum single medicine delivery amount, and the first medicine delivery number, specifically:
[0071] The number of remaining medicine boxes of each medicine is determined based on the number of medicine boxes of each medicine, the maximum single dispensing quantity and the first dispensing number; wherein the number of remaining medicine boxes of each medicine is the difference between the number of medicine boxes of each medicine and the product of the maximum single dispensing quantity and the first dispensing number.
[0072] In certain embodiments of the present application, the preset second dispensing mode is a second split dispensing mode. Specifically, in the second split dispensing mode, the drugs are first dispensed according to the first dispensing times of each drug, and then the remaining drugs are combined according to the multiple first combinations of the drugs to be dispensed and dispensed based on the multiple first combinations.
[0073] The present application determines the number of remaining medicine boxes for each medicine according to another dispensing mode of the medicine dispensing machine, and then obtains multiple first combinations of several medicines to be dispensed. In another dispensing mode of the medicine dispensing machine, the remaining medicines after being dispensed according to the first number of times for each medicine can be combined within the limit of the preset size of the medicine dispensing port of the medicine dispensing machine, and then the medicines are dispensed according to the multiple first combinations, which can further improve the efficiency of medicine dispensing without piling up the medicines.
[0074] In certain embodiments of the present application, the determining of a plurality of first combinations of several drugs to be dispensed according to the number of remaining medicine boxes of each drug, the size of the medicine box, and the size of the preset medicine dispensing port of the medicine dispensing machine specifically includes:
[0075] Constructing a first solution set of combinations of several drugs to be delivered according to the number of remaining medicine boxes and the size of medicine boxes for each drug;
[0076] According to the preset size of the medicine dispensing port of the medicine dispensing machine and the first solution set, based on the combinatorial optimization concept, multiple first combinations of several medicines to be dispensed are solved.
[0077] In certain embodiments of the present application, the first solution set for constructing a combination of several drugs to be dispensed according to the number of remaining medicine boxes and the size of the medicine boxes of each drug is specifically:
[0078] According to the remaining number of medicine boxes and the size of the medicine boxes for each medicine, a first solution set of combinations of several medicines to be dispatched is constructed based on an exhaustive method.
[0079] In certain embodiments of the present application, preferred embodiments of the medicine box size include but are not limited to the longest side length and the shortest side length of the medicine box for each drug, or the volume of the medicine box for each drug.
[0080] The present application first constructs a first solution set of combinations of several kinds of medicines to be dispensed. By defining the solution domain of the combination reasonably according to the number of remaining medicine boxes and the size of the medicine boxes for each medicine, and then according to the preset size of the medicine dispensing machine's medicine outlet, when multiple first combinations are solved based on the combinatorial optimization idea, the efficiency of medicine dispensing can be further improved without piling up medicines.
[0081] In certain embodiments of the present application, dispensing the plurality of drugs to be dispensed according to the first dispensing times of each drug and the plurality of first combinations specifically includes:
[0082] According to the first dispensing times of each drug, the drugs to be dispensed are dispensed multiple times in sequence. When the number of drugs on the conveying mechanism of the dispensing machine reaches the single maximum dispensing quantity corresponding to the currently dispensed drug, the drugs on the conveying mechanism are transported to the drug dispensing port, and the first drug dispensing announcement is issued until each drug is dispensed the corresponding first dispensing times;
[0083] The drug combinations among the multiple first combinations are selected in sequence as the current first combination, and the remaining drugs among the several drugs to be dispensed are dispensed, and each time the drug dispensing machine is controlled to drop the drugs to the transmission mechanism according to the current first combination, and when it is detected that the drugs on the transmission mechanism match the current first combination, the drugs on the transmission mechanism are transported to the drug dispensing port, and a second drug dispensing announcement is issued until the multiple first combinations are selected.
[0084] The present application first dispenses medicines according to the first dispensing times of each medicine. Each time medicines are dispensed, the number of medicines on the transmission mechanism of the dispensing machine meets the single maximum dispensing quantity of the current medicines. By splitting the medicine dispensing into multiple dispensings according to the first dispensing times of each medicine, it is possible to prevent the difficulty in dispensing medicines caused by the accumulation of medicines, improve the efficiency of medicine dispensing, and ensure that medicines are dispensed in an orderly manner; then, medicines are dispensed according to multiple first combinations, and each time medicines are dispensed, it is ensured that the medicines on the transmission mechanism match the current first combination, which can further improve the efficiency of medicine dispensing when medicines are not accumulated; at the same time, a medicine pickup broadcast is issued each time medicines are dispensed, which can promptly remind the person who picks up the medicines, thereby improving the medicine pickup experience.
[0085] Compared with the prior art, the present application first determines the number of medicine boxes, the size of the medicine boxes and the maximum single dispensing quantity of various medicines in the medicines to be dispensed according to the prescription, and then determines the first dispensing number of each medicine, and then determines the second dispensing number of each medicine according to the dispensing mode of the dispensing machine, and dispenses the medicines according to the first dispensing number and the second dispensing number. A large prescription with a large number of medicines is split into a single medicine for dispensing according to the number of medicine boxes and the maximum single dispensing quantity, and then split into multiple dispensing of each medicine, which can prevent the problem of dispensing difficulties caused by medicine accumulation, ensure orderly dispensing of medicines, and improve the efficiency of medicine dispensing and the experience of picking up medicines.
[0086] Corresponding to the previous method, see Figure 2 , the embodiment of the present application provides a medicine dispensing device applied to a medicine dispensing machine, including a medicine information acquisition module 210, a first medicine dispensing determination module 220, a second medicine dispensing determination module 230 and a first medicine dispensing module 240;
[0087] The drug information acquisition module 210 is used to determine several drugs to be dispensed according to the prescription, and respectively obtain the number of medicine boxes, the size of the medicine boxes and the maximum single-dispensing quantity of each drug;
[0088] The first drug dispensing determination module 220 is used to determine the first drug dispensing times of each drug according to the number of drug boxes and the maximum single drug dispensing quantity of each drug;
[0089] The second medicine dispensing determination module 230 is used to determine the second medicine dispensing times of each medicine according to the total number of medicine types when the medicine dispensing machine is in the preset first medicine dispensing mode;
[0090] The first drug dispensing module 240 is used to dispense several drugs to be dispensed according to the first dispensing frequency and the second dispensing frequency of each drug.
[0091] In certain embodiments of the present application, the first medication dispensing determination module 220 includes a first medication dispensing determination submodule 221;
[0092] The first dispensing determination submodule 221 is used to determine the first dispensing times for each drug according to the number of medicine boxes and the maximum single dispensing quantity of each drug; wherein the first dispensing times is the non-negative integer quotient of the number of medicine boxes and the maximum single dispensing quantity of each drug.
[0093] In some embodiments of the present application, a second drug dispensing module 250 is further included; the second drug dispensing module 250 includes a third drug dispensing determination submodule 251, a first combination determination submodule 252, and a second drug dispensing submodule 253;
[0094] The third medicine dispensing determination submodule 251 is used to determine the number of remaining medicine boxes of each medicine according to the number of medicine boxes of each medicine, the maximum medicine dispensing quantity at a time and the first medicine dispensing number when the medicine dispensing machine is in the preset second medicine dispensing mode;
[0095] The first combination determination submodule 252 is used to determine a plurality of first combinations of several drugs to be dispensed according to the number of remaining medicine boxes of each drug, the size of the medicine boxes and the size of the preset medicine dispensing port of the medicine dispensing machine;
[0096] The second drug dispensing submodule 253 is used to dispense the plurality of drugs to be dispensed according to the first drug dispensing times of each drug and the plurality of first combinations.
[0097] In certain embodiments of the present application, the first combination determination submodule includes a first solution set construction unit and a first combination solution unit;
[0098] The first solution set construction unit is used to construct a first solution set of combinations of several drugs to be issued according to the number of remaining medicine boxes and the size of the medicine boxes of each drug;
[0099] The first combination solving unit is used to solve a plurality of first combinations of several medicines to be dispensed based on a preset medicine dispensing port size of the medicine dispensing machine and the first solution set and based on a combinatorial optimization concept.
[0100] In certain embodiments of the present application, the second drug dispensing submodule includes a first drug dispensing unit and a second drug dispensing unit;
[0101] The first medicine dispensing unit is used to sequentially dispense a plurality of medicines to be dispensed multiple times according to the first medicine dispensing times of each medicine, and when the number of medicines on the conveying mechanism of the medicine dispensing machine reaches the single maximum medicine dispensing amount corresponding to the currently dispensed medicines, the medicines on the conveying mechanism are transported to the medicine dispensing port, and a first medicine dispensing announcement is issued until each medicine is dispensed the corresponding first medicine dispensing times;
[0102] The second medicine dispensing unit is used to sequentially select a medicine combination from the multiple first combinations as the current first combination, and to dispense the remaining medicines from the several kinds of medicines to be dispensed, and to control the medicine dispensing machine to drop the medicines to the transmission mechanism according to the current first combination each time dispensing, and when it is detected that the medicines on the transmission mechanism match the current first combination, the medicines on the transmission mechanism are transported to the medicine dispensing port, and a second medicine dispensing announcement is issued until the multiple first combinations are selected.
[0103] The present application first determines the number of medicine boxes, the size of the medicine boxes and the maximum single dispensing quantity of various medicines in the medicines to be dispensed according to the prescription, and then determines the first dispensing number of each medicine, and then determines the second dispensing number of each medicine according to the dispensing mode of the dispensing machine, and dispenses the medicines according to the first dispensing number and the second dispensing number. A large prescription with a large number of medicines is split into a single medicine for dispensing according to the number of medicine boxes and the maximum single dispensing quantity, and then split into multiple dispensing of each medicine, which can prevent the problem of dispensing difficulties caused by medicine accumulation, ensure the orderly dispensing of medicines, and improve the efficiency of medicine dispensing and the experience of picking up medicines.
[0104] It should be understood that the device provided in the embodiments of the present application corresponds to the aforementioned method, and a medicine dispensing device applied to a medicine dispensing machine provided in the embodiments of the present application can implement a medicine dispensing method applied to a medicine dispensing machine provided in any embodiment of the present application.
[0105] Adaptively, the embodiments of the present application also provide a computer device and a computer-readable storage medium.
[0106] The computer device comprises: a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor;
[0107] Wherein, when the processor executes the computer program, a medicine dispensing method applied to a medicine dispensing machine of the present application is implemented.
[0108] The computer-readable storage medium stores a plurality of instructions, and the instructions are suitable for being loaded by a processor to execute a medicine dispensing method applied to a medicine dispensing machine of the present application.
[0109] The above are some implementation methods of the present application, and the purpose, technical scheme and beneficial effects of the present application are further described in detail. It should be clear that the above-mentioned partial implementation methods of the present application cannot be understood as limiting the present application. It is particularly pointed out that for those skilled in the art, any changes, modifications, equivalent substitutions and variations made within the spirit and principles of the present application should be included in the protection scope of the present application.
Claims
1. A medicine dispensing method applied to a medicine dispensing machine, characterized in that: include: Determine several drugs to be dispensed according to the prescription, and obtain the number of medicine boxes, the size of the medicine boxes and the maximum single-dispensing quantity of each drug; Determine the first dispensing times for each drug according to the number of drug boxes and the maximum single dispensing quantity of each drug; When the medicine dispensing machine is in the preset first medicine dispensing mode, the second medicine dispensing times of each medicine are determined according to the total number of the various medicine types; According to the first dispensing number and the second dispensing number of each medicine, several medicines to be dispensed are dispensed.
2. A medicine dispensing method applied to a medicine dispensing machine according to claim 1, characterized in that: The method of determining the first dispensing times of each drug according to the number of drug boxes and the maximum single dispensing quantity of each drug specifically includes: The first dispensing times for each drug are determined according to the number of medicine boxes for each drug and the maximum single dispensing quantity; wherein the first dispensing times are the non-negative integer quotient of the number of medicine boxes for each drug and the maximum single dispensing quantity.
3. A medicine dispensing method applied to a medicine dispensing machine according to claim 1, characterized in that: Also includes: When the medicine dispensing machine is in the preset second medicine dispensing mode, the number of remaining medicine boxes of each medicine is determined according to the number of medicine boxes of each medicine, the maximum medicine dispensing amount at a time and the first medicine dispensing times; Determine a plurality of first combinations of several kinds of medicines to be dispensed according to the number of remaining medicine boxes of each medicine, the size of the medicine boxes and the size of the medicine dispensing port of the preset medicine dispensing machine; The plurality of drugs to be dispensed are dispensed according to the first dispensing times of each drug and the plurality of first combinations.
4. A medicine dispensing method applied to a medicine dispensing machine according to claim 3, characterized in that: The method of determining a plurality of first combinations of several medicines to be dispensed according to the number of remaining medicine boxes of each medicine, the size of the medicine boxes and the size of the medicine dispensing port of the preset medicine dispensing machine specifically includes: Constructing a first solution set of combinations of several drugs to be delivered according to the number of remaining medicine boxes and the size of medicine boxes for each drug; According to the preset size of the medicine dispensing port of the medicine dispensing machine and the first solution set, based on the combinatorial optimization concept, multiple first combinations of several medicines to be dispensed are solved.
5. A medicine dispensing method applied to a medicine dispensing machine according to claim 3, characterized in that: The dispensing of the plurality of drugs to be dispensed according to the first dispensing times of each drug and the plurality of first combinations specifically includes: According to the first dispensing times of each drug, the drugs to be dispensed are dispensed multiple times in sequence. When the number of drugs on the conveying mechanism of the dispensing machine reaches the single maximum dispensing quantity corresponding to the currently dispensed drug, the drugs on the conveying mechanism are transported to the drug dispensing port, and the first drug dispensing announcement is issued until each drug is dispensed the corresponding first dispensing times; The drug combinations among the multiple first combinations are selected in sequence as the current first combination, and the remaining drugs among the several drugs to be dispensed are dispensed, and each time the drug dispensing machine is controlled to drop the drugs to the transmission mechanism according to the current first combination, and when it is detected that the drugs on the transmission mechanism match the current first combination, the drugs on the transmission mechanism are transported to the drug dispensing port, and a second drug dispensing announcement is issued until the multiple first combinations are selected.
6. A medicine dispensing device used in a medicine dispensing machine, characterized in that: It includes a drug information acquisition module, a first drug dispensing determination module, a second drug dispensing determination module and a first drug dispensing module; The drug information acquisition module is used to determine several drugs to be dispensed according to the prescription, and respectively obtain the number of medicine boxes, the size of the medicine boxes and the maximum single-dispensing quantity of each drug; The first drug dispensing determination module is used to determine the first drug dispensing times of each drug according to the number of drug boxes and the maximum single drug dispensing quantity of each drug; The second medicine dispensing determination module is used to determine the second medicine dispensing times of each medicine according to the total number of medicine types when the medicine dispensing machine is in the preset first medicine dispensing mode; The first drug dispensing module is used to dispense several drugs to be dispensed according to the first dispensing frequency and the second dispensing frequency of each drug.
7. A medicine dispensing device for a medicine dispensing machine according to claim 6, characterized in that: The first medication dispensing determination module includes a first medication dispensing determination submodule; The first drug dispensing determination submodule is used to determine the first drug dispensing times for each drug according to the number of medicine boxes and the maximum single dispensing quantity of each drug; wherein the first drug dispensing times is the non-negative integer quotient of the number of medicine boxes and the maximum single dispensing quantity of each drug.
8. The medicine dispensing device used in a medicine dispensing machine according to claim 6, characterized in that: It also includes a second drug dispensing module; the second drug dispensing module includes a third drug dispensing determination submodule, a first combination determination submodule and a second drug dispensing submodule; The third medicine dispensing determination submodule is used to determine the number of remaining medicine boxes of each medicine according to the number of medicine boxes of each medicine, the maximum single medicine dispensing amount and the first medicine dispensing number when the medicine dispensing machine is in the preset second medicine dispensing mode; The first combination determination submodule is used to determine a plurality of first combinations of several medicines to be dispensed according to the number of remaining medicine boxes of each medicine, the size of the medicine boxes and the size of the medicine dispensing port of the preset medicine dispensing machine; The second drug dispensing submodule is used to dispense several drugs to be dispensed according to the first drug dispensing times of each drug and the plurality of first combinations.
9. A medicine dispensing device for a medicine dispensing machine according to claim 8, characterized in that: The first combination determination submodule includes a first solution set construction unit and a first combination solution unit; The first solution set construction unit is used to construct a first solution set of combinations of several drugs to be issued according to the number of remaining medicine boxes and the size of the medicine boxes of each drug; The first combination solving unit is used to solve a plurality of first combinations of several medicines to be dispensed based on a preset medicine dispensing port size of the medicine dispensing machine and the first solution set and based on a combinatorial optimization concept.
10. The medicine dispensing device used in a medicine dispensing machine according to claim 8, characterized in that: The second drug dispensing submodule includes a first drug dispensing unit and a second drug dispensing unit; The first medicine dispensing unit is used to sequentially dispense a plurality of medicines to be dispensed multiple times according to the first medicine dispensing times of each medicine, and when the number of medicines on the conveying mechanism of the medicine dispensing machine reaches the single maximum medicine dispensing amount corresponding to the currently dispensed medicines, the medicines on the conveying mechanism are transported to the medicine dispensing port, and a first medicine dispensing announcement is issued until each medicine is dispensed the corresponding first medicine dispensing times; The second medicine dispensing unit is used to sequentially select a medicine combination from the multiple first combinations as the current first combination, and to dispense the remaining medicines from the several kinds of medicines to be dispensed, and to control the medicine dispensing machine to drop the medicines to the transmission mechanism according to the current first combination each time dispensing, and when it is detected that the medicines on the transmission mechanism match the current first combination, the medicines on the transmission mechanism are transported to the medicine dispensing port, and a second medicine dispensing announcement is issued until the multiple first combinations are selected.
Citation Information
Patent Citations
Medication box dispensing device
CN102173318A
Goods discharge method and device, vending machine, server, system and medium
CN108492454A
Vending machine and goods delivery method thereof
CN112927419A