Medicine dispensing method and device, terminal equipment and storage medium

By combining laser distance sensors and image acquisition devices in the drug counting module, the accurate counting and efficient drug delivery of an automated drug distribution system are achieved, solving the problems of high cost and counting errors in the existing system.

CN119745208APending Publication Date: 2025-04-04SHENZHEN LACHESIS MOBILE MEDICAL TECH CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202411725216.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-28
Publication Date
2025-04-04

AI Technical Summary

Technical Problem

The existing automated drug distribution system is costly and prone to counting errors, especially when there are too many drugs or precise measurement is required.

Method used

The movable drug counting module is adopted, including a laser distance sensor and an image acquisition device, to confirm the location and type of the drug through image acquisition, and combine the laser distance sensor to measure the forward distance of the drug delivery slot push plate to achieve automatic drug delivery.

Benefits of technology

It reduces the hardware cost of automated drug delivery, improves the accuracy and efficiency of drug delivery, and reduces the occurrence of manual errors.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119745208A_ABST
    Figure CN119745208A_ABST
Patent Text Reader

Abstract

The invention discloses a medicine dispensing method and device, terminal equipment and a storage medium. The method comprises the following steps: determining a first position and thickness information of a to-be-dispensed medicine according to a medicine dispensing demand, and controlling a medicine counting module to reach the first position; wherein the medicine counting module comprises a laser distance sensor and an image acquisition device; when it is confirmed that the medicine at the current first position is consistent with the medicine to be dispensed through the image acquisition device, the first distance that a medicine dispensing groove push plate needs to be pushed forwards is determined according to the medicine dispensing requirement and the thickness information; and through the laser distance sensor and in combination with the first distance, the medicine dispensing groove push plate is controlled to be pushed forwards, and medicine dispensing operation is completed. According to the method and the device, the dispensing cost can be reduced and the dispensing accuracy can be improved while the dispensing efficiency is ensured.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of intelligent drug management, and in particular to a drug dispensing method, device, terminal equipment and storage medium. Background Art

[0002] Traditional drug dispensing methods usually rely on manual counting and manual distribution, which are cumbersome and prone to errors, especially when the number of drugs is large or requires precise measurement. Therefore, with the increasing requirements for drug management and drug dispensing accuracy in the medical and health field, automated and intelligent drug dispensing systems have gradually become an important part of modern drug management.

[0003] In the prior art, when performing automated drug dispensing, sensors are usually used to count the drugs when they are dispensed, such as gravity sensors, photoelectric sensors, etc. However, the above sensors usually require at least one sensor to be installed at the storage tank of each drug, resulting in high costs for automated drug dispensing.

[0004] Therefore, how to reduce the cost of automated drug dispensing while ensuring its accuracy is a technical problem that needs to be solved at present. Summary of the invention

[0005] The present application provides a medicine dispensing method, apparatus, terminal device and storage medium to solve the technical problem of how to reduce the cost of automated medicine dispensing while ensuring the accuracy of automated medicine dispensing.

[0006] In order to solve the above technical problems, in a first aspect, the present application provides a method for dispensing medicine, comprising:

[0007] According to the drug delivery requirements, determine the first position and thickness information of the drug to be delivered, and control the drug counting module to the first position; wherein the drug counting module includes: a laser distance sensor and an image acquisition device;

[0008] When it is confirmed by the image acquisition device that the medicine at the current first position is consistent with the medicine to be dispensed, a first distance that the medicine dispensing slot push plate needs to be pushed forward is determined according to the medicine dispensing requirement and the thickness information;

[0009] The medicine dispensing slot push plate is controlled to be pushed forward by the laser distance sensor in combination with the first distance to complete the medicine dispensing operation.

[0010] Compared with the prior art, the embodiments of the present application have the following beneficial effects: through a movable medicine counting module, the medicine counting module includes a laser distance sensor and an image acquisition device, wherein the image acquisition device can ensure that the currently dispensed medicines meet the medicine demand, and the laser distance sensor can accurately measure the real-time advancement distance of the push plate of the medicine dispensing trough that can be pushed forward, and further combined with the thickness information of the medicine to be dispensed, the first distance that the push plate of the medicine dispensing trough needs to be pushed forward can be accurately calculated, thereby using only one laser distance sensor to realize the automatic dispensing operation of all medicines, reducing the cost of dispensing medicines while improving the efficiency and accuracy of dispensing medicines.

