Dispensing system for small-package traditional Chinese medicine decoction pieces

By designing a small-packaged Chinese herbal medicine adjustment system, the work order decomposition and delivery mechanism of the medicine cabinet and the adjustment terminal are used to determine the adjustment priority according to the drug specifications, the problem of low efficiency and accuracy of traditional Chinese medicine adjustment is solved, and efficient and accurate drug distribution and medication safety are achieved.

CN120328003APending Publication Date: 2025-07-18CHENGDU YH INTELLIGENT EQUIP TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510715089.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-05-29
Publication Date
2025-07-18

AI Technical Summary

Technical Problem

Currently, the adjustment of Chinese herbal medicine tablets is mainly manual operation, with low efficiency and low accuracy, and the automated drug distribution equipment cannot effectively deal with drug warehouses with different drug specifications, resulting in drug consumption not meeting actual needs.

Method used

A small-packaged Chinese herbal medicine adjustment system is designed, including a medicine cabinet and a adjustment terminal. The efficient distribution of drugs is achieved through work order decomposition units and conveying mechanisms, the adjustment priority is determined according to the drug specifications, and the drug adjustment process is optimized through pre-drug and dynamic distribution strategies.

Benefits of technology

It improves the efficiency and accuracy of traditional Chinese medicine adjustment, optimizes drug distribution, meets actual needs, ensures drug safety, and has adaptability and high reliability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120328003A_ABST
    Figure CN120328003A_ABST
Patent Text Reader

Abstract

The invention belongs to the technical field of medicine dispensing equipment, and discloses a small-package traditional Chinese medicine decoction piece dispensing system which comprises a plurality of subsystems, and any subsystem comprises a medicine cabinet and a dispensing terminal. The medicine cabinet is provided with a plurality of medicine bins, each medicine bin is provided with a medicine discharging device, the medicine cabinet is provided with a conveying mechanism, and the conveying mechanism is provided with a medicine storage container; the dispensing terminal is used for receiving prescription information and comprises a work order decomposition unit, and the work order decomposition unit decomposes the prescription information into a plurality of medicine dispensing work orders and distributes the decomposed medicine dispensing work orders to medicine bins storing corresponding medicines so as to output control instructions. And the dispensing system determines dispensing priorities according to the specifications of the same medicines so as to distribute the medicine dispensing work orders to the medicine bins with the high priorities based on the dispensing priorities. The traditional Chinese medicine dispensing efficiency can be effectively improved, the accuracy problem generated in the dispensing process is solved, a more excellent medicine dispensing strategy is achieved, and therefore the actual requirement is better met.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the technical field of medicine dispensing equipment, and in particular relates to a small-package Chinese medicine decoction piece dispensing system. Background Art

[0002] Currently, the dispensing of Chinese herbal medicines is mainly done manually. Due to the complexity of Chinese medicine prescriptions, the manual dispensing process has significant disadvantages. For example, the efficiency of manual weighing and dispensing is low, and it is difficult to meet the large number of prescription demands during peak periods. In addition, dosage errors are prone to occur in the dispensing process, affecting the safety of medication.

[0003] Therefore, how to effectively improve the efficiency and accuracy of Chinese medicine dispensing is one of the urgent problems to be solved in the field of traditional Chinese medicine. In response to this, some manufacturers have designed and developed automated medicine dispensing equipment, which can effectively reduce the problems of low efficiency and low accuracy in the manual dispensing process through automatic intelligent actions. However, since the types of medicines stored in some medicine warehouses are the same but the specifications of the medicines are different, this makes it impossible for the medicine dispensing equipment to complete the work order allocation well, resulting in the consumption of medicines in some medicine warehouses not meeting actual needs. Summary of the invention

[0004] In order to solve the above technical problems, the present invention discloses a small-package Chinese medicine decoction piece dispensing system, which can effectively improve the efficiency of Chinese medicine dispensing, solve the accuracy problems arising from the dispensing process, and has a better medicine distribution strategy, thereby better meeting actual needs.

[0005] The specific technical solutions of the present invention are as follows:

[0006] A small package Chinese medicine slice dispensing system includes multiple subsystems, any one of which includes:

[0007] A medicine cabinet, wherein the medicine cabinet is provided with a plurality of medicine bins, wherein the medicines in any two medicine bins are of different types or the specifications of the same type of medicines are different, each medicine bin is provided with a medicine dispensing device, which can release a corresponding amount of medicines according to a control instruction, and the medicine cabinet is provided with a conveying mechanism, wherein the conveying mechanism has a medicine storage container for transporting the medicines released from the medicine bins;

