CN111445975A - Medicine outlet method and device for medicine warehouse, medicine warehouse and storage medium - Google Patents

Medicine outlet method and device for medicine warehouse, medicine warehouse and storage medium Download PDF

Info

Publication number
CN111445975A
CN111445975A CN202010240281.3A CN202010240281A CN111445975A CN 111445975 A CN111445975 A CN 111445975A CN 202010240281 A CN202010240281 A CN 202010240281A CN 111445975 A CN111445975 A CN 111445975A
Authority
CN
China
Prior art keywords
medicine
dispensing
medicines
types
prescriptions
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202010240281.3A
Other languages
Chinese (zh)
Inventor
茅泽民
颜长军
孙中正
张春兰
崔梅兰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Suzhou Iron Technology Co Ltd
Original Assignee
Suzhou Iron Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Suzhou Iron Technology Co Ltd filed Critical Suzhou Iron Technology Co Ltd
Priority to CN202010240281.3A priority Critical patent/CN111445975A/en
Publication of CN111445975A publication Critical patent/CN111445975A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G16INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR SPECIFIC APPLICATION FIELDS
    • G16HHEALTHCARE INFORMATICS, i.e. INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR THE HANDLING OR PROCESSING OF MEDICAL OR HEALTHCARE DATA
    • G16H20/00ICT specially adapted for therapies or health-improving plans, e.g. for handling prescriptions, for steering therapy or for monitoring patient compliance
    • G16H20/10ICT specially adapted for therapies or health-improving plans, e.g. for handling prescriptions, for steering therapy or for monitoring patient compliance relating to drugs or medications, e.g. for ensuring correct administration to patients
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/08Logistics, e.g. warehousing, loading or distribution; Inventory or stock management
    • G06Q10/087Inventory or stock management, e.g. order filling, procurement or balancing against orders

