An intelligent traditional Chinese medicine dispensing and decocting control method and system deeply integrated with a hospital information system

The intelligent Chinese medicine dispensing and decoction control method, which is deeply integrated with the hospital information system, solves the problem of relying on manual operation for traditional Chinese medicine dispensing and decoction, and realizes automation, precision and full-process traceability, thereby improving the modernization level of Chinese medicine pharmacies and the safety of patient medication.

CN122224433APending Publication Date: 2026-06-16浪潮智能终端有限公司

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
浪潮智能终端有限公司
Filing Date
2026-01-26
Publication Date
2026-06-16

AI Technical Summary

Technical Problem

Traditional Chinese medicine dispensing and decoction mainly rely on manual operation, which has problems such as low efficiency, easy error, difficulty in standardization, poor batch consistency, and difficulty in quality traceability. In addition, existing automated equipment is disconnected from hospital information systems, and cannot intelligently analyze complex prescriptions or handle special decoction methods, which affects the modernization of Chinese medicine pharmacies and patient medication safety.

Method used

This paper presents an intelligent method for controlling the dispensing and decoction of traditional Chinese medicine that is deeply integrated with hospital information systems. By receiving structured electronic prescription data, performing verification and standardization processing, a dispensing and decoction task sheet is generated. The hardware platform is used to realize automatic grabbing, accurate weighing and decoction of medicinal materials, generate a unique traceability code and push progress information in real time, and realize full-process automated control.

Benefits of technology

It has automated and made the dispensing and decoction of traditional Chinese medicine more precise, improving efficiency and consistency, ensuring the stability of efficacy, providing full-process traceability, and enhancing patient medication safety and medical experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122224433A_ABST
    Figure CN122224433A_ABST
Patent Text Reader

Abstract

The application relates to the technical field of intelligent dispensing and decocting, in particular to an intelligent traditional Chinese medicine dispensing and decocting control method and system deeply integrated with a hospital information system, which comprises the following steps: receiving structured electronic prescription data; performing data verification and standardization processing, including integrity checking, drug name standardization mapping, dose unit uniform conversion and decocting method instruction analysis; splitting the prescription into independent dispensing task items of single medicinal materials, grouping according to the number of medicinal materials, and associating the decocting method instruction; generating a dispensing task list and a decocting process list based on the analysis result; controlling the hardware platform to complete the automatic grabbing, weighing and transferring of medicinal materials according to the task list, and then controlling the time sequence input, constant temperature decocting and sealing packaging of the medicinal materials according to the process list; generating a unique traceability code and a two-dimensional code label and attaching the same to the medicine bag, and simultaneously pushing the information of the associated progress to the patient terminal in real time. The method meets the rapid processing demand of a large number of prescriptions in the peak period of a medical institution.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of intelligent dispensing and decoction technology, specifically to an intelligent method and system for controlling the dispensing and decoction of traditional Chinese medicine that is deeply integrated with a hospital information system. Background Technology

[0002] Traditional Chinese medicine dispensing and decoction mainly rely on manual operation. Pharmacists need to identify medicinal materials by experience, weigh and measure them manually, interpret the decoction method manually, and control the decoction process by experience. This method has many drawbacks, such as low efficiency, susceptibility to errors, difficulty in standardization, poor batch consistency, and difficulty in quality traceability.

[0003] In recent years, although some automated dispensing or decoction equipment has emerged, it generally suffers from limitations such as being disconnected from hospital information systems (HIS), being unable to intelligently analyze complex prescriptions, struggling to handle special decoction methods such as "decocting first and then adding," and lacking full-process closed-loop traceability capabilities. This not only restricts the modernization and standardization of traditional Chinese medicine pharmacies but also affects patients' medication safety and medical experience, making it difficult to meet the demands of modern medical institutions for efficient, high-quality, and traceable traditional Chinese medicine services.

[0004] Therefore, there is an urgent need for an intelligent solution that can be deeply integrated with hospital information systems and can automatically, accurately, and securely complete the entire process from prescription processing to decoction and delivery. Summary of the Invention

[0005] To address the aforementioned problems, this invention provides an intelligent method and system for controlling the dispensing and decoction of traditional Chinese medicine that is deeply integrated with a hospital information system.

[0006] In a first aspect, the present invention provides an intelligent method for controlling the dispensing and decoction of traditional Chinese medicine that is deeply integrated with a hospital information system, comprising the following steps: S1. Receive structured electronic prescription data from the hospital information system. The electronic prescription data includes patient information, Chinese medicine name, dosage, number of doses, and text instructions for decoction. S2. The received electronic prescription data is verified and standardized, including data integrity check, standardized mapping of drug names, unified conversion of dosage units, and parsing of decoction instructions. S3. Perform structured parsing on the verified electronic prescription data, break it down into independent dispensing tasks for single medicinal materials, generate corresponding task groups based on the number of doses, and bind the decoction instructions to the associated medicinal materials. S4. Based on the parsing results, generate a dispensing task sheet for controlling the grasping and weighing, and a decoction process sheet for converting text decoction instructions into control parameters by querying the built-in decoction process database. S5. According to the dispensing task sheet, the control hardware platform completes the automatic grabbing, accurate weighing and transfer of medicinal materials; then according to the decoction process sheet, the control hardware platform completes the automatic addition of medicinal materials in a time sequence, constant temperature decoction and sealing packaging. S6. Generate a unique traceability code for the current prescription, and generate a QR code label based on the traceability code, prescription information and decoction information; automatically print the generated QR code label and attach it to the medicine package, and push the task progress information associated with the traceability code to the patient's terminal in real time.

[0007] The entire process is automated, from receiving prescriptions, intelligent sorting, and accurate weighing to sequential decoction and automatic packaging. This avoids inefficient manual operations and waiting times, and can meet the rapid processing needs of medical institutions for large volumes of prescriptions during peak periods.

[0008] As a further limitation of the technical solution of the present invention, in S2, the received electronic prescription data is verified and standardized, including the following specific steps: S21. Verify whether the electronic prescription data contains the following essential fields: patient identification information, prescribing physician information, name and dosage of each Chinese herbal medicine, total number of doses, and formatted decoction method text instructions; if any fields are missing, return a verification failure message to the hospital information system and request the supplementation or correction of the data. S22. Match the Chinese medicine names in the electronic prescription data with the system's built-in standard Chinese medicine name database; if the name in the prescription is an alias, synonym, or abbreviation, convert it into a unique, system-recognizable standardized medicinal material name and internal code by querying the synonym mapping table. S23. Identify the numerical value and unit of the dosage of each medicinal material in the prescription, and convert them into the system's preset internal measurement units; if non-standard units or unrecognizable unit formats are detected, convert them according to the preset conversion rules and record the conversion log. S24. Perform natural language parsing on the decoction instructions in the prescription text to extract key operation verbs, time parameters, temperature parameters, herbal grouping information, and special processing requirements; match and bind the extracted structured information with the preset decoction instruction template to generate standardized instruction codes that can be recognized by the decoction process database.