[0008] A dispensing terminal is used to receive prescription information, the dispensing terminal includes a work order decomposition unit, the work order decomposition unit decomposes the prescription information into a plurality of medication work orders, distributes the decomposed medication work orders to a medicine warehouse storing corresponding medicines to output control instructions, the dispensing system determines the dispensing priority according to the specifications of the same medicine, and distributes the medication work orders to a medicine warehouse with a high priority based on the dispensing priority, and the dispensing priority of a high-specification medicine is higher than that of a low-specification medicine;

[0009] The medicine storage containers correspond to prescriptions one by one, and the conveying mechanism moves intermittently so that the medicine storage containers can stay at each corresponding medicine bin to receive medicine.

[0010] Preferably, the dispensing terminal includes a special drug management unit which identifies whether the prescription information contains special drugs. The dispensing terminal decomposes different non-special drugs into multiple drug dispensing work orders and generates an artificial drug replenishment list for special drugs.

[0011] Preferably, the dispensing terminal includes a pre-dispensing control unit. When there is no previous task for the drug bin corresponding to a drug dispensing work order, the pre-dispensing control unit controls the drug discharging device in the drug bin to pre-store a corresponding quantity of drugs at the exit of the drug bin. When the storage container arrives at the position of this drug bin, it controls the drug discharging device in the drug bin to throw the drugs pre-stored at the exit of the drug bin into the storage container.

[0012] Preferably, it further includes a main system which monitors the online status of each subsystem. The main system receives prescription information and allocates the prescription to one of the online subsystems for dispensing and drug discharging.

[0013] Preferably, the main system includes a scheduling unit which determines whether a subsystem meets the allocation requirements through at least one of the following conditions:

[0014] a. The subsystem is in a receiving permission state;

[0015] b. The number of prescriptions currently waiting for dispensing in the subsystem does not exceed the maximum number of prescriptions that the subsystem can process;

[0016] c. The prescription does not contain drugs with a dosage exceeding the threshold;

[0017] d. The drug inventory in the subsystem is sufficient.

[0018] Preferably, the maximum number of prescriptions N that the subsystem can process = the maximum concurrent dosage X of the subsystem / the average dosage Y of each prescription;

[0019] When the number of prescriptions M waiting for dispensing in the subsystem ≥ N, the main system suspends allocating prescriptions to this subsystem.

[0020] Preferably, it further includes a dedicated system. When the prescription contains drugs with a dosage exceeding the threshold, the main system allocates the prescription to the dedicated system for dispensing;

[0021] If the drug inventory in the dedicated system is insufficient and / or the dedicated system is not online, the main system allocates the prescription to the subsystem for dispensing, or the main system prompts the physician for manual dispensing.

[0022] Preferably, the main system counts the current number of dispensed agents for each subsystem, sorts all the subsystems according to the current number of dispensed agents to obtain the allocation priority, and the main system allocates the prescription to the subsystem with a high priority based on the allocation priority. The allocation priority of the subsystem with a smaller current number of dispensed agents is higher than that of the subsystem with a larger current number of dispensed agents.

[0023] Preferably, if all subsystems do not meet the prescription allocation requirements, the prescription is added to the waiting queue. When any subsystem meets the allocation requirements, the prescription is allocated to the subsystem that meets the allocation requirements for prescription dispensing.

[0024] Preferably, the main system also monitors whether each subsystem has a fault. If a subsystem fails during the prescription dispensing process, the subsystem withdraws the prescription. The main system receives the withdrawn prescription and redistributes the remaining undispensed drugs in the prescription to the non-failed subsystems for dispensing, or adds the remaining undispensed drugs to the waiting queue.

[0025] A dispensing method for small-packaged traditional Chinese medicine decoction pieces, based on the dispensing system described above, includes:

[0026] The main system obtains prescription information, and the main system allocates the prescription to a qualified subsystem for dispensing and dosing;

[0027] The subsystem decomposes the prescription into multiple dosing work orders based on the prescription information;

[0028] Determine the dispensing priority according to the specification level of the same drug, and allocate the dosing work order to the drug warehouse with a high priority based on the dispensing priority. The dispensing priority of high-specification drugs is higher than that of low-specification drugs;

[0029] The subsystem outputs a control instruction to the drug discharging device in the corresponding drug warehouse according to the dosing work order and the dispensing priority, so as to release the drugs in the drug warehouse into the storage container moving along the conveying mechanism.

[0030] A computer-readable storage medium, on which a computer program is stored, and when the computer program instructions are executed by a processor, the dispensing method for small-packaged traditional Chinese medicine decoction pieces described above is implemented.

[0031] An electronic device, comprising:

[0032] A memory for storing executable instructions; and

[0033] A processor for executing the executable instructions to implement the dispensing method for small-packaged traditional Chinese medicine decoction pieces described above.

