Automated traditional chinese medicine decoction preparation method, device, equipment and medium

The automated process solves the problems of human error and inefficiency in the traditional preparation of Chinese herbal decoctions, enabling the preparation of Chinese herbal decoctions to be fast, accurate and traceable, thereby improving pharmacy management efficiency and medication safety.

CN122392791APending Publication Date: 2026-07-14

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Filing Date
2026-04-27
Publication Date
2026-07-14

AI Technical Summary

Technical Problem

Traditional Chinese medicine decoction preparation relies on manual operation, which has problems such as omissions in checking for incompatibilities, incorrect use of medicinal materials, and dosage deviations. It is inefficient, cannot meet the needs of smart healthcare, and the process is not traceable, resulting in high pharmacy management costs.

Method used

The preparation of traditional Chinese medicine decoctions adopts an automated process, including automatic prescription verification, intelligent medicine cabinets and automated robots working together to dispense medicine, automated decoction, and full-process identification and traceability. By working together with intelligent medicine cabinets, automated robots and automated decoction machines, manual waiting and repetitive operations are reduced, and the entire process is automated and traceable.

Benefits of technology

It improves the speed and accuracy of preparing traditional Chinese medicine decoctions, reduces the risk of human error, enhances pharmacy management, and ensures preparation efficiency and medication safety.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122392791A_ABST
    Figure CN122392791A_ABST
Patent Text Reader

Abstract

The present application relates to the technical field of intelligent medical treatment, in particular to an automatic traditional Chinese medicine decoction preparation method, a device for realizing the method, an equipment and a medium, the method comprising: receiving prescription information and performing compatibility contraindication verification, generating medicine bag information and medicine bag information corresponding medicine bag verification information, dispensing medicine for a patient and obtaining medicine bag and identification information, setting decoction conditions and decocting medicine to obtain traditional Chinese medicine decoction, and quality inspection and review and sending to the patient. The present application can realize automatic, standardized and traceable preparation of traditional Chinese medicine decoction, reduce human error, improve preparation efficiency, ensure medication safety, and meet the needs of modern intelligent medical treatment and efficient operation of pharmacies.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of smart healthcare technology, specifically to an automated method, apparatus, electronic device, and computer-readable storage medium for preparing traditional Chinese medicine decoctions. Background Technology

[0002] With the continuous advancement of medical informatization in my country, smart healthcare and digital hospitals have become important directions for the modernization of medical institutions. As an important component of my country's medical and health system, traditional Chinese medicine (TCM) faces an increasingly urgent need for standardized, intelligent, and efficient upgrades in its diagnostic and treatment services. TCM decoctions, due to their definite efficacy and wide applicability, are one of the most commonly used dosage forms in clinical TCM services, and their preparation quality and efficiency directly affect treatment outcomes and patient experience.

[0003] Currently, most medical institutions still rely heavily on traditional manual methods for preparing traditional Chinese medicine decoctions. From prescription receipt and review, to picking medicinal materials, weighing dosages, decocting herbs, and dispensing the decoction, each step heavily depends on manual operation and experience-based judgment. This model has several drawbacks: First, manual review and dispensing can easily lead to omissions in checking for incompatibilities, incorrect material selection, and dosage deviations, posing potential medication safety risks. Second, the cumbersome and repetitive manual procedures result in long decoction preparation cycles and low efficiency, making it difficult to meet the large-scale, high-concurrency outpatient and inpatient medication needs. Third, information from prescription, dispensing, and decoction stages is recorded in a scattered manner, making it difficult to achieve full-process traceability and hindering pharmacy quality control and medical safety management. Fourth, the reliance on manual statistics for herb inventory, equipment status, and dispensing progress leads to high pharmacy operation and management costs and low standardization.

[0004] With the continuous increase in hospital drug usage, the traditional manual preparation method can no longer meet the development requirements of smart healthcare and modern pharmacies. To address the problems of numerous manual steps, high error risks, low preparation efficiency, and lack of traceability, there is an urgent need for a highly automated, rigorously reviewed, standardized, and fully traceable traditional Chinese medicine (TCM) decoction preparation solution. This would improve the safety, accuracy, and efficiency of TCM decoction preparation and promote the upgrading of TCM diagnosis and treatment services towards digitalization and intelligence. Summary of the Invention

[0005] This invention provides an automated method, apparatus, equipment, and medium for preparing traditional Chinese medicine decoctions. Its main purpose is to improve the speed of traditional Chinese medicine decoction preparation by adopting an automated process.

[0006] To achieve the above objectives, the present invention provides an automated method for preparing traditional Chinese medicine decoctions, comprising: S1. Receive automatic Chinese medicine prescription instructions, receive prescription information issued and uploaded by doctors for patients, verify the incompatibilities of the prescription information, and obtain valid prescription information and prescription verification information corresponding to the valid prescription information; S2. After the prescription information passes the incompatibility verification, generate the medicine package information and the corresponding medicine package verification information based on the valid prescription information. The medicine package verification information includes the corresponding QR code or barcode. S3. Verify the medicine package verification information, and when the verification is successful, use the medicine package information, smart medicine cabinet and automatic robot to dispense medicine for the patient, and obtain the medicine package and the identification information of the medicine package; S4. Based on the effective prescription information, set the decoction conditions for the medicine pack, and obtain the medicine pack through an automated decoction machine according to the identification information of the medicine pack, and decoct the medicine pack according to the decoction conditions to obtain a traditional Chinese medicine decoction. S5. Conduct quality inspection and verification of the traditional Chinese medicine decoction, and send the traditional Chinese medicine decoction to the patient when the quality inspection and verification is passed.