[0011] In some embodiments of the first aspect of the present application, the step of controlling the medicine dispensing slot push plate to push forward by the laser distance sensor in combination with the first distance to complete the medicine dispensing operation includes:

[0012] At every first preset time interval, the laser distance sensor measures the second distance that the push plate of the medicine dispensing slot is currently pushed forward;

[0013] When the second distance is currently smaller than the first distance, the medicine dispensing trough push plate is controlled to continue to be pushed forward until the second distance is equal to the first distance.

[0014] Compared with the prior art, the above embodiment has the following beneficial effects: the forward push distance of the medicine dispensing trough push plate is monitored in real time by a laser distance sensor, which not only improves the accuracy of medicine dispensing counting, but also realizes automatic medicine dispensing by only adding relevant components that can receive start and stop instructions to the forward push device of the medicine dispensing trough push plate, thereby reducing the hardware cost of automatic medicine dispensing.

[0015] In some embodiments of the first aspect of the present application, after confirming through the image acquisition device that the medicine currently at the first position is consistent with the medicine to be dispatched, the process further includes:

[0016] The drug delivery demand also includes a first quantity of the drug to be delivered;

[0017] Calculating a third distance from the laser distance sensor to the medicine dispensing slot push plate by means of the laser distance sensor;

[0018] Calculating a second quantity of the medicines to be dispensed in the medicine dispensing slot according to the thickness information and the third distance;

[0019] When the second quantity does not meet the first quantity, the user is prompted to perform a medicine replenishment operation.

[0020] Compared with the prior art, the above embodiment has the following beneficial effects: before performing the medicine dispensing operation, the actual distance from the laser distance sensor to the medicine dispensing trough push plate is first measured by the laser distance sensor. Combined with the thickness of the medicine to be dispensed, the number of medicines to be dispensed currently in the medicine dispensing trough can be calculated. When the number of medicines to be dispensed is insufficient to support the current medicine dispensing operation, a reminder to replenish the medicine is given in time to ensure that there is enough medicine in the medicine dispensing trough and reduce the failure rate of medicine dispensing.

[0021] In some embodiments of the first aspect of the present application, the laser distance sensor is used in combination with the first distance to control the push plate of the medicine dispensing trough to be pushed forward. After the medicine dispensing operation is completed, it also includes: obtaining the third quantity of the remaining medicines to be dispensed in the current medicine dispensing trough through the laser distance sensor, and uploading the third quantity to the medicine inventory system.

[0022] Compared with the prior art, the above embodiment has the following beneficial effects: after dispensing the medicines, the remaining medicines to be dispensed in the current medicine dispensing slot are obtained through a laser distance sensor, and the medicine inventory system is updated in time according to the remaining quantity, which can improve the rationality of the subsequent medicine dispensing demand formulation, avoid the subsequent medicine dispensing demand not being met, and reduce the failure rate of medicine dispensing.

[0023] In a second aspect, the embodiment of the present application further provides a medicine dispensing device, comprising: a medicine counting module control module, a first distance calculation module and a medicine dispensing module;

[0024] The medicine counting module control module is used to determine the first position and thickness information of the medicine to be issued according to the medicine issuing requirement, and control the medicine counting module to the first position; wherein the medicine counting module includes: a laser distance sensor and an image acquisition device;

[0025] The first distance calculation module is used to determine the first distance that the medicine dispensing slot push plate needs to be pushed forward according to the medicine dispensing requirement and the thickness information when it is confirmed through the image acquisition device that the medicine currently at the first position is consistent with the medicine to be dispensed;

[0026] The medicine dispensing module is used to control the medicine dispensing slot push plate to push forward through the laser distance sensor in combination with the first distance to complete the medicine dispensing operation.

[0027] In some embodiments of the second aspect of the present application, the control of pushing the medicine dispensing slot push plate forward by the laser distance sensor in combination with the first distance to complete the medicine dispensing operation includes:

[0028] At every first preset time interval, the laser distance sensor measures the second distance that the push plate of the medicine dispensing slot is currently pushed forward;

[0029] When the second distance is currently smaller than the first distance, the medicine dispensing trough push plate is controlled to continue to be pushed forward until the second distance is equal to the first distance.

[0030] In some embodiments of the second aspect of the present application, after confirming through the image acquisition device that the medicine at the current first position is consistent with the medicine to be dispatched, the process further includes:

[0031] The drug delivery demand also includes a first quantity of the drug to be delivered;

[0032] Calculating a third distance from the laser distance sensor to the medicine dispensing slot push plate by means of the laser distance sensor;

[0033] Calculating a second quantity of the medicines to be dispensed in the medicine dispensing slot according to the thickness information and the third distance;

[0034] When the second quantity does not meet the first quantity, the user is prompted to perform a medicine replenishment operation.

[0035] In some embodiments of the second aspect of the present application, the laser distance sensor is used in combination with the first distance to control the push plate of the medicine dispensing trough to be pushed forward. After the medicine dispensing operation is completed, it also includes: obtaining the third quantity of the remaining medicines to be dispensed in the current medicine dispensing trough through the laser distance sensor, and uploading the third quantity to the medicine inventory system.

[0036] In a third aspect, the present application also provides a terminal device, comprising a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, wherein the processor implements the above-mentioned drug dispensing method when executing the computer program.

[0037] In a fourth aspect, the present application further provides a computer-readable storage medium, wherein the computer-readable storage medium includes a stored computer program, wherein when the computer program is executed, the device where the computer-readable storage medium is located is controlled to execute the above-mentioned drug dispensing method. BRIEF DESCRIPTION OF THE DRAWINGS

[0038] Figure 1 A schematic diagram of a method for dispensing medicine provided in some embodiments of the present application;

[0039] Figure 2 This is a schematic diagram of the structure of a medicine dispensing device provided in some embodiments of the present application;

[0040] Figure 3 This is another structural schematic diagram of a medicine dispensing device provided in some embodiments of the present application. DETAILED DESCRIPTION

[0041] Traditional drug dispensing methods usually rely on manual counting and manual distribution, which are cumbersome and prone to errors, especially when the number of drugs is large or requires precise measurement. In order to improve the automation of the drug dispensing process, the existing technology usually uses sensors to count the drugs when dispensing, such as gravity sensors, photoelectric sensors, etc. However, the above sensors usually need to install at least one sensor at the storage tank of each drug, resulting in high costs for automated drug dispensing.

[0042] In order to solve the above technical problems, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0043] Embodiment 1

[0044] Please refer to Figure 1 , a medicine dispensing method provided in an embodiment of the present application, including S10 to S30, specifically including:

[0045] S10: According to the drug dispensing requirements, determine the first position and thickness information of the drugs to be dispensed, and control the drug counting module to the first position; wherein the drug counting module includes: a laser distance sensor and an image acquisition device.

[0046] refer to Figure 2 , is a schematic diagram of the structure of a medicine dispensing device provided in an embodiment of the present application, which includes: a verification and counting module (i.e., a medicine counting module), a medicine receiving mechanism, a medicine push plate (i.e., a medicine dispensing trough push plate), and a plate layer (i.e., a medicine dispensing trough); wherein, the verification and counting module includes a laser displacement sensor (i.e., a laser distance sensor) and a verification camera (i.e., an image acquisition device). The medicine dispensing trough is a receiving mechanism for the medicine and the medicine dispensing trough push plate, wherein, the medicine dispensing trough push plate and the medicine dispensing trough can be connected by a sliding connection, and the sliding connection allows the medicine dispensing trough push plate to slide along the medicine dispensing trough, thereby realizing the forward and backward movement of the push plate, such as using slide rails, guide rails, rollers, slide grooves and other components to connect the medicine dispensing trough push plate and the medicine dispensing trough.

[0047] Preferably, in some embodiments of the present application, the drug counting module can be fixed to a device that can receive a first position and then automatically move according to the first position. The present application does not limit the movement method of the drug counting module, and the drug counting module can be moved to any drug dispensing slot.

[0048] Preferably, in some embodiments of the present application, the laser distance sensor can emit a laser to the medicine dispensing trough push plate, measure the actual distance from the laser distance sensor to the medicine dispensing trough push plate, and subtract the distance from the laser distance sensor to the first box of medicines to obtain the distance from the first box of medicines to the medicine dispensing trough push plate.

[0049] Optionally, the laser distance sensor can adopt any laser sensor that can measure distance, such as a time-of-flight sensor (i.e., calculating the distance based on the time difference between the emission and reception of the laser pulse), a phase sensor (calculating the distance based on the phase difference between the emitted laser light wave and the received reflected light wave), or a triangulation sensor (calculating the distance to an object using the change in angle between the laser point and the receiver).