[0009] By performing step-by-step data integrity checks, standardized mapping of drug names, unified conversion of dosage units, and parsing of decoction instructions, the system comprehensively cleans up missing, erroneous, and non-standard information in prescription data, avoiding dispensing errors and deviations in decoction process execution caused by data issues, and providing a reliable data foundation for subsequent automated operations.

[0010] Establish standardized data processing rules to transform prescription data from different physicians, which may have different names or aliases, different units of measurement, and inconsistent decoction methods, into a standardized data format that the system can uniformly recognize, calculate, and execute. This will reduce the difficulty of equipment execution and improve system compatibility and operational consistency.

[0011] As a further limitation of the technical solution of the present invention, in S3, the structured parsing of the verified electronic prescription data includes the following specific steps: S31. The standardized electronic prescription data is broken down into individual medicinal materials to generate a single medicinal material data unit containing the standardized medicinal material name, internal code, unified dosage and prescription sequence. S32. Create an independent dispensing task item for each of the single medicinal material data units. The dispensing task item shall at least include the target medicinal material, the total amount to be weighed, and the preset storage location information of the medicinal material in the medicine cabinet of the hardware platform. S33. Based on the total number of doses specified in the electronic prescription data, copy all the dispensing task items of the current prescription and assign them to the corresponding number of independent task groups. Each task group corresponds to one complete prescription and assigns a unique group identifier to each task group. S34. Parse the standardized decoction instruction code bound to the current prescription, identify the decoction requirements for specific medicinal materials or groups of medicinal materials; associate and bind the decoction requirements with the corresponding single-herb data unit or task group to form an extended task item with a decoction control identifier.

[0012] Complex prescriptions are broken down into individual herbal dispensing tasks, and task groups are generated by combining the number of doses. This allows the dispensing and decoction of multiple doses of medicine to be carried out in parallel or in steps with precision, solving the problems of uneven dosage and low efficiency when dispensing multiple doses of medicine manually in the traditional way.

[0013] By binding standardized decoction instructions with corresponding medicinal materials or task groups, extended task items with decoction control identifiers are formed, ensuring that special requirements such as "decocting first" and "adding later" can be accurately implemented in the decoction process of specific medicinal materials. This avoids the problems of inconsistent matching between decoction methods and medicinal materials and omissions in execution in traditional processes, and ensures the standardization of the decoction process.

[0014] As a further limitation of the technical solution of the present invention, step S33 includes: S331. For the total amount to be weighed in each of the above-mentioned dispensing tasks, the total number of doses is divided equally to calculate the standard single dose of the medicinal material in each dose. S332. Based on the total number of doses, create a corresponding number of independent virtual task group containers in the system; S333. Execute each of the dispensing tasks for the current prescription one by one: The current dispensing task item is copied in the same number of copies as the total number of doses. The dosage of the medicinal material in each copied task copy is updated to the standard single-dose dosage. Each task copy is then assigned to a different virtual task group container until the dosage of all medicinal materials is assigned, so that each virtual task group container contains task copies of all medicinal materials that constitute a complete prescription. S334. Assign a unique group identifier to each of the virtual task group containers. The group identifier includes at least a prescription unique identifier, a group number, and a creation timestamp.

[0015] By dividing the total dosage of each herb equally according to the total number of doses and generating a standard single-dose dosage, the dosage of each herb in each dose is ensured to be strictly consistent, thus solving the problem of dosage deviation and ensuring the accuracy of the dosage and the consistency of the efficacy of multiple doses.

[0016] By creating virtual task group containers and assigning unique group identifiers, all medicinal material tasks for each dose of medicine are made into independent management units. This makes it easier for the system to track the dispensing and decoction progress of each dose of medicine, achieve precise control when multiple doses of medicine are processed in parallel, and avoid the problems of mixing medicinal materials and chaotic progress of different doses.

[0017] The group identifier includes a unique prescription identifier, a group number, and a creation timestamp, enabling traceability data to be accurately located to a specific dosage. When medication questions arise, the entire process of dispensing and decocting the medication can be quickly traced, improving traceability accuracy and the efficiency of responsibility determination.

[0018] As a further limitation of the technical solution of the present invention, step S4 includes: S41. Receive the grouped independent dispensing task items output after structured parsing, and generate a corresponding dispensing task sheet for each task group; the dispensing task sheet contains the group identifier and arranges the dispensing task items of all medicinal materials in the group in a list according to the preset grabbing and weighing logic order; each list item contains at least: standardized medicinal material name, internal code, standard single dose, corresponding preset storage location coordinates, and expected weighing accuracy. S42. Based on the standardized decoction instruction code that is bound to the current prescription and has been associated, query the built-in decoction process database; based on the key parameters extracted from the standardized decoction instruction code, match the preset process template in the database or calculate and generate dynamic process parameters. S43. Based on the query results, generate a corresponding decoction process sheet for each task group of the current prescription; the decoction process sheet includes the group identifier and defines the decoction control process of the medicine in detail with a time sequence structure; the process includes at least: the batch and timing of adding medicinal materials, the heating temperature and duration of each stage, the stirring mode, whether special operation instructions are required for decocting before adding or wrapping for decoction, and the final parameters for collecting and packaging the medicine liquid.

[0019] The dispensing task sheet sorts the medicinal materials according to a preset logic, clearly defines the weighing accuracy requirements, provides precise execution instructions for the dispensing robot, reduces the robot's movement distance and the number of weighing adjustments, and improves dispensing speed and weighing accuracy.

[0020] The decoction process is based on standardized decoction instruction codes that query the process database, match preset templates or generate dynamic parameters, and use a time sequence structure to clarify key parameters such as the timing, temperature and duration of adding medicinal materials, so that the special decoction requirements of different prescriptions can be executed accurately. At the same time, it supports dynamic adjustment of process parameters according to the characteristics and dosage of medicinal materials, taking into account both process standardization and personalized needs.