[0034] Compared with the prior art, the present invention can not only achieve efficient distribution of prescriptions, but also dynamically formulate dispensing plans according to drug specifications and inventory, giving priority to using high-specification drugs for dispensing to achieve accurate drug dispensing; the present invention effectively shortens the dispensing time by pre-dosing in the idle drug storage, thereby improving the overall drug dispensing efficiency; the present invention can automatically generate a replenishment list for special drugs to ensure medication safety; in addition, based on the dynamic prescription distribution strategy and the intelligent migration plan in case of failure, the system has strong adaptability and high reliability. BRIEF DESCRIPTION OF THE DRAWINGS

[0035] Figure 1 is a flowchart of the present invention;

[0036] Figure 2 is a schematic diagram of the setting of the subsystem in the present invention;

[0037] Figure 3 is a schematic diagram of the drug dispensing device in the embodiment of the present invention;

[0038] Figure 4 is a schematic diagram of the bag feeding mechanism in the embodiment of the present invention;

[0039] Figure 5 is a schematic diagram of the bag cutting mechanism in the embodiment of the present invention;

[0040] Figure 6 is a schematic diagram of the bag throwing mechanism in the embodiment of the present invention.

[0041] In the figure: 100 - medicine cabinet; 200 - drug dispensing device; 201 - bag feeding mechanism; 202 - bag cutting mechanism; 203 - bag throwing mechanism; 300 - conveying mechanism; 400 - packaging machine; 500 - manual review table; 1 - drug storage; 2 - feeding belt 1; 3 - feeding belt 2; 4 - roller 1; 5 - roller 2; 6 - clamping member 1; 7 - clamping member 2; 8 - driving member. DETAILED DESCRIPTION OF THE EMBODIMENTS

[0042] In order to enable those skilled in the art to better understand the technical solutions of the present invention, the present invention will be further described in detail below in conjunction with the specific embodiments.

[0043] Such as Figure 1 And Figure 2As shown in the figure, a dispensing system for small-packaged traditional Chinese medicine decoction pieces includes multiple subsystems. Any one of the subsystems includes a medicine cabinet 100 and a dispensing terminal. The medicine cabinet 100 is provided with a number of medicine bins 1. The types of medicines in any two medicine bins 1 are different or the specifications of the same type of medicine are different. Each medicine bin 1 is provided with a medicine discharging device 200, which can release a corresponding quantity of medicine according to a control instruction. The medicine cabinet 100 is configured with a conveying mechanism 300, and the conveying mechanism 300 has a medicine storage container for transporting the medicine released by the medicine bin 1. The dispensing terminal is used to receive prescription information. The dispensing terminal includes a work order decomposition unit. The work order decomposition unit decomposes the prescription information into multiple medicine dispensing work orders, and distributes the decomposed medicine dispensing work orders to the medicine bins 1 storing the corresponding medicines to output control instructions. The dispensing system determines the dispensing priority according to the high or low specifications of the same medicine, and distributes the medicine dispensing work orders to the medicine bins 1 with high priority based on the dispensing priority. The dispensing priority of high-specification medicines is higher than that of low-specification medicines. The medicine storage container corresponds to each prescription one by one, and the conveying mechanism 300 moves intermittently so that the medicine storage container can stop at each corresponding medicine bin 1 to receive medicine.

[0044] This embodiment has A medicine cabinets 100. Therefore, this embodiment has A conveying mechanisms 300 arranged corresponding to the medicine cabinets 100. Each medicine cabinet 100 has a×b medicine bins 1, where A, a, and b are all positive integers. Each medicine bin 1 stores one type of medicine of one specification. Therefore, the medicines in any two medicine bins 1 are of different categories or different specifications of the same category. The specification in this embodiment refers to the weight of the medicine. The medicines stored in the medicine bins 1 in this embodiment are small-packaged decoction pieces in connected bags. That is to say, the amount of medicine in the same connected bag is different to adapt to the rapid dispensing of prescriptions. The medicines for each prescription are dispensed at the same medicine cabinet 100, and different prescription tasks do not affect each other.