[0007] The present invention, based on the above technical solution, is characterized in that it receives prescription information issued and uploaded by a doctor for a patient, verifies the drug incompatibilities of the prescription information, and obtains valid prescription information and corresponding prescription verification information, including: Check if the patient has historical medical records: If the patient does not have historical medical records, obtain the patient's basic physical data through medical testing equipment; if the patient has historical medical records, obtain the patient's basic physical data from the historical medical records. The consultation information is obtained from the patient through the consultation form, and the real-time health data of the patient is obtained through the medical testing equipment. The basic information of the patient is obtained based on the basic physical data, the consultation information, and the real-time health data. Based on the received prescription information, incompatibilities are verified. If the verification passes, the valid prescription information of the patient is obtained.

[0008] The present invention, based on the above technical solution, is characterized in that it uses the medicine package information, the intelligent medicine cabinet, and the automated robot to dispense medication for the patient, obtaining the medicine package and its identification information, including: The robot is instructed to move to the smart medicine cabinet where the medication needs to be dispensed, and based on the information in the medicine package, automatically sort the medications on the prescription, sort them according to the actual location of the smart medicine cabinet, and send instructions to the smart medicine cabinet to open the different medicine drawers in sequence. The automatic robot grabs Chinese medicine from the automatically opening medicine container and places it onto the scale of the robot, which then weighs the grabbed Chinese medicine. Determine if the weight of the Chinese medicine dispensed is correct; If the weight of the dispensed Chinese medicine is incorrect, notify the robot or the pharmacist that the weight is wrong. If the weight of the Chinese medicine grasped is correct, the automatic robot is controlled to move to the next pop-up medicine bin and repeat the weighing operation until all the medicine in the pop-up medicine bins is grasped, at which point the medicine package is obtained and identification information is assigned to the medicine package.

[0009] Furthermore, the automated robot is instructed to approach the smart medicine cabinet where medication needs to be dispensed, and, based on the information in the medicine package, to send instructions to the smart medicine cabinet to open the different medicine drawers in sequence according to the prescription medication order, including: Associate all smart medicine cabinets in the pharmacy and obtain information on all medications in those smart medicine cabinets; Based on all the drug information, query whether all the drugs in the medicine package information are present in the smart medicine cabinet; If the medication is not found, a corresponding message will be displayed to notify the staff that the medication cannot be dispensed. If it exists, the location information of the smart medicine cabinet is obtained, and the automatic robot is notified to walk to the smart medicine cabinet where the medicine needs to be dispensed according to the location information. Based on the order of the medicines in the medicine package information in the smart medicine cabinet, the robot sends an instruction to the smart medicine cabinet to open the different medicine compartments in sequence.

[0010] The present invention, based on the above technical solution, is characterized in that an automated decoction machine acquires the medicine packet according to the identification information of the medicine packet, and decocts the medicine packet according to the decoction conditions to obtain a traditional Chinese medicine decoction, comprising: The automated decoction machine identifies the identification information of the medicine packet, obtains the medicine packet, and obtains the valid prescription information corresponding to the medicine packet based on the identification information; Based on the effective prescription information, the decoction conditions are set, and the medicine package is decocted using the automated decoction machine to obtain the traditional Chinese medicine decoction.

[0011] The present invention based on the above technical solution is characterized in that, after obtaining the valid prescription information and the prescription verification information corresponding to the valid prescription information, the method further includes: uploading the valid prescription information to the cloud, and synchronizing and storing the valid prescription information.

[0012] The present invention based on the above technical solution is characterized in that, after the quality inspection and verification of the traditional Chinese medicine decoction, the method further includes: label printing, label packaging and information synchronization of the traditional Chinese medicine decoction.

[0013] To address the above problems, the present invention also provides an automated traditional Chinese medicine decoction preparation device, the device comprising: The prescription receiving and verification module is used to receive prescription information issued and uploaded by doctors, verify the prescription information for drug incompatibilities, and if the verification fails, return the prescription to the prescribing doctor for secondary confirmation. If the verification passes, the module obtains valid prescription information and corresponding prescription verification information. The prescription verification module is used to verify the prescription verification information, and upon successful verification, to generate medicine package information and corresponding medicine package verification information based on the valid prescription information. The medicine package verification information includes a corresponding QR code or barcode. The traditional Chinese medicine dispensing module is used to verify the verification information of the medicine package. Upon successful verification, it uses the medicine package information, a smart medicine cabinet, and an automated robot to dispense the medicine for the patient, obtaining the medicine package and its identification information. The decoction preparation module is used to set decoction conditions for the medicine package according to the effective prescription information, and to obtain the medicine package through an automated decoction machine based on the identification information of the medicine package, and to decoct the medicine package according to the decoction conditions to obtain a traditional Chinese medicine decoction; to conduct quality inspection and verification of the traditional Chinese medicine decoction, and to notify the staff to send the traditional Chinese medicine decoction to the patient when the quality inspection and verification is passed.

[0014] To address the above problems, the present invention also provides an electronic device, the electronic device comprising: At least one processor; and, A memory communicatively connected to the at least one processor; wherein, The memory stores a computer program that can be executed by the at least one processor, which enables the at least one processor to perform the automated method for preparing traditional Chinese medicine decoctions as described above.

[0015] To address the aforementioned problems, the present invention also provides a computer-readable storage medium, including a data storage area and a program storage area, wherein the data storage area stores created data and the program storage area stores a computer program; wherein, when the computer program is executed by a processor, it implements the automated method for preparing traditional Chinese medicine decoctions as described above.

[0016] According to the above-described scheme, the beneficial effects of the present invention are that the automated method, apparatus, electronic device and computer-readable storage medium for preparing traditional Chinese medicine decoctions proposed by the present invention solve the problems of easy errors and low efficiency in the preparation of traditional Chinese medicine decoctions by automating the process of preparing traditional Chinese medicine decoctions, thereby improving the preparation speed of traditional Chinese medicine decoctions.