[0021] Both the dispensing task sheet and the decoction process sheet include group identifiers, enabling precise matching between the dispensing and decoction processes. This ensures that the herbs in the same task group can be accurately matched with the corresponding decoction process after dispensing, avoiding mismatch between herbs and processes. At the same time, detailed process parameters and task lists allow for real-time monitoring of the system's operating status and rapid location of anomalies, improving the stability and controllability of the system.

[0022] As a further limitation of the technical solution of the present invention, in S6, the step of generating a unique traceability code for the current prescription and generating a QR code label based on the traceability code, prescription information and decoction information includes: After the dispensing task sheet and decoction process sheet are generated but before the hardware platform begins execution, a globally unique traceability code is generated for the entire prescription. The generation rule for the traceability code is based on a combination of timestamp, hospital code, prescription serial number, and random factor. Key information related to the current prescription and decoction process is collected to form a structured traceability data package; the traceability data package includes at least: basic prescription information, medicinal material information, dispensing information, decoction information, and packaging information; Using the globally unique traceability code as an index key, the structured traceability data packet is compressed and encoded; a QR code generation algorithm is called to convert the encoded data into a QR code image; the QR code embeds at least the traceability code and a network address link that allows online access to the complete traceability information of the prescription.

[0023] A globally unique traceability code is generated based on timestamps, hospital codes, prescription serial numbers, and random factors to ensure that the traceability data of each prescription is unique and non-repeatable. Combined with a QR code label containing the traceability code and network link, full lifecycle traceability of each medicine with a unique code is achieved.

[0024] The traceability data package gathers key data such as prescription basic information, medicinal material information, dispensing information, decoction information, and packaging information to ensure comprehensive traceability content. By embedding network links through QR codes, patients, pharmacists, and regulatory personnel can quickly access complete traceability information by scanning the codes, solving the problems of scattered and inconvenient querying of traditional traceability data.

[0025] As a further limitation of the technical solution of the present invention, in S6, the step of pushing the task progress information associated with the traceability code to the patient terminal in real time includes: The system pre-sets multiple key task progress nodes, including at least: prescription received successfully, dispensing started, dispensing completed, decoction started, decoction completed, packaging completed, and medicine ready for pickup. When the hardware platform or control logic reaches a preset progress node, a progress update event is automatically triggered; the system encapsulates the current node information, timestamp, and the globally unique traceability code into a progress message; The progress message is sent in real time to the patient's terminal associated with the current prescription through the hospital information system interface or a separate message push service; the push method includes, but is not limited to, in-app notifications, SMS or WeChat official account template messages; The progress information pushed to the patient's terminal includes a web link that leads to a page with complete prescription traceability information. The traceability code is included in the link parameters, allowing the patient to check the details at any time.

[0026] By pre-setting key progress nodes and pushing progress messages in real time, patients can clearly understand the entire process from prescription receipt to medication availability. Multiple push methods are available to suit different patients' usage habits, improving service convenience. Push messages embed web links with traceability codes, allowing patients to click and access complete traceability information at any time without needing to enter complex information, lowering the query threshold and strengthening patients' trust in medication safety.

[0027] As a further limitation of the technical solution of the present invention, the method also includes: S7. After the decoction and packaging operation is completed, the cleaning and disinfection program of the hardware execution platform is automatically started, and the entire process data is uploaded to the cloud or hospital management system for traceability and analysis.

[0028] As a further limitation of the technical solution of this invention, in S7, the full-process data encapsulation and uploading steps include: After the entire lifecycle of a prescription task is completed, the system automatically collects all the data from the entire process of receiving, parsing, dispensing, decocting, packaging to cleaning and disinfection, including operation logs, sensor readings, process parameters, deviation records, photographic evidence, and cleaning and disinfection records; the data is then associated with the globally unique traceability code and encapsulated into a structured data packet. The encapsulated data packets are automatically and asynchronously uploaded to a designated cloud storage server or the central database of the hospital management system via a secure network link. In the cloud or central database, a data index is established using the traceability code as the primary key to support information traceability queries for patients.

[0029] After the decoction and packaging are completed, the cleaning and disinfection process is automatically started to avoid the growth of bacteria from residual liquid and dregs, prevent cross-contamination, and solve the problems of poor hygiene and high risk of cross-contamination in traditional decoction rooms.

[0030] Uploading the entire process data to the cloud or hospital management system not only meets the traceability requirements of medical quality supervision departments, but also provides data support for hospitals to optimize processes, analyze efficiency, and maintain equipment, helping hospitals to continuously improve the management level of traditional Chinese medicine pharmacies.

[0031] Secondly, the technical solution of the present invention also provides an intelligent traditional Chinese medicine dispensing and decoction control system deeply integrated with a hospital information system, comprising: The data receiving and interface module is used to receive structured electronic prescription data from the hospital information system. The electronic prescription data includes patient information, Chinese medicine name, dosage, number of doses, and text decoction instructions. The data processing and standardization module is used to verify and standardize the received electronic prescription data, including performing data integrity checks, standardized mapping of drug names, unified conversion of dosage units, and parsing of decoction instructions. The prescription parsing and task planning module is used to perform structured parsing of the verified electronic prescription data, break it down into independent dispensing tasks for single medicinal materials, generate corresponding task groups based on the number of doses, and bind the decoction instructions to the associated medicinal materials. The task order generation module is used to generate dispensing task orders for controlling grasping and weighing based on the parsing results, as well as decoction process orders that convert text decoction instructions into control parameters by querying the built-in decoction process database. The hardware control and execution module is used to control the hardware platform to automatically grab, accurately weigh and transfer medicinal materials according to the dispensing task sheet; then, according to the decoction process sheet, it controls the hardware platform to automatically add medicinal materials in a time sequence, decoct at a constant temperature and seal and package them. The traceability and information interaction module is used to generate a unique traceability code for the current prescription and generate a QR code label based on the traceability code, prescription information and decoction information; the generated QR code label is automatically printed and attached to the medicine package, and at the same time, task progress information associated with the traceability code is pushed to the patient's terminal in real time.

[0032] As can be seen from the above technical solutions, this application has the following advantages: it directly connects to the hospital's HIS system to obtain structured electronic prescription data, completely eliminates the paper prescription circulation and OCR recognition links, and eliminates manual transcription and recognition errors from the source.

[0033] Through a comprehensive design that standardizes prescription verification, structuring analysis, and parameterizing processes, traditional text-based decoction instructions such as "decoct first" and "add later" are transformed into precise and controllable equipment operating parameters. This solves the problem of traditional decoction processes relying on manual instructions and having large execution deviations, ensuring the stability and consistency of the efficacy of the decoction.