[0045] Such as Figures 3 to 6As shown, in this embodiment, the medicine delivery device 200 includes a bag feeding mechanism 201, a bag cutting mechanism 202, and a bag throwing mechanism 203; the bag feeding mechanism 201 includes a first feeding belt 2 and a second feeding belt 3 which are oppositely arranged, and the first feeding belt 2 and the second feeding belt 3 drive a number of consecutive packaging bags containing materials to move between the first feeding belt 2 and the second feeding belt 3 so as to be transported to the bag cutting mechanism 202, and the bag cutting mechanism 202 opens and closes to cut the consecutive packaging bags into a planned number of packaging bags; the bag throwing mechanism 203 includes a first roller 4 and a second roller 5 which are oppositely arranged, and the first roller 4 and the second roller 5 throw the planned number of packaging bags out of the medicine delivery device 200 between the first roller 4 and the second roller 5; the linear velocity of the packaging bag moving between the first feeding belt 2 and the second feeding belt 3 is less than its linear velocity moving between the first roller 4 and the second roller 5. The bag cutting mechanism 202 includes a fixed clamping member 6, and a clamping member 7 that can move towards or away from the clamping member 6; it also includes a driving member 8 for driving the clamping member 7 to move. The consecutive packaging bags containing materials are the small package decoction pieces with connected bags, and the movement of the first feeding belt 2 and the second feeding belt 3 can realize the transportation of the small package decoction pieces. Since the linear velocity of the packaging bag moving between the first feeding belt 2 and the second feeding belt 3 is less than its linear velocity moving between the first roller 4 and the second roller 5, when the small package decoction pieces reach the bag throwing mechanism 203, due to the speed difference, the packaging bag can be flattened at the bag cutting mechanism 202, thus avoiding cutting deviation and bursting during the bag cutting process. After being flattened, both the bag feeding mechanism 201 and the bag throwing mechanism 203 stop rotating, and the bag cutting mechanism 202 cuts the corresponding number of packaging bags. After cutting is completed, the bag throwing mechanism 203 starts. Due to its speed advantage, it can well throw the cut packaging bags out of the medicine bin 1 and into the medicine storage container of the conveying mechanism 300.

[0046] The quantity of the medicine delivery work orders is related to the medicines involved in the prescription. For example, if a prescription consists of B doses of medicines, then the medicine delivery work order is decomposed into B work orders, and these B work orders are respectively assigned to the corresponding medicine bins 1. Therefore, B different medicine bins 1 storing medicines can throw out B doses of medicines, thus meeting the dispensing requirements of this prescription. Further, since the dispensing priority of high - specification medicines is higher than that of low - specification medicines, for medicines of the same type but different specifications stored, high - specification medicines are preferentially dispensed. In other words, when there are Astragalus membranaceus at 10 g / bag and Astragalus membranaceus at 5 g / bag, if 10 g / bag Astragalus membranaceus is needed, then 10 g / bag Astragalus membranaceus is preferentially dispensed. If the 10 g / bag Astragalus membranaceus is used up, then two bags of 5 g / bag Astragalus membranaceus are dispensed, that is, the planned number of packaging bags cut by the bag cutting mechanism 202 is 2 bags. Of course, if 5 g / bag Astragalus membranaceus is needed, then 5 g / bag Astragalus membranaceus is normally dispensed.

[0047] The medicine cabinet 100 of this embodiment has a×b medicine bins 1. Assuming that a is the number of medicine bins 1 in the height direction of the medicine cabinet 100 and b is the number of medicine bins 1 in the length direction of the medicine cabinet 100, the intermittent movement of the conveying mechanism 300 covers b medicine bins 1. Specifically, for the first action of the conveying mechanism 300, in the length direction of the medicine cabinet 100, the medicine storage container is located below the first column of medicine bins 1, so that the medicines in the a medicine bins 1 at the first column of medicine bins 1 can all be thrown into the medicine storage container. When the b-th action of the conveying mechanism 300 occurs, in the length direction of the medicine cabinet 100, the medicine storage container is located below the b-th column of medicine bins 1, so that the medicines in the a medicine bins 1 at the b-th column of medicine bins 1 can all be thrown into the medicine storage container. Further, in order to improve efficiency, the intermittent movement of the conveying mechanism 300 does not necessarily feed at a movement length of 1 column relative to the medicine cabinet 100. According to the prescription information, it can also feed at a movement length of C columns relative to the medicine cabinet 100, where C is a positive integer greater than or equal to 1, and the number C represents the number of columns between two adjacent medicine bins 1.

[0048] In this embodiment, the subsystem further includes a packaging machine 400. The packaging machine 400 is located at the end of the conveying mechanism 300 and performs packaging after the dispensing of the medicines involved in the prescription is completed. The packaging machine 400 can also be arranged at the end of all subsystems. That is to say, a packaging machine 400 is arranged at the end of all conveying mechanisms 300, and the prescriptions transported by each conveying mechanism 300 all enter the same packaging machine 400 for packaging. The packaging machine 400 can be a common packing device and can be purchased commercially, so no further description will be given here. The packaging machine 400 can print contents such as QR codes, prescription numbers, hospitals, patient information, dosage numbers, dates, etc. on the prescription packaging bags. The packaging bags are transported to the manual prescription review table. The manual prescription review table is equipped with a barcode scanner. The dispensing staff manually reviews the accuracy of the automatically dispensed medicines, supplements or removes excess medicines, and processes the manual replenishment of special medicines (such as narcotic drugs). Thus, in this embodiment, the dispensing terminal includes a special medicine management unit. The special medicine management unit identifies whether the prescription information contains special medicines. The dispensing terminal decomposes different non-special medicines into multiple medicine dispensing work orders and generates a manual replenishment list for special medicines.