[0017] This invention utilizes a smart medicine cabinet, an automatic robot, and an automated decoction machine to work together, reducing manual waiting and repetitive operations, shortening the overall time spent on prescription processing, dispensing, and decoction, and increasing the speed of decoction production. At the same time, relying on automatic verification of drug incompatibilities, automatic weighing of drug amounts, and automatic matching of decoction parameters, it avoids problems such as manual incorrect drug handling, incorrect weighing, and incorrect decoction parameters, thereby improving the accuracy of preparation and the safety of medication. Attached Figure Description

[0018] Figure 1 A flowchart illustrating an automated method for preparing traditional Chinese medicine decoctions according to an embodiment of the present invention; Figure 2 A schematic diagram of a module for an automated traditional Chinese medicine decoction preparation device provided in an embodiment of the present invention; Figure 3 This is a schematic diagram of the internal structure of an electronic device for an automated method of preparing traditional Chinese medicine decoctions, as provided in an embodiment of the present invention. Detailed Implementation

[0019] It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.

[0020] This application provides an automated method for preparing traditional Chinese medicine decoctions. The executing entity of this automated method includes, but is not limited to, at least one electronic device that can be configured to execute the method provided in this application, such as a server or a terminal. The server can be a standalone server or a cloud server providing basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, content delivery networks (CDNs), and big data and artificial intelligence platforms. In other words, the automated method for preparing traditional Chinese medicine decoctions can be executed by software or hardware installed on remote devices or server-side devices; the software can be a blockchain platform. The server includes, but is not limited to, a single server, a server cluster, a cloud server, or a cloud server cluster.

[0021] Reference Figure 1The diagram shown illustrates a flowchart of an automated traditional Chinese medicine decoction preparation method according to an embodiment of the present invention. Addressing the pain points of traditional Chinese medicine decoction preparation, such as error-prone manual review, low preparation efficiency, lack of traceability, and high pharmacy management costs, this method utilizes technologies such as automatic prescription verification, collaborative dispensing with intelligent medicine cabinets and automated robots, automated decoction, full-process identification and traceability, and cloud-based information synchronization. This achieves full automation, standardization, and traceability of the decoction preparation process, effectively reducing the risk of human error, improving preparation efficiency and pharmacy management, and fundamentally solving the problems existing in the prior art. In this embodiment, the automated traditional Chinese medicine decoction preparation method includes the following steps S1-S5.

[0022] S1. Receive automatic Chinese medicine prescription instructions, receive prescription information issued and uploaded by doctors for patients, verify the incompatibilities of prescription information, and obtain valid prescription information and corresponding prescription verification information.

[0023] In this embodiment of the invention, the prescription information for medical visits comes from two sources: first, by connecting to the hospital information system (HIS) or other compliant medical institution information systems through a system interface to receive prescriptions already issued by doctors in those systems; second, by using the prescription-issuing interface built into the system, qualified doctors can directly issue medical visits prescriptions within the system. The medical visits prescriptions in this invention are issued by qualified doctors, thus ensuring the basic rights of patients.

[0024] After receiving prescription information issued and uploaded by a doctor, the system verifies the prescription information for drug incompatibilities. If the verification fails, the prescription is returned to the prescribing doctor for secondary confirmation. If the verification passes, the system obtains valid prescription information and corresponding prescription verification information. Specifically, the system uses a traditional Chinese medicine drug incompatibility rule library based on pharmacopoeia rules / system-built-in rule library to detect the combination of drug components in the prescription. If a drug incompatibility is detected, the system will automatically intercept the prescription and notify the prescribing doctor for verification. If the doctor confirms that a special drug combination is required, the doctor must sign the confirmation before the prescription can continue to circulate. If no drug incompatibilities are detected, the prescription information directly enters the subsequent dispensing process.

[0025] Preferably, after receiving the prescription information issued and uploaded by the doctor, the present invention can also obtain consultation information and physical data based on the patient's basic information, verify whether the dosage data in the prescription information is qualified, and obtain valid prescription information and corresponding prescription verification information for prescription information that simultaneously meets the incompatibilities verification and dosage data verification.

[0026] In this embodiment of the invention, receiving and verifying prescription information uploaded by the doctor to obtain valid prescription information and corresponding prescription verification information specifically includes: Check if the patient has historical medical records: If the patient does not have historical medical records, obtain the patient's basic physical data through medical testing equipment; if the patient has historical medical records, obtain the patient's basic physical data from the historical medical records. We obtain consultation information from patients through consultation forms and acquire real-time health data of patients through medical testing equipment. Basic information about patients is obtained based on basic physical data, consultation information, and real-time health data. Based on the received prescription information, drug incompatibilities are verified. If the verification passes, the patient's valid prescription information is obtained. The doctor's prescription system can be used on both PC and mobile devices.

[0027] In this embodiment of the invention, the prescription verification information can be a QR code or a barcode, which can be achieved by sending the QR code or barcode to the patient's mobile communication device. This avoids patients from picking up the medicine themselves based on the prescription information, thus preventing medical accidents, and also makes it easier for medical practitioners to identify prescriptions through smart devices.

[0028] Furthermore, after obtaining the patient's valid prescription information, it is necessary to upload the valid prescription information to the cloud for synchronization and storage. This facilitates the retrieval of the patient's valid prescription information in other smart medical devices, as well as the recording of the patient's information. This also helps generate historical medical data for the patient, providing a reference for future medical visits and improving diagnostic effectiveness.

[0029] In another embodiment of the present invention, when there are special circumstances in the prescription (such as a continued prescription, the original course of treatment, or a second treatment), the doctor must authorize and sign to confirm the prescription. Only after the doctor signs and authorizes the prescription can it enter the dispensing process to ensure legality and compliance and protect the life and health safety of patients.

[0030] S2. After the prescription information passes the incompatibility verification, generate the medicine package information and the corresponding medicine package verification information based on the valid prescription information. The medicine package verification information includes the corresponding QR code or barcode.

[0031] In this embodiment of the invention, the information on the medicine package is valid prescription information verified by a physician. There may be adaptive modifications based on the basic information of the patient, such as the patient having dietary restrictions on certain drugs, physiological rejection of certain drugs, or the patient being young and needing less bitter medicine to take.