[0034] The entire process of dispensing, decocting, and packaging medicinal materials is automated, shortening patients' waiting time to pick up their medications. At the same time, by linking traceability codes and QR code labels, combined with real-time progress push functions, patients can easily check the status of their prescriptions.

[0035] A unique traceability code is generated for each prescription, which runs through the entire process of prescription receipt, dispensing, decoction, and packaging, realizing full life-cycle data recording from electronic prescription to finished medicine package, and meeting the requirements of medical quality supervision. Attached Figure Description

[0036] To more clearly illustrate the technical solution of this application, the accompanying drawings used in the description will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0037] Figure 1 This is a flowchart illustrating the method provided in an embodiment of the present invention.

[0038] Figure 2 A block diagram of a system provided in an embodiment of the present invention. Detailed Implementation

[0039] To make the purpose, features, and advantages of this application more apparent and understandable, specific embodiments and accompanying drawings will be used to clearly and completely describe the technical solution protected by this application. Obviously, the embodiments described below are only some embodiments of this application, and not all embodiments. Based on the embodiments in this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.

[0040] Unless otherwise defined, all technical and scientific terms used in this application have the same meaning as commonly understood by one of ordinary skill in the art to which this invention pertains. The terminology used in this application and in the specification of this invention is for the purpose of describing particular embodiments only and is not intended to limit the invention. The method described in this embodiment is based on an intelligent traditional Chinese medicine dispensing and decoction control system, which physically consists of two main parts: a hardware execution platform and a software control center. The hardware platform mainly includes: a multi-layer rotating medicine cabinet for storing standardized medicine packages, a six-axis robotic arm for grasping and transferring, a high-precision electronic weighing module, an intelligent decoction pot with precise temperature control and stirring functions, an integrated machine for filtering, filling, and sealing the medicine liquid, a QR code label printer and automatic labeling device, various sensors (such as position, weight, temperature, and liquid level sensors), and a control center composed of a programmable logic controller (PLC) and an industrial computer. The software control center is deployed on an industrial computer, interfaces with a hospital information system (HIS) through a data interface, and integrates core software modules such as data processing, task planning, process control, and traceability management. Figure 1 As shown, this embodiment of the invention provides an intelligent traditional Chinese medicine dispensing and decoction control method deeply integrated with a hospital information system, comprising the following steps: S1. Receive structured electronic prescription data from the hospital information system. The electronic prescription data includes patient information, Chinese medicine name, dosage, number of doses, and text instructions for decoction. The software control center receives structured electronic prescription data from the HIS in real time through a standard medical data interface.

[0041] S2. The received electronic prescription data is verified and standardized, including data integrity checks, standardized mapping of drug names, unified conversion of dosage units, and parsing of decoction instructions. This step of verifying and standardizing the received electronic prescription data includes the following specific steps: S21. Verify whether the electronic prescription data contains the following essential fields: patient identification information, prescribing physician information, name and dosage of each Chinese herbal medicine, total number of doses, and formatted decoction method text instructions; if any fields are missing, return a verification failure message to the hospital information system and request the supplementation or correction of the data. S22. Match the Chinese medicine names in the electronic prescription data with the system's built-in standard Chinese medicine name database; if the name in the prescription is an alias, synonym, or abbreviation, convert it into a unique, system-recognizable standardized medicinal material name and internal code by querying the synonym mapping table. S23. Identify the numerical value and unit of the dosage of each medicinal material in the prescription, and convert them into the system's preset internal measurement units; if non-standard units or unrecognizable unit formats are detected, convert them according to the preset conversion rules and record the conversion log. S24. Perform natural language parsing on the decoction instructions in the prescription text to extract key operation verbs, time parameters, temperature parameters, herbal grouping information, and special processing requirements; match and bind the extracted structured information with the preset decoction instruction template to generate standardized instruction codes that can be recognized by the decoction process database.

[0042] S3. Perform structured parsing on the verified electronic prescription data, breaking it down into independent dispensing tasks for single medicinal herbs, and generating corresponding task groups based on the number of doses. Simultaneously, bind the decoction instructions to the associated medicinal herbs. This step of structured parsing the verified electronic prescription data includes the following specific steps: S31. The standardized electronic prescription data is broken down into individual medicinal materials to generate a single medicinal material data unit containing the standardized medicinal material name, internal code, unified dosage and prescription sequence. S32. Create an independent dispensing task item for each of the single medicinal material data units. The dispensing task item shall at least include the target medicinal material, the total amount to be weighed, and the preset storage location information of the medicinal material in the medicine cabinet of the hardware platform. S33. Based on the total number of doses specified in the electronic prescription data, copy all the dispensing task items of the current prescription and assign them to the corresponding number of independent task groups. Each task group corresponds to one complete prescription, and a unique group identifier is assigned to each task group; specifically including: S331. For the total amount to be weighed in each of the above-mentioned dispensing tasks, the total number of doses is divided equally to calculate the standard single dose of the medicinal material in each dose. S332. Based on the total number of doses, create a corresponding number of independent virtual task group containers in the system; S333. Execute each of the dispensing tasks for the current prescription one by one: The current dispensing task item is copied in the same number of copies as the total number of doses. The dosage of the medicinal material in each copied task copy is updated to the standard single-dose dosage. Each task copy is then assigned to a different virtual task group container until the dosage of all medicinal materials is assigned, so that each virtual task group container contains task copies of all medicinal materials that constitute a complete prescription. S334. Assign a unique group identifier to each of the virtual task group containers. The group identifier includes at least a prescription unique identifier, a group number, and a creation timestamp.

[0043] S34. Parse the standardized decoction instruction code bound to the current prescription, identify the decoction requirements for specific medicinal materials or groups of medicinal materials; associate and bind the decoction requirements with the corresponding single-herb data unit or task group to form an extended task item with a decoction control identifier.