[0049] In this embodiment, the dispensing terminal includes a pre-dosing control unit. When there is no previous task for the medicine bin 1 corresponding to the dosing work order, the pre-dosing control unit controls the medicine discharging device 200 in the medicine bin 1 to pre-store a corresponding quantity of medicines at the outlet of the medicine bin 1. When the medicine storage container arrives at the position of the medicine bin 1, it controls the medicine discharging device 200 in the medicine bin 1 to throw the medicines pre-stored at the outlet of the medicine bin 1 into the medicine storage container. After the dosing work order enters the dosing queue of the corresponding medicine bin 1, the subsystem controls all the medicine bins 1 to dose one by one in the queue order, with the length direction of the medicine cabinet 1 as the reference, from the 1st column of medicine bins 1 to the Yth column of medicine bins 1. At this time, the idle medicine bins 1 perform the pre-dosing operation in advance, and the medicines wait at the outlet of the medicine bins 1, thus improving the dispensing efficiency. Further, during the pre-dosing process, the bag cutting mechanism 202 cuts the medicine packaging bags of the planned quantity and maintains the downward cutting state, so that the bag cutting mechanism 202 presses the end of the packaging bag in front of the cutting knife. After the medicine storage container is transported in place, the bag cutting mechanism 202 is lifted, and the bag throwing mechanism 203 is driven to throw the packaging bags into the medicine storage container.

[0050] Under actual working conditions, there are multiple prescriptions to be dispensed in the same time period. Therefore, there are multiple subsystems, that is, multiple prescriptions can be dispensed at the same time. In this embodiment, a main system is used for regulation and distribution to better improve the prescription dispensing efficiency. The main system receives the prescriptions issued by doctors and pushes the prescriptions to the designated dispensing terminals through a multi-dimensional distribution strategy. Specifically, it further includes a main system. The main system monitors the online status of each subsystem. The main system receives prescription information and distributes the prescriptions to one of the subsystems in the online state for dispensing and dosing. The online state refers to whether the subsystem is connected to the main system. Usually, the main system uses a polling algorithm to push the prescriptions to different subsystems, and only pushes one prescription to the online subsystems each time, so as to achieve distribution, and thus achieve load balancing among the subsystems.

[0051] The main system includes a scheduling unit. Based on the main system obtaining the online information of the subsystems, the scheduling unit determines whether the subsystem meets the distribution requirements through at least one of the following conditions a to d.

[0052] a. The subsystem is in the receiving permission state.

[0053] Whether the subsystem is in the receiving permission state is related to whether the main system can distribute the prescription to the subsystem. The permission state refers to whether the subsystem can receive newly distributed prescriptions. In cases such as subsystem failure and subsystem maintenance, it is in the rejection state.

[0054] b. The current number of prescriptions waiting to be dispensed in the subsystem does not exceed the maximum number of prescriptions that the subsystem can process.

[0055] If the number of prescriptions currently waiting for adjustment in a subsystem is large, then if a prescription is assigned to this subsystem, the waiting queue of this subsystem will be long, causing adjustment jams and affecting the adjustment efficiency of all prescriptions. At this time, the main system pauses the distribution of new prescriptions to this subsystem, and this subsystem can also change its status to a rejected acceptance status.

[0056] Furthermore, the maximum number of prescriptions that the subsystem can handle N = the maximum concurrent dispensing number X of the subsystem / the average number of doses Y of each prescription; when the number of prescriptions M waiting for adjustment in the subsystem ≥ N, the main system pauses the distribution of prescriptions to this subsystem. This avoids the adjustment jams in the subsystem's pipeline mode and affects the overall prescription adjustment efficiency.

[0057] c. The prescription does not contain drugs with a dose exceeding the threshold dose.

[0058] For prescriptions with the dose of a single drug exceeding the custom threshold, the main system does not randomly assign prescriptions. Specifically, there is also a dedicated system. When the prescription contains drugs with a dose exceeding the threshold dose, the main system assigns the prescription to the dedicated system for adjustment. In other words, when there is a prescription with the dose of a single drug exceeding the custom threshold, the main system designates and assigns this prescription to a preset dedicated system. Before the assignment, verify the remaining stock of the drugs corresponding to this dedicated system, and judge whether the inventory is sufficient to meet the drug dose required by the prescription. If it is satisfied, the main system directly assigns this prescription to the dedicated system; if it is not satisfied, it enters the manual assignment queue or is assigned to other subsystems with sufficient inventory. If the dedicated system is not online, the main system also adds this prescription to the manual assignment queue or assigns it to other subsystems with sufficient inventory. That is to say, if the drug inventory in the dedicated system is insufficient and / or the dedicated system is not online, the main system assigns the prescription to the subsystem for adjustment, or the main system prompts the physician for manual adjustment.