[0050] Preferably, in some embodiments of the present application, after the image acquisition device acquires and identifies the image of the medicine in front of the current camera, it compares the image recognition result with the medicine information corresponding to the actual medicine dispensing demand, obtains the comparison result, and determines whether the medicine dispensing slot currently reached by the current medicine dispensing counting module is correct based on the comparison result. When it is incorrect, there may be no medicine in the current medicine dispensing slot or wrong position information is sent in the medicine dispensing demand, so it is necessary to measure the distance between the laser distance sensor and the medicine dispensing slot push plate through the laser distance sensor. Determine whether the medicine dispensing slot is empty. If it is empty, perform the medicine replenishment operation, and upload the position information of the current medicine counting module to the medicine inventory system to avoid the impact of the wrong position information being sent and the problem of the medicine dispensing slot being empty on the subsequent medicine dispensing operation; otherwise, reconfirm whether the position information in the medicine dispensing demand is correct until the correct medicine dispensing slot is found through the image acquisition device.

[0051] Preferably, in some embodiments of the present application, the drug delivery requirements include, but are not limited to: information such as packaging pictures of the drugs to be delivered, the names of the drugs to be delivered, and descriptions of the outer packaging.

[0052] Optionally, the image acquisition device can collect drug packaging pictures, calculate the similarity between the currently collected drug packaging pictures and the packaging pictures of the drugs to be dispatched, and when the similarity meets a certain threshold, it is judged that the current drug counting module has reached the correct medicine dispensing slot; or by collecting drug packaging pictures, extracting text information in the drug packaging pictures, and performing semantic analysis on the text information and information such as the name of the drugs to be dispatched and the outer packaging description, and if the semantic similarity meets a certain threshold, it is judged that the current drug counting module has reached the correct medicine dispensing slot.

[0053] Preferably, in some embodiments of the present application, the medicine dispensing trough push plate can be connected to a driving mechanism, such as a motor drive, a pneumatic drive, etc., for receiving start and stop instructions sent by a laser distance sensor.

[0054] S20: When it is confirmed through the image acquisition device that the medicine currently at the first position is consistent with the medicine to be dispensed, a first distance that the medicine dispensing slot push plate needs to be pushed forward is determined according to the medicine dispensing requirement and the thickness information.

[0055] Preferably, in some embodiments of the present application, the first distance can be obtained by multiplying the first quantity by the thickness information.

[0056] Furthermore, in some embodiments of the present application, after confirming through the image acquisition device that the medicine currently at the first position is consistent with the medicine to be dispatched, the method further includes:

[0057] The drug delivery demand also includes a first quantity of the drug to be delivered;

[0058] Calculating a third distance from the laser distance sensor to the medicine dispensing slot push plate by means of the laser distance sensor;

[0059] Calculating a second quantity of the medicines to be dispensed in the medicine dispensing slot according to the thickness information and the third distance;

[0060] When the second quantity does not meet the first quantity, the user is prompted to perform a medicine replenishment operation.

[0061] Before dispensing medicine, the actual distance from the laser distance sensor to the push plate of the medicine dispensing trough is first measured by the laser distance sensor. Combined with the thickness of the medicine to be dispensed, the number of medicines to be dispensed in the current medicine dispensing trough can be calculated. When the number of medicines to be dispensed is insufficient to support this dispensing operation, a reminder to replenish the medicine is given in time to ensure that there are sufficient medicines in the medicine dispensing trough and reduce the failure rate of dispensing.

[0062] Preferably, in some embodiments of the present application, the difference between the second quantity and the first quantity is prompted to the user to remind the user of the quantity of medicine needed to be replenished, thereby improving the efficiency of medicine replenishment.

[0063] S30: Using the laser distance sensor and the first distance, the medicine dispensing slot push plate is controlled to be pushed forward to complete the medicine dispensing operation.

[0064] Further, in some embodiments of the present application, the laser distance sensor is used in combination with the first distance to control the medicine dispensing slot push plate to push forward to complete the medicine dispensing operation, including:

[0065] At every first preset time interval, the laser distance sensor measures the second distance that the push plate of the medicine dispensing slot is currently pushed forward;