[0044] S4. Based on the parsing results, generate a dispensing task sheet for controlling the grasping and weighing, and a decoction process sheet that converts text decoction instructions into control parameters by querying the built-in decoction process database; this step specifically includes: S41. Receive the grouped independent dispensing task items output after structured parsing, and generate a corresponding dispensing task sheet for each task group; the dispensing task sheet contains the group identifier and arranges the dispensing task items of all medicinal materials in the group in a list according to the preset grabbing and weighing logic order; each list item contains at least: standardized medicinal material name, internal code, standard single dose, corresponding preset storage location coordinates, and expected weighing accuracy. S42. Based on the standardized decoction instruction code that is bound to the current prescription and has been associated, query the built-in decoction process database; based on the key parameters extracted from the standardized decoction instruction code, match the preset process template in the database or calculate and generate dynamic process parameters. S43. Based on the query results, generate a corresponding decoction process sheet for each task group of the current prescription; the decoction process sheet includes the group identifier and defines the decoction control process of the medicine in detail with a time sequence structure; the process includes at least: the batch and timing of adding medicinal materials, the heating temperature and duration of each stage, the stirring mode, whether special operation instructions are required for decocting before adding or wrapping for decoction, and the final parameters for collecting and packaging the medicine liquid.

[0045] S5. According to the dispensing task sheet, the hardware platform is controlled to automatically grasp, accurately weigh, and transfer the medicinal materials; subsequently, according to the decoction process sheet, the hardware platform is controlled to automatically add the medicinal materials in a specific time sequence, decoct at a constant temperature, and seal and package them; this step includes: Adjustment execution steps: Read the preset storage location coordinates corresponding to the current medicinal material item in the dispensing task sheet, and send a grasping command containing the coordinates to the robotic arm control system; The robotic arm transfers the gripped medicinal materials to the top of the high-precision weighing module, sends zeroing and weighing commands to the weighing module, and reads the weighing data in real time. The real-time weighing data is compared with the standard single-dose dosage in the dispensing task sheet. If the target value is not reached, the robotic arm is controlled to perform micro-feeding; if the target value is exceeded, the deviation is recorded and an alarm is triggered. When the weight reaches the target accuracy range, the completion of the medicinal material item is recorded, and the robotic arm is controlled to transfer the medicinal material to the temporary storage container bound to the task group or directly put it into the designated decoction pot; then, the next medicinal material item is executed in the order of the dispensing task sheet until all medicinal material items in the task sheet are completed.

[0046] Cooking steps: Read the decoction process sheet, execute the pretreatment instructions, including controlling the water inlet valve to inject a certain amount of clean water into the decoction pot, and start preheating according to the process sheet; According to the batch and timing of the medicinal materials to be added as specified in the decoction process sheet, control the robotic arm or special feeding device to put the weighed medicinal materials belonging to the same batch into the decoction pot at the designated time. In each decoction stage, the heating power of the decoction pot is precisely adjusted according to the target temperature and duration set in the decoction process sheet to maintain a constant temperature, and the stirring device can be started and stopped as needed. When the cooking process order contains special instructions, the scheduling hardware platform will execute special material picking, packaging, or feeding operations in the corresponding time sequence; special instructions include frying first, adding later, frying wrapped in a container, or melting. After the decoction is completed, the decoction pot is controlled to separate the dregs and collect the liquid. Then, the intelligent packaging machine is controlled to complete the quantitative filling and sealing of the liquid according to the packaging specifications set in the process sheet, and triggers the QR code label printing and pasting process.

[0047] S6. Generate a unique traceability code for the current prescription, and generate a QR code label based on the traceability code, prescription information, and decoction information; automatically print the generated QR code label and attach it to the medicine package, while simultaneously pushing task progress information associated with the traceability code to the patient's terminal in real time. In this step, the steps of generating a unique traceability code for the current prescription and generating a QR code label based on the traceability code, prescription information, and decoction information include: After the dispensing task sheet and decoction process sheet are generated but before the hardware platform begins execution, a globally unique traceability code is generated for the entire prescription. The generation rule for the traceability code is based on a combination of timestamp, hospital code, prescription serial number, and random factor. Key information related to the current prescription and decoction process is collected to form a structured traceability data package; the traceability data package includes at least: basic prescription information, medicinal material information, dispensing information, decoction information, and packaging information; Using the globally unique traceability code as an index key, the structured traceability data packet is compressed and encoded; a QR code generation algorithm is called to convert the encoded data into a QR code image; the QR code embeds at least the traceability code and a network address link that allows online access to the complete traceability information of the prescription.

[0048] Accordingly, the steps for automatically printing and attaching the generated QR code label to the medicine package include: Once the liquid medicine is sealed and packaged, the packaging station sensor generates a packaging completion signal, and the control unit responds to this signal and triggers the QR code label printing command. The generated QR code image data is sent to the connected label printer, which then prints a label containing the QR code, brief prescription information, and visual identification marks on a predetermined label material. After printing is completed, a robotic arm or automatic labeling device is dispatched to pick up the printed labels and accurately paste them onto the designated flat area of ​​the medicine package. The pasting position and quality are checked by a vision sensor to ensure that the labels are firm, clear and scannable.

[0049] Furthermore, the step of pushing task progress information associated with the traceability code to the patient's terminal in real time includes: The system pre-sets multiple key task progress nodes, including at least: prescription received successfully, dispensing started, dispensing completed, decoction started, decoction completed, packaging completed, and medicine ready for pickup. When the hardware platform or control logic reaches a preset progress node, a progress update event is automatically triggered; the system encapsulates the current node information, timestamp, and the globally unique traceability code into a progress message; The progress message is sent in real time to the patient's terminal associated with the current prescription through the hospital information system interface or a separate message push service; the push method includes, but is not limited to, in-app notifications, SMS or WeChat official account template messages; The progress information pushed to the patient's terminal includes a web link that leads to a page with complete prescription traceability information. The traceability code is included in the link parameters, allowing the patient to check the details at any time.

[0050] S7. After the decoction and packaging operation is completed, the cleaning and disinfection program of the hardware execution platform is automatically started, and the entire process data is uploaded to the cloud or hospital management system for traceability and analysis.

[0051] It should be noted that the cleaning and disinfection triggering and execution steps in this process are as follows: Once it is detected that all medicine packets for the current prescription have been sealed and labeled, the hardware execution platform's cleaning and disinfection program is automatically triggered. A cleaning and disinfection instruction sequence is issued to the relevant hardware subsystems. This sequence includes at least: controlling the robotic arm to reset to the cleaning position, starting the automatic flushing and high-temperature steam disinfection of the decoction pot and pipelines, and controlling the weighing module and related contact surfaces of the medicine cabinet to be disinfected by ultraviolet irradiation or alcohol spray. The system monitors the execution status and key parameters of each cleaning and disinfection step through sensors; once all steps are completed, the system records the cleaning and disinfection completion log and updates the hardware platform status to ready, waiting to receive the next prescription task.