[0059] d. The drug inventory in the subsystem is sufficient.

[0060] In the state where the subsystem is online and allows receiving prescriptions, it is usually necessary to judge in advance whether the drug stock in the subsystem meets the dose requirements of the drugs in the prescription. That is to say, the main system only assigns prescriptions to subsystems that meet the dose requirements.

[0061] If each subsystem cannot meet the distribution requirements of the main system, it is adjusted manually by the physician, and the system maintenance personnel are prompted to perform system maintenance, such as adding drugs, etc. The prescription can also be added to the queuing queue. After the prescription adjustment is completed by the subsystem, it is then assigned by the main system. In other words, if all subsystems do not meet the prescription distribution requirements, this prescription is added to the waiting queue. When any subsystem meets the distribution requirements, this prescription is assigned to the subsystem that meets the distribution requirements for prescription adjustment.

[0062] In this embodiment, in addition to allocating prescriptions according to the dispensing priority, the main system counts the current number of dispensed medications of each subsystem, sorts all the subsystems according to the current number of dispensed medications to obtain the allocation priority, and the main system allocates the prescriptions to the subsystems with high priority based on the allocation priority. The allocation priority of the subsystem with a smaller current number of dispensed medications is higher than that of the subsystem with a larger current number of dispensed medications. A smaller current number of dispensed medications in a subsystem means a relatively low load, that is to say, this subsystem can undertake more dispensing tasks, so it can be used as the subsystem preferentially allocated by the main system, thereby reasonably optimizing the utilization rate and improving the overall dispensing efficiency.

[0063] In this embodiment, the main system also monitors whether each subsystem has a fault. If a subsystem has a fault during the prescription dispensing process, the subsystem withdraws the prescription, and the main system receives the withdrawn prescription, redistributes the remaining medications in the prescription that have not been dispensed to the subsystems without faults for dispensing, or adds the remaining medications that have not been dispensed to the waiting queue. When a prescription consists of B doses of medications, if the subsystem for dispensing has a fault and only B / 2 doses of medications have been dispensed at this time, the remaining B / 2 doses of medications are supplemented and dispensed by another subsystem, or the remaining B / 2 doses of medications are added to the waiting queue of this subsystem, and after the fault is eliminated, the remaining B / 2 doses of medications are dispensed.

[0064] It should be noted that the faults in this embodiment generally refer to the transmission faults of the conveying mechanism 300 and the medication discharging faults of the medication discharging device 200.

[0065] Thus, in this embodiment, after the doctor issues a prescription, the prescription information is transmitted to the pharmacy main system. The main system judges factors such as the status, capacity, and task load of the subsystems according to the allocation strategy, and pushes the prescription to the appropriate subsystem. For special prescriptions with an overdose of a single ingredient, they are designated to be allocated to a dedicated system. Thus, the main system realizes the reception and allocation of prescriptions. After receiving the prescription, the dispensing terminal of the subsystem decomposes the prescription into a medication delivery work order, and combines the medication specifications and inventory conditions to determine the specific dispensing strategy, such as preferentially dispensing astragalus from the 10g specification medicine bin 1 and switching to the 5g specification when the inventory is insufficient. After the medication delivery work order enters the medication delivery queue, the idle medicine bin 1 pre-dispenses medications. When the storage container on the production line moves to the position below the corresponding medicine bin 1, the medicine bin 1 releases the medicine bag into the container, thereby realizing pre-dispensing. When the prescription dispensing is completed, it is transported to the packaging machine 400 by the conveying mechanism 300. The packaging machine 400 packages the medications and sprays and prints relevant information. The packaged medicine bags are transported to the manual prescription review table. The medicine dispensing staff scans the code at the manual review table 500 to review the medications dispensed by the dispensing system, and supplements and summarizes special medications. After completion, the dispensing system prints a prescription receipt. The medicine dispensing staff scans the code and calls a number at the pharmacy window, delivers the medications to the patient, and updates the prescription status in the system to delivered. Thus, the prescription dispensing and medicine delivery are realized through the above process.

[0066] In the above process, if the main system detects a subsystem failure, the subsystem first withdraws the prescription, and the main system receives the withdrawn prescription. Then, the remaining un-dispensed drugs in the prescription are re-allocated to the non-failed subsystems for dispensing, or the remaining un-dispensed drugs are added to the waiting queue. If the inventory check before allocation fails, the main system re-tries to allocate them to other subsystems or let them enter the waiting queue.