[0032] In this embodiment of the invention, notifying the physician to verify the prescription verification information can be achieved by the physician scanning the prescription verification information in the form of a QR code or barcode using a smart device, such as a scanner or smartphone.

[0033] In this embodiment of the invention, the medication package information refers to data containing detailed information such as drug ingredients, dosage, and ratio. This information is based on the valid prescription information generated by the physician's reference computer system and is used to guide the robot or pharmacist in preparing the correct drug combination. The medication package information ensures the accuracy and safety of the medication and is key data in the automated dispensing process.

[0034] Specifically, the information on the medicine package may include the drug name, dosage, mixing ratio, preparation instructions, expiration date, storage conditions, and instructions for use. The instructions for use refer to the method and timing of taking the medication, and are used to guide medication administration.

[0035] Furthermore, similar to S1, after obtaining the medicine package information, the medicine package information can be transmitted to the cloud, and the differences between the valid prescription information and the medicine package information can be combined in the cloud to generate difference data. The auxiliary diagnosis prescription system learns from the difference data, optimizes the auxiliary diagnosis prescription system, and improves the auxiliary diagnosis prescription system's ability to verify prescriptions.

[0036] S3. The notification system or pharmacist verifies the medication package verification information, and when the verification is successful, uses the medication package information, smart medicine cabinet and automatic robot to dispense medication for the patient, obtaining the medication package and its identification information.

[0037] In this embodiment of the invention, the intelligent medicine cabinet is a high-tech medicine storage and distribution device that can realize the automated management and distribution of medicines. It typically has the following characteristics: automated storage and management of medicines, and can automatically dispense medicines according to valid prescription information; supports medicine tracking and monitoring to ensure the safety and accuracy of medicines; has the function of connecting to the hospital information system (HIS) to realize real-time updates and sharing of medicine information; and can support 24-hour self-service, making it convenient for patients to pick up their medicines at any time.

[0038] Furthermore, the smart medicine cabinet is equipped with 20 medicine drawers, each with a medicine information display screen and four-color indicators. Blue indicates that the drawer is in standby mode, green indicates that the drawer will automatically pop open and is in operation, yellow indicates that the medicine in the drawer is not enough, and red indicates that the drawer is malfunctioning. Each drawer displays the amount of medicine, and the remaining amount is displayed after the medicine is taken. The drawer will only be retracted after the full amount has been taken. If the medicine is missed, under-taken, or over-taken, the drawer will not be retracted.

[0039] In this embodiment of the invention, the automated robot is used to assist in dispensing and transporting medicines and other medical supplies. It typically has the following functions: it can navigate autonomously within the pharmacy, avoid obstacles, and transport medicines from the pharmacy to designated departments or wards; it improves the efficiency and accuracy of dispensing medicines through automation, reducing human error; it can work in conjunction with intelligent medicine cabinets to achieve automated sorting and packaging of medicines; the robot can undertake repetitive and labor-intensive transportation work, freeing up time for medical staff so that they can focus more on nursing and treatment.

[0040] Furthermore, if special circumstances arise during the medication dispensing process that prevent the prescription from being fully dispensed, the medication package information corresponding to the prescription can be temporarily suspended, medical staff can be notified to handle the situation, and then the medication package information corresponding to the next prescription can be assigned to the robot or the dispensing clerk.

[0041] Among these special cases, there may be situations where the stock of a certain Chinese medicine is insufficient, making it impossible to dispense the medicine according to the information on the medicine package, or where a certain medicine has quality problems due to improper storage, making it impossible to dispense the medicine according to the information on the medicine package.

[0042] In this embodiment of the invention, medication is dispensed for patients using medication package information, a smart medicine cabinet, and an automated robot, resulting in the acquisition of medication packages and their identification information, including: The robot is instructed to move to the smart medicine cabinet where the medication needs to be dispensed, and, based on the information in the medicine package, send instructions to the smart medicine cabinet to open the different medicine drawers in sequence according to the order of the prescription drugs. Instruct the robot or pharmacist to grab Chinese medicine from the automatically opening medicine container and place it onto the robot's scale, and then use the robot to weigh the grabbed Chinese medicine. Determine if the weight of the Chinese medicine dispensed is correct; If the weight of the Chinese medicine dispensed is incorrect, notify the pharmacist that the weight is wrong; If the weight of the Chinese medicine grabbed is correct, the automatic robot is controlled to move to the next pop-up medicine bin and repeat the weighing operation until all the medicine in the pop-up medicine bins is grabbed, at which point a medicine packet is obtained and identification information is assigned to the medicine packet.

[0043] Furthermore, the automated robot is also equipped with a display screen to show the name, weight, and contraindications of the medicine it dispenses.

[0044] In this embodiment of the invention, the automated robot is instructed to approach the smart medicine cabinet where medication needs to be dispensed, and, based on the information in the medicine package, to send instructions to the smart medicine cabinet to open the different medicine drawers in sequence according to the prescription medication order, including: Link all smart medicine cabinets in the pharmacy to obtain information on all medications within them. Based on all drug information, check if all the drugs listed in the medicine package are present in the smart medicine cabinet; If the medication is not found, a corresponding message will be displayed to notify the staff that the medication cannot be dispensed. If it exists, the location information of the smart medicine cabinet is obtained, and the automatic robot is notified to go to the smart medicine cabinet where the medicine needs to be dispensed, according to the order of the medicines in the medicine package information in the smart medicine cabinet, and the robot is instructed to open the different medicine compartments in sequence.

[0045] Furthermore, the medication dispensing process can be monitored by using surveillance cameras to generate video recordings, ensuring traceability and facilitating the retrieval and verification of medical information in case of unexpected situations.