[0052] The entire data encapsulation and upload process includes: After the entire lifecycle of a prescription task is completed, the system automatically collects all the data from the entire process of receiving, parsing, dispensing, decocting, packaging to cleaning and disinfection, including operation logs, sensor readings, process parameters, deviation records, photographic evidence, and cleaning and disinfection records; the data is then associated with the globally unique traceability code and encapsulated into a structured data packet. The encapsulated data packets are automatically and asynchronously uploaded to a designated cloud storage server or the central database of the hospital management system via a secure network link. In the cloud or central database, a data index is established using the traceability code as the primary key to support information traceability queries for patients.

[0053] This embodiment provides an intelligent traditional Chinese medicine dispensing and decoction control system deeply integrated with a hospital information system. Physically, this system constitutes a complete automated workstation. Its core is a collaborative control system composed of an industrial computer, a programmable logic controller (PLC), and various specialized hardware components. It achieves secure and real-time interconnection with the hospital's HIS through a standard data interface. Figure 2 As shown, the system mainly includes the following functional modules: 1. Data Reception and Interface Module This module acts as a bridge for interaction between the system and the external HIS (Hospital Information System). It continuously monitors the HIS data interface and receives electronic prescription data packets pushed by the HIS that conform to a predetermined structure specification. The received data packets must contain key fields such as patient identification information, Chinese medicine name, dosage, number of doses, and text instructions for decoction written by the physician.

[0054] 2. Data Processing and Standardization Module This module is the first line of defense in ensuring data accuracy and processability, and consists of four collaborative units: Integrity Verification Unit: Performs a field completeness scan on the received prescription data, verifying whether it contains essential information such as patient ID, physician, name and dosage of each herb, number of doses, and decoction instructions. If any information is missing, it immediately returns a structured error message to the HIS, preventing the process from continuing.

[0055] Drug Name Mapping Unit: Embedded with a standard Chinese medicine name database and a synonym mapping table. This unit converts the names of medicinal materials in a prescription into standardized names and corresponding material codes that are uniquely identified within the system by querying the mapping table.

[0056] Dosage unit conversion unit: Identifies and analyzes the dosage value and unit of each medicinal material, converts all dosages into the system's preset internal benchmark measurement unit according to the internal substitution rules, and records the original data for verification.

[0057] Decoction Instruction Parsing Unit: Integrates Natural Language Processing (NLP) components to perform syntactic and semantic parsing on text decoction instructions (such as "decoct astragalus first for 30 minutes, then add mint"), extracting operational verbs such as "decoct first" and "add later", target medicinal materials such as "astragalus" and "mint", and time parameters such as "30 minutes", and finally generating structured, machine-readable standardized instruction codes.

[0058] 3. Prescription Analysis and Task Planning Module This module is responsible for transforming standardized prescription information into executable work plans, including: Prescription decomposition unit: The standardized prescription data is broken down into medicinal material items, and a single medicinal material data unit containing standardized name, internal code, and unified total dosage information is generated for each medicinal material.

[0059] Task Item Generation Unit: Creates an independent dispensing task item for each individual medicinal herb data unit. This task item clearly specifies the target medicinal herb to be retrieved, the total amount to be weighed, and the physical coordinates of the herb's location in the hardware medicine cabinet.

[0060] Task Grouping Unit: Based on the number of doses, calculate the single-dose dosage of each herb. Then, create virtual task group containers within the system, equal to the number of doses. Next, copy the dispensing task item for each herb according to the number of doses, update the dosage in the copies to the single-dose dosage, and then evenly distribute each copy into different task group containers. Ultimately, each container contains all the herb task items required for a complete prescription. Simultaneously, assign each task group a unique identifier containing a prescription ID and group sequence number.

[0061] Decoction Method Association Unit: The standardized instruction code generated by the aforementioned decoction method instruction parsing unit is parsed to identify the special decoction requirements for specific medicinal materials. These requirements are then precisely bound to the corresponding medicinal material task items in the corresponding task group, forming extended task items with clear process identifiers.

[0062] 4. Task Order Generation Module This module generates a specific set of device control instructions based on the planned tasks: Dispensing Task Sheet Generation Unit: Generates a dispensing task sheet for each task group. This sheet clearly lists the grasping order of all medicinal materials for this preparation, the standard single-dose dosage, the target storage location coordinates, and the weighing accuracy requirements in a list format. It serves as the direct basis for the robotic arm to perform grasping and weighing.

[0063] Process Database Query Unit: This unit has a built-in, parameterized decoction process knowledge base. It receives prescription information bound to decoction instructions and, by querying the knowledge base, converts instructions such as "decoct for 30 minutes first" into specific quantifiable controllable parameters such as temperature, time, and heat.

[0064] Decoction Process Sheet Generation Unit: Based on the query results, a detailed decoction process sheet is generated for each task group. This sheet uses a timeline as its axis, clearly specifying the entire process control parameters, such as when to add materials, what temperature to use, how long to continue, whether to stir, and when to dispense the medicine.

[0065] 5. Hardware Control and Execution Module This module is responsible for translating digital instructions into physical actions. Its core components are a PLC and an industrial computer. The system reads the dispensing task sheet, precisely controls the robotic arm to move to the designated medicine cabinet compartment to grab the medicinal materials, transfers them to a high-precision weighing sensor for weighing, and achieves micro-feeding through closed-loop control to ensure accurate weight. Then, the materials are put into the designated decoction pot or temporary storage station.

[0066] The system reads the decoction process sheet, sends instructions to the decoction pot in the predetermined sequence, controls actions such as water intake, heating, heat preservation, stirring, and liquid discharge, accurately executes special processes such as pre-decoction and post-addition, and monitors parameters such as temperature and pressure in real time.

[0067] 6. Traceability and Information Interaction Module This module enables full transparency and information exchange throughout the entire process: Traceability code generation unit: Before the prescription task is started, a globally unique traceability code is generated, which is used throughout the entire production process of all doses of the prescription.

[0068] QR code generation unit: After decoction and packaging are completed, key information such as prescription information, dispensing data, decoction curve, and packaging time are collected, linked with traceability code, and encoded to generate a QR code.

[0069] Label printing and attachment unit: Drives the printer to print the QR code on the label and controls the automatic labeling machine to accurately and firmly attach the label to the designated position on the medicine package.

[0070] Progress notification unit: The system pre-sets multiple key milestones (such as "Dispensing", "Cooking Completed", "Packaged"). Upon reaching each milestone, the system automatically sends a real-time notification to the patient via the hospital's app, SMS, or WeChat, including a traceability code and progress status, with links to view details.