[0067] Thus, this embodiment can significantly improve the operation efficiency. Through automated dispensing and pre-dosing, the allocation and dispensing processes are optimized, effectively reducing system idle time and patient waiting time, and the average prescription processing efficiency is effectively improved. This embodiment can ensure the accuracy of dispensing, reduce manual intervention, avoid dosing errors, and at the same time, through the dose verification of drug dispensing, ensure the accuracy and safety of prescription dispensing. This embodiment can strengthen the management of special drugs, achieve precise control of the entire process from management to dispensing of special drugs, reduce safety risks, and meet regulatory requirements. In addition, this embodiment can optimize resource utilization according to the actual situation, use dynamic allocation of prescriptions to balance the load of each subsystem, improve resource utilization rate, and reduce operating costs. Since this embodiment can achieve re-dispensing in case of failure, it can ensure the continuous and stable operation of the system and reduce the downtime caused by failures or prescription problems.

[0068] Thus, this embodiment also discloses a method for dispensing small-packaged traditional Chinese medicine decoction pieces, based on the above-mentioned dispensing system, including:

[0069] S100. The main system obtains prescription information, and the main system allocates the prescription to eligible subsystems for dispensing and dosing;

[0070] S200. The subsystem decomposes the prescription into multiple dosing work orders based on the prescription information;

[0071] S300. Determine the dispensing priority based on the specifications of the same drug. Based on the dispensing priority, allocate the dosing work orders to the high-priority drug warehouse 1. The dispensing priority of high-specification drugs is higher than that of low-specification drugs;

[0072] S400. The subsystem outputs a control instruction to the drug discharging device 200 in the corresponding drug warehouse 1 according to the dosing work order and the dispensing priority, so as to release the drugs in the drug warehouse 1 into the storage container moving along the conveying mechanism 300.

[0073] In step S100, when the main system allocates the prescription to eligible subsystems, it needs to meet at least one basic condition on the basis that the subsystem is in the online state:

[0074] a. The subsystem is in the receiving permission state;

[0075] b. The number of prescriptions currently waiting for adjustment in the subsystem does not exceed the maximum number of prescriptions that the subsystem can process.

[0076] c. The prescription does not contain drugs with a dosage exceeding the threshold.

[0077] d. The drug inventory in the subsystem is sufficient.

[0078] If the subsystem identifies that the prescription information contains special drugs, different non-special drugs are decomposed into multiple drug dispensing work orders, and a manual drug replenishment list is generated for the special drugs, so as to realize the management of special drugs.

[0079] Furthermore, in step S400, when there is no previous task for the drug bin 1 corresponding to the drug dispensing work order, the drug discharging device 200 in the drug bin 1 pre-stores the corresponding quantity of drugs at the outlet of the drug bin 1. When the drug storage container arrives at the drug bin 1, the drug discharging device 200 in the drug bin 1 then throws the drugs pre-stored at the outlet of the drug bin 1 into the drug storage container. If a failure occurs in the subsystem during this step, the subsystem withdraws the prescription, and the main system receives the withdrawn prescription, redistributes the remaining unadjusted drugs in the prescription to the non-failed subsystems for adjustment, or adds the remaining unadjusted drugs to the waiting queue.

[0080] Based on this, this embodiment also discloses a computer-readable storage medium, on which a computer program is stored. When the computer program instructions are executed by a processor, the small-packaged traditional Chinese medicine dispensing method described above is implemented.

[0081] This embodiment also discloses an electronic device, including a memory for storing executable instructions, and a processor; the processor is used to execute the executable instructions to implement the small-packaged traditional Chinese medicine dispensing method described above.

[0082] The above are only the preferred embodiments of the present invention. It should be noted that the above preferred embodiments should not be regarded as limitations of the present invention. The protection scope of the present invention should be defined by the scope of the claims. For those of ordinary skill in the art of this technology, without departing from the spirit and scope of the present invention, several improvements and refinements can be made, and these improvements and refinements should also be regarded as the protection scope of the present invention.

Claims

1. A dispensing system for small-packaged traditional Chinese medicine decoction pieces, characterized in that, It includes multiple subsystems, and any one of the subsystems includes: A medicine cabinet, which is provided with several medicine bins. The types of medicines in any two medicine bins are different or the specifications of the same type of medicine are different. Each medicine bin is provided with a medicine dispensing device, which can release the corresponding quantity of medicine according to a control instruction. The medicine cabinet is configured with a conveying mechanism, and the conveying mechanism has a medicine storage container for transporting the medicine released by the medicine bin; A dispensing terminal for receiving prescription information. The dispensing terminal includes a work order decomposition unit. The work order decomposition unit decomposes the prescription information into multiple medicine dispensing work orders, and distributes the decomposed medicine dispensing work orders to the medicine bins storing the corresponding medicines to output control instructions. The dispensing system determines the dispensing priority according to the high or low specifications of the same medicine, and distributes the medicine dispensing work orders to the medicine bins with high priority based on the dispensing priority. The dispensing priority of high-specification medicines is higher than that of low-specification medicines; Among them, the medicine storage container corresponds to the prescription one by one, and the conveying mechanism moves intermittently so that the medicine storage container can stop at each corresponding medicine bin to receive medicine.