[0046] In another embodiment of the present invention, the pharmacist can also review the information of the medicine package. If there are omissions, over-dispensing, or incorrect dispensing, the error can be marked and the medicine package information can be returned to the doctor. After the doctor corrects the erroneous medicine package information, the robot or pharmacist can prioritize processing the medicine package information containing the error to avoid delaying the patient's visit for too long.

[0047] In another embodiment of the present invention, when notifying the robot or pharmacist to prepare the medicine, the robot or pharmacist may also be notified to prepare an extra dose of medicine packet, which is kept after the medicine is decocted for easy monitoring and evidence collection.

[0048] S4. Based on the valid prescription information, set the decoction conditions for the medicine packet, and use an automated decoction machine to obtain the medicine packet based on the identification information of the medicine packet, and decoct the medicine packet according to the decoction conditions to obtain a traditional Chinese medicine decoction.

[0049] In this embodiment of the invention, the decoction conditions refer to specific operational requirements that need to be followed during the decoction process of traditional Chinese medicine to ensure that the effective components of the medicine can be fully extracted and the efficacy can be maintained. These conditions specifically include: decoction utensils, decoction water, soaking time, decoction heat, decoction time, decoction volume, and special decoction requirements. Soaking time refers to the soaking time required before decocting certain herbs, generally for no less than 30 minutes, to facilitate the extraction of active ingredients. The soaking time may vary depending on the herb; for example, flowers, herbs, and leaves can be soaked for 20 minutes, while roots, seeds, fruits, minerals, and crustaceans should be soaked for 30-60 minutes. Special decoction requirements refer to the special treatment needed for some herbs, such as decocting first, adding later, decocting separately, melting, wrapping before decocting, or using the decoction as a substitute for water. These procedures should be followed according to the instructions or doctor's orders.

[0050] Furthermore, the identification information for the medicine package can be a two-dimensional identification code included with the medicine package, or a near-field communication identification card with a built-in chip.

[0051] In this embodiment of the invention, an automated decoction machine obtains the medicine packet based on its identification information, and decocts the medicine packet according to the decoction conditions to obtain a traditional Chinese medicine decoction, comprising: The automated decoction machine identifies the medicine packet's identification information, obtains the medicine packet, and retrieves the corresponding valid prescription information based on the identification information. Based on valid prescription information, decoction conditions are set, and the medicine packets are decocted using an automated decoction machine to obtain a traditional Chinese medicine decoction.

[0052] Furthermore, after decocting the medicine, you can keep a backup packet for yourself.

[0053] S5. Conduct quality inspection and verification of the traditional Chinese medicine decoction, and notify staff to send the traditional Chinese medicine decoction to the patient when the quality inspection and verification is passed.

[0054] In this embodiment of the invention, quality inspection and verification of traditional Chinese medicine decoctions is a key step in quality control of decocted Chinese medicine. This can ensure the efficacy, safety and stability of the decoctions, while establishing traceable quality standards to ensure that the decoctions used by patients meet the predetermined medical effects and safety requirements.

[0055] Specifically, the quality inspection and verification of traditional Chinese medicine decoctions includes verification of the amount of contents, color difference, leakage, and number of bags.

[0056] Furthermore, after quality inspection and verification of traditional Chinese medicine decoctions, the process includes label printing, packaging, and information synchronization, and may also involve sending the medicine by express delivery, depending on the circumstances. Label printing involves printing labels containing information such as the drug name, dosage, instructions for use, batch number, and expiration date, according to drug information and relevant regulations. Information synchronization refers to synchronizing the drug packaging information with the medical institution's information system to ensure drug traceability and accurate inventory management.

[0057] In another embodiment of the present invention, feedback information from patients can be collected, and patients can be rewarded with points based on their feedback. These points can be used to redeem additional medical services.

[0058] This invention receives prescription information issued and uploaded by a doctor, verifies drug incompatibilities, and if the verification fails, returns the prescription to the prescribing doctor for secondary confirmation. If the verification passes, it obtains valid prescription information and corresponding prescription verification information. Upon successful verification, it generates medication package information and corresponding medication package verification information based on the valid prescription information. The medication package verification information includes a QR code or barcode. It notifies a robot or pharmacist to verify the medication package verification information, and upon successful verification, uses the medication package information, a smart medicine cabinet, and an automated robot to dispense medication to the patient, obtaining the medication package and its identification information. Based on the valid prescription information, it sets decoction conditions for the medication package and uses an automated decoction machine to obtain the medication package based on its identification information. It then decocts the medication package according to the decoction conditions to obtain a traditional Chinese medicine decoction. Finally, it performs quality inspection on the traditional Chinese medicine decoction, and upon successful quality inspection, notifies staff to send the decoction to the patient. Therefore, the automated method, apparatus, electronic device, and computer-readable storage medium for preparing traditional Chinese medicine decoctions proposed in this invention solve the problems of easy errors and low efficiency in the preparation of traditional Chinese medicine decoctions by automating the process, thereby improving the preparation speed of traditional Chinese medicine decoctions.

[0059] This invention can realize the automated preparation of traditional Chinese medicine decoctions, improving efficiency and accuracy. Specifically: (1) This invention reduces manual waiting and repetitive operations by working together with intelligent medicine cabinets, automatic robots and automated decoction machines, shortening the overall time spent on prescription circulation, dispensing and decoction, and increasing the decoction production speed; in addition, the intelligent medicine cabinet monitors inventory in real time, automatically prompts for drug shortages and malfunctions, and with the information synchronization function, facilitates pharmacy inventory management, quality control and operational efficiency improvement. (2) This invention relies on automatic verification of drug incompatibilities, automatic weighing of drug amount and automatic matching of decoction parameters to avoid problems such as manual incorrect drug handling, incorrect weighing and incorrect decoction parameters, thereby improving preparation accuracy and medication safety; at the same time, prescription information, medicine package information, medicine package identification information, decoction parameters and quality inspection results are stored in the cloud throughout the process and bound with a unique identifier, realizing full-process traceability from prescription to decoction distribution.