[0071] 7. Cleaning and disinfection control module Upon completion of the task, the cleaning and disinfection program is automatically triggered. The robotic arm is controlled to enter the cleaning station, and the CIP (clean-in-place) and SIP (sterilization-in-place) processes for the decoction pot and pipelines are initiated. The contact surfaces such as the symmetrical weighing table are disinfected to ensure no cross-contamination between batches, and the equipment status is updated.

[0072] 8. Data Upload and Storage Module The entire data chain from receipt of a single prescription (including all operation logs, sensor data, deviation records, and image / video evidence) is encrypted and packaged, and automatically uploaded to the hospital's data center or cloud via a secure network. The data is indexed using traceability codes as the primary key, supporting long-term, massive-scale traceability, quality analysis, and operational optimization.

[0073] It should be noted that the system's physical execution relies on an integrated automated hardware platform, which mainly includes: Storage and retrieval system: multi-layer rotating medicine cabinet (for storing standardized medicine packages), six-axis / Delta robotic arm and customized retrieval mechanism.

[0074] Metering system: High-precision weighing sensor module.

[0075] Decoction System: Intelligent decoction pot assembly with precise temperature control (such as electromagnetic heating), automatic stirring, liquid level sensing and CIP / SIP functions.

[0076] Post-processing system: drug solution filtration device, quantitative filling and sealing packaging integrated machine.

[0077] Labeling system: Industrial-grade QR code label printer and high-precision automatic labeling device.

[0078] Sensing and control system: arrays of position, weight, temperature, and vision sensors distributed throughout all stages, as well as a programmable logic controller (PLC) system that serves as the lower-level core, receives instructions from the upper-level computer, and drives all actuators.