2. The dispensing system for small-packaged traditional Chinese medicine decoction pieces according to claim 1, wherein, The dispensing terminal includes a special medicine management unit. The special medicine management unit identifies whether the prescription information contains special medicines. The dispensing terminal decomposes different non-special medicines into multiple medicine dispensing work orders, and generates an artificial medicine replenishment list for special medicines.

3. The dispensing system for small-packaged traditional Chinese medicine decoction pieces according to claim 1, characterized in that, The dispensing terminal includes a pre-dispensing control unit. When there is no previous task for the medicine bin corresponding to the medicine dispensing work order, the pre-dispensing control unit controls the medicine dispensing device in the medicine bin to pre-store the corresponding quantity of medicine at the outlet of the medicine bin. When the medicine storage container arrives at the medicine bin, it controls the medicine dispensing device in the medicine bin to throw the medicine pre-stored at the outlet of the medicine bin into the medicine storage container.

4. A small-packaged traditional Chinese medicine dispensing system according to any one of claims 1 to 3, characterized in that, It also includes a main system. The main system monitors the online status of each subsystem. The main system receives prescription information and distributes the prescription to one of the online subsystems for dispensing and medicine dispensing.

5. The dispensing system for small-packaged traditional Chinese medicine decoction pieces according to claim 4, wherein The main system includes a scheduling unit. The scheduling unit determines whether the subsystem meets the distribution requirements through at least one of the following conditions: a. The subsystem is in a receiving permission state; b. The current number of prescriptions waiting for dispensing in the subsystem does not exceed the maximum number of prescriptions that the subsystem can process; c. The prescription does not contain medicines exceeding the threshold dose; d. The medicine inventory in the subsystem is sufficient.

6. The dispensing system for small-packaged traditional Chinese medicine decoction pieces according to claim 5, wherein, The maximum number of prescriptions that the subsystem can process N = the maximum concurrent dispensing number X of the subsystem / the average number of doses Y of each prescription; When the number of prescriptions M waiting for dispensing in the subsystem ≥ N, the main system suspends distributing prescriptions to the subsystem.

7. The dispensing system for small-packaged traditional Chinese medicine decoction pieces according to claim 5, wherein, It also includes a dedicated system. When the prescription contains medicines exceeding the threshold dose, the main system distributes the prescription to the dedicated system for dispensing; If the medicine inventory in the dedicated system is insufficient and / or the dedicated system is not online, the main system distributes the prescription to the subsystem for dispensing, or the main system prompts the doctor for manual dispensing.

8. The dispensing system for small-packaged traditional Chinese medicine decoction pieces according to claim 5, characterized in that, The main system counts the current dispensing doses of each subsystem, sorts all the subsystems according to the current dispensing doses to obtain the distribution priority, and the main system distributes the prescription to the subsystem with high priority based on the distribution priority. The distribution priority of the subsystem with fewer current dispensing doses is higher than that of the subsystem with more current dispensing doses.

9. The dispensing system for small-packaged traditional Chinese medicine decoction pieces according to claim 5, wherein, If all subsystems do not meet the prescription allocation requirements, add the prescription to the waiting queue. When any one of the subsystems meets the allocation requirements, allocate the prescription to the subsystem that meets the allocation requirements for prescription dispensing.

10. The dispensing system for small-packaged traditional Chinese medicine decoction pieces according to claim 5, wherein The main system also monitors whether each subsystem has a fault. If a subsystem fails during the prescription dispensing process, the subsystem withdraws the prescription. The main system receives the withdrawn prescription, re-allocates the remaining undispensed drugs in the prescription to the non-faulty subsystems for dispensing, or adds the remaining undispensed drugs to the waiting queue.

11. A dispensing method for small-packaged traditional Chinese medicine decoction pieces, characterized in that, The dispensing system according to any one of claims 4 to 10, comprising: The main system obtains prescription information and allocates the prescription to a qualified subsystem for dispensing and drug administration; The subsystem decomposes the prescription into multiple drug administration work orders based on the prescription information; Determine the dispensing priority according to the specification level of the same drug. Based on the dispensing priority, allocate the drug administration work order to the high-priority drug warehouse. The dispensing priority of high-specification drugs is higher than that of low-specification drugs; The subsystem outputs a control instruction to the drug discharging device in the corresponding drug warehouse according to the drug administration work order and the dispensing priority, so as to release the drugs in the drug warehouse into the medicine storage container moving along the conveying mechanism.

12. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program instructions are executed by the processor, the small-packaged traditional Chinese medicine dispensing method described in claim 11 is implemented.

13. An electronic device, characterized in that, Comprising: A memory for storing executable instructions; And A processor for executing the executable instructions to implement the small-packaged traditional Chinese medicine dispensing method described in claim 11.