[0060] like Figure 2 The diagram shown is a schematic diagram of the modules of the automated traditional Chinese medicine decoction preparation device of the present invention.

[0061] The automated traditional Chinese medicine decoction preparation device 100 of this invention can be installed in an electronic device. Depending on the functions implemented, the automated traditional Chinese medicine decoction preparation device may include a prescription receiving and verification module 101, a prescription verification module 102, a traditional Chinese medicine dispensing module 103, and a decoction preparation module 104. A module in this invention can also be referred to as a unit, which refers to a series of computer program segments that can be executed by the processor of an electronic device and can perform a fixed function, and which are stored in the memory of the electronic device.

[0062] In this embodiment, the functions of each module / unit are as follows: The prescription receiving and verification module 101 is used to receive prescription information issued and uploaded by the doctor, verify the prescription information for drug incompatibilities, and if the verification fails, return the prescription to the prescribing doctor for secondary confirmation. If the verification passes, the module obtains valid prescription information and corresponding prescription verification information. The prescription verification module 102 is used to notify the robot or physician to verify the prescription verification information. Upon successful verification, it generates medication package information and corresponding medication package verification information based on the valid prescription information. The medication package verification information includes a corresponding QR code or barcode. The traditional Chinese medicine dispensing module 103 is used to notify the robot or pharmacist to verify the medicine package verification information. Upon successful verification, it uses the medicine package information, the smart medicine cabinet, and the automated robot to dispense the medicine for the patient, obtaining the medicine package and its identification information. The decoction preparation module 104 is used to set the decoction conditions for the medicine pack according to the valid prescription information, and to obtain the medicine pack by the automated decoction machine according to the identification information of the medicine pack. The medicine pack is then decocted according to the decoction conditions to obtain the traditional Chinese medicine decoction. The traditional Chinese medicine decoction is then subjected to quality inspection and verification, and when the quality inspection and verification is passed, the staff is notified to send the traditional Chinese medicine decoction to the patient.

[0063] In detail, each module in the automated traditional Chinese medicine decoction preparation device 100 of this embodiment of the invention adopts the same characteristics as described above during use. Figure 1 The same technical means are used for the automated preparation of traditional Chinese medicine decoctions, and the same technical effects can be produced, which will not be elaborated here.

[0064] like Figure 3 The diagram shown is a schematic diagram of the electronic device used in the automated preparation method of traditional Chinese medicine decoctions according to the present invention.

[0065] The electronic device may include a processor 10, a memory 11, a communication bus 12 and a communication interface 13, and may also include a computer program stored in the memory 11 and capable of running on the processor 10, such as an automated traditional Chinese medicine decoction preparation program.

[0066] In some embodiments, the processor 10 may be composed of integrated circuits, such as a single packaged integrated circuit or multiple integrated circuits packaged with the same or different functions, including combinations of one or more central processing units (CPUs), microprocessors, digital processing chips, graphics processors, and various control chips. The processor 10 is the control unit of the electronic device, connecting various components of the entire electronic device through various interfaces and lines. It executes programs or modules stored in the memory 11 (e.g., executing automated traditional Chinese medicine decoction preparation programs) and calls data stored in the memory 11 to perform various functions of the electronic device and process data.

[0067] The memory 11 includes at least one type of readable storage medium, including flash memory, portable hard drive, multimedia card, card-type memory (e.g., SD or DX memory), magnetic memory, magnetic disk, optical disk, etc. In some embodiments, the memory 11 can be an internal storage unit of an electronic device, such as a portable hard drive. In other embodiments, the memory 11 can be an external storage device of the electronic device, such as a plug-in portable hard drive, smart media card (SMC), secure digital (SD) card, flash card, etc. Furthermore, the memory 11 can include both internal and external storage units of the electronic device. The memory 11 can be used not only to store application software and various types of data installed on the electronic device, such as the code for an automated traditional Chinese medicine decoction preparation program, but also to temporarily store data that has been output or will be output.

[0068] The communication bus 12 can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. This bus can be divided into an address bus, a data bus, a control bus, etc. The bus is configured to enable communication between the memory 11 and at least one processor 10, etc.

[0069] Communication interface 13 is used for communication between the aforementioned electronic device and other devices, including a network interface and a user interface. Optionally, the network interface may include a wired interface and / or a wireless interface (such as a Wi-Fi interface, Bluetooth interface, etc.), typically used to establish communication connections between the electronic device and other electronic devices. The user interface may be a display, an input unit (such as a keyboard), and optionally, a standard wired or wireless interface. Optionally, in some embodiments, the display may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, or an OLED (Organic Light-Emitting Diode) touchscreen, etc. The display may also be appropriately referred to as a screen or display unit, used to display information processed in the electronic device and to display a visual user interface.

[0070] Figure 3 Only the corresponding electronic components are shown; those skilled in the art will understand that... Figure 3 The structure shown does not constitute a limitation on the electronic device and may include fewer or more components than shown, or combine certain components, or have different component arrangements.

[0071] For example, although not shown, the electronic device may also include a power supply (such as a battery) to power various components. Preferably, the power supply can be logically connected to at least one processor 10 via a power management device, thereby enabling functions such as charging management, discharging management, and power consumption management. The power supply may also include one or more DC or AC power sources, recharging devices, power fault detection circuits, power converters or inverters, power status indicators, and other arbitrary components. The electronic device may also include various sensors, Bluetooth modules, Wi-Fi modules, etc., which will not be described in detail here.

[0072] It should be understood that the embodiments are for illustrative purposes only and are not limited to this structure in the scope of the patent application.