[0079] Those skilled in the art will clearly understand that the techniques in the embodiments of the present invention can be implemented using software plus necessary general-purpose hardware platforms. Based on this understanding, the technical solutions in the embodiments of the present invention, or the parts that contribute to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium such as a USB flash drive, mobile hard drive, read-only memory (ROM), random access memory (RAM), magnetic disk, or optical disk, or other media capable of storing program code. It includes several instructions to cause a computer terminal (which may be a personal computer, server, or a second terminal, network terminal, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present invention.

[0080] In the embodiments provided by this invention, it should be understood that the disclosed systems, apparatuses, and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between devices or units may be electrical, mechanical, or other forms.

[0081] The units described as separate components may or may not be physically separate. The components shown as units 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 units can be selected to achieve the purpose of this embodiment according to actual needs.

[0082] In addition, the functional units 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.

[0083] The above description of the disclosed embodiments enables those skilled in the art to make or use the invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the invention. Therefore, the invention is not to be limited to the embodiments shown herein, but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. A method for intelligent dispensing and decocting traditional Chinese medicine that is deeply integrated with a hospital information system, characterized in that, Includes the following steps: S1. Receive structured electronic prescription data from the hospital information system. The electronic prescription data includes patient information, Chinese medicine name, dosage, number of doses, and text instructions for decoction. S2. The received electronic prescription data is verified and standardized, including data integrity check, standardized mapping of drug names, unified conversion of dosage units, and parsing of decoction instructions. S3. Perform structured parsing on the verified electronic prescription data, break it down into independent dispensing tasks for single medicinal materials, generate corresponding task groups based on the number of doses, and bind the decoction instructions to the associated medicinal materials. S4. Based on the parsing results, generate a dispensing task sheet for controlling the grasping and weighing, and a decoction process sheet for converting text decoction instructions into control parameters by querying the built-in decoction process database. S5. According to the dispensing task sheet, the control hardware platform completes the automatic grabbing, accurate weighing and transfer of medicinal materials; then according to the decoction process sheet, the control hardware platform completes the automatic addition of medicinal materials in a time sequence, constant temperature decoction and sealing packaging. S6. Generate a unique traceability code for the current prescription, and generate a QR code label based on the traceability code, prescription information and decoction information; automatically print the generated QR code label and attach it to the medicine package, and push the task progress information associated with the traceability code to the patient's terminal in real time.

2. The intelligent traditional Chinese medicine dispensing and decoction control method deeply integrated with a hospital information system according to claim 1, characterized in that, In S2, the received electronic prescription data is verified and standardized, including the following specific steps: S21. Verify whether the electronic prescription data contains the following essential fields: patient identification information, prescribing physician information, name and dosage of each Chinese herbal medicine, total number of doses, and formatted decoction method text instructions; if any fields are missing, return a verification failure message to the hospital information system and request the supplementation or correction of the data. S22. Match the Chinese medicine names in the electronic prescription data with the system's built-in standard Chinese medicine name database; if the name in the prescription is an alias, synonym, or abbreviation, convert it into a unique, system-recognizable standardized medicinal material name and internal code by querying the synonym mapping table. S23. Identify the numerical value and unit of the dosage of each medicinal material in the prescription, and convert them into the system's preset internal measurement units; If a non-standard unit or an unrecognized unit format is detected, it will be converted according to the preset conversion rules, and the conversion log will be recorded. S24. Perform natural language parsing on the decoction instructions in the prescription text to extract key operation verbs, time parameters, temperature parameters, herbal grouping information, and special processing requirements; match and bind the extracted structured information with the preset decoction instruction template to generate standardized instruction codes that can be recognized by the decoction process database.

3. The intelligent traditional Chinese medicine dispensing and decoction control method deeply integrated with a hospital information system according to claim 2, characterized in that, In S3, the validated electronic prescription data undergoes structured parsing, including the following specific steps: S31. The standardized electronic prescription data is broken down into individual medicinal materials to generate a single medicinal material data unit containing the standardized medicinal material name, internal code, unified dosage and prescription sequence. S32. Create an independent dispensing task item for each of the single medicinal material data units. The dispensing task item shall at least include the target medicinal material, the total amount to be weighed, and the preset storage location information of the medicinal material in the medicine cabinet of the hardware platform. S33. Based on the total number of doses specified in the electronic prescription data, copy all the dispensing task items of the current prescription and assign them to the corresponding number of independent task groups. Each task group corresponds to one complete prescription and assigns a unique group identifier to each task group. S34. Parse the standardized decoction instruction code bound to the current prescription, identify the decoction requirements for specific medicinal materials or groups of medicinal materials; associate and bind the decoction requirements with the corresponding single-herb data unit or task group to form an extended task item with a decoction control identifier.

4. The intelligent traditional Chinese medicine dispensing and decoction control method deeply integrated with a hospital information system according to claim 3, characterized in that, The steps in S33 include: S331. For the total amount to be weighed in each of the above-mentioned dispensing tasks, the total number of doses is divided equally to calculate the standard single dose of the medicinal material in each dose. S332. Based on the total number of doses, create a corresponding number of independent virtual task group containers in the system; S333. Execute each of the dispensing tasks for the current prescription one by one: The current dispensing task item is copied in the same number of copies as the total number of doses. The dosage of the medicinal material in each copied task copy is updated to the standard single-dose dosage. Each task copy is then assigned to a different virtual task group container until the dosage of all medicinal materials is assigned, so that each virtual task group container contains task copies of all medicinal materials that constitute a complete prescription. S334. Assign a unique group identifier to each of the virtual task group containers. The group identifier includes at least a prescription unique identifier, a group number, and a creation timestamp.

5. The intelligent traditional Chinese medicine dispensing and decoction control method deeply integrated with a hospital information system according to claim 4, characterized in that, The steps in S4 include: S41. Receive the grouped independent dispensing task items output after structured parsing, and generate a corresponding dispensing task sheet for each task group; the dispensing task sheet contains the group identifier and arranges the dispensing task items of all medicinal materials in the group in a list according to the preset grabbing and weighing logic order; each list item contains at least: standardized medicinal material name, internal code, standard single dose, corresponding preset storage location coordinates, and expected weighing accuracy. S42. Based on the standardized decoction instruction code that is bound to the current prescription and has been associated, query the built-in decoction process database; based on the key parameters extracted from the standardized decoction instruction code, match the preset process template in the database or calculate and generate dynamic process parameters. S43. Based on the query results, generate a corresponding decoction process sheet for each task group of the current prescription; the decoction process sheet includes the group identifier and defines the decoction control process of the medicine in detail with a time sequence structure; the process includes at least: the batch and timing of adding medicinal materials, the heating temperature and duration of each stage, the stirring mode, whether special operation instructions are required for decocting before adding or wrapping for decoction, and the final parameters for collecting and packaging the medicine liquid.

6. The intelligent traditional Chinese medicine dispensing and decoction control method deeply integrated with a hospital information system according to claim 5, characterized in that, In step S6, the steps of generating a unique traceability code for the current prescription and generating a QR code label based on the traceability code, prescription information, and decoction information include: After the dispensing task sheet and decoction process sheet are generated but before the hardware platform begins execution, a globally unique traceability code is generated for the entire prescription. The generation rule for the traceability code is based on a combination of timestamp, hospital code, prescription serial number, and random factor. Key information related to the current prescription and decoction process is collected to form a structured traceability data package; the traceability data package includes at least: basic prescription information, medicinal material information, dispensing information, decoction information, and packaging information; Using the globally unique traceability code as an index key, the structured traceability data packet is compressed and encoded; a QR code generation algorithm is called to convert the encoded data into a QR code image; the QR code embeds at least the traceability code and a network address link that allows online access to the complete traceability information of the prescription.

7. The intelligent traditional Chinese medicine dispensing and decoction control method deeply integrated with a hospital information system according to claim 6, characterized in that, In S6, the step of pushing task progress information associated with the traceability code to the patient's terminal in real time includes: The system pre-sets multiple key task progress nodes, including at least: prescription received successfully, dispensing started, dispensing completed, decoction started, decoction completed, packaging completed, and medicine ready for pickup. When the hardware platform or control logic reaches a preset progress node, a progress update event is automatically triggered; the system encapsulates the current node information, timestamp, and the globally unique traceability code into a progress message; The progress message is sent to the patient's terminal associated with the current prescription in real time through the hospital information system interface or a separate message push service; the push method includes, but is not limited to, in-app notifications, SMS or WeChat official account template messages; The progress information pushed to the patient's terminal includes a web link that leads to a page with complete prescription traceability information. The traceability code is included in the link parameters, allowing the patient to check the details at any time.

8. The intelligent traditional Chinese medicine dispensing and decoction control method deeply integrated with a hospital information system according to claim 7, characterized in that, The method also includes: S7. After the decoction and packaging process is completed, the cleaning and disinfection program of the hardware execution platform is automatically started, and the entire process data is uploaded to the cloud or hospital management system for traceability and analysis.

9. The intelligent traditional Chinese medicine dispensing and decoction control method deeply integrated with a hospital information system according to claim 8, characterized in that, In S7, the entire data encapsulation and upload process includes: After the entire lifecycle of a prescription task is completed, the system automatically collects all the data from the entire process of receiving, parsing, dispensing, decocting, packaging to cleaning and disinfection, including operation logs, sensor readings, process parameters, deviation records, photographic evidence, and cleaning and disinfection records; the data is then associated with the globally unique traceability code and encapsulated into a structured data packet. The encapsulated data packets are automatically and asynchronously uploaded to a designated cloud storage server or the central database of the hospital management system via a secure network link. In the cloud or central database, a data index is established using the traceability code as the primary key to support information traceability queries for patients.

10. A smart traditional Chinese medicine dispensing and decoction control system deeply integrated with a hospital information system, characterized in that, include: The data receiving and interface module is used to receive structured electronic prescription data from the hospital information system. The electronic prescription data includes patient information, Chinese medicine name, dosage, number of doses, and text decoction instructions. The data processing and standardization module is used to verify and standardize the received electronic prescription data, including performing data integrity checks, standardized mapping of drug names, unified conversion of dosage units, and parsing of decoction instructions. The prescription parsing and task planning module is used to perform structured parsing of the verified electronic prescription data, break it down into independent dispensing tasks for single medicinal materials, generate corresponding task groups based on the number of doses, and bind the decoction instructions to the associated medicinal materials. The task order generation module is used to generate dispensing task orders for controlling grasping and weighing based on the parsing results, as well as decoction process orders that convert text decoction instructions into control parameters by querying the built-in decoction process database. The hardware control and execution module is used to control the hardware platform to automatically grab, accurately weigh and transfer medicinal materials according to the dispensing task sheet; then, according to the decoction process sheet, it controls the hardware platform to automatically add medicinal materials in a time sequence, decoct at a constant temperature and seal and package them. The traceability and information interaction module is used to generate a unique traceability code for the current prescription and generate a QR code label based on the traceability code, prescription information and decoction information; the generated QR code label is automatically printed and attached to the medicine package, and at the same time, task progress information associated with the traceability code is pushed to the patient's terminal in real time.