Landscapes

  • Business, Economics & Management (AREA)
  • Engineering & Computer Science (AREA)
  • Economics (AREA)
  • Health & Medical Sciences (AREA)
  • Finance (AREA)
  • Entrepreneurship & Innovation (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Primary Health Care (AREA)
  • Public Health (AREA)
  • Medicinal Chemistry (AREA)
  • Accounting & Taxation (AREA)
  • Bioinformatics & Cheminformatics (AREA)
  • Development Economics (AREA)
  • Chemical & Material Sciences (AREA)
  • Epidemiology (AREA)
  • Human Resources & Organizations (AREA)
  • Marketing (AREA)
  • Operations Research (AREA)
  • Quality & Reliability (AREA)
  • Strategic Management (AREA)
  • Tourism & Hospitality (AREA)
  • Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Medical Preparation Storing Or Oral Administration Devices (AREA)

Abstract

The invention provides a medicine outlet method and device of a medicine warehouse, the medicine warehouse and a storage medium, wherein the medicine outlet method comprises the following steps: obtaining a plurality of prescriptions, wherein the prescriptions comprise a plurality of medicine types and the medicine dispensing quantity corresponding to each medicine type; acquiring a plurality of medicine types to be supplemented from a plurality of prescriptions, wherein the total storage amount of each medicine type to be supplemented in the medicine dispensing equipment is less than the sum of the medicine dispensing amount of the medicine type to be supplemented in a plurality of first prescriptions; the following operations are performed for each drug type to be replenished: acquiring medicines corresponding to the types of the medicines to be supplemented from the secondary library and storing the medicines into the medicine dispensing equipment, so that the sum of the medicine dispensing quantity of the types of the medicines to be supplemented in a plurality of prescriptions is less than or equal to the total storage quantity of the medicines in the medicine dispensing equipment; controlling the dispensing equipment to complete the dispensing operation of a plurality of prescriptions; it can be understood that the medicine dispensing method is not to dispense medicines in the order of one prescription after another, but to dispense medicines simultaneously for a plurality of prescriptions, which improves the working efficiency of the medicine warehouse.

Description

Medicine outlet method and device for medicine warehouse, medicine warehouse and storage medium
Technical Field
The invention relates to the technical field of medicine storage, in particular to a medicine outlet method and device for a medicine storage, the medicine storage and a storage medium.
Background
In an actual hospital drug storage, a secondary storage and drug dispensing equipment are generally arranged, and drugs of a plurality of drug types are stored in the secondary storage; a medicine storage space is also provided in the medicine dispensing apparatus, but the medicine storage space is generally not large, and therefore, the number of medicines that can be stored is generally smaller than that of the second-level library medicine, and thus, the following situation is likely to occur: when the medicine dispensing equipment dispenses medicines, the quantity of the medicines in the medicine storage space is insufficient, and then the corresponding medicines need to be called from the secondary storage. In the prior art, if the number of medicines in the prescription in the medicine dispensing equipment is insufficient, a sufficient number of medicines can be called from the secondary library, then the medicine dispensing operation of the prescription is completed, and then the medicines of other prescriptions are processed, namely the medicines are dispensed according to the sequence of one prescription after another, and the medicine dispensing method is low in working efficiency.
Therefore, designing a high-efficiency drug delivery method becomes a problem to be solved.
Disclosure of Invention
The invention aims to provide a medicine outlet method and device for a medicine warehouse, the medicine warehouse and a storage medium.
In order to achieve one of the above objects, an embodiment of the present invention provides a method for dispensing a medicine from a medicine library, the medicine library including: the system comprises a secondary storage and dispensing equipment, wherein the secondary storage stores medicines of a plurality of medicine types; the dispensing equipment is used for receiving and storing the medicines from the secondary library and can complete dispensing operation; the method comprises the following steps: obtaining a plurality of first prescriptions, wherein the first prescriptions comprise a plurality of medicine types and the dispensing quantity corresponding to each medicine type; in the first prescriptions, the sum of the dispensing quantities of each medicine type is less than or equal to the total storage quantity of the medicine types in the secondary library + the total storage quantity of the medicine types in the dispensing equipment; acquiring a plurality of medicine types to be supplemented from the plurality of first prescriptions, wherein the total storage amount of each medicine type to be supplemented in the medicine dispensing device is less than the sum of the medicine dispensing amounts of the medicine types in the plurality of first prescriptions; the following operations are performed for each drug type to be replenished: acquiring the medicines corresponding to the types of the medicines to be supplemented from the secondary library and storing the medicines into the medicine dispensing equipment, so that the sum of the medicine dispensing quantity of the types of the medicines to be supplemented in the first prescriptions is not more than the total storage quantity of the medicines in the medicine dispensing equipment; and controlling the medicine dispensing equipment to complete the medicine dispensing operation of the plurality of first prescriptions.
As a further improvement of an embodiment of the present invention, the method further comprises the following steps: for each first recipe the following is performed: and controlling the dispensing equipment to complete the dispensing operation of the medicine types when the dispensing quantity of any medicine type in the first prescription is determined to be less than or equal to the total storage quantity of the medicine types in the dispensing equipment, and in the first prescription, the sum of the dispensing quantities of the medicine types is modified to be zero.
As a further improvement of an embodiment of the present invention, the "obtaining several first prescriptions" specifically includes: receiving N second prescriptions, wherein N is a natural number; generating an empty list and an empty set, wherein the set is used for storing the drug types and the cumulant thereof, and the corresponding cumulant is zero when the drug types are added into the set for the first time; based on the preset order, the following operations are carried out on each second prescription: when all the first medicine types in the second prescription meet that the medicine dispensing quantity of the first medicine types is less than or equal to the total storage quantity of the first medicine types in the medicine dispensing equipment, controlling the medicine dispensing equipment to complete the medicine dispensing operation of the second prescription; otherwise, when any second medicine type in the second prescription satisfies "the number of dispensed medicines of the second medicine type + the cumulative amount corresponding to the second medicine type + the total storage amount of the second medicine type in the dispensing device + the total storage amount of the second medicine type in the secondary library", adding all the second medicine types in the second prescription to a set, increasing the cumulative amount of the second medicine type by the number of dispensed medicines of the second medicine type corresponding to the second prescription in the set, and adding the second prescription to the list; all second prescriptions in the list constitute first prescriptions.
As a further improvement of an embodiment of the present invention, the method further comprises the following steps: the following is also performed for each second prescription: when the presence of the third medicine type in the second prescription satisfies "the dispensing amount of the third medicine type + the accumulated amount corresponding to the third medicine type > the total storage amount of the third medicine type in the dispensing apparatus + the total storage amount of the third medicine type in the secondary library", the alarm information is derived.
As a further improvement of an embodiment of the present invention, the "obtaining a medicine corresponding to the medicine type to be supplemented from the secondary library and storing the medicine into the medicine dispensing device so that the sum of the medicine dispensing amounts of the medicine types to be supplemented in the first prescriptions is less than or equal to the total storage amount thereof in the medicine dispensing device" specifically includes: and acquiring the medicines corresponding to the types of the medicines to be supplemented from the secondary library and storing the medicines into the medicine dispensing equipment, so that the total storage capacity of the types of the medicines to be supplemented in the medicine dispensing equipment, namely the sum of the medicine dispensing quantity of the types of the medicines to be supplemented in the first prescriptions is not more than 0 and not more than a preset threshold value, wherein the preset threshold value is more than 0.
The embodiment of the invention also provides a medicine discharging device of the medicine warehouse, and the medicine warehouse comprises: the system comprises a secondary storage and dispensing equipment, wherein the secondary storage stores medicines of a plurality of medicine types; the dispensing equipment is used for receiving and storing the medicines from the secondary library and can complete dispensing operation; the system comprises the following modules: the prescription obtaining module is used for obtaining a plurality of first prescriptions, and the first prescriptions comprise a plurality of medicine types and the medicine dispensing quantity corresponding to each medicine type; in the first prescriptions, the sum of the dispensing quantities of each medicine type is less than or equal to the total storage quantity of the medicine types in the secondary library + the total storage quantity of the medicine types in the dispensing equipment; the screening module is used for acquiring a plurality of types of medicines to be supplemented from the plurality of first prescriptions, wherein the total storage amount of each type of medicine to be supplemented in the medicine dispensing equipment is less than the sum of the medicine dispensing amount of each type of medicine to be supplemented in the plurality of first prescriptions; the medicine taking module is used for carrying out the following operations on each medicine type to be supplemented: acquiring the medicines corresponding to the types of the medicines to be supplemented from the secondary library and storing the medicines into the medicine dispensing equipment, so that the sum of the medicine dispensing quantity of the types of the medicines to be supplemented in the first prescriptions is not more than the total storage quantity of the medicines in the medicine dispensing equipment; and the first medicine dispensing module is used for controlling the medicine dispensing equipment to complete the medicine dispensing operation of the plurality of first prescriptions.
The embodiment of the invention also provides a medicine library, which comprises: the system comprises a secondary storage and dispensing equipment, wherein the secondary storage stores medicines of a plurality of medicine types; the dispensing equipment is used for receiving and storing the medicines from the secondary library and can complete dispensing operation; the medicine dispensing device comprises a memory and a processor, wherein the memory stores a computer program capable of running on the processor, and the processor executes the program to realize the steps in the medicine dispensing method.
The embodiment of the invention also provides a computer readable storage medium, on which a computer program is stored, and the computer program, when executed by a processor, implements the steps in the medicine outputting method.
Compared with the prior art, the invention has the technical effects that: in the medicine dispensing method, when the quantity of certain medicines in the medicine dispensing equipment is insufficient, medicines are not immediately called from the secondary library, but a batch of medicines are raised and then called from the secondary library, so that the working efficiency of the medicine library can be improved.
Drawings
FIG. 1 is a schematic diagram of the structure of a drug library in an embodiment of the present invention;
fig. 2 is a schematic flow chart of a drug dispensing method in an embodiment of the present invention.
Detailed Description
The present invention will be described in detail below with reference to embodiments shown in the drawings. These embodiments are not intended to limit the present invention, and structural, methodological, or functional changes made by those skilled in the art according to these embodiments are included in the scope of the present invention.
Terms such as "upper," "above," "lower," "below," and the like, used herein to denote relative spatial positions, are used for ease of description to describe one element or feature's relationship to another element or feature as illustrated in the figures. The spatially relative positional terms may be intended to encompass different orientations of the device in use or operation in addition to the orientation depicted in the figures. For example, if the device in the figures is turned over, elements described as "below" or "beneath" other elements or features would then be oriented "above" the other elements or features. Thus, the exemplary term "below" can encompass both an orientation of above and below. The device may be otherwise oriented (rotated 90 degrees or at other orientations) and the spatially relative descriptors used herein interpreted accordingly.
Also, it should be understood that, although the terms first, second, etc. may be used herein to describe various elements or structures, these described elements should not be limited by these terms. These terms are only used to distinguish these descriptive objects from one another. For example, a first prescription may be referred to as a second prescription, and similarly a second prescription may also be referred to as a first prescription, without departing from the scope of the present application.
The embodiment of the invention provides a medicine outlet method of a medicine warehouse, and the medicine warehouse comprises: the system comprises a secondary library 1 and a dispensing device 2, wherein the secondary library 1 stores medicines of a plurality of medicine types; the dispensing equipment 2 is used for receiving and storing medicines from the secondary library 1 and can complete dispensing operation;
here, the secondary library 1 is generally provided in the drug library of the hospital, a plurality of different types of drugs are stored in the secondary library 1, and trays are generally used as storage units, that is, the entire disk is generally stored, and the secondary library 1 may be provided with a database in which information such as the drug type of the drug stored in the secondary library 1, the number of a plurality of trays storing the drug (the number can uniquely identify the tray), and the storage position of each tray is stored; a tray taking and placing device is further arranged in the secondary library 1, a medicine inlet is further formed in the secondary library 1, when medicines are placed into the secondary library 1, after trays for storing the medicines are placed into the medicine inlet, the tray taking and placing device can take away the trays, place the trays in a preset area, and modify corresponding information in the database; the second-level library 1 is also provided with a medicine outlet, when medicines are taken out from the second-level library 1, the tray taking and placing device takes a preset number of trays (the medicines are stored in the trays) from the second-level library 1, then the trays are sent out from the medicine outlet, and the database is modified.
A conveying device 3 (e.g., a conveyor belt or the like) may be provided between the secondary library 1 and the dispensing apparatus 2, the conveying device 3 being capable of taking trays from the medicine outlet of the secondary library 1 and then conveying the trays to the dispensing apparatus 2, a medicine storage space may be provided in the dispensing apparatus 2, and the trays received from the conveying device 3 may be placed therein (the medicine storage space in the dispensing apparatus 2 is generally not large, and thus, the amount of medicine that can be stored is generally smaller than that in the secondary library 1); in addition, a plurality of sorting openings 21 are provided, when in use, each sorting opening 21 corresponds to a different prescription, a medicine frame corresponding to the prescription is placed at the sorting opening 21, and then the medicine corresponding to the prescription can be output through the sorting opening 21 (i.e. the medicine slides down into the medicine frame), and the medicine dispensing operation is completed. Here, a central control machine or the like may be provided in the pharmacy, and the medicine dispensing method may be executed by the central control machine.
As shown in fig. 1, the method comprises the following steps:
step 201: obtaining a plurality of first prescriptions, wherein the first prescriptions comprise a plurality of medicine types and the dispensing quantity corresponding to each medicine type; in the first prescriptions, the sum of the dispensing quantities of each medicine type is less than or equal to the total storage quantity in the secondary library 1 + the total storage quantity in the dispensing device 2; here, assuming that the number of the first prescriptions is M, the corresponding total dispensing amount in the ith first prescription is Num [ I ] (if the ith first prescription does not contain the medicine kind a, Num [ I ] is 0) for any medicine kind a, Num [1] + Num [2] + … + Num [ M ] ≦ the total storage amount of the medicine kind a in the secondary library 1 + the total storage amount of the medicine kind a in the dispensing apparatus 2; that is, in the drug library, each of the drug types of the first prescriptions is sufficient to enable the dispensing operation of the first prescriptions to be completed.
Step 202: acquiring a plurality of types of medicines to be replenished from the plurality of first prescriptions, wherein the total storage amount of each type of medicine to be replenished in the medicine dispensing device 2 is less than the sum of the medicine dispensing amounts of the types of medicines to be replenished in the plurality of first prescriptions; here, for any one of the medicine types A, if the total storage amount of the medicine type A in the dispensing apparatus 2 is < Num <1 > + Num <2 > + … + Num < M >, that is, in the dispensing apparatus 2, the medicine type A is insufficient, and it is necessary to call in the medicine from the secondary library.
Step 203: the following operations are performed for each drug type to be replenished: acquiring the medicines corresponding to the types of the medicines to be supplemented from the secondary library 1 and storing the medicines into the medicine dispensing equipment 2, so that the sum of the medicine dispensing quantity of the types of the medicines to be supplemented in the first prescriptions is less than or equal to the total storage quantity of the medicines in the medicine dispensing equipment 2; here, the medicines are called from the secondary library so that the medicine corresponding to each medicine type is sufficient in the medicine dispensing apparatus 2.
Step 204: and controlling the medicine dispensing equipment 2 to complete the medicine dispensing operation of the plurality of first prescriptions. Here, when the medicine is sufficient, the dispensing operation can be completed. Here, the dispensing operation specifically includes: if the sent quantity of a certain medicine type in a certain first prescription is less than the sent quantity of the medicine type, the medicine is continuously sent until the sent quantity of all the medicine types in the first prescription is equal to the sent quantity of the medicine type. Optionally, in the secondary library 1, the medicines are stored in a whole disk, that is, when the medicines are called into the medicine dispensing device, the medicines are called in a whole disk; therefore, in order to complete the dispensing operations of the first prescriptions, some medicines can be dispensed into the dispensing apparatus 2, but the medicine storage space in the dispensing apparatus 2 is limited and is not suitable for being dispensed too much.
The above-mentioned dispensing method will be described by way of example,
Figure BDA0002432297260000061
here, as shown in the above table, for each drug type: one of the first prescriptions has three: first prescription E, first prescription F and first prescription G
For class a, 2+3+4 ═ 9<10+20 ═ 30; for class B, 18<2+30 ═ 32 with 5+6+ 7; for class C, 18<6+20 ═ 26 with 5+8+ 5; for class D, 2+6+7 ═ 15<3+25 ═ 28. That is, in the drug library, each kind of medicine in the 3 first prescriptions is sufficient so that the dispensing operation of the 3 first prescriptions can be completed.
It is understood that for class a, 2+3+4 is 9<10, and thus, class a is not the drug class to be replenished; for class B, 2<5+6+7 ═ 18, therefore, class B is the drug class to be replenished; for class C, 6<5+8+5 ═ 18, therefore, class B is the drug class to be replenished; for class D, 3<2+6+7 ═ 18, so class D is the drug class to be replenished. Thus, categories B, C and D are both drug categories to be replenished.
At this time, it is necessary to call medicines corresponding to the types B, C and D from the secondary library so that the number of types B is at least 18, the number of types C is at least 18, and the number of types D is at least 15 in the medication dispensing apparatus 2.
Here, the number of the first prescriptions is optionally equal to or less than 24.
In summary, in the dispensing method, when the number of some medicines in the dispensing equipment is insufficient, the medicines are not immediately called from the secondary library, but a batch of medicines are raised and called from the secondary library, and it can be understood that the dispensing method dispenses medicines according to a sequence of one prescription after another, but a plurality of prescriptions are dispensed simultaneously, which improves the working efficiency of the medicine library.
In this embodiment, the method further includes the following steps: for each first recipe the following is performed: and controlling the medicine dispensing device 2 to complete the medicine dispensing operation of the medicine types when the medicine dispensing quantity of any medicine type in the first prescription is determined to be less than or equal to the total storage quantity of the medicine types in the medicine dispensing device 2, and the sum of the medicine dispensing quantities of the medicine types is modified to be zero in the first prescription. In the first prescription, if the number of medicines corresponding to a certain medicine type is sufficient in the medication dispensing apparatus 2, medication can be dispensed from the medication dispensing apparatus 2. Here, it is understood that if the dispensing apparatus 2 is controlled to dispense the medicine corresponding to the medicine type a, the medium storage amount of the medicine type a may decrease in the dispensing apparatus 2.
Here, assume that the operation sequence of the first recipe is: e → F → G, then the following happens when this operation is performed:
(1) category a, 2<10 when processing first prescription E; class D, 2< 3; then, the medicine dispensing apparatus is controlled to deliver 2 medicines of the type a and 2 medicines of the type D to the sorting opening 21 corresponding to the first prescription E; at this time, in the dispensing apparatus, the numbers of medicines corresponding to the kinds A, B, C and D are 8, 2, 6, and 1;
(2) category a, 3<8 when processing the first prescription F; then, the medicine dispensing apparatus is controlled to deliver 3 medicines corresponding to the type a to the sorting opening 21 corresponding to the first prescription F; at this time, in the dispensing apparatus, the numbers of medicines corresponding to the kinds A, B, C and D are 5, 2, 6, and 1;
(3) category a, 4<5 when processing the first prescription G; class C, 5< 6; then, the medicine dispensing device is controlled to deliver 4 kinds of medicines corresponding to the a and 5 kinds of medicines corresponding to the C to the sorting opening 21 corresponding to the first prescription G; at this time, in the dispensing apparatus, the numbers of medicines corresponding to the kinds A, B, C and D are 1, 2, 1, and 1.
(4) Then, it is necessary to call in the medicines corresponding to the categories B, C and D from the secondary library, and to complete the three first-prescription dispensing operations.
In this embodiment, the "obtaining a plurality of first prescriptions" specifically includes:
step 1: receiving N second prescriptions, wherein N is a natural number; here, N.gtoreq.M.
Step 2: generating an empty list and an empty set, wherein the set is used for storing the drug types and the cumulant thereof, and the corresponding cumulant is zero when the drug types are added into the set for the first time;
and step 3: based on the preset order, the following operations are carried out on each second prescription: when all the first medicine types in the second prescription meet that the medicine dispensing quantity of the first medicine types is less than or equal to the total storage quantity of the first medicine types in the medicine dispensing device 2, controlling the medicine dispensing device 2 to complete the medicine dispensing operation of the second prescription; here, when all the medicines in a certain second prescription are sufficient in the dispensing apparatus 2, the dispensing apparatus 2 can be controlled to complete the dispensing operation of the second prescription.
Otherwise, when any second medicine type in the second prescription satisfies "the number of dispensed medicines of the second medicine type + the cumulative amount corresponding to the second medicine type + the total storage amount of the second medicine type in the dispensing apparatus 2+ the total storage amount of the second medicine type in the secondary library 1", adding all the second medicine types in the second prescription to a set, increasing the cumulative amount of the second medicine type by the number of dispensed medicines of the second medicine type corresponding to the second prescription in the set, and adding the second prescription to the list;
and 4, step 4: all second prescriptions in the list constitute first prescriptions.
The following describes the execution of steps 1 to 4 as an example:
suppose that:
Figure BDA0002432297260000091
here, assume that the operation sequence of the second recipe is: h → I → J → K, then the following happens when this operation is performed:
(1) for the second prescription H, 2<10, 1<5, 1<6, 2<7, therefore, the dispensing apparatus 2 is controlled to complete the dispensing operation for the second prescription H, and thereafter, in the dispensing apparatus, the remaining quantities of the medicines A, B, C and D are: 8. 4, 5 and 5;
(2) for the second prescription I, category B, 6> 4; species D, 6> 5; and class a, 5<20+8 ═ 28; class B, 6<30+4 ═ 34; class C, 5<20+5 ═ 25; class D, 6<5+25 ═ 30; thus, both species A, B, C and D are added to the set, where the cumulative amounts for species A, B, C and D, respectively, are: 5. 6, 5 and 6; the list comprises a second prescription I;
(4) for second prescription J, category a, 2< 8; class B, 2< 4; class C, 3< 5; class D, 2< 5; thus, the dispensing apparatus 2 is controlled to complete the dispensing operation of the second prescription J, after which, in the dispensing apparatus, the remaining quantities of the medicines A, B, C and D are respectively: 6. 2, 2 and 3;
(5) for the second prescription K, category a, 7> 6; class C, 4> 2; and a species D, 5> 3; however, class a, 7+5 ═ 12<20+6 ═ 26; class B, 2+6 ═ 8<30+2 ═ 32; class C, 4+5 ═ 9<20+2 ═ 22; class D, 5+6 ═ 11<25+3 ═ 28; thus, both species A, B, C and D are added to the set, where the cumulative amounts for species A, B, C and D, respectively, are: 12. 8, 9 and 11; the list contains a second prescription K;
in summary, the second prescription I and the second prescription K become the two first prescriptions.
In this embodiment, there is further included the step of, for each second prescription, deriving alarm information when the presence of the third medicine type in the second prescription satisfies "the number of dispensing of the third medicine type + the accumulated amount corresponding to the third medicine type > the total storage amount of the third medicine type in the dispensing apparatus 2+ the total storage amount of the third medicine type in the secondary library 1", where, in the entire library, at the time of completion of dispensing of the second prescriptions H, I, J and K, the number of remaining types a is 14, the number of remaining types B is 24, the number of remaining types C is 13, and the number of remaining types D is 17, and if it is assumed that there is the second prescription L in the table and at this time, the required number of types a in the second prescription L is 15, it is necessary to derive alarm information.
Alternatively, the specific manner of "pushing out the alarm information" may be: the display screen displays the images, and the modes such as voice broadcasting are adopted.
In this embodiment, the step of "obtaining the medicine corresponding to the type of the medicine to be supplemented from the secondary library 1 and storing the medicine into the medicine dispensing device 2 so that the total sum of the number of the medicines dispensed in the first prescriptions of the type of the medicine to be supplemented is not more than the total storage amount of the medicines dispensed in the medicine dispensing device 2" specifically includes:
and acquiring the medicines corresponding to the types of the medicines to be supplemented from the secondary library 1 and storing the medicines into the medicine dispensing equipment 2, so that the total storage capacity of the types of the medicines to be supplemented in the medicine dispensing equipment 2, namely the sum of the medicine dispensing quantities of the types of the medicines to be supplemented in the first prescriptions is not more than 0 and not more than a preset threshold value, wherein the preset threshold value is more than 0. Here, because, in the dispensing apparatus 2, the medicine storage space is limited, for a certain medicine category, some more medicines can be called in, but the amount of the more-calling is not so large, i.e., 0. ltoreq. the amount of the more-calling is less than the preset threshold.
The second embodiment of the present invention provides a drug dispensing device for a drug storage, wherein the drug storage comprises: the system comprises a secondary library 1 and a dispensing device 2, wherein the secondary library 1 stores medicines of a plurality of medicine types; the dispensing equipment 2 is used for receiving and storing medicines from the secondary library 1 and can complete dispensing operation; the system comprises the following modules:
the prescription obtaining module is used for obtaining a plurality of first prescriptions, and the first prescriptions comprise a plurality of medicine types and the medicine dispensing quantity corresponding to each medicine type; in the first prescriptions, the sum of the dispensing quantities of each medicine type is less than or equal to the total storage quantity in the secondary library 1 + the total storage quantity in the dispensing device 2;
a screening module for obtaining a plurality of types of medicines to be supplemented from the plurality of first prescriptions, wherein the total storage amount of each type of medicine to be supplemented in the medicine dispensing device 2 is less than the sum of the medicine dispensing amounts in the plurality of first prescriptions;
the medicine taking module is used for carrying out the following operations on each medicine type to be supplemented: acquiring the medicines corresponding to the types of the medicines to be supplemented from the secondary library 1 and storing the medicines into the medicine dispensing equipment 2, so that the sum of the medicine dispensing quantity of the types of the medicines to be supplemented in the first prescriptions is less than or equal to the total storage quantity of the medicines in the medicine dispensing equipment 2;
and the first medicine dispensing module is used for controlling the medicine dispensing equipment 2 to complete the medicine dispensing operation of the plurality of first prescriptions.
In this embodiment, the following modules are further included:
a second dispensing module for, for each first prescription: and controlling the medicine dispensing device 2 to complete the medicine dispensing operation of the medicine types when the medicine dispensing quantity of any medicine type in the first prescription is determined to be less than or equal to the total storage quantity of the medicine types in the medicine dispensing device 2, and the sum of the medicine dispensing quantities of the medicine types is modified to be zero in the first prescription.
In this embodiment, the prescription obtaining module is further configured to: receiving N second prescriptions, wherein N is a natural number; generating an empty list and an empty set, wherein the set is used for storing the drug types and the cumulant thereof, and the corresponding cumulant is zero when the drug types are added into the set for the first time; based on the preset order, the following operations are carried out on each second prescription: when all the first medicine types in the second prescription meet that the medicine dispensing quantity of the first medicine types is less than or equal to the total storage quantity of the first medicine types in the medicine dispensing device 2, controlling the medicine dispensing device 2 to complete the medicine dispensing operation of the second prescription; otherwise, when any second medicine type in the second prescription satisfies "the number of dispensed medicines of the second medicine type + the cumulative amount corresponding to the second medicine type + the total storage amount of the second medicine type in the dispensing apparatus 2+ the total storage amount of the second medicine type in the secondary library 1", adding all the second medicine types in the second prescription to a set, increasing the cumulative amount of the second medicine type by the number of dispensed medicines of the second medicine type corresponding to the second prescription in the set, and adding the second prescription to the list; all second prescriptions in the list constitute first prescriptions.
In this embodiment, the following modules are further included: a second dispensing module for further performing the following for each second prescription: when the presence of the third medicine type in the second prescription satisfies "the dispensing quantity of the third medicine type + the accumulated amount corresponding to the third medicine type > the total storage amount of the third medicine type in the dispensing apparatus 2+ the total storage amount of the third medicine type in the secondary library 1", the alarm information is derived.
In this embodiment, the medicine taking module is further configured to: and acquiring the medicines corresponding to the types of the medicines to be supplemented from the secondary library 1 and storing the medicines into the medicine dispensing equipment 2, so that the total storage capacity of the types of the medicines to be supplemented in the medicine dispensing equipment 2, namely the sum of the medicine dispensing quantities of the types of the medicines to be supplemented in the first prescriptions is not more than 0 and not more than a preset threshold value, wherein the preset threshold value is more than 0.
This embodiment three provides a drug library, the drug library includes: the system comprises a secondary library 1 and a dispensing device 2, wherein the secondary library 1 stores medicines of a plurality of medicine types; the dispensing equipment 2 is used for receiving and storing medicines from the secondary library 1 and can complete dispensing operation; the medicine dispensing device comprises a memory and a processor, wherein the memory stores a computer program capable of running on the processor, and the processor executes the program to execute the steps in the medicine dispensing method in the first embodiment.
The fourth embodiment provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the steps in the medication dispensing method of the first embodiment.
The fifth embodiment provides a medicine outlet method of a medicine warehouse, which comprises the following steps:
step 1: acquiring a plurality of prescriptions, and judging whether the total stock of each medicine in the prescriptions in a secondary library and a dispensing device is enough; if the number of the prescription is enough, controlling the medicine dispensing equipment to complete the medicine dispensing work of the prescription; if the medicine is not enough, the medicine dispensing work of the medicine with enough total stock in the prescription is completed firstly, and the medicine with the insufficient stock is split, wherein the splitting method comprises the following steps: counting the number of each medicine lacking according to medicine classification;
step 2: if the number of prescriptions for which the dispensing work has not been completed reaches a certain number value (e.g., 24, etc.), then step 3 is performed, otherwise step 1 is continuously performed;
here, in step 1 and step 2, if the number of a certain medicine in one prescription is insufficient, the dispensing method does not wait but continues dispensing of the next prescription; for those prescriptions that cannot be dispensed, the prescription is first dispensed with enough medicine, then the prescriptions are split, and the medicine with insufficient quantity is counted, that is, the quantity of each medicine with insufficient quantity is counted.
And step 3: because the number of the medicines lack due to each insufficient number is counted, at this time, the secondary library can be controlled to output enough medicines to the medicine dispensing equipment, and then the medicine dispensing equipment can dispense medicines.
Here, in step 3, the missing medicines are collectively called from the secondary library into the medicine dispensing device, and the medicine dispensing operation is completed, that is, the medicine dispensing process can be performed on a plurality of prescriptions, so that the work efficiency is high.
It should be understood that although the present description refers to embodiments, not every embodiment contains only a single technical solution, and such description is for clarity only, and those skilled in the art should make the description as a whole, and the technical solutions in the embodiments can also be combined appropriately to form other embodiments understood by those skilled in the art.
The above-listed detailed description is only a specific description of a possible embodiment of the present invention, and they are not intended to limit the scope of the present invention, and equivalent embodiments or modifications made without departing from the technical spirit of the present invention should be included in the scope of the present invention.

Claims (8)

1. A method for dispensing a drug from a drug depot, the drug depot comprising: the system comprises a secondary library (1) and a dispensing device (2), wherein the secondary library (1) stores medicines of a plurality of medicine types; the dispensing equipment (2) is used for receiving and storing medicines from the secondary library (1) and can complete dispensing operation; the method is characterized by comprising the following steps:
obtaining a plurality of first prescriptions, wherein the first prescriptions comprise a plurality of medicine types and the dispensing quantity corresponding to each medicine type; in the first prescriptions, the sum of the dispensing quantities of each medicine type is less than or equal to the total storage quantity of the medicine types in the secondary library (1) and the total storage quantity of the medicine types in the dispensing equipment (2);
obtaining a plurality of types of medicines to be supplemented from the plurality of first prescriptions, wherein the total storage amount of each type of medicine to be supplemented in the medicine dispensing device (2) is less than the sum of the medicine dispensing amounts in the plurality of first prescriptions;
the following operations are performed for each drug type to be replenished: acquiring the medicines corresponding to the medicine types to be supplemented from the secondary library (1) and storing the medicines into the medicine dispensing equipment (2), so that the sum of the medicine dispensing quantity of the medicine types to be supplemented in the first prescriptions is less than or equal to the total storage quantity of the medicines in the medicine dispensing equipment (2);
controlling the dispensing device (2) to complete the dispensing operations of the plurality of first prescriptions.
2. The method for dispensing a drug according to claim 1, further comprising the steps of:
for each first recipe the following is performed: and controlling the medicine dispensing device (2) to complete the medicine dispensing operation of the medicine types when the medicine dispensing quantity of any medicine type in the first prescription is determined to be less than or equal to the total storage quantity of the medicine types in the medicine dispensing device (2), and the sum of the medicine dispensing quantities of the medicine types is modified to be zero in the first prescription.
3. The method for dispensing a medicine according to claim 1, wherein the step of obtaining a plurality of first prescriptions comprises:
receiving N second prescriptions, wherein N is a natural number;
generating an empty list and an empty set, wherein the set is used for storing the drug types and the cumulant thereof, and the corresponding cumulant is zero when the drug types are added into the set for the first time;
based on the preset order, the following operations are carried out on each second prescription: when all the first medicine types in the second prescription meet that the dispensing quantity of the first medicine types is less than or equal to the total storage quantity of the first medicine types in the dispensing equipment (2), controlling the dispensing equipment (2) to complete the dispensing operation of the second prescription; otherwise, when any second medicine type in the second prescription satisfies 'the number of medicines dispensed for the second medicine type + the cumulative amount corresponding to the second medicine type + the total storage amount of the second medicine type in the medicine dispensing device (2) + the total storage amount of the second medicine type in the secondary library (1)', then all the second medicine types in the second prescription are added to the set, the cumulative amount of the second medicine type is increased by the number of medicines dispensed for the second medicine type in the second prescription in the set, and the second prescription is added to the list;
all second prescriptions in the list constitute first prescriptions.
4. The method of dispensing medication according to claim 3, further comprising the steps of:
the following is also performed for each second prescription: when the presence of the third medicine type in the second prescription satisfies "the number of dispensed medicines of the third medicine type + the accumulated amount corresponding to the third medicine type > the total storage amount of the third medicine type in the dispensing device (2) + the total storage amount of the third medicine type in the secondary library (1)", alarm information is derived.
5. The dispensing method according to claim 1, wherein the step of obtaining the medicine corresponding to the type of the medicine to be replenished from the secondary library (1) and storing the medicine into the dispensing device (2) so that the sum of the dispensing quantities of the types of the medicine to be replenished in the first prescriptions is less than or equal to the total storage quantity of the medicines in the dispensing device (2) comprises the following steps:
and acquiring the medicines corresponding to the types of the medicines to be supplemented from the secondary library (1) and storing the medicines into the medicine dispensing equipment (2), so that the total storage amount of the types of the medicines to be supplemented in the medicine dispensing equipment (2), namely the sum of the medicine dispensing amounts of the types of the medicines to be supplemented in the first prescriptions, is not more than 0 and is not more than a preset threshold value, wherein the preset threshold value is more than 0.
6. A dispensing device for a drug depot, the drug depot comprising: the system comprises a secondary library (1) and a dispensing device (2), wherein the secondary library (1) stores medicines of a plurality of medicine types; the dispensing equipment (2) is used for receiving and storing medicines from the secondary library (1) and can complete dispensing operation; the system is characterized by comprising the following modules:
the prescription obtaining module is used for obtaining a plurality of first prescriptions, and the first prescriptions comprise a plurality of medicine types and the medicine dispensing quantity corresponding to each medicine type; in the first prescriptions, the sum of the dispensing quantities of each medicine type is less than or equal to the total storage quantity of the medicine types in the secondary library (1) and the total storage quantity of the medicine types in the dispensing equipment (2);
the screening module is used for acquiring a plurality of medicine types to be supplemented from the plurality of first prescriptions, wherein the total storage amount of each medicine type to be supplemented in the medicine dispensing device (2) is less than the sum of the medicine dispensing amount of the medicine type to be supplemented in the plurality of first prescriptions;
the medicine taking module is used for carrying out the following operations on each medicine type to be supplemented: acquiring the medicines corresponding to the medicine types to be supplemented from the secondary library (1) and storing the medicines into the medicine dispensing equipment (2), so that the sum of the medicine dispensing quantity of the medicine types to be supplemented in the first prescriptions is less than or equal to the total storage quantity of the medicines in the medicine dispensing equipment (2);
the first medicine dispensing module is used for controlling the medicine dispensing equipment (2) to complete the medicine dispensing operation of the first prescriptions.
7. A drug depot, the drug depot comprising: the system comprises a secondary library (1) and a dispensing device (2), wherein the secondary library (1) stores medicines of a plurality of medicine types; the dispensing equipment (2) is used for receiving and storing medicines from the secondary library (1) and can complete dispensing operation; memory and processor, the memory storing a computer program operable on the processor, wherein the processor when executing the program performs the steps of the method of claim 1 to 5.
8. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of dispensing medication according to any one of claims 1-5.
CN202010240281.3A 2020-03-31 2020-03-31 Medicine outlet method and device for medicine warehouse, medicine warehouse and storage medium Pending CN111445975A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010240281.3A CN111445975A (en) 2020-03-31 2020-03-31 Medicine outlet method and device for medicine warehouse, medicine warehouse and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010240281.3A CN111445975A (en) 2020-03-31 2020-03-31 Medicine outlet method and device for medicine warehouse, medicine warehouse and storage medium

Publications (1)

Publication Number Publication Date
CN111445975A true CN111445975A (en) 2020-07-24

Family

ID=71649245

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010240281.3A Pending CN111445975A (en) 2020-03-31 2020-03-31 Medicine outlet method and device for medicine warehouse, medicine warehouse and storage medium

Country Status (1)

Country Link
CN (1) CN111445975A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112652374A (en) * 2020-12-16 2021-04-13 北京华兴长泰物联网技术研究院有限责任公司 Inventory base number adjusting system and method for drug library

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101140452A (en) * 2007-10-11 2008-03-12 苏州艾隆科技有限公司 Automatization drug-store computer control managing method and system
CN102658945A (en) * 2012-05-16 2012-09-12 北京航空航天大学 Automatic system for delivery control and management of drugs of pharmacy
CN103144913A (en) * 2012-10-08 2013-06-12 苏州艾隆科技股份有限公司 Abnormal medicine outlet treatment method and system of quick dispensing equipment
CN103158990A (en) * 2012-12-19 2013-06-19 苏州艾隆科技股份有限公司 Method and system for automatic compensation dispensing
CN103693344A (en) * 2013-12-06 2014-04-02 深圳市瑞驰智能系统有限公司 Medicine shortage prompting method for automated pharmacy and automated pharmacy equipment
CN104555223A (en) * 2015-01-06 2015-04-29 北京航空航天大学 Control and management system of rapid medicine loading system
CN108657709A (en) * 2018-05-18 2018-10-16 苏州吉成智能科技有限公司 Drug compensation process
CN109607030A (en) * 2018-12-05 2019-04-12 苏州大学附属第医院 Automatic medicine-dispensing system and control method
CN110264139A (en) * 2019-06-24 2019-09-20 重庆医药高等专科学校 Monitor drug data bank real-time judge analysis method
CN110516766A (en) * 2019-08-13 2019-11-29 刘芸强 A kind of medicine frame and input method for drug checking

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101140452A (en) * 2007-10-11 2008-03-12 苏州艾隆科技有限公司 Automatization drug-store computer control managing method and system
CN102658945A (en) * 2012-05-16 2012-09-12 北京航空航天大学 Automatic system for delivery control and management of drugs of pharmacy
CN103144913A (en) * 2012-10-08 2013-06-12 苏州艾隆科技股份有限公司 Abnormal medicine outlet treatment method and system of quick dispensing equipment
CN103158990A (en) * 2012-12-19 2013-06-19 苏州艾隆科技股份有限公司 Method and system for automatic compensation dispensing
CN103693344A (en) * 2013-12-06 2014-04-02 深圳市瑞驰智能系统有限公司 Medicine shortage prompting method for automated pharmacy and automated pharmacy equipment
CN104555223A (en) * 2015-01-06 2015-04-29 北京航空航天大学 Control and management system of rapid medicine loading system
CN108657709A (en) * 2018-05-18 2018-10-16 苏州吉成智能科技有限公司 Drug compensation process
CN109607030A (en) * 2018-12-05 2019-04-12 苏州大学附属第医院 Automatic medicine-dispensing system and control method
CN110264139A (en) * 2019-06-24 2019-09-20 重庆医药高等专科学校 Monitor drug data bank real-time judge analysis method
CN110516766A (en) * 2019-08-13 2019-11-29 刘芸强 A kind of medicine frame and input method for drug checking

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112652374A (en) * 2020-12-16 2021-04-13 北京华兴长泰物联网技术研究院有限责任公司 Inventory base number adjusting system and method for drug library
CN112652374B (en) * 2020-12-16 2024-03-29 北京华兴长泰物联网技术研究院有限责任公司 Inventory base adjusting system and method for medicine library

Similar Documents

Publication Publication Date Title
US8627639B2 (en) Method and system for determining an order of fill for a plurality of pills in a multi-dose medicament container
US20140278466A1 (en) Pharmacy workflow
CN111932186A (en) Order processing method, device, equipment, system and storage medium
US20110131056A1 (en) System and method for management of pharmacy workflow
US9361748B2 (en) Pharmaceutical dispensing systems, methods and computer program products for determining and displaying replenishment information
CN111377180B (en) Medicine taking method and device for medicine shelf, control method and device
US20240193544A1 (en) Goods sorting method and device, warehouse system, and storage medium
WO2018107759A1 (en) System and method for assisting doctor to issue prescription
CN113947317A (en) Material warehousing method, material ex-warehouse method, device, scheduling equipment and system
JP7470911B2 (en) Medicine Packaging Unit
CN111445975A (en) Medicine outlet method and device for medicine warehouse, medicine warehouse and storage medium
Pazour et al. A multiple-drawer medication layout problem in automated dispensing cabinets
JP6177180B2 (en) Dispensing trend analysis program
McGinnis et al. Formalizing ISA-95 level 3 control with smart manufacturing system models
CN111408551B (en) Method and device for sorting medicines in medicine warehouse, medicine warehouse and storage medium
US20210027874A1 (en) Computerised method for managing end-to-end pill dispensing, packing, forecasting, ordering, and space planning in a networked system
Yuan et al. The storage location assignment problem of automated drug dispensing machines
CN110265109B (en) Combined intelligent traditional Chinese medicine cabinet system and control method
CN111439519B (en) Medicine taking method and device for medicine library, terminal and storage medium
Wang et al. Drug dispenser replenishment optimization via mixed integer programming in central fill pharmacy systems
US20150274333A1 (en) Apparatuses, systems, and methods for dispensing medication
CN103144913A (en) Abnormal medicine outlet treatment method and system of quick dispensing equipment
CN113096786A (en) Multi-terminal medical information interconnection system based on intelligent medical treatment and big data
CN111014048A (en) Method and device for controlling distribution equipment to distribute goods
CN111408550B (en) Method and device for sorting medicine, medicine warehouse and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20200724

RJ01 Rejection of invention patent application after publication