A medicine dispensing method, a medicine dispensing system, an electronic device, and a storage medium
By employing a dual-door fan design and sensor system, combined with a fresh air system and image weight detection, the dispensing machine achieves automated dispensing, solving the problem of gas pollution between the inside and outside of the dispensing machine and improving the safety and efficiency of the dispensing process.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- 美蓝(杭州)医药科技有限公司
- Filing Date
- 2024-06-17
- Publication Date
- 2026-05-12
AI Technical Summary
Existing medication dispensing equipment cannot effectively prevent cross-contamination between the internal and external gases of the dispensing machine, which increases the risk of microbial and particulate contamination of the medication solution, posing a threat to the health of medical personnel, and cannot achieve aseptic operation.
The machine features a double-door design with a fan, combined with a safety light curtain and sensor system to ensure that the inside of the dispensing machine is isolated from the outside world. It also uses a fresh air system to purify the air quality and combines image and weight detection technology to verify the drugs, thus achieving an automated dispensing process.
It effectively prevents drug aerosol pollution of the external environment, ensures the health of medical staff, improves the safety and efficiency of the drug dispensing process, reduces the complexity of manual operation, and provides a convenient user experience.
Smart Images

Figure CN121158396B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of medical technology, specifically to a drug dispensing method, drug dispensing system, electronic device, and storage medium. Background Technology
[0002] With the development of technology, the requirements for the level of intelligence of drug dispensing equipment are also getting higher and higher.
[0003] Currently, medical staff need to frequently and repeatedly pick up and deliver medications, which greatly increases the chance of airborne microorganisms and particulate matter contaminating the medication solution. Some special drugs, such as oncology drugs, have very high requirements for the preparation environment, and the drugs also have a significant impact on the health of medical staff. The dispensing port of ordinary medication dispensing machines is directly connected to the outside, making it impossible to strictly implement aseptic operation procedures. If special drugs are prepared, it will also harm the health of medical staff.
[0004] Therefore, a method for dispensing medicine is needed to ensure that the gas inside the dispensing machine does not contaminate the gas in the external environment. Summary of the Invention
[0005] This application provides a drug dispensing method, drug dispensing system, electronic device, and storage medium. The design of a double door with a fan prevents airflow between the inside of the dispensing machine and the external environment, effectively preventing the aerosol containing the drug inside the dispensing machine from overflowing and contaminating the external environment, thus avoiding harm to the health of medical staff. At the same time, it also prevents external airflow from entering the dispensing machine and contaminating the internal sterile environment. The design of the safety light curtain further ensures the safety of medical staff, preventing injury to medical staff caused by the sudden closing of the upper and lower sliding doors during the drug dispensing process.
[0006] The first aspect of this application provides a drug dispensing method applied to a dispensing platform of a dispensing machine. The dispensing platform includes a robotic arm, a baffle, a first sensor, a second sensor, a fresh air system, an upper sliding door, and a lower sliding door. The drug dispensing method includes:
[0007] Control the robotic arm to grab the medicine and transfer it to the baffle above the discharge port, then release the robotic arm;
[0008] Data from the first sensor on the baffle is acquired to detect whether the medicine is located on the baffle. When the medicine is detected to be located on the baffle, the baffle is opened to allow the medicine to fall into the discharge port.
[0009] The second weight of the second sensor at the discharge port is obtained. When the difference between the second weight and the first weight is detected to be within a preset range, the baffle is closed and the fresh air system is turned on to purify the air quality at the discharge port.
[0010] When the air quality at the discharge port is detected to meet the requirements, the upper and lower sliding doors are opened, and the user is prompted to take the medicine from the discharge port.
[0011] By adopting the above technical solution, a robotic arm grasps the medicine and transfers it to the baffle above the discharge port, effectively avoiding safety risks associated with manual operation, such as medicine falling or contamination. Furthermore, the baffle design ensures the medicine's stable position before it falls into the discharge port, further enhancing safety. After the medicine falls into the discharge port, activating the fresh air system purifies the air quality at the discharge port, preventing medicine dust or other pollutants from impacting the environment and users. Simultaneously, by monitoring air quality and opening the upper and lower sliding doors when conditions are met, a comfortable environment is ensured for users when retrieving their medicine. The entire dispensing process is smooth and efficient, and the user is prompted to retrieve their medicine from the discharge port at the end, improving the user experience. Users do not need to perform complex operations; they simply retrieve their medicine from the discharge port after receiving the prompt.
[0012] Optionally, the drug dispensing method further includes:
[0013] Multiple images of the drug are captured from different angles and distances. The images are preprocessed, and features are extracted from the preprocessed images. The extracted features are compared with preset standards to determine whether the drug meets the requirements. The features include color, transparency, surface tension, bubble distribution, and suspended matter.
[0014] The weight of the drug is obtained multiple times and the average value is taken as the first weight. The current temperature and current humidity are obtained. The normal weight range of the drug is determined based on the current temperature and current humidity, and it is determined whether the first weight is within the normal weight range.
[0015] By employing the aforementioned technical solution, multiple images of the drug are captured from different angles and distances. These images are then preprocessed and feature extracted to obtain more comprehensive drug information. These features include color, transparency, surface tension, bubble distribution, and suspended matter, which more accurately reflect the quality and state of the drug. Comparing the extracted features with preset standards ensures the drug meets requirements and improves the accuracy of verification. When obtaining the initial weight of the drug, multiple measurements are taken to average the results, improving measurement accuracy. The influence of current temperature and humidity is also considered. Drug weight may be affected by environmental factors; therefore, determining the normal weight range of the drug based on current temperature and humidity and judging whether the initial weight falls within this range further ensures the accuracy of the verification results. Dual verification of drug images and weight significantly improves the safety and reliability of drug dispensing. This method effectively avoids drug errors or contamination due to human error or equipment malfunction, ensuring the safety and effectiveness of patient medication. Combining image processing and weight measurement technologies enables automated drug verification. This not only improves verification efficiency and speed but also reduces the tediousness and complexity of manual operations, optimizing the entire dispensing and administration process.
[0016] Optionally, the dispensing platform of the dispensing machine further includes a fork, and the dispensing method further includes:
[0017] When the drug is not detected to be on the baffle, the fork located above the baffle is controlled to move in a preset direction so that the drug hooked on the robotic arm falls down.
[0018] By adopting the above technical solution, if the medicine fails to transfer successfully to the baffle during the dispensing process, the movement of the fork ensures that the medicine falls smoothly from the robotic arm, avoiding medicine retention or jamming, thereby enhancing the reliability of the entire dispensing process. The movement of the fork is achieved through a preset control program, requiring no manual intervention and improving the automation level of the dispensing machine's dispensing platform. Simultaneously, this automated operation reduces the complexity and time consumption of manual operation, improving the overall operational efficiency of the dispensing process. Once the medicine successfully falls into the discharge port, subsequent dispensing processes (such as weight detection and air quality detection) can proceed smoothly. Ensuring the timely fall of the medicine through the fork provides a guarantee for subsequent dispensing operations.
[0019] Optionally, closing the baffle and turning on the fresh air system to purify the air quality at the discharge port includes:
[0020] Turn off the receive channel to temporarily stop receiving the next drug preparation completion message;
[0021] Obtain the drug type of the drug and determine whether the drug type is a chemotherapy drug;
[0022] When the drug is a chemotherapy drug, the fresh air system is controlled to adjust the pressure in the dispensing platform of the dispensing machine to a negative pressure state.
[0023] By adopting the above technical solution, closing the receiving channel to temporarily stop receiving the next drug configuration completion information ensures that the current drug dispensing process is not interfered with by new configuration information. This avoids potential drug confusion or incorrect dispensing, guaranteeing the accuracy and independence of each dispensing. Judgment is made based on the drug type, with particular attention paid to chemotherapy drugs. Chemotherapy drugs are typically highly toxic and volatile, posing a potential threat to the environment and the health of operators. Therefore, special handling of chemotherapy drugs is necessary. When the drug type is chemotherapy, the fresh air system is controlled to adjust the pressure within the dispensing machine's dispensing platform to a negative pressure state. A negative pressure environment effectively prevents the diffusion of drug volatiles to the outside, ensuring the safety of operators and the surrounding environment. Simultaneously, the fresh air system can quickly extract and filter the air within the platform, further reducing drug residue and contamination. By activating the fresh air system and adjusting it to a negative pressure state, the air quality at the dispensing port can be rapidly purified, reducing the concentration of harmful substances. This helps maintain a safe and healthy working environment, reducing the potential health risks to operators from prolonged exposure to harmful drugs.
[0024] Optionally, the dispensing platform of the dispensing machine further includes a safety light curtain, and opening the upper and lower sliding doors and prompting the user to take the medicine from the dispensing port includes:
[0025] The safety light curtain installed at the discharge outlet channel detects whether there is any obstruction in the discharge outlet channel. When an obstruction is detected in the discharge outlet channel, the upper sliding door and the lower sliding door are kept in the open state, and the baffle is kept in the closed state.
[0026] When it is detected that there is no obstruction in the discharge port channel, the third weight of the second sensor of the discharge port is obtained. When the third weight is a preset weight, the upper sliding door and the lower sliding door are closed.
[0027] By adopting the above technical solution, a safety light curtain installed at the discharge port channel can detect whether there is any obstruction in the discharge port channel in real time. This means that if a user's hand or other object enters the channel during the medication dispensing process, the safety light curtain will detect it immediately, thus keeping the upper and lower sliding doors open. This avoids the risk of the user being pinched when the doors close, ensuring user safety. When an obstruction is detected in the discharge port channel, the dispensing platform of the dispensing machine not only keeps the upper and lower sliding doors open, but also keeps the baffle closed. This prevents the medicine from accidentally falling out of the discharge port during the medication dispensing process, ensuring that the medicine can be safely taken away by the user. When the safety light curtain detects that there is no obstruction in the discharge port channel, that is, the user has taken the medicine or left the medication dispensing area, the dispensing platform of the dispensing machine will obtain the third weight from the second sensor at the discharge port. If the third weight is the preset weight (usually indicating that there is no medicine in the discharge port), the dispensing platform of the dispensing machine will close the upper and lower sliding doors. This intelligent control not only improves operational efficiency, but also reduces energy consumption and door wear. By monitoring the status of the discharge channel in real time and intelligently controlling the opening and closing of the door, users can complete the medication retrieval process more smoothly without worrying about being pinched by the door or the medication falling out. This improves the user experience and makes the entire medication retrieval process more convenient and safer.
[0028] Optionally, the drug dispensing method further includes:
[0029] When the upper sliding door and the lower sliding door are opened, the fresh air system is turned off;
[0030] When the upper sliding door and the lower sliding door are closed, the fresh air system is turned on to purify the air quality at the discharge port;
[0031] When the air quality at the discharge port is detected to meet the requirements, the receiving channel is activated to allow the reception of the next drug configuration completion information.
[0032] By adopting the above technical solution, the fresh air system is turned off when the upper and lower sliding doors are open, which reduces unnecessary energy consumption, especially since the operation of the fresh air system is not essential when the user is picking up medication. When the doors are closed, the fresh air system is turned on, quickly purifying the air quality at the dispensing port and preparing for the next dispensing. This on-demand switching of the fresh air system is both energy-saving and efficient. By turning on the fresh air system when the upper and lower sliding doors are closed, the air quality inside the dispensing port is ensured to be purified in a timely manner. This helps prevent medication residue and odors from interfering with the next dispensing, thus maintaining a clean and safe dispensing environment. When the air quality at the dispensing port meets the requirements, the receiving channel is activated to allow the reception of the next medication preparation completion information, meaning the entire dispensing process can proceed continuously. This improves the efficiency of the dispensing machine and reduces delays caused by waiting or handling environmental issues. By ensuring good air quality at the dispensing port and the continuity of the dispensing process, users can obtain a smoother and more efficient medication picking experience. This helps improve user satisfaction with the dispensing machine and the overall medical service.
[0033] Optionally, the drug dispensing method further includes:
[0034] Data from the dispensing machine's dispensing platform is collected from data sources and entities are defined. A unique identifier is created for each entity. The data sources include equipment manufacturers, technical documents, and maintenance manuals. The entities include equipment, components, and failure modes.
[0035] Relationships between entities are extracted from the data, and the extracted entity and relationship data are imported into a graph database to construct a complete knowledge graph.
[0036] A fault prediction model is trained based on the knowledge graph and historical fault data, and the probability of abnormality in each component of the dispensing machine's discharge platform is predicted based on the fault prediction model.
[0037] When the probability of a component malfunctioning exceeds a threshold, the upper and lower sliding doors remain closed and an alarm is triggered.
[0038] By adopting the above technical solution, data from the dispensing platform of the medicine dispensing machine is collected from multiple data sources (such as equipment manufacturers, technical documents, maintenance manuals, etc.), and entities (such as equipment, components, failure modes, etc.) are defined. A unique identifier is created for each entity. This method achieves data integration and standardization, providing a foundation for subsequent knowledge graph construction and fault prediction. Relationships between entities are extracted, and the extracted entity and relationship data are imported into a graph database to construct a complete knowledge graph. The construction of the knowledge graph helps to understand the structure, function, and operating rules of the dispensing platform of the medicine dispensing machine more comprehensively and systematically, providing strong support for fault prediction and maintenance. A fault prediction model is trained based on the knowledge graph and historical fault data, which can predict the probability of abnormalities in various components of the dispensing platform. When the probability of a component malfunctioning exceeds a threshold, the upper and lower sliding doors are closed in a timely manner, and an alarm is triggered. This helps to detect potential faults in advance, avoid their occurrence, or reduce their impact on the dispensing process, improving the reliability and stability of the equipment. Through the fault prediction model, potentially problematic components can be accurately located, making maintenance work more targeted, reducing unnecessary inspections and repairs, and improving maintenance efficiency. When a potential malfunction is anticipated, promptly closing the upper and lower sliding doors and issuing an alarm can prevent safety issues caused by equipment failure, such as medicine falling or personal injury, thereby enhancing the safety of the entire medicine dispensing process.
[0039] A second aspect of this application provides a drug dispensing system, including a grasping module, a detection module, a purification module, and a picking module, wherein:
[0040] The gripping module is configured to control the robotic arm to grip the medicine and transfer it to the baffle above the discharge port, and then release the robotic arm.
[0041] The detection module is configured to acquire data from a first sensor on the baffle to detect whether the medicine is located on the baffle. When the medicine is detected to be located on the baffle, the baffle is opened to allow the medicine to fall into the discharge port.
[0042] The purification module is configured to acquire the second weight of the second sensor at the discharge port. When the difference between the second weight and the first weight is detected to be within a preset range, the baffle is closed and the fresh air system is turned on to purify the air quality at the discharge port.
[0043] The retrieval module is configured to open the upper and lower sliding doors and prompt the user to retrieve the medicine from the discharge port when the air quality at the discharge port is detected to meet the requirements.
[0044] A third aspect of this application provides an electronic device including a processor, a memory, a user interface, and a network interface, wherein the memory is used to store instructions, the user interface and the network interface are both used to communicate with other devices, and the processor is used to execute the instructions stored in the memory to cause the electronic device to perform the method as described in any of the foregoing.
[0045] A fourth aspect of this application provides a computer-readable storage medium storing instructions that, when executed, perform the method described in any of the preceding descriptions.
[0046] In summary, one or more technical solutions provided in the embodiments of this application have at least the following technical effects or advantages:
[0047] 1. The entire drug dispensing process, including drug verification, transfer, testing and release, is achieved through an automated control system, which greatly reduces the complexity and error rate of manual operation and improves drug dispensing efficiency and accuracy.
[0048] 2. The position and weight of the medicine are detected in real time by the first and second sensors to ensure that the medicine can fall accurately into the discharge port. At the same time, the fresh air system monitors and purifies the air quality at the discharge port in real time to ensure that users can pick up medicine in a safe and healthy environment.
[0049] 3. When the air quality at the discharge port meets the requirements, the upper and lower sliding doors automatically open, and the user is prompted to collect the medicine. This provides users with a convenient and efficient medicine collection experience, reducing waiting time and unnecessary operations. Attached Figure Description
[0050] Figure 1 This is a schematic flowchart of the drug dispensing method disclosed in the embodiments of this application;
[0051] Figure 2 This is a three-dimensional schematic diagram of the dispensing platform of the medicine dispensing machine disclosed in the embodiments of this application;
[0052] Figure 3 This is a detailed schematic diagram of the dispensing platform of the medicine dispensing machine disclosed in the embodiments of this application;
[0053] Figure 4 This is a schematic diagram of the drug dispensing system disclosed in the embodiments of this application;
[0054] Figure 5 This is a schematic diagram of the structure of an electronic device disclosed in an embodiment of this application.
[0055] Explanation of reference numerals in the attached drawings: 201, baffle; 202, safety light curtain; 203, toggle fork; 301, first sensor; 302, second sensor; 303, axial flow fan; 304, upper sliding door; 305, lower sliding door; 401, gripping module; 402, detection module; 403, purification module; 404, picking module; 501, processor; 502, communication bus; 503, user interface; 504, network interface; 505, memory. Detailed Implementation
[0056] To enable those skilled in the art to better understand the technical solutions in this specification, the technical solutions in the embodiments of this specification will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments.
[0057] In the description of the embodiments of this application, the words "for example" or "for instance" are used to indicate examples, illustrations, or explanations. Any embodiment or design that is described as "for example" or "for instance" in the embodiments of this application should not be construed as being more preferred or advantageous than other embodiments or design options. Rather, the use of the words "for example" or "for instance" is intended to present the relevant concepts in a specific manner.
[0058] In the description of the embodiments of this application, the term "multiple" means two or more. For example, multiple systems means two or more systems, and multiple screen terminals means two or more screen terminals. Furthermore, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the indicated technical features. Thus, a feature defined with "first" or "second" may explicitly or implicitly include one or more of that feature. The terms "comprising," "including," "having," and variations thereof all mean "including but not limited to," unless otherwise specifically emphasized.
[0059] This embodiment discloses a drug dispensing method. Figure 1 This is a flowchart illustrating the drug dispensing method disclosed in an embodiment of this application, applied to the dispensing platform of a dispensing machine. The dispensing platform includes a robotic arm, a baffle, a first sensor, a second sensor, a fresh air system, an upper sliding door, and a lower sliding door, as shown below. Figure 1 As shown, the drug dispensing method includes the following steps:
[0060] S110. Control the robotic arm to grab the medicine and transfer it to the baffle above the discharge port, then release the robotic arm;
[0061] The dispensing machine uses a built-in camera or other image acquisition device to photograph or record images of the medication, obtaining clear images. This step aims to confirm the medication's appearance, such as shape, color, and labeling, to ensure it meets preset standards and requirements. Through image recognition technology, the dispensing machine compares the medication image with a preset medication image library to verify the correct type and specifications. Simultaneously, the dispensing machine uses a weight sensor or similar device to measure the initial weight of the medication. Weight measurement is equally crucial for verifying medication accuracy, as each medication typically has a specific weight; exceeding or falling below this range may indicate a problem. By comparing the measured actual weight with a preset standard weight, the dispensing machine further confirms the medication's correctness. After acquiring the medication's image and initial weight, the dispensing machine verifies the medication based on this information. If both the image and weight meet preset standards and requirements, the verification passes. At this point, the dispensing machine controls its internal robotic arm or similar gripping device to precisely grasp the medication and transfer it to a baffle above the discharge port. During the transfer process, the dispensing machine ensures the stability and safety of the medication, avoiding any possible damage or contamination.
[0062] Optionally, the drug dispensing method further includes:
[0063] Multiple images of the drug are captured from different angles and distances. The images are preprocessed, and features are extracted from the preprocessed images. The extracted features are compared with preset standards to determine whether the drug meets the requirements. The features include color, transparency, surface tension, bubble distribution, and suspended matter.
[0064] The weight of the drug is obtained multiple times and the average value is taken as the first weight. The current temperature and current humidity are obtained. The normal weight range of the drug is determined based on the current temperature and current humidity, and it is determined whether the first weight is within the normal weight range.
[0065] Multiple images of the drug are taken from various angles and distances to obtain a comprehensive view and capture its appearance characteristics. These images should include not only front and side views but also top and bottom views for the most complete information. Preprocessing of the images aims to eliminate interfering factors and highlight key features. This may involve adjusting brightness, contrast, and color balance to ensure consistent image quality. Cropping, rotation, or scaling may also be involved to better extract desired features. After preprocessing, features are extracted from the images. These features may include color, transparency, surface tension, bubble distribution, and suspended matter, reflecting the drug's physical and chemical properties and serving as crucial criteria for determining whether the drug meets requirements. Feature extraction typically involves sophisticated image processing algorithms and machine learning techniques to ensure the representativeness and accuracy of the extracted features. The extracted features are then compared with preset standards, usually established based on the drug's specifications, manufacturing process, and quality requirements. This comparison allows for assessment of whether attributes such as color and transparency meet the standards, providing a preliminary judgment of the drug's quality. Simultaneously, verifying the drug's weight is also a critical step. To ensure measurement accuracy, the weight of the medication is measured multiple times, and the average value is taken as the initial weight. This reduces the impact of single measurement errors on the results. Furthermore, the influence of environmental factors on the medication weight is considered. Therefore, current temperature and humidity data are acquired, and the normal weight range of the medication is determined based on this data. This is because changes in temperature and humidity can affect the density and volume of the medication, thus affecting its weight. By comparing the initial weight with the normal weight range, it can be further determined whether the medication meets the requirements.
[0066] By capturing multiple images of the medication from different angles and distances, the appearance characteristics of the medication can be comprehensively captured, ensuring the comprehensiveness of the verification. Simultaneously, image preprocessing and feature extraction techniques can accurately extract key features such as color, transparency, surface tension, bubble distribution, and suspended matter, providing an accurate data foundation for subsequent verification. Automated image processing and feature extraction algorithms can rapidly process and analyze large numbers of medication images, improving verification efficiency. Furthermore, an automated control system enables automated execution of medication verification, reducing the tediousness and errors of manual operation. Determining the normal weight range of the medication based on current temperature and humidity makes the verification process more adaptable to changes in actual environmental conditions. The weight of the medication may vary under different temperature and humidity conditions; considering these factors allows for a more accurate assessment of whether the medication meets requirements. Through a comprehensive verification process, it can be ensured that the medication meets preset standards and requirements in both appearance and weight, thereby strengthening medication quality control. This helps reduce medical accidents and disputes caused by medication quality issues, improving the reliability and safety of medical services.
[0067] S120. Obtain data from the first sensor on the baffle to detect whether the medicine is on the baffle. When the medicine is detected to be on the baffle, open the baffle to allow the medicine to fall into the discharge port.
[0068] Figure 2 This is a three-dimensional schematic diagram of the dispensing platform of the medicine dispensing machine disclosed in the embodiments of this application. Figure 3 This is a detailed schematic diagram of the dispensing platform of the medicine dispensing machine disclosed in the embodiments of this application. The internal components are shown for clarity. Figure 3 This is a schematic diagram of the components without the side and rear panels, combined with... Figure 2 and Figure 3The embodiments of this application are further described below. A first sensor 301 on the baffle 201 collects data in real time. The first sensor 301 is typically a high-precision, high-sensitivity device capable of accurately detecting the presence or absence of an object above the baffle 201. The type of the first sensor 301 may vary depending on the specific application scenario; for example, it may be a pressure sensor, photoelectric sensor, or infrared sensor. Regardless of the type of sensor used, its core purpose is to detect whether the medicine has been successfully placed on the baffle 201. Once the first sensor 301 collects data, the dispensing machine's control system immediately analyzes and processes this data. The data processing may involve steps such as filtering and noise reduction to ensure the accuracy and reliability of the data. By comparing the sensor data with a preset threshold or pattern, the control system can determine whether the medicine is indeed located on the baffle 201. If the detection result shows that the medicine is located on the baffle 201, the dispensing machine will perform the next operation: opening the baffle 201. This action is achieved by controlling the drive mechanism on the baffle 201, which may be an electric motor, cylinder, or other type of actuator. The opening of baffle 201 must be smooth and rapid to avoid any impact or damage to the medicine. When baffle 201 is fully open, the medicine will fall freely into the discharge port under the influence of gravity. To ensure that the medicine falls smoothly and accurately to the discharge port, the design of the dispensing machine usually takes into account factors such as the position and size of the discharge port and the relative height between baffle 201 and the discharge port.
[0069] Optionally, the dispensing platform of the dispensing machine further includes a fork, and the dispensing method further includes:
[0070] When the drug is not detected to be on the baffle, the fork located above the baffle is controlled to move in a preset direction so that the drug hooked on the robotic arm falls down.
[0071] When the dispensing machine fails to detect that the medication is on baffle 201 during the detection process, it immediately initiates a preset correction procedure to ensure that the medication can be safely and accurately transferred to the discharge port. The key to this procedure is controlling the movement of the fork 203, positioned above baffle 201, along a preset direction. The dispensing machine's control system receives data from the first sensor 301 indicating that the medication is not placed on baffle 201 as expected. At this point, the dispensing machine's discharge platform immediately determines that corrective measures are needed and triggers the motion control mechanism of the fork 203. The fork 203, as a specially designed mechanical structure, is carefully positioned above baffle 201 for rapid and accurate intervention when necessary. The movement of the fork 203 is achieved through the dispensing machine's drive system, which typically involves an electric motor, cylinder, or other similar actuator. Once the control system issues a command, the fork 203 begins to move along the preset direction. This preset direction is carefully calculated and tested to ensure that the fork 203 can effectively contact the medication hanging on the robotic arm and remove it from the arm. The movement speed and force of the fork 203 are precisely controlled to avoid unnecessary damage or destruction to the medication. Simultaneously, the shape and material of the fork 203 are specially designed to ensure smooth and safe contact with the medication, successfully guiding it onto the baffle 201. After the fork 203 successfully guides the medication onto the baffle 201, the dispensing machine restarts the detection process, using the first sensor 301 to confirm whether the medication has been correctly placed. If the detection result shows that the medication is now on the baffle 201, the dispensing machine continues with the subsequent dispensing process, such as opening the baffle 201 to allow the medication to fall into the discharge port. If, even after the corrective action of the fork 203, the medication still fails to be successfully placed on the baffle 201, the dispensing machine's control system will record this anomaly and may trigger further alarms or fault handling procedures. This may include notifying the operator for manual intervention, suspending the dispensing operation for troubleshooting, etc.
[0072] When medication fails to be successfully placed on the baffle, the intervention of the fork ensures that the medication falls accurately from the robotic arm, thus preventing loss or misplacement during dispensing. This significantly improves dispensing accuracy, ensuring that the medication reaches the dispensing port as expected. Controlling the movement of the fork to drop the medication eliminates the need for manual intervention, further enhancing the automation of the dispensing machine. This reduces the workload of operators, increases work efficiency, and also reduces the possibility of human error. When the machine detects that a medication is not placed on the baffle, it reacts quickly by using the movement of the fork to dislodge the medication, preventing dispensing delays caused by the medication not being in place. This helps improve the efficiency of the entire dispensing process, ensuring that medication is delivered to patients in a timely and accurate manner. Pre-set fork movement direction and force ensure smooth and safe contact between the fork and the medication, preventing damage caused by excessive impact or improper operation. This enhances the reliability of the dispensing system and guarantees the integrity and safety of the medication.
[0073] S130. Obtain the second weight of the second sensor at the discharge port. When the difference between the second weight and the first weight is detected to be within a preset range, close the baffle and turn on the fresh air system to purify the air quality at the discharge port.
[0074] When the medicine falls from the baffle 201 into the discharge port, the second sensor 302 located at the discharge port immediately detects this action and obtains the corresponding second weight. This second sensor 302 is typically a high-precision, high-response weighing sensor, capable of reflecting the weight change of the medicine in the discharge port in real time and accurately. A photoelectric sensor can also be installed at the discharge port to detect whether the medicine is located there. The dispensing machine's control system compares the first and second weights. By calculating the difference between these two weights, the control system can determine whether the medicine has completely and accurately fallen into the discharge port. If the difference between the second and first weights is within a preset range, it means that the medicine has fallen into the discharge port as expected, without loss or misalignment. At this time, the control system will issue a command to close the baffle 201 to prevent subsequent medicine from entering the discharge port, avoiding accumulation or confusion. Simultaneously, the control system will also activate the axial flow fan 303 of the fresh air system to purify the air quality at the discharge port. During the process of medicines falling into the discharge port, dust, particles, or other contaminants may be generated. If these contaminants are not removed in time, they may affect subsequent dispensing operations or medicine quality. Therefore, by activating a fresh air system, the air inside the discharge port can be effectively circulated, filtered, and purified to ensure that the air quality at the discharge port meets standards. A fresh air system typically includes components such as a fan and filters, which introduce fresh air into the discharge port and exhaust contaminated air. The selection and use of filters are also crucial; appropriate filters must be selected based on the properties of the medicine and the types of contaminants that may be generated to ensure optimal purification.
[0075] Optionally, closing the baffle and turning on the fresh air system to purify the air quality at the discharge port includes:
[0076] Turn off the receive channel to temporarily stop receiving the next drug preparation completion message;
[0077] Obtain the drug type of the drug and determine whether the drug type is a chemotherapy drug;
[0078] When the drug is a chemotherapy drug, the fresh air system is controlled to adjust the pressure in the dispensing platform of the dispensing machine to a negative pressure state.
[0079] When the medication successfully falls into the discharge port and the difference between the weight data from the second sensor 302 and the first weight is within a preset range, the dispensing machine immediately closes the baffle 201. This step is to prevent subsequent medications from entering the discharge port and ensure that the currently processed medication is not mixed with other medications. Simultaneously, the receiving channel is shut off to temporarily stop receiving the next medication configuration completion information. This is to avoid operational conflicts or confusion caused by the dispensing platform receiving new configuration instructions during air purification and current medication processing. The dispensing machine obtains information about the type of the medication just processed. This step is crucial because different types of medications may require different measures during processing and purification. Chemotherapy drugs, in particular, require more stringent operating environments and purification procedures due to their high toxicity and sensitivity. When the medication type is determined to be chemotherapy, the dispensing machine controls the fresh air system to take more proactive measures to purify the air quality at the discharge port. An important step is to adjust the pressure inside the dispensing platform to a negative pressure state. A negative pressure state means that the air pressure inside the dispensing platform is lower than the external environment, which effectively prevents harmful gases or particles from escaping from the discharge port, polluting the surrounding environment, or causing harm to other operators. By operating under negative pressure, the fresh air system can more effectively draw in air from the outlet and purify it through a filter, ensuring that the air quality at the outlet meets safety standards. Throughout the process, the dispensing machine's control system plays a crucial role. It is responsible not only for receiving and processing sensor data and determining the type and status of the medicine, but also for controlling the operation of baffle 201, the receiving channel, and the fresh air system. Through precise control and coordination, the dispensing machine ensures high efficiency, accuracy, and safety during medicine processing.
[0080] Closing the receiving channel ensures that the dispensing machine is not interfered with by new configuration information when processing the current medication, thus avoiding potential operational conflicts or errors. This is especially important when handling high-risk medications such as chemotherapy drugs, as any operational error could threaten the health and safety of the operators. By acquiring the type of medication and determining whether special purification measures are needed, the dispensing machine can achieve precise processing of different types of medications. For chemotherapy drugs, due to their high toxicity and sensitivity, controlling the fresh air system to regulate the pressure within the discharge platform to a negative pressure state can effectively prevent the escape of harmful gases or particles, thereby improving the purification effect and ensuring the safety of the operating environment. Chemotherapy drugs are usually highly irritating and toxic; improper handling can damage the operator's respiratory system, skin, etc. With a negative pressure fresh air system, the dispensing machine can quickly remove harmful gases and particles from the discharge port, thereby reducing the risk of operator exposure to harmful substances and protecting the operator's health. Although additional safety measures and purification steps are taken, these measures are all automated and require no manual intervention. This not only ensures the accuracy and efficiency of the operation, but also reduces the labor intensity of the operators and improves the overall work efficiency.
[0081] S140. When the air quality at the discharge port is detected to meet the requirements, the upper and lower sliding doors are opened and the user is prompted to take the medicine from the discharge port.
[0082] The dispensing machine monitors the air quality at the outlet in real time using an air quality detection device. This device typically includes sensors and a controller, accurately determining whether the air quality meets preset safety standards. When the air quality meets the requirements, the dispensing machine's control system receives the corresponding signal and triggers the next action. The control system issues a command to open the upper sliding door 304 and the lower sliding door 305 at the outlet. The upper sliding door 304 and the lower sliding door 305 are usually located above and below the outlet, respectively, to seal the outlet during drug preparation and purification, preventing the entry of external contaminants. Once the air quality meets the standards, the opening of the sliding doors provides users with an unobstructed passage for easy access to the medication. Simultaneously with the opening of the sliding doors, the dispensing machine will also provide a notification to the user via a display screen, sound prompts, or other means, informing them that they can retrieve the medication from the outlet. This notification aims to ensure that users are promptly informed that the medication is ready and guides them to the correct location for retrieval.
[0083] Optionally, the dispensing platform of the dispensing machine further includes a safety light curtain, and opening the upper and lower sliding doors and prompting the user to take the medicine from the dispensing port includes:
[0084] The safety light curtain installed at the discharge outlet channel detects whether there is any obstruction in the discharge outlet channel. When an obstruction is detected in the discharge outlet channel, the upper sliding door and the lower sliding door are kept in the open state, and the baffle is kept in the closed state.
[0085] When it is detected that there is no obstruction in the discharge port channel, the third weight of the second sensor of the discharge port is obtained. When the third weight is a preset weight, the upper sliding door and the lower sliding door are closed.
[0086] The dispensing machine detects obstructions in the discharge channel using a safety light curtain 202 installed at the outlet. The safety light curtain 202 is a highly sensitive photoelectric sensor capable of sensing the presence of objects within the channel in real time. When a user approaches the channel to retrieve medication from the outlet, the safety light curtain 202 immediately detects this action and sends a signal to the control system. Once an obstruction is detected in the discharge channel, the dispensing machine responds immediately. Specifically, it keeps the upper sliding door 304 and lower sliding door 305 open to allow the user's hand to smoothly enter the channel and retrieve the medication. Simultaneously, to prevent other medications from entering the discharge channel, the dispensing machine keeps the baffle 201 closed. This allows the user to retrieve medication in a safe and undisturbed environment. During the user's medication retrieval process, the dispensing machine does not immediately close the upper sliding door 304 and lower sliding door 305. Only when the user has completely left the channel and there are no longer any obstructions in the discharge channel will the dispensing machine proceed to the next step. The dispensing machine will again acquire the weight data from the second sensor 302 at the discharge port, i.e., the third weight. By comparing the difference between the third weight and the preset weight, the dispensing machine can determine whether the user has successfully taken the medicine. The preset weight can be zero. If the difference between the third weight and the preset weight is within the allowable range, it means the user has taken the medicine. At this time, the dispensing machine will close the upper sliding door 304 and the lower sliding door 305 to prevent external contaminants from entering the discharge port. It is worth noting that the dispensing machine monitors the air quality in real time throughout the entire process. If an accident occurs during the user's medicine taking process, such as the medicine falling or breaking, causing a decrease in air quality, the dispensing machine will immediately stop operating and activate the corresponding emergency response mechanism to ensure the safety of the operating environment and the quality of the medicine.
[0087] By detecting obstructions in the discharge channel using a safety light curtain, the dispensing machine can sense a user's approach in real time. Once the user is ready to retrieve the medication, the sliding door automatically opens, eliminating the need for manual operation and greatly enhancing user convenience. Simultaneously, when the channel is no longer obstructed, the sliding door automatically closes, ensuring automated operation and reducing the user's workload. When an obstruction is detected, the dispensing machine not only keeps the sliding door open but also keeps the baffle closed. This design ensures that other medications do not accidentally fall into the discharge port, avoiding the risk of medication mixing or contamination. It also provides users with a safe and undisturbed space for easy medication retrieval. By acquiring the third weight from the second sensor at the discharge port and comparing it with a preset weight, the dispensing machine can determine whether the user has successfully retrieved the medication. This step ensures accurate medication delivery and prevents subsequent operational problems caused by users not retrieving their medication. When the discharge channel is unobstructed and the medication has been retrieved, the dispensing machine promptly closes the sliding door, helping to reduce unnecessary energy waste and improve equipment energy efficiency.
[0088] Optionally, the drug dispensing method further includes:
[0089] When the upper sliding door and the lower sliding door are opened, the fresh air system is turned off;
[0090] When the upper sliding door and the lower sliding door are closed, the fresh air system is turned on to purify the air quality at the discharge port;
[0091] When the air quality at the discharge port is detected to meet the requirements, the receiving channel is activated to allow the reception of the next drug configuration completion information.
[0092] When the upper and lower sliding doors open during the dispensing process to allow the user to retrieve the medication, the dispensing machine shuts off the fresh air system. This step aims to prevent airflow from the fresh air system from causing disturbance or discomfort to the user during operation. Shutting off the fresh air system also reduces unnecessary energy consumption and improves the equipment's energy efficiency. When the user finishes retrieving the medication and leaves the dispensing channel, and the upper and lower sliding doors close, the dispensing machine restarts the fresh air system. This step aims to promptly restore the purification of the air quality at the dispensing port, ensuring a safe and hygienic environment before the next medication preparation. The fresh air system effectively removes potentially harmful substances and odors by introducing fresh air and expelling stale air, providing a good environment for the next medication preparation. The dispensing machine continuously monitors the air quality at the dispensing port. When the air quality meets the requirements, it indicates that the dispensing port has returned to a safe and hygienic state, at which point the dispensing machine activates the receiving channel. Activating the receiving channel means that the dispensing machine is ready to receive information indicating the next medication preparation is complete, and can begin a new round of medication preparation and dispensing. This step ensures that the dispensing machine can process drug dispensing tasks continuously and efficiently, improving overall work efficiency.
[0093] Optionally, the drug dispensing method further includes:
[0094] Data from the dispensing machine's dispensing platform is collected from data sources and entities are defined. A unique identifier is created for each entity. The data sources include equipment manufacturers, technical documents, and maintenance manuals. The entities include equipment, components, and failure modes.
[0095] Relationships between entities are extracted from the data, and the extracted entity and relationship data are imported into a graph database to construct a complete knowledge graph.
[0096] A fault prediction model is trained based on the knowledge graph and historical fault data, and the probability of abnormality in each component of the dispensing machine's discharge platform is predicted based on the fault prediction model.
[0097] When the probability of a component malfunctioning exceeds a threshold, the upper and lower sliding doors remain closed and an alarm is triggered.
[0098] Collecting relevant data from the dispensing platform of the medicine dispensing machine is fundamental to building a knowledge graph. These data sources include, but are not limited to, technical documents and maintenance manuals provided by equipment manufacturers. Careful analysis of this data allows for the definition of entities related to the dispensing platform, such as equipment, components, and failure modes. Each entity is assigned a unique identifier for accurate identification in subsequent data processing. After defining the entities, the next step is to extract the relationships between them. These relationships may involve connections between components, compositional relationships between components and equipment, and correspondences between components and failure modes. By extracting these relationships, the entity and relationship data can be imported into a graph database, thereby constructing a complete knowledge graph. Graph databases, with their intuitive and flexible characteristics, are well-suited for representing complex relationships between entities, providing strong data support for subsequent failure prediction. With the knowledge graph as a foundation, historical failure data can be used to train a failure prediction model. This model learns the entities and relationships in the knowledge graph, as well as their associations with historical failure data, enabling it to predict the probability of anomalies in various components of the dispensing platform. This predictive capability is crucial for timely detection of potential failures and prevention of equipment downtime. When the fault prediction model detects that the probability of a component malfunction exceeds a preset threshold, the dispensing platform of the dispensing machine will take immediate action. Specifically, it will keep the upper and lower sliding doors closed to prevent users from continuing to take medicine from the dispensing port. Simultaneously, the dispensing platform will trigger an alarm mechanism to notify maintenance or management personnel to address the fault promptly. This prevents the fault from escalating and causing greater impact on medicine dispensing.
[0099] By collecting data from sources such as equipment manufacturers, technical documents, and maintenance manuals, and defining entities such as equipment, components, and failure modes, as well as creating unique identifiers for each entity, the accuracy and consistency of the data can be ensured. This lays a solid foundation for subsequent data processing and knowledge graph construction. By extracting the relationships between entities and importing the extracted entity and relationship data into a graph database, a complete knowledge graph is constructed. The knowledge graph can intuitively display the relationships between various components in the dispensing machine's dispensing platform, providing rich data support for training the fault prediction model. Based on the knowledge graph and historical fault data, the fault prediction model can be trained to predict the probability of anomalies in various components of the dispensing machine's dispensing platform. This predictive capability can help to promptly identify potential faults, provide targeted maintenance suggestions to maintenance personnel, thereby avoiding equipment downtime or the escalation of faults, and improving the reliability and operating efficiency of the dispensing machine. When the probability of a component malfunctioning exceeds a threshold, the dispensing platform will automatically keep the upper and lower sliding doors closed and issue an alarm. This measure can promptly prevent users from continuing to take medicine from the dispensing port, avoiding potential safety risks. At the same time, the alarm mechanism can quickly notify maintenance personnel or managers so that timely measures can be taken to deal with the fault and restore the normal operation of the dispensing machine.
[0100] This embodiment also discloses a drug dispensing system. Figure 4 This is a schematic diagram of the modules of the drug dispensing system disclosed in the embodiments of this application, such as... Figure 4 As shown, the drug dispensing system includes a grasping module 401, a detection module 402, a purification module 403, and a picking module 404, wherein:
[0101] The gripping module 401 is configured to control the robotic arm to grip the medicine and transfer it to the baffle 201 above the discharge port, and then release the robotic arm.
[0102] The detection module 402 is configured to acquire data from the first sensor 301 on the baffle 201 to detect whether the medicine is located on the baffle 201. When the medicine is detected to be located on the baffle 201, the baffle 201 is opened to allow the medicine to fall into the discharge port.
[0103] The purification module 403 is configured to acquire the second weight of the second sensor 302 at the discharge port. When the difference between the second weight and the first weight is detected to be within a preset range, the baffle 201 is closed and the fresh air system is turned on to purify the air quality at the discharge port.
[0104] The retrieval module 404 is configured to open the upper sliding door 304 and the lower sliding door 305 and prompt the user to retrieve the medicine from the discharge port when the air quality at the discharge port is detected to meet the requirements.
[0105] Optionally, the grasping module 401 is configured to:
[0106] Multiple images of the drug are captured from different angles and distances. The images are preprocessed, and features are extracted from the preprocessed images. The extracted features are compared with preset standards to determine whether the drug meets the requirements. The features include color, transparency, surface tension, bubble distribution, and suspended matter.
[0107] The weight of the drug is obtained multiple times and the average value is taken as the first weight. The current temperature and current humidity are obtained. The normal weight range of the drug is determined based on the current temperature and current humidity, and it is determined whether the first weight is within the normal weight range.
[0108] Optionally, the drug dispensing system further includes an adjustment module, which is configured to:
[0109] When the drug is not detected to be on the baffle 201, the fork 203 located above the baffle 201 is controlled to move in a preset direction so that the drug hooked on the robotic arm falls down.
[0110] Optionally, the purification module 403 is configured to:
[0111] Turn off the receiving channel to temporarily stop receiving the next drug preparation completion information;
[0112] Obtain the drug type of the drug and determine whether the drug type is a chemotherapy drug;
[0113] When the drug is a chemotherapy drug, the fresh air system is controlled to adjust the pressure in the dispensing platform of the dispensing machine to a negative pressure state.
[0114] Optionally, the retrieval module 404 is configured to:
[0115] The safety light curtain 202 installed at the discharge outlet channel detects whether there is any obstruction in the discharge outlet channel. When an obstruction is detected in the discharge outlet channel, the upper sliding door 304 and the lower sliding door 305 are kept in the open state, and the baffle 201 is kept in the closed state.
[0116] When it is detected that there is no obstruction in the discharge port channel, the third weight of the second sensor 302 of the discharge port is obtained. When the third weight is a preset weight, the upper sliding door 304 and the lower sliding door 305 are closed.
[0117] Optionally, the drug dispensing system further includes a purification module 403, which is configured to:
[0118] When the upper sliding door 304 and the lower sliding door 305 are opened, the fresh air system is turned off;
[0119] When the upper sliding door 304 and the lower sliding door 305 are closed, the fresh air system is turned on to purify the air quality at the discharge port;
[0120] When the air quality at the discharge port is detected to meet the requirements, the receiving channel is activated to allow the reception of the next drug configuration completion information.
[0121] Optionally, the drug dispensing system further includes an early warning module, which is configured to:
[0122] Data from the dispensing machine's dispensing platform is collected from data sources and entities are defined. A unique identifier is created for each entity. The data sources include equipment manufacturers, technical documents, and maintenance manuals. The entities include equipment, components, and failure modes.
[0123] Relationships between entities are extracted from the data, and the extracted entity and relationship data are imported into a graph database to construct a complete knowledge graph.
[0124] A fault prediction model is trained based on the knowledge graph and historical fault data, and the probability of abnormality in each component of the dispensing machine's discharge platform is predicted based on the fault prediction model.
[0125] When the probability of a component malfunctioning exceeds a threshold, the upper sliding door 304 and the lower sliding door 305 remain closed and an alarm is triggered.
[0126] It should be noted that the above embodiments of the apparatus are only illustrated by the division of the above functional modules. In practical applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above. In addition, the apparatus and method embodiments provided in the above embodiments belong to the same concept, and the specific implementation process can be found in the method embodiments, which will not be repeated here.
[0127] This embodiment also discloses an electronic device, as shown in the reference. Figure 5 The electronic device may include: at least one processor 501, at least one communication bus 502, user interface 503, network interface 504, and at least one memory 505.
[0128] The communication bus 502 is used to enable communication between these components.
[0129] The user interface 503 may include a display screen and a camera. Optionally, the user interface 503 may also include a standard wired interface and a wireless interface.
[0130] The network interface 504 may optionally include a standard wired interface or a wireless interface (such as a Wi-Fi interface).
[0131] The processor 501 may include one or more processing cores. The processor 501 connects to various parts of the server using various interfaces and lines, and performs various server functions and processes data by running or executing instructions, programs, code sets, or instruction sets stored in memory 505, and by calling data stored in memory 505. Optionally, the processor 501 may be implemented using at least one hardware form of Digital Signal Processing (DSP), Field-Programmable Gate Array (FPGA), or Programmable Logic Array (PLA). The processor 501 may integrate one or a combination of several of the following: Central Processing Unit (CPU), Graphics Processing Unit (GPU), and modem. The CPU primarily handles the operating system, user interface, and applications; the GPU is responsible for rendering and drawing the content required for display; and the modem handles wireless communication. It is understood that the modem may also be implemented as a separate chip without being integrated into the processor 501.
[0132] The memory 505 may include random access memory (RAM) or read-only memory. Optionally, the memory 505 may include a non-transitory computer-readable storage medium. The memory 505 may be used to store instructions, programs, code, code sets, or instruction sets. The memory 505 may include a program storage area and a data storage area. The program storage area may store instructions for implementing an operating system, instructions for at least one function (such as touch functionality, sound playback functionality, image playback functionality, etc.), instructions for implementing the various method embodiments described above, etc.; the data storage area may store data involved in the various method embodiments described above, etc. Optionally, the memory 505 may also be at least one storage device located remotely from the aforementioned processor 501. As shown in the figure, the memory 505, as a computer storage medium, may include an operating system, a network communication module, a user interface module, and an application program for the drug dispensing method.
[0133] exist Figure 5 In the electronic device shown, the user interface 503 is mainly used to provide an input interface for the user and to obtain the user input data; while the processor 501 can be used to call the application program storing the drug dispensing method in the memory 505. When executed by one or more processors 501, the electronic device executes one or more methods as described in the above embodiments.
[0134] It should be noted that, for the sake of simplicity, the foregoing method embodiments are all described as a series of actions. However, those skilled in the art should understand that this application is not limited to the described order of actions, as some steps may be performed in other orders or simultaneously according to this application. Furthermore, those skilled in the art should also understand that the embodiments described in the specification are preferred embodiments, and the actions and modules involved are not necessarily essential to this application.
[0135] In the above embodiments, the descriptions of each embodiment have different focuses. For parts not described in detail in a certain embodiment, please refer to the relevant descriptions in other embodiments.
[0136] In the several embodiments provided in this application, it should be understood that the disclosed apparatus 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 shown or discussed mutual couplings or direct couplings or communication connections may be through some service interfaces; indirect couplings or communication connections between apparatuses or units may be electrical or other forms.
[0137] 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.
[0138] Furthermore, the functional units in the various embodiments of this application 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 as a software functional unit.
[0139] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage device 505. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage device 505 and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods of the various embodiments of this application. The aforementioned storage device 505 includes various media capable of storing program code, such as a USB flash drive, external hard drive, magnetic disk, or optical disk.
[0140] The foregoing description is merely an exemplary embodiment of this disclosure and should not be construed as limiting the scope of this disclosure. Any equivalent changes and modifications made in accordance with the teachings of this disclosure shall still fall within the scope of this disclosure. Those skilled in the art will readily conceive of other embodiments of this disclosure upon considering the specification and the disclosure of practical truth. This application is intended to cover any variations, uses, or adaptations of this disclosure that follow the general principles of this disclosure and include common knowledge or customary techniques in the art not described in this disclosure. The specification and embodiments are considered exemplary only, and the scope and spirit of this disclosure are defined by the claims.
Claims
1. A method for dispensing medicine, characterized in that, This is applied to the dispensing platform of a medicine dispensing machine, which includes a robotic arm, a baffle, a first sensor, a second sensor, a fresh air system, an upper sliding door, and a lower sliding door. The dispensing method includes: Control the robotic arm to grab the medicine and transfer it to the baffle above the discharge port, then release the robotic arm; Data from the first sensor on the baffle is acquired to detect whether the medicine is located on the baffle. When the medicine is detected to be located on the baffle, the baffle is opened to allow the medicine to fall into the discharge port. The weight of the medicine is obtained multiple times and the average value is taken as the first weight. The second weight of the second sensor at the discharge port is obtained. When the difference between the second weight and the first weight is detected to be within a preset range, the baffle is closed and the fresh air system is turned on to purify the air quality at the discharge port. When the air quality at the discharge port is detected to meet the requirements, the upper and lower sliding doors are opened, and the user is prompted to take the medicine from the discharge port.
2. The dispensing method according to claim 1, characterized in that, The drug dispensing method also includes: Multiple images of the drug are captured from different angles and distances. The images are preprocessed, and features are extracted from the preprocessed images. The extracted features are compared with preset standards to determine whether the drug meets the requirements. The features include color, transparency, surface tension, bubble distribution, and suspended matter. The current temperature and humidity are obtained, and the normal weight range of the medicine is determined based on the current temperature and humidity. It is also determined whether the first weight is within the normal weight range.
3. The dispensing method according to claim 1, characterized in that, The dispensing platform of the dispensing machine also includes a fork, and the dispensing method further includes: When the drug is not detected to be on the baffle, the fork located above the baffle is controlled to move in a preset direction so that the drug hooked on the robotic arm falls down.
4. The dispensing method according to claim 1, characterized in that, The step of closing the baffle and turning on the fresh air system to purify the air quality at the discharge port includes: Turn off the receiving channel to temporarily stop receiving the next drug preparation completion information; Obtain the drug type of the drug and determine whether the drug type is a chemotherapy drug; When the drug is a chemotherapy drug, the fresh air system is controlled to adjust the pressure in the dispensing platform of the dispensing machine to a negative pressure state.
5. The dispensing method according to claim 1, characterized in that, The dispensing machine's discharge platform also includes a safety light curtain, and opening the upper and lower sliding doors and prompting the user to take the medicine from the discharge port includes: The safety light curtain installed at the discharge outlet channel detects whether there is any obstruction in the discharge outlet channel. When an obstruction is detected in the discharge outlet channel, the upper sliding door and the lower sliding door are kept in the open state, and the baffle is kept in the closed state. When it is detected that there is no obstruction in the discharge port channel, the third weight of the second sensor of the discharge port is obtained. When the third weight is a preset weight, the upper sliding door and the lower sliding door are closed.
6. The dispensing method according to claim 1, characterized in that, The drug dispensing method also includes: When the upper sliding door and the lower sliding door are opened, the fresh air system is turned off; When the upper sliding door and the lower sliding door are closed, the fresh air system is turned on to purify the air quality at the discharge port; When the air quality at the discharge port is detected to meet the requirements, the receiving channel is activated to allow the reception of the next drug configuration completion information.
7. The dispensing method according to claim 1, characterized in that, The drug dispensing method also includes: Data from the dispensing machine's dispensing platform is collected from data sources and entities are defined. A unique identifier is created for each entity. The data sources include equipment manufacturers, technical documents, and maintenance manuals. The entities include equipment, components, and failure modes. Relationships between entities are extracted from the data, and the extracted entity and relationship data are imported into a graph database to construct a complete knowledge graph. A fault prediction model is trained based on the knowledge graph and historical fault data, and the probability of abnormality in each component of the dispensing machine's discharge platform is predicted based on the fault prediction model. When the probability of a component malfunctioning exceeds a threshold, the upper and lower sliding doors remain closed and an alarm is triggered.
8. A drug dispensing system, characterized in that, It includes a capture module, a detection module, a purification module, and a picking module, among which: The gripping module is configured to control the robotic arm to grip the medicine and transfer it to the baffle above the discharge port, and then release the robotic arm. The detection module is configured to acquire data from a first sensor on the baffle to detect whether the medicine is located on the baffle. When the medicine is detected to be located on the baffle, the baffle is opened to allow the medicine to fall into the discharge port. The purification module is configured to acquire the weight of the medicine multiple times and take the average value as the first weight, acquire the second weight of the second sensor at the discharge port, and when the difference between the second weight and the first weight is detected to be within a preset range, close the baffle and turn on the fresh air system to purify the air quality at the discharge port. The retrieval module is configured to open the upper and lower sliding doors and prompt the user to retrieve the medicine from the discharge port when the air quality at the discharge port is detected to meet the requirements.
9. An electronic device, characterized in that, The device includes a processor, a memory, a user interface, and a network interface. The memory is used to store instructions. The user interface and the network interface are both used to communicate with other devices. The processor is used to execute the instructions stored in the memory to cause the electronic device to perform the method as described in any one of claims 1-7.
10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores instructions that, when executed, perform the method as described in any one of claims 1-7.