[0073] The automated traditional Chinese medicine decoction preparation program stored in memory 11 of the electronic device is a combination of multiple computer programs. When run in processor 10, it can achieve the following: Receive prescription information issued and uploaded by doctors, verify the prescription information for drug incompatibilities, if the verification fails, return the prescription to the prescribing doctor for secondary confirmation, if the verification passes, obtain the valid prescription information and the corresponding prescription verification information; The physician is notified to verify the prescription verification information. Upon successful verification, the medication package information and corresponding medication package verification information are generated based on the valid prescription information. The medication package verification information includes the corresponding QR code or barcode. The robot or pharmacist is notified to verify the information on the medicine package. If the verification is successful, the medicine package information, smart medicine cabinet and automatic robot are used to dispense medicine for the patient, and the medicine package and its identification information are obtained. Based on the valid prescription information, the decoction conditions are set for the medicine packet, and the medicine packet is obtained by an automated decoction machine according to the identification information of the medicine packet. The medicine packet is then decocted according to the decoction conditions to obtain a traditional Chinese medicine decoction. The quality inspection and verification of the traditional Chinese medicine decoction were carried out, and the staff were notified to send the traditional Chinese medicine decoction to the patients when the quality inspection and verification were passed.

[0074] Specifically, the specific implementation method of the above computer program by the processor 10 can be found in [reference needed]. Figure 1 The descriptions of the relevant steps in the corresponding embodiments are not repeated here.

[0075] Furthermore, if the modules / units integrated into an electronic device are implemented as software functional units and sold or used as independent products, they can be stored in a non-volatile computer-readable storage medium. The computer-readable storage medium can be volatile or non-volatile. For example, a computer-readable storage medium can include: any entity or device capable of carrying computer program code, recording media, USB flash drives, portable hard drives, magnetic disks, optical disks, computer memory, and read-only memory (ROM).

[0076] The present invention also provides a computer-readable storage medium storing a computer program, which, when executed by a processor of an electronic device, can perform the following: Receive prescription information issued and uploaded by doctors, verify the prescription information for drug incompatibilities, if the verification fails, return the prescription to the prescribing doctor for secondary confirmation, if the verification passes, obtain the valid prescription information and the corresponding prescription verification information; The physician is notified to verify the prescription verification information. Upon successful verification, the medication package information and corresponding medication package verification information are generated based on the valid prescription information. The medication package verification information includes the corresponding QR code or barcode. The robot or pharmacist is notified to verify the information on the medicine package. If the verification is successful, the medicine package information, smart medicine cabinet and automatic robot are used to dispense medicine for the patient, and the medicine package and its identification information are obtained. Based on the valid prescription information, the decoction conditions are set for the medicine packet, and the medicine packet is obtained by an automated decoction machine according to the identification information of the medicine packet. The medicine packet is then decocted according to the decoction conditions to obtain a traditional Chinese medicine decoction. The quality inspection and verification of the traditional Chinese medicine decoction were carried out, and the staff were notified to send the traditional Chinese medicine decoction to the patients when the quality inspection and verification were passed.

[0077] In the several embodiments provided by this invention, it should be understood that the disclosed devices, apparatuses, and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of modules is only a logical functional division, and other division methods may be used in actual implementation.

[0078] The modules described as separate components may or may not be physically separate. The components shown as modules may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs.

[0079] Furthermore, the functional modules in the various embodiments of the present invention can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or in the form of hardware plus software functional modules.

[0080] It will be apparent to those skilled in the art that the present invention is not limited to the details of the exemplary embodiments described above, and that the present invention can be implemented in other specific forms without departing from the spirit or essential characteristics of the present invention.

[0081] Therefore, the embodiments should be considered exemplary and non-limiting in all respects, and the scope of the invention is defined by the appended claims rather than the foregoing description. Thus, all variations falling within the meaning and scope of equivalents of the claims are intended to be embraced within the invention. No appended diagram markings in the claims should be construed as limiting the scope of the claims.

[0082] The blockchain referred to in this invention is a novel application model of computer technologies such as distributed data storage, peer-to-peer transmission, consensus mechanisms, and encryption algorithms. Essentially, a blockchain is a decentralized database, a chain of data blocks linked together using cryptographic methods. Each data block contains information about a batch of network transactions, used to verify the validity of the information (anti-counterfeiting) and generate the next block. A blockchain can include an underlying blockchain platform, a platform product service layer, and an application service layer.

[0083] The embodiments of this application can acquire and process relevant data based on artificial intelligence technology. Artificial intelligence (AI) refers to the theories, methods, technologies, and application systems that use digital computers or machines controlled by digital computers to simulate, extend, and expand human intelligence, perceive the environment, acquire knowledge, and use that knowledge to obtain optimal results.

[0084] Furthermore, it is clear that the word "comprising" does not exclude other units or steps, and the singular does not exclude the plural. Multiple units or devices recited in a system claim may also be implemented by a single unit or device through software or hardware. The term "second class" is used to indicate names and does not indicate any specific order.

[0085] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention and are not intended to limit it. Although the present invention has been described in detail with reference to preferred embodiments, those skilled in the art should understand that modifications or equivalent substitutions can be made to the technical solutions of the present invention without departing from the spirit and scope of the technical solutions of the present invention.

Claims

1. An automated method for preparing traditional Chinese medicine decoctions, characterized in that, The method includes: S1. Receive automatic Chinese medicine prescription instructions, receive prescription information issued and uploaded by doctors for patients, verify the incompatibilities of the prescription information, and obtain valid prescription information and prescription verification information corresponding to the valid prescription information; S2. After the prescription information passes the incompatibility verification, generate the medicine package information and the corresponding medicine package verification information based on the valid prescription information. The medicine package verification information includes the corresponding QR code or barcode. S3. Verify the medicine package verification information, and when the verification is successful, use the medicine package information, smart medicine cabinet and automatic robot to dispense medicine for the patient, and obtain the medicine package and the identification information of the medicine package; S4. Based on the effective prescription information, set the decoction conditions for the medicine pack, and obtain the medicine pack through an automated decoction machine according to the identification information of the medicine pack, and decoct the medicine pack according to the decoction conditions to obtain a traditional Chinese medicine decoction. S5. Conduct quality inspection and verification of the traditional Chinese medicine decoction, and send the traditional Chinese medicine decoction to the patient when the quality inspection and verification is passed.