[0066] When the second distance is currently smaller than the first distance, the medicine dispensing trough push plate is controlled to continue to be pushed forward until the second distance is equal to the first distance.

[0067] The real-time monitoring of the forward push distance of the medicine dispensing trough push plate by the laser distance sensor not only improves the accuracy of medicine dispensing counting, but also realizes automatic medicine dispensing by only adding relevant components that can receive start and stop instructions to the forward push device of the medicine dispensing trough push plate, thereby reducing the hardware cost of automatic medicine dispensing.

[0068] Preferably, in some embodiments of the present application, the laser distance sensor can perform a second distance measurement operation every x seconds, where x is calculated based on the speed v of the push plate of the medicine dispensing slot and the thickness information l:

[0069]

[0070] That is, the time interval for each distance measurement cannot cause the distance pushed forward by the medicine dispensing slot push plate to exceed half the thickness of the medicine to be dispensed, so as to avoid the time interval being too large causing the number of medicines dispensed to exceed the medicine dispensing demand. The distance measurement time interval for each medicine dispensing slot corresponding to the medicine dispensing is dynamically adjusted to improve the accuracy of automatic medicine dispensing.

[0071] Furthermore, in some embodiments of the present application, the laser distance sensor is used in combination with the first distance to control the push plate of the medicine dispensing trough to be pushed forward. After the medicine dispensing operation is completed, it also includes: obtaining a third quantity of the remaining medicines to be dispensed in the current medicine dispensing trough through the laser distance sensor, and uploading the third quantity to the medicine inventory system.

[0072] After dispensing the medicine, the laser distance sensor is used to obtain the remaining medicines to be dispensed in the current dispensing slot, and the medicine inventory system is updated in time according to the remaining quantity. This can improve the rationality of the subsequent dispensing demand formulation, avoid the subsequent dispensing demand not being met, and reduce the failure rate of dispensing.

[0073] In summary, a drug dispensing method provided by an embodiment of the present application has the following beneficial effects: through a movable drug counting module, the drug counting module includes a laser distance sensor and an image acquisition device, wherein the image acquisition device can ensure that the currently dispensed drugs meet the drug demand, and the laser distance sensor can accurately measure the real-time advancement distance of the push plate of the drug dispensing trough that can be pushed forward, and further combined with the thickness information of the drugs to be dispensed, the first distance that the push plate of the drug dispensing trough needs to be pushed forward can be accurately calculated, thereby using only one laser distance sensor to realize the automated drug dispensing operation of all drugs, thereby reducing the cost of drug dispensing while improving the efficiency and accuracy of drug dispensing.

[0074] Embodiment 2

[0075] refer to Figure 3 , is another structural schematic diagram of a medicine dispensing device provided in an embodiment of the present application, comprising: a medicine counting module control module 11, a first distance calculation module 12 and a medicine dispensing module 13.

[0076] Furthermore, in some embodiments of the present application, the medicine counting module control module 11 is used to determine the first position and thickness information of the medicine to be dispensed according to the medicine dispensing requirements, and control the medicine counting module to the first position; wherein the medicine counting module includes: a laser distance sensor and an image acquisition device; the first distance calculation module 12 is used to determine the first distance that the medicine dispensing trough push plate needs to be pushed forward according to the medicine dispensing requirements and the thickness information when it is confirmed through the image acquisition device that the medicine at the current first position is consistent with the medicine to be dispensed; the medicine dispensing module 13 is used to control the medicine dispensing trough push plate to be pushed forward through the laser distance sensor in combination with the first distance to complete the medicine dispensing operation.

[0077] Furthermore, in some embodiments of the present application, the laser distance sensor is used in combination with the first distance to control the medicine dispensing trough push plate to be pushed forward to complete the medicine dispensing operation, including: measuring the second distance currently pushed forward by the medicine dispensing trough push plate through the laser distance sensor every first preset time interval; when the second distance currently is less than the first distance, controlling the medicine dispensing trough push plate to continue to be pushed forward until the second distance is equal to the first distance.

[0078] Furthermore, in some embodiments of the present application, after confirming through the image acquisition device that the medicines currently in the first position are consistent with the medicines to be dispatched, it also includes: the medicine dispatch demand also includes a first quantity of the medicines to be dispatched; calculating a third distance from the laser distance sensor to the medicine dispensing trough push plate through the laser distance sensor; calculating a second quantity of the medicines to be dispatched in the medicine dispensing trough based on the thickness information and the third distance; and when the second quantity does not meet the first quantity, prompting the user to perform a medicine replenishment operation.

[0079] Furthermore, in some embodiments of the present application, the laser distance sensor is used in combination with the first distance to control the push plate of the medicine dispensing trough to be pushed forward. After the medicine dispensing operation is completed, it also includes: obtaining a third quantity of the remaining medicines to be dispensed in the current medicine dispensing trough through the laser distance sensor, and uploading the third quantity to the medicine inventory system.

[0080] It can be understood that the above-mentioned device embodiment corresponds to the method embodiment of the present invention. A medicine dispensing device provided by the embodiment of the present invention can implement any method embodiment of the present invention, that is, the medicine dispensing method provided by embodiment one.

[0081] In summary, a medicine dispensing device provided in an embodiment of the present application has the following beneficial effects: through a movable medicine counting module, the medicine counting module includes a laser distance sensor and an image acquisition device, wherein the image acquisition device can ensure that the currently dispensed medicines meet the medicine demand, and the laser distance sensor can accurately measure the real-time advancement distance of the medicine dispensing trough push plate that can be pushed forward, and further combined with the thickness information of the medicine to be dispensed, it can accurately calculate the first distance that the medicine dispensing trough push plate needs to be pushed forward, so that only one laser distance sensor is used to realize the automatic dispensing operation of all medicines, thereby reducing the cost of dispensing medicines while improving the efficiency and accuracy of dispensing medicines.

[0082] Embodiment 3

[0083] Based on the above-mentioned embodiment of the drug dispensing method, another embodiment of the present application provides a drug dispensing terminal device, which includes a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor. When the processor executes the computer program, the drug dispensing method of any embodiment of the present application is implemented.

[0084] Exemplarily, in this embodiment, the computer program may be divided into one or more modules, which are stored in the memory and executed by the processor to complete the present application. The one or more modules may be a series of computer program instruction segments capable of completing specific functions, which are used to describe the execution process of the computer program in the drug dispensing device.

[0085] The medicine dispensing device may be a computing device such as a desktop computer, a notebook, a palm computer, a cloud server, etc. The medicine dispensing terminal device may include, but is not limited to, a processor and a memory.

[0086] The processor may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or any conventional processor, etc. The processor is the control center of the medicine dispensing device, and uses various interfaces and lines to connect various parts of the entire medicine dispensing device. The memory may be used to store the computer program and / or module, and the processor implements various functions of the medicine dispensing device by running or executing the computer program and / or module stored in the memory, and calling the data stored in the memory. The memory may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function, etc.; the data storage area may store data created according to the use of the mobile phone, etc. In addition, the memory may include a high-speed random access memory and may also include a non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a smart memory card (Smart Med ia Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), at least one disk storage device, a flash memory device, or other volatile solid-state storage devices.

[0087] Embodiment 4

[0088] Based on the above-mentioned embodiments of the drug dispensing method, another embodiment of the present application provides a storage medium, wherein the storage medium includes a stored computer program, wherein when the computer program is running, the device where the storage medium is located is controlled to execute the drug dispensing method of any embodiment of the present application.

[0089] In this embodiment, the storage medium is a computer-readable storage medium, and the computer program includes computer program code, which may be in source code form, object code form, executable file or some intermediate form, etc. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, USB flash drive, mobile hard disk, magnetic disk, optical disk, computer memory, read-only memory (ROM), random access memory (RAM), electric carrier signal, telecommunication signal and software distribution medium, etc. It should be noted that the content contained in the computer-readable medium may be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, computer-readable media do not include electric carrier signals and telecommunication signals.

[0090] The specific embodiments described above further describe the purpose, technical solutions and beneficial effects of the present application in detail. It should be understood that the above description is only a specific embodiment of the present application and is not intended to limit the scope of protection of the present application. It is particularly pointed out that for those skilled in the art, any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of protection of the present application.

Claims

1. A method for dispensing medicine, characterized in that: include: According to the drug delivery requirements, determine the first position and thickness information of the drug to be delivered, and control the drug counting module to the first position; wherein the drug counting module includes: a laser distance sensor and an image acquisition device; When it is confirmed by the image acquisition device that the medicine at the current first position is consistent with the medicine to be dispensed, a first distance that the medicine dispensing slot push plate needs to be pushed forward is determined according to the medicine dispensing requirement and the thickness information; The medicine dispensing slot push plate is controlled to be pushed forward by the laser distance sensor in combination with the first distance to complete the medicine dispensing operation.