2. The automated method for preparing traditional Chinese medicine decoctions as described in claim 1, characterized in that, The system receives prescription information issued and uploaded by doctors for patients, verifies drug incompatibilities in the prescription information, and obtains valid prescription information and corresponding prescription verification information, including: Check if the patient has historical medical records: If the patient does not have historical medical records, obtain the patient's basic physical data through medical testing equipment; if the patient has historical medical records, obtain the patient's basic physical data from the historical medical records. The consultation information is obtained from the patient through the consultation form, and the real-time health data of the patient is obtained through the medical testing equipment. The basic information of the patient is obtained based on the basic physical data, the consultation information, and the real-time health data. Based on the received prescription information, incompatibilities are verified. If the verification passes, the valid prescription information of the patient is obtained.

3. The automated method for preparing traditional Chinese medicine decoctions as described in claim 1, characterized in that, Using the information from the medicine package, the smart medicine cabinet, and the automated robot, medication is dispensed for the patient, resulting in the medicine package and its identification information, including: The robot is instructed to move to the smart medicine cabinet where the medication needs to be dispensed, and based on the information in the medicine package, automatically sort the medications on the prescription, sort them according to the actual location of the smart medicine cabinet, and send instructions to the smart medicine cabinet to open the different medicine drawers in sequence. The automatic robot grabs Chinese medicine from the automatically opening medicine container and places it onto the scale of the robot, which then weighs the grabbed Chinese medicine. Determine if the weight of the Chinese medicine dispensed is correct; If the weight of the dispensed Chinese medicine is incorrect, notify the robot or the pharmacist that the weight is wrong. If the weight of the Chinese medicine grasped is correct, the automatic robot is controlled to move to the next pop-up medicine bin and repeat the weighing operation until all the medicine in the pop-up medicine bins is grasped, at which point the medicine package is obtained and identification information is assigned to the medicine package.

4. The automated method for preparing traditional Chinese medicine decoctions as described in claim 3, characterized in that, The automated robot is instructed to approach the smart medicine cabinet where medication needs to be dispensed, and, based on the information in the medicine package, to send instructions to the smart medicine cabinet to open the different medicine drawers in sequence according to the prescription medication order, including: Associate all smart medicine cabinets in the pharmacy and obtain information on all medications in those smart medicine cabinets; Based on all the drug information, check whether all the drugs in the medicine package information are present in the smart medicine cabinet; If the medication is not found, a corresponding message will be displayed to notify the staff that the medication cannot be dispensed. If it exists, the location information of the smart medicine cabinet is obtained, and the automatic robot is notified to walk to the smart medicine cabinet where the medicine needs to be dispensed according to the location information. Based on the order of the medicines in the medicine package information in the smart medicine cabinet, the robot sends an instruction to the smart medicine cabinet to open the different medicine compartments in sequence.

5. The automated method for preparing traditional Chinese medicine decoctions as described in claim 1, characterized in that, An automated decoction machine acquires the medicine packet based on its identification information, and decocts the medicine packet according to the specified decoction conditions to obtain a traditional Chinese medicine decoction, comprising: The automated decoction machine identifies the identification information of the medicine packet, obtains the medicine packet, and obtains the valid prescription information corresponding to the medicine packet based on the identification information; Based on the effective prescription information, the decoction conditions are set, and the medicine package is decocted using the automated decoction machine to obtain the traditional Chinese medicine decoction.

6. The automated method for preparing traditional Chinese medicine decoctions as described in claim 1, characterized in that, After obtaining the valid prescription information and the corresponding prescription verification information, the method further includes: uploading the valid prescription information to the cloud and synchronizing and storing the valid prescription information.

7. The automated method for preparing traditional Chinese medicine decoctions as described in claim 1, characterized in that, After the traditional Chinese medicine decoction undergoes quality inspection and verification, the method further includes: printing labels, packaging labels, and synchronizing information for the traditional Chinese medicine decoction.

8. An automated device for preparing traditional Chinese medicine decoctions, characterized in that, The device includes: The prescription receiving and verification module is used to receive prescription information issued and uploaded by doctors, verify the prescription information for drug incompatibilities, and if the verification fails, return the prescription to the prescribing doctor for secondary confirmation. If the verification passes, the module obtains valid prescription information and corresponding prescription verification information. The prescription verification module is used to verify the prescription verification information, and upon successful verification, to generate medicine package information and corresponding medicine package verification information based on the valid prescription information. The medicine package verification information includes a corresponding QR code or barcode. The traditional Chinese medicine dispensing module is used to verify the verification information of the medicine package. Upon successful verification, it uses the medicine package information, a smart medicine cabinet, and an automated robot to dispense the medicine for the patient, obtaining the medicine package and its identification information. The decoction preparation module is used to set decoction conditions for the medicine package according to the effective prescription information, and to obtain the medicine package through an automated decoction machine based on the identification information of the medicine package, and to decoct the medicine package according to the decoction conditions to obtain a traditional Chinese medicine decoction; to conduct quality inspection and verification of the traditional Chinese medicine decoction, and to notify the staff to send the traditional Chinese medicine decoction to the patient when the quality inspection and verification is passed.

9. An electronic device, characterized in that, The electronic device includes: At least one processor: and, A memory communicatively connected to the at least one processor; wherein, The memory stores a computer program that can be executed by the at least one processor, the computer program being executed by the at least one processor to enable the at least one processor to perform an automated method for preparing traditional Chinese medicine decoctions as described in any one of claims 1 to 7.

10. A computer-readable storage medium, comprising a data storage area and a program storage area, wherein the data storage area stores created data and the program storage area stores a computer program; wherein, When the computer program is executed by the processor, it implements the automated method for preparing traditional Chinese medicine decoctions as described in any one of claims 1 to 7.