2. A method for dispensing medicine according to claim 1, characterized in that: The method of controlling the medicine dispensing slot push plate to push forward by the laser distance sensor in combination with the first distance to complete the medicine dispensing operation includes: At every first preset time interval, the laser distance sensor measures the second distance that the push plate of the medicine dispensing slot is currently pushed forward; When the second distance is currently smaller than the first distance, the medicine dispensing trough push plate is controlled to continue to be pushed forward until the second distance is equal to the first distance.

3. A method for dispensing medicine according to claim 1, characterized in that: After the image acquisition device confirms that the medicine at the current first position is consistent with the medicine to be dispatched, the method further includes: The drug delivery demand also includes a first quantity of the drug to be delivered; Calculating a third distance from the laser distance sensor to the medicine dispensing slot push plate by means of the laser distance sensor; Calculating a second quantity of the medicines to be dispensed in the medicine dispensing slot according to the thickness information and the third distance; When the second quantity does not meet the first quantity, the user is prompted to perform a medicine replenishment operation.

4. A method for dispensing medicine according to claim 1, characterized in that: The laser distance sensor is used in combination with the first distance to control the medicine dispensing slot push plate to push forward. After the medicine dispensing operation is completed, it also includes: obtaining the third quantity of the remaining medicines to be dispensed in the current medicine dispensing slot through the laser distance sensor, and uploading the third quantity to the medicine inventory system.

5. A medicine dispensing device, characterized in that: include: Medicine counting module control module, first distance calculation module and medicine dispensing module; The medicine counting module control module is used to determine the first position and thickness information of the medicine to be issued according to the medicine issuing requirement, and control the medicine counting module to the first position; wherein the medicine counting module includes: a laser distance sensor and an image acquisition device; The first distance calculation module is used to determine the first distance that the medicine dispensing slot push plate needs to be pushed forward according to the medicine dispensing requirement and the thickness information when it is confirmed through the image acquisition device that the medicine currently at the first position is consistent with the medicine to be dispensed; The medicine dispensing module is used to control the medicine dispensing slot push plate to push forward through the laser distance sensor in combination with the first distance to complete the medicine dispensing operation.

6. A medicine dispensing device as claimed in claim 5, characterized in that: The method of controlling the medicine dispensing slot push plate to push forward by the laser distance sensor in combination with the first distance to complete the medicine dispensing operation includes: At every first preset time interval, the laser distance sensor measures the second distance that the push plate of the medicine dispensing slot is currently pushed forward; When the second distance is currently smaller than the first distance, the medicine dispensing trough push plate is controlled to continue to be pushed forward until the second distance is equal to the first distance.

7. A medicine dispensing device as claimed in claim 5, characterized in that: After the image acquisition device confirms that the medicine at the current first position is consistent with the medicine to be dispatched, the method further includes: The drug delivery demand also includes a first quantity of the drug to be delivered; Calculating a third distance from the laser distance sensor to the medicine dispensing slot push plate by means of the laser distance sensor; Calculating a second quantity of the medicines to be dispensed in the medicine dispensing slot according to the thickness information and the third distance; When the second quantity does not meet the first quantity, the user is prompted to perform a medicine replenishment operation.

8. A medicine dispensing device as claimed in claim 5, characterized in that: The laser distance sensor is used in combination with the first distance to control the medicine dispensing slot push plate to push forward. After the medicine dispensing operation is completed, it also includes: obtaining the third quantity of the remaining medicines to be dispensed in the current medicine dispensing slot through the laser distance sensor, and uploading the third quantity to the medicine inventory system.

9. A terminal device, characterized in that: The method comprises a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, wherein when the processor executes the computer program, a drug dispensing method as claimed in any one of claims 1 to 4 is implemented.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a stored computer program, wherein when the computer program is executed, the device where the computer-readable storage medium is located is controlled to execute a drug dispensing method as claimed in any one of claims 1 to 4.

Citation Information

Patent Citations

  • Automatic medicine taking mechanism of intelligent medicine cabinet

    CN117800001A

  • Medicine taking and distributing integrated robot system

    CN220244396U

  • Device for putting out injection drug

    JP2006116179A