Medicine taking guiding method and system, electronic equipment and storage medium
By installing cameras on medicine cabinets to identify drug images and automatically screen non-expired drugs, combined with electric lock control and alarm systems, the problems of complicated and error-prone drug collection processes in pharmacies have been solved, and a fast and accurate drug collection process has been achieved.
Patent Information
- Application Number
- CN202510777210.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-06-11
- Publication Date
- 2025-09-19
AI Technical Summary
The existing process of getting medicine in hospital pharmacies is complicated, time-consuming, labor-intensive and prone to errors.
A camera for capturing images of medicines is installed on the medicine cabinet. Through image processing, the expiration date and label information of the medicines are identified, and the medicines to be taken are automatically screened out and location instructions are generated. Combined with electric lock control, it ensures that pharmacists take out non-expired medicines with a short remaining expiration date, and an alarm is issued in case of an error.
It achieves fast and accurate drug screening, reduces manual operations, avoids the waste of expired drugs, ensures timely reminders when the wrong drugs are taken, and saves the steps of taking drugs.
Smart Images

Figure CN120674010A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of pharmacy medicine collection, and in particular relates to a medicine collection guidance method and system, electronic equipment and storage medium. Background Art
[0002] The existing drug collection process in hospital pharmacies generally involves a pharmacist confirming the drugs to be collected based on the information on the prescription, finding all drugs in the medicine cabinet that have the same name, drug specifications, and manufacturer as the drugs to be collected, comparing the expiration dates of all the drugs found, and collecting the drugs with the same expiration dates. The collected drugs are then delivered to the person collecting the drugs. This drug collection process includes a drug screening process manually performed by the pharmacist, so the process is complicated, time-consuming, labor-intensive, and prone to errors.
[0003] Therefore, the existing technology needs to be improved and developed. Summary of the Invention
[0004] The purpose of this application is to provide a medication collection guidance method and system, aiming to solve the problem that the medication collection process in existing hospital pharmacies is complicated, time-consuming, labor-intensive and error-prone.
[0005] In a first aspect, the present application provides a medication retrieval guidance method, which is applied to a medicine cabinet in a hospital pharmacy. The medicine cabinet is provided with a first camera for capturing images of the medicines entering the cabinet to obtain expiration information of the medicines entering the cabinet, and a second camera for real-time monitoring and capturing images of the medicines entering the cabinet. The medicines have label information generated when they enter the cabinet. The medication retrieval guidance method comprises the following steps: S1. Obtain prescription information and select multiple candidate drugs from the drugs in the medicine cabinet based on the prescription information. The prescription information includes the name of the prescribed drug, the corresponding drug specification information, and the manufacturer information; S2. Selecting a drug to be retrieved from the candidate drugs based on the expiration date information of the candidate drugs, locating the drug to be retrieved from an image of the stored drugs captured by the second camera based on the label information of the drug to be retrieved, and extracting the location information of the drug to be retrieved. The drug to be retrieved is the candidate drug with the shortest remaining expiration date that meets the expiration date conditions, where the expiration date conditions include: the drug is not expired; S3. Generate location indication information based on the location information of the medicine to be taken.
[0006] The medication guidance method of the present application can quickly and accurately screen out the medications that should be taken, and the screening step does not need to be performed manually, saving time and effort; and the present application can accurately select the medications that should be taken from the images of the medications in the cabinet obtained by the second camera through the label information of the medications that should be taken, thereby correctly extracting the location information of the medications that should be taken, facilitating the subsequent generation of correct location guidance information; and the present application can guide pharmacists to give priority to taking out medications that have not expired and have a short remaining validity period, thereby avoiding expired medication waste as much as possible; and the present application can prevent pharmacists from misreading the prescription information, thereby guiding pharmacists to accurately take medications.
[0007] Furthermore, the first camera is also used to obtain images of the medicines when they are taken out of the cabinet; The medication guidance method further includes executing the following steps after step S3: A1. When a pharmacist takes medicine out of the medicine cabinet, the first camera captures an image of the medicine being taken out of the cabinet, obtains the expiration date information of the medicine based on the image of the medicine being taken out of the cabinet, and issues an alarm if the expiration date information of the medicine being taken out of the cabinet differs from the expiration date information of the medicine to be taken out.
[0008] In this embodiment, the present application issues an alarm when the expiration date information of the medicine shipped out of the counter is different from the expiration date information of the medicine to be taken, and can verify the medicine shipped out of the counter, so as to promptly remind the pharmacist when the pharmacist takes the wrong medicine.
[0009] Furthermore, the first camera is also used to obtain images of the medicines when they are taken out of the cabinet; The medication guidance method further includes executing the following steps after step S3: B1. When the pharmacist takes the medicine out of the medicine cabinet, the first camera is used to obtain an image of the medicine being taken out of the cabinet, and the traceability code information of the medicine being taken out of the cabinet is obtained based on the image of the medicine being taken out of the cabinet. When the traceability code information of the medicine being taken out of the cabinet is the same as the traceability code information of the medicine to be taken out, the traceability code information of the medicine to be taken out is scanned. The traceability code information of the medicine to be taken out is obtained based on the image of the medicine to be taken out that was pre-acquired by the first camera when the medicine to be taken out was put into the cabinet.
[0010] In this embodiment, the present application enables the pharmacist to directly pass the out-of-the-box medicine to the person who picks up the medicine after taking it out, without the need to manually scan the traceability code information of the out-of-the-box medicine, which can save steps in the medicine collection process and save time and effort; and the present application only scans the traceability code information of the out-of-the-box medicine when the traceability code information of the out-of-the-box medicine is the same as the traceability code information of the medicine to be collected, which can ensure that the scanned traceability code information is correct.
[0011] Furthermore, the prescription information also includes the medication cycle information of the prescribed medicine, and the validity period conditions also include: The remaining validity period of the drug is greater than the prescribed medication period information.
[0012] In a second aspect, the present application provides a medication retrieval guidance system, which is applied to a medicine cabinet in a hospital pharmacy. The medicine cabinet is provided with a first camera for capturing images of the medicines entering the cabinet to obtain expiration information of the medicines entering the cabinet, and a second camera for real-time monitoring and capturing images of the medicines entering the cabinet. The medicines have label information generated when they enter the cabinet. The medication retrieval guidance system includes: a first image processor connected to the first camera, configured to detect expiration date information of the stored drugs based on images of the stored drugs acquired by the first camera; A controller is configured to obtain prescription information and select a plurality of candidate drugs from the drugs in the medicine cabinet according to the prescription information, wherein the prescription information includes the name of the prescribed drug, the corresponding drug specification information, and the manufacturer information; The controller is further configured to screen out drugs to be taken from the candidate drugs based on the expiration date information of the candidate drugs, locate the drugs to be taken from the image of the drugs in the cabinet acquired by the second camera based on the label information of the drugs to be taken, and extract the location information of the drugs to be taken. The drugs to be taken are the candidate drugs with the shortest remaining expiration date under the premise of meeting the expiration date conditions, and the expiration date conditions include: the drugs are not expired; The controller is also used to generate location indication information according to the location information of the medicine to be taken.
[0013] The medicine collection guidance system of the present application can quickly and accurately screen out the medicines that should be collected, and the screening step does not need to be performed manually, saving time and effort; and the present application can accurately select the medicines that should be collected from the images of the medicines in the cabinet obtained by the second camera through the label information of the medicines to be collected, so as to correctly extract the location information of the medicines to be collected, so as to facilitate the subsequent generation of correct location guidance information; and the present application can guide pharmacists to give priority to taking out medicines that have not expired and have a short remaining validity period, so as to avoid expired medicines as much as possible; and the present application can prevent pharmacists from misreading the prescription information, so as to guide pharmacists to collect medicines accurately.
[0014] Furthermore, the medicine cabinet includes a plurality of medicine cabinets filled with medicines, and each medicine cabinet is equipped with an electric lock for unlocking the corresponding medicine cabinet and being locked normally; There are multiple first cameras and multiple second cameras, and the multiple first cameras and the multiple second cameras are arranged in a one-to-one correspondence in the multiple medicine cabinets; The controller is also used to determine the medicine cabinet where the medicine to be taken is located according to the location information of the medicine to be taken after extracting the location information of the medicine to be taken, and control the electric lock corresponding to the medicine cabinet where the medicine to be taken is located to unlock the corresponding medicine cabinet.
[0015] Furthermore, the first camera is further used to obtain images of the drugs entering the cabinet to obtain the name information, corresponding drug specifications and manufacturer information of the drugs entering the cabinet, and to obtain images of the drugs leaving the cabinet when the drugs leave the cabinet; The medication guidance system also includes: a second image processor connected to the first camera, configured to detect the name information and corresponding drug specification information and manufacturer information of the outgoing drugs and the name information and corresponding drug specification information and manufacturer information of the incoming drugs based on the image of the outgoing drugs and the image of the incoming drugs acquired by the first camera, respectively; an alarm for sounding an alarm; The controller is also used to obtain an image of the medicine taken out of the cabinet based on the first camera when the pharmacist takes the medicine out of the cabinet, obtain the name information of the medicine taken out of the cabinet and the corresponding medicine specification information and manufacturer information based on the image of the medicine taken out of the cabinet, and issue an alarm when the name information of the medicine taken out of the cabinet is different from the name information of the medicine to be taken out, or the medicine specification information of the medicine taken out of the cabinet is different from the medicine specification information of the medicine to be taken out, or the manufacturer information of the medicine taken out of the cabinet is different from the manufacturer information of the medicine to be taken out.
[0016] Furthermore, the process of screening multiple candidate drugs from the drugs in the medicine cabinet according to the prescription information includes: Comparing the name information, corresponding drug specification information, and manufacturer information of the prescribed drug in the prescription information with the label name information, corresponding label drug specification information, and label manufacturer information of the drugs entering the cabinet, respectively, to screen out multiple candidate drugs from the drugs entering the cabinet. The label name information, label drug specification information, and corresponding label manufacturer information of the drugs entering the cabinet are pre-entered before the drugs enter the cabinet; The controller is also used to obtain the name information, corresponding drug specification information and manufacturer information of the entered drug based on the image of the entered drug obtained by the first camera when the entered drug is entered into the cabinet before obtaining the prescription information, and to issue an alarm when the name information of the entered drug is different from the label name information corresponding to the entered drug, the drug specification information of the entered drug is different from the label drug specification information corresponding to the entered drug, or the manufacturer information of the entered drug is different from the label manufacturer information corresponding to the entered drug.
[0017] In a third aspect, the present application provides an electronic device comprising a processor and a memory, wherein the memory stores a computer program executable by the processor, and when the processor executes the computer program, it runs the steps in any of the above methods.
[0018] In a fourth aspect, the present application provides a storage medium having a computer program stored thereon, which runs the steps in any of the above methods when executed by a processor.
[0019] From the above, it can be seen that the present application provides a medicine collection guidance method and system, electronic device and storage medium, wherein the medicine collection guidance method provided by the present application can quickly and accurately screen out the medicines to be collected, and the screening step does not need to be performed manually, saving time and effort; and the present application can accurately select the medicines to be collected from the images of the medicines in the cabinet obtained by the second camera through the label information of the medicines to be collected, so as to correctly extract the location information of the medicines to be collected, facilitating the subsequent generation of correct location guidance information; and the present application can guide pharmacists to give priority to taking out medicines that have not expired and have a short remaining validity period, so as to avoid expired medicines as much as possible; and the present application can prevent pharmacists from misreading the prescription information, thereby guiding pharmacists to collect medicines accurately.
[0020] Other features and advantages of the present application will be described in the following description, and in part will become apparent from the description, or understood by practicing the embodiments of the present application. The objectives and other advantages of the present application can be achieved and obtained through the structures particularly pointed out in the written description and the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] Figure 1 A flowchart of the medication guidance method provided in an embodiment of the present application.
[0022] Figure 2 This is a schematic diagram of the structure of the medication guidance system provided in an embodiment of the present application.
[0023] Figure 3 This is a diagram of the electrical control framework of the medication guidance system provided in an embodiment of the present application.
[0024] Figure 4 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application.
[0025] Explanation of reference numerals: 1. Medicine cabinet; 11. First camera; 12. Second camera; 13. Electric lock; 2. First image processor; 3. Controller; 4. Second image processor; 5. Alarm; 301. Processor; 302. Memory; 303. Communication bus. DETAILED DESCRIPTION
[0026] 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 a part of the embodiments of the present application, rather than all of the embodiments. The components of the embodiments of the present application generally described and shown in the drawings here can be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of the present application provided in the drawings is not intended to limit the scope of the application for protection, but merely represents the selected embodiments of the present application. Based on the embodiments of the present application, all other embodiments obtained by those skilled in the art without making creative work fall within the scope of protection of the present application.
[0027] It should be noted that similar reference numerals and letters denote similar items in the following drawings, and therefore, once an item is defined in one drawing, it does not need to be further defined or explained in subsequent drawings.
[0028] First, as Figure 1 and Figure 2 As shown, the present application provides a medication retrieval guidance method, which is applied to a medicine cabinet 1 in a hospital pharmacy. The medicine cabinet 1 is provided with a first camera 11 for capturing images of the medicines entering the cabinet to obtain expiration information of the medicines entering the cabinet, and a second camera 12 for real-time monitoring and capturing images of the medicines entering the cabinet. The medicines have label information generated when they enter the cabinet. The medication retrieval guidance method includes the following steps: S1. Obtain prescription information and select multiple candidate drugs from the medicine cabinet 1 according to the prescription information. The prescription information includes the name of the prescribed drug and the corresponding drug specification information and manufacturer information. S2. Selecting a drug to be taken from the candidate drugs based on the expiration date information of the candidate drugs, locating the drug to be taken from the image of the stored drugs captured by the second camera 12 based on the label information of the drug to be taken, and extracting the location information of the drug to be taken. The drug to be taken is the candidate drug with the shortest remaining expiration date that meets the expiration date conditions, where the expiration date conditions include: the drug is not expired; S3. Generate location indication information based on the location information of the medicine to be taken.
[0029] Specifically, the medicines in the cabinet are the medicines stored in the medicine cabinet 1, the name information of the medicines is the name of the corresponding medicines, the manufacturer of the medicines is the manufacturer of the corresponding medicines, the drug specification information of the medicines is the specifications of the corresponding medicines, the candidate drugs are the medicines in the cabinet whose name information, drug specifications and manufacturer information are respectively the same as the name information, drug specifications and manufacturer information of the prescribed drugs, the drug label information is the label of the corresponding medicine that can distinguish the corresponding medicine from other medicines, the drug expiration information is the expiration date of the corresponding medicine, and the drug location information is the location of the corresponding medicine.
[0030] More specifically, in step S1, a plurality of candidate drugs are screened out from the drugs in the cabinet according to the prescription information, which can narrow the scope of drug selection and facilitate the subsequent rapid screening of the drugs to be taken.
[0031] More specifically, in step S2, since the expiration date information of the drug is generally printed in text form on the packaging of the corresponding drug, it is only necessary to obtain an image of the candidate drug based on the first camera 11 when the candidate drug is put into the cabinet, and the text about the expiration date information on the packaging of the candidate drug can be determined from the image of the candidate drug, and then the expiration date information of the candidate drug can be obtained; the process of obtaining the expiration date information of the candidate drug based on the image of the candidate drug pre-acquired by the first camera 11 can be executed based on an image processor, or based on other existing devices that can recognize and analyze images.
[0032] More specifically, in step S2, since the medication to be taken is located based on the label information of the medication to be taken, and the label information of the medication to be taken is generated when the medication to be taken is put into the cabinet, even if the location of the medication to be taken changes after the pharmacist takes out other medications, the present application can accurately select the medication to be taken from the image of the medication in the cabinet acquired by the second camera 12 based on the label information of the medication to be taken, thereby correctly extracting the location information of the medication to be taken, facilitating the subsequent generation of correct location guidance information. It should be understood that the present application is equivalent to first using the image acquired by the first camera 11 to screen the medication to be taken from multiple candidate medications, and then using the image acquired by the second camera 12 to locate the medication to be taken.
[0033] More specifically, in step S2, the present application screens out the drugs to be taken from the candidate drugs based on the expiration date information of the candidate drugs, and can quickly and accurately screen out the drugs that meet the expiration date conditions, and the screening step does not need to be performed manually, saving time and effort; and because the drugs to be taken are candidate drugs that meet the expiration date conditions and have the shortest remaining expiration date, and the expiration date conditions include that the drugs have not expired, the present application can guide the pharmacist to give priority to taking out drugs that have not expired and have a short remaining expiration date, thereby avoiding the waste of expired drugs as much as possible.
[0034] More specifically, in step S3, the location indication information can be text information, sound information, or light information that can be used to indicate the location information of the medicine to be picked up. The present application generates location guidance information to prevent the pharmacist from misreading the prescription information, thereby guiding the pharmacist to pick up the medicine accurately.
[0035] The medication guidance method of the present application can quickly and accurately screen out the medications that should be taken, and the screening step does not need to be performed manually, saving time and effort; and the present application can accurately select the medications that should be taken from the images of the medications in the cabinet obtained by the second camera 12 through the label information of the medications to be taken, so as to correctly extract the location information of the medications to be taken, facilitating the subsequent generation of correct location guidance information; and the present application can guide pharmacists to give priority to taking out medications that have not expired and have a short remaining validity period, so as to avoid expired medications as much as possible; and the present application can prevent pharmacists from misreading the prescription information, so as to guide pharmacists to take medications accurately.
[0036] In some preferred embodiments, the first camera 11 is further used to obtain images of the medicines when they are taken out of the cabinet; The medication guidance method further includes executing the following steps after step S3: A1. When the pharmacist takes medicine out of the medicine cabinet 1, the first camera 11 obtains an image of the medicine taken out of the cabinet, obtains the expiration date information of the medicine taken out of the cabinet based on the image of the medicine taken out of the cabinet, and issues an alarm when the expiration date information of the medicine taken out of the cabinet is different from the expiration date information of the medicine to be taken out.
[0037] Specifically, since the expiration date information of the medicine is generally printed in text form on the packaging of the medicine, it is only necessary to obtain an image of the medicine based on the first camera 11 when the medicine is released from the counter, and then determine the text of the expiration date information on the packaging of the medicine from the image of the medicine, and then obtain the expiration date information of the medicine; the process of obtaining the expiration date information of the medicine based on the image of the medicine obtained by the first camera 11 can be performed based on an image processor, or based on other existing devices that can recognize and analyze images.
[0038] More specifically, after receiving the location indication information, the pharmacist may still take the wrong medicine. Therefore, in this embodiment, the present application issues an alarm when the expiration date information of the medicine taken out of the counter is different from the expiration date information of the medicine to be taken, and can verify the medicine taken out of the counter, so as to remind the pharmacist in time when the pharmacist takes the wrong medicine.
[0039] In some preferred embodiments, the first camera 11 is further used to obtain images of the medicines when they are taken out of the cabinet; The medication guidance method further includes executing the following steps after step S3: B1. When the pharmacist takes the medicine out of the medicine cabinet 1, the first camera 11 is used to obtain an image of the medicine that has been taken out of the cabinet, and the traceability code information of the medicine that has been taken out of the cabinet is obtained based on the image of the medicine that has been taken out of the cabinet. When the traceability code information of the medicine that has been taken out of the cabinet is the same as the traceability code information of the medicine that should be taken out, the traceability code information of the medicine that should be taken out is scanned. The traceability code information of the medicine that should be taken out is obtained based on the image of the medicine that has been pre-acquired by the first camera 11 when the medicine that should be taken out is put into the cabinet.
[0040] Specifically, the drug traceability code information is the drug traceability code of the corresponding drug.
[0041] More specifically, in the process of picking up medicines in existing hospital pharmacies, after the pharmacist takes out the medicines from the medicine cabinet 1, he generally needs to scan the traceability code information of the medicines taken out of the cabinet to verify and record the medicines taken out of the cabinet, and then pass the medicines taken out of the cabinet to the person who picks up the medicines. This process is complicated, time-consuming and labor-intensive. To solve this problem, a method for automatically scanning the traceability code information of medicines taken out of the cabinet is needed, so that the pharmacist can directly pass the medicines taken out of the cabinet to the person who picks up the medicines after taking them out.
[0042] More specifically, since the traceability code information of the drug to be taken is generally printed in the form of a pattern on the packaging of the candidate drug, it is only necessary to obtain an image of the drug to be taken based on the first camera 11 when the drug to be taken is put into the cabinet, and the pattern of the traceability code information on the packaging of the drug to be taken can be determined from the image of the drug to be taken, and the traceability code information of the drug to be taken can be obtained. Similarly, it is only necessary to obtain an image of the drug to be taken out of the cabinet based on the first camera 11 when the drug is taken out of the cabinet, and the pattern of the traceability code information on the packaging of the drug to be taken out of the cabinet can be determined from the image of the drug to be taken out of the cabinet, and the traceability code information of the drug to be taken out of the cabinet can be obtained. The process of obtaining the traceability code information of the drug to be taken out of the cabinet based on the image of the drug to be taken out of the cabinet obtained by the first camera 11, and the process of obtaining the traceability code information of the drug to be taken out of the cabinet based on the image of the drug to be taken out of the cabinet obtained in advance by the first camera 11 can be executed based on the image processor, or based on other existing devices that can recognize and analyze images.
[0043] More specifically, the present application can scan the traceability code information of the out-of-the-box drugs. Therefore, in this embodiment, the present application can enable the pharmacist to directly pass the out-of-the-box drugs to the person who picks up the drugs after taking them out, without the need to manually scan the traceability code information of the out-of-the-box drugs, which can save steps in the drug collection process and save time and effort; and the present application will only scan the traceability code information of the out-of-the-box drugs when the traceability code information of the out-of-the-box drugs is the same as the traceability code information of the drugs to be picked up, which can ensure that the scanned traceability code information is correct.
[0044] In some preferred embodiments, the prescription information also includes medication cycle information for the prescribed drug, and the validity period conditions also include: The remaining validity period of the drug is greater than the prescribed medication period information.
[0045] Specifically, the medication cycle information of the prescribed medicine is the length of time required for the patient to completely take the medicine after the pharmacist picks up the medicine according to the prescription and passes it to the person who picks up the medicine.
[0046] More specifically, even if the pharmacist delivers a candidate drug that has not expired and has the shortest remaining validity period to the person picking up the medicine, the drug may still expire before the patient has finished taking the medicine. Therefore, in this embodiment, the validity period condition of the present application also includes the remaining validity period of the drug being greater than the medication cycle information of the prescribed drug, which can ensure that the drug does not expire during the patient's medication period, thereby ensuring that the drug taken by the patient is safe and effective.
[0047] Second, as Figure 2 and Figure 3 As shown, the present application provides a medication retrieval guidance system, which is applied to a medicine cabinet 1 in a hospital pharmacy. The medicine cabinet 1 is provided with a first camera 11 for capturing images of the medicines entering the cabinet to obtain expiration information of the medicines entering the cabinet, and a second camera 12 for real-time monitoring and capturing images of the medicines entering the cabinet. The medicines have label information generated when they enter the cabinet. The medication retrieval guidance system includes: The first image processor 2 is connected to the first camera 11 and is used to detect the expiration date information of the medicines in the cabinet based on the image of the medicines in the cabinet acquired by the first camera 11; The controller 3 obtains prescription information and selects a plurality of candidate drugs from the drugs in the medicine cabinet 1 according to the prescription information. The prescription information includes the name of the prescribed drug, the corresponding drug specification information, and the manufacturer information. The controller 3 is further configured to screen out drugs to be taken from the candidate drugs based on their expiration date information, locate the drugs to be taken from the image of the drugs in the cabinet acquired by the second camera 12 based on their label information, and extract the location information of the drugs to be taken. The drugs to be taken are the candidate drugs with the shortest remaining expiration date under the premise of meeting the expiration date conditions, and the expiration date conditions include: the drugs are not expired; The controller 3 is further configured to generate location indication information based on location information of the medicine to be taken.
[0048] The medication guidance system of the present application can quickly and accurately screen out the medications that should be taken, and the screening step does not need to be performed manually, saving time and effort; and the present application can accurately select the medications that should be taken from the images of the medications in the cabinet obtained by the second camera 12 through the label information of the medications to be taken, so as to correctly extract the location information of the medications to be taken, facilitating the subsequent generation of correct location guidance information; and the present application can guide pharmacists to give priority to taking out medications that have not expired and have a short remaining validity period, so as to avoid expired medications as much as possible; and the present application can prevent pharmacists from misreading the prescription information, so as to guide pharmacists to take medications accurately.
[0049] In some preferred embodiments, the medicine cabinet 1 includes a plurality of medicine cabinets filled with medicines, and each medicine cabinet is equipped with an electric lock 13 for unlocking the corresponding medicine cabinet and being normally locked; There are multiple first cameras 11 and second cameras 12, and the multiple first cameras 11 and the multiple second cameras 12 are arranged in a one-to-one correspondence in the multiple medicine cabinets; The controller 3 is also used to determine the medicine cabinet where the medicine is located according to the location information of the medicine to be taken after extracting the location information of the medicine to be taken, and control the electric lock 13 corresponding to the medicine cabinet where the medicine is located to unlock the corresponding medicine cabinet.
[0050] Specifically, since multiple first cameras 11 and multiple second cameras 12 are arranged in a one-to-one correspondence in multiple medicine cabinets, the present application can obtain images of these medicines when the medicines enter different medicine cabinets, thereby obtaining images of the medicines entering the cabinets, and can monitor and obtain images of the medicines in different medicine cabinets in real time, thereby realizing real-time monitoring and obtaining images of the medicines entering the cabinets.
[0051] More specifically, since the present application determines the medicine cabinet where the medicine to be taken is located based on the location information of the medicine to be taken, and controls the electric lock 13 corresponding to the medicine cabinet where the medicine to be taken is located to unlock the corresponding medicine cabinet, in this embodiment, the present application can ensure that the pharmacist can only open the medicine cabinet where the medicine to be taken is located, thereby increasing the probability that the pharmacist can correctly take out the medicine to be taken.
[0052] In some preferred embodiments, the first camera 11 is further used to obtain images of the medicines entering the cabinet to obtain the name information, corresponding medicine specifications and manufacturer information of the medicines entering the cabinet, and to obtain images of the medicines leaving the cabinet when the medicines leave the cabinet; The medication guidance system also includes: The second image processor 4 is connected to the first camera 11 and is used to detect the name information and corresponding drug specification information and manufacturer information of the outgoing drugs and the name information and corresponding drug specification information and manufacturer information of the incoming drugs based on the image of the outgoing drugs and the image of the incoming drugs acquired by the first camera 11, respectively. Alarm 5, for sounding an alarm; The controller 3 is also used to obtain an image of the medicine taken out of the cabinet based on the first camera 11 when the pharmacist takes the medicine out of the medicine cabinet 1, obtain the name information of the medicine taken out of the cabinet and the corresponding medicine specification information and manufacturer information based on the image of the medicine taken out of the cabinet, and issue an alarm when the name information of the medicine taken out of the cabinet is different from the name information of the medicine to be taken out, or the medicine specification information of the medicine taken out of the cabinet is different from the medicine specification information of the medicine to be taken out, or the manufacturer information of the medicine taken out of the cabinet is different from the manufacturer information of the medicine to be taken out.
[0053] Specifically, since the name information of the drug and the corresponding drug specification information and manufacturer information are generally printed in text on the corresponding drug packaging, it is only necessary to capture an image of the drug to be taken using the first camera 11 when the drug to be taken is put into the counter, and to capture an image of the drug to be taken out using the first camera 11 when the drug to be taken out is taken out. The text of the name information, corresponding drug specification information, and manufacturer information on the packaging of the drug to be taken, and the text of the name information, corresponding drug specification information, and manufacturer information on the packaging of the drug to be taken, can be determined from the image of the drug to be taken and the image of the drug to be taken out, respectively, to thereby obtain the name information, corresponding drug specification information, and manufacturer information of the drug to be taken, and the name information, corresponding drug specification information, and manufacturer information of the drug to be taken. The process of acquiring the name information, corresponding drug specification information, and manufacturer information of the drug to be taken based on the image of the drug to be taken acquired by the first camera 11, and the process of acquiring the name information, corresponding drug specification information, and manufacturer information of the drug to be taken out based on the image of the drug to be taken acquired by the first camera 11, can be performed based on an image processor, or based on other existing devices capable of performing image recognition and analysis.
[0054] More specifically, in the medicine cabinet 1 of the existing hospital pharmacy, multiple medicines with the same manufacturer but different names or specifications are often placed in the same medicine cabinet, and multiple medicines with the same name and specifications but different manufacturers are also often placed in the same medicine cabinet. Therefore, even if the pharmacist receives the location indication information and can only open the medicine cabinet where the medicine to be taken is located, it is still possible to take the wrong medicine. In this embodiment, the present application can issue an alarm when the name information of the medicine taken out of the cabinet is different from the name information of the medicine to be taken, or the medicine specification information of the medicine taken out of the cabinet is different from the medicine specification information of the medicine to be taken, or the manufacturer information of the medicine taken out of the cabinet is different from the manufacturer information of the medicine to be taken. Therefore, in this embodiment, the present application can verify the medicines taken out of the cabinet, so as to remind the pharmacist in time when the pharmacist takes the wrong medicine.
[0055] In some preferred embodiments, the process of screening a plurality of candidate drugs from the drugs in the medicine cabinet 1 according to the prescription information includes: Comparing the name information of the prescribed drug and the corresponding drug specification information and manufacturer information in the prescription information with the label name information and the corresponding label drug specification information and label manufacturer information of the drug entering the cabinet, so as to screen out multiple candidate drugs from the drugs entering the cabinet. The label name information and the corresponding label drug specification information and label manufacturer information of the drugs entering the cabinet are pre-entered before the drugs enter the cabinet; The controller 3 is also used to obtain the name information, corresponding drug specification information and manufacturer information of the entered drug based on the image of the entered drug obtained by the first camera 11 when the entered drug is entered into the cabinet before obtaining the prescription information, and to issue an alarm when the name information of the entered drug is different from the label name information of the entered drug, the drug specification information of the entered drug is different from the label drug specification information corresponding to the Ruigui drug, or the manufacturer information of the entered drug is different from the label manufacturer information of the entered drug.
[0056] The label name information of this embodiment is the information obtained after the name information corresponding to the entered medicine is stored in the medicine retrieval guidance system before the entered medicine is stored in the medicine distribution cabinet, that is, the name information of each prescribed medicine in the prescription information corresponds to a label name information. The label manufacturer information of this embodiment is the information obtained after the manufacturer information corresponding to the entered medicine is stored in the medicine retrieval guidance system before the entered medicine is stored in the medicine distribution cabinet, that is, the manufacturer information of each prescribed medicine in the prescription information corresponds to a label manufacturer information. The label drug specification information of this embodiment is the information obtained after the drug specification information corresponding to the entered medicine is stored in the medicine retrieval guidance system before the entered medicine is stored in the medicine distribution cabinet, that is, the drug specification information of each prescribed drug in the prescription information corresponds to a label drug specification information.
[0057] Specifically, it is only necessary to obtain an image of the medicine to be put into the cabinet based on the first camera 11 when the medicine is put into the cabinet, and the text about the name information and the corresponding medicine specification information and the manufacturer information on the packaging of the medicine to be put into the cabinet can be determined from the image of the medicine to be put into the cabinet obtained by the first camera 11, and then the name information and the corresponding medicine specification information and the manufacturer information of the medicine to be put into the cabinet can be obtained; the process of obtaining the name information and the corresponding medicine specification information and the manufacturer information of the medicine to be put into the cabinet based on the image of the medicine to be put into the cabinet obtained by the first camera 11 can be executed based on an image processor, or based on other existing devices that can recognize and analyze images.
[0058] More specifically, when the medicines are put into the cabinet, the wrong medicines may be put into the cabinet, that is, the name information of the medicines put into the cabinet is inconsistent with the name information on the label of the medicines put into the cabinet, the drug specification information of the medicines put into the cabinet is inconsistent with the drug specification information on the label of the medicines put into the cabinet, or the manufacturer information of the medicines put into the cabinet is inconsistent with the manufacturer information on the label of the medicines put into the cabinet. This may cause the candidate medicines screened out by the subsequent controller 3 to not correspond to the prescribed medicines, and then cause the subsequent pharmacists to pick up the medicines incorrectly. Therefore, the medicines put into the cabinet need to be verified first when they are put into the cabinet.
[0059] More specifically, in this embodiment, the present application screens candidate drugs based on the label name information of the drugs entering the cabinet and the corresponding label drug specification information and label manufacturer information. Therefore, it is only necessary to ensure that the drugs entering the cabinet correctly correspond to the corresponding label name information, the corresponding label drug specification information and the corresponding label manufacturer information to correctly screen out the candidate drugs. The present application issues an alarm when the name information of the drugs entering the cabinet is different from the label name information of the drugs entering the cabinet, the drug specification information of the drugs entering the cabinet is different from the label drug specification information corresponding to the drugs entering the cabinet, or the manufacturer information of the drugs entering the cabinet is different from the label manufacturer information of the drugs entering the cabinet. Therefore, in this embodiment, the present application can verify whether the drugs entering the cabinet correspond to the corresponding label name information, label drug specification information and label manufacturer information when the drugs entering the cabinet are entered, and can promptly remind the pharmacist when the drugs entering the cabinet do not correspond to the corresponding label name information, label drug specification information and label manufacturer information, so as to prevent errors in the subsequent drug collection process.
[0060] Thirdly, as Figure 4 As shown, the present application provides an electronic device, including a processor 301 and a memory 302. The processor 301 and the memory 302 are interconnected and communicate with each other via a communication bus 303 and / or other forms of connection mechanisms (not shown). The memory 302 stores a computer program executable by the processor 301. When the electronic device is running, the processor 301 executes the computer program to perform the method in any optional implementation of the above embodiment to achieve the following functions: obtaining prescription information and screening multiple candidate drugs from the cabinet drugs in the medicine cabinet 1 based on the prescription information, the prescription information including the name information of the prescribed drug and the corresponding drug specification information and manufacturer information; screening the candidate drugs to be taken from the candidate drugs based on the expiration date information of the candidate drugs, locating the candidate drugs from the image of the cabinet drugs obtained by the second camera 12 based on the label information of the candidate drugs, and extracting the location information of the candidate drugs to be taken, the candidate drugs to be taken being the candidate drugs with the shortest remaining expiration date under the premise of meeting the expiration date conditions, the expiration date conditions including: the drug is not expired; generating location indication information based on the location information of the candidate drugs.
[0061] In a fourth aspect, an embodiment of the present application provides a storage medium having a computer program stored thereon. When the computer program is executed by a processor, the method in any optional implementation of the above embodiment is executed to achieve the following functions: obtaining prescription information, and screening out multiple candidate drugs from the medicines in the medicine cabinet 1 based on the prescription information, the prescription information including the name information of the prescribed drugs and the corresponding drug specification information and manufacturer information; screening out the drugs to be taken from the candidate drugs based on the expiration information of the candidate drugs, locating the drugs to be taken from the image of the medicines in the cabinet obtained by the second camera 12 based on the label information of the drugs to be taken, and extracting the location information of the drugs to be taken, the drugs to be taken are the candidate drugs with the shortest remaining expiration date under the premise of meeting the expiration conditions, the expiration conditions including: the drugs have not expired; generating location indication information based on the location information of the drugs to be taken. Among them, the computer-readable storage medium can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.
[0062] In summary, the present application provides a method and system for guiding medication collection, wherein the method for guiding medication collection provided by the present application can quickly and accurately screen out medications to be collected, and the screening step does not need to be performed manually, saving time and effort; and the present application can accurately select medications to be collected from images of medications in the cabinet obtained by the second camera 12 through the label information of the medications to be collected, thereby correctly extracting the location information of the medications to be collected, facilitating the subsequent generation of correct location guidance information; and the present application can guide pharmacists to give priority to taking out medications that have not expired and have a short remaining validity period, thereby avoiding expired medication waste as much as possible; and the present application can prevent pharmacists from misreading prescription information, thereby guiding pharmacists to collect medications accurately.
[0063] In the embodiments provided in this application, it should be understood that the disclosed devices and methods can be implemented in other ways. The device embodiments described above are merely schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some communication interface, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0064] In addition, the units described as separate components may or may not be physically separate, and 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 may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0065] Furthermore, the functional modules in each embodiment of the present application can be integrated together to form an independent part, or each module can exist independently, or two or more modules can be integrated to form an independent part.
[0066] In this document, relational terms such as first and second, etc. are used merely to distinguish one entity or operation from another entity or operation, but do not necessarily require or imply any actual relationship or order between these entities or operations.
[0067] The above description is merely an embodiment of the present application and is not intended to limit the scope of protection of the present application. For those skilled in the art, various modifications and variations of the present application are possible. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application shall be included in the scope of protection of the present application.
Claims
1. A medicine taking guidance method, applied to a medicine cabinet (1) in a hospital pharmacy, characterized in that: The medicine cabinet (1) is provided with a first camera (11) for acquiring images of the medicines entering the cabinet to obtain expiration information of the medicines entering the cabinet, and a second camera (12) for real-time monitoring and acquiring images of the medicines entering the cabinet. The medicines have label information generated when they enter the cabinet. The medicine-taking guidance method comprises the following steps: S1. Obtain prescription information, and screen a plurality of candidate drugs from the drugs in the medicine cabinet (1) according to the prescription information, wherein the prescription information includes the name information of the prescribed drug, the corresponding drug specification information, and the manufacturer information; S2. Screening out drugs to be taken from candidate drugs based on their expiration date information, locating the drugs to be taken from the image of the drugs in the cabinet acquired by the second camera (12) based on their label information, and extracting the location information of the drugs to be taken. The drugs to be taken are candidate drugs with the shortest remaining expiration date under the premise of meeting the expiration date conditions. The expiration date conditions include: the drugs are not expired; S3. Generate location indication information based on the location information of the medicine to be taken.
2. The medication guidance method according to claim 1, characterized in that: The first camera (11) is also used to obtain images of the medicine when it is taken out of the cabinet; The medication guidance method further includes executing the following steps after step S3: A1. When the pharmacist takes medicine out of the medicine cabinet (1), the first camera (11) obtains an image of the medicine taken out of the cabinet, obtains the expiration date information of the medicine taken out of the cabinet based on the image of the medicine taken out of the cabinet, and issues an alarm when the expiration date information of the medicine taken out of the cabinet is different from the expiration date information of the medicine to be taken out.
3. The medication guidance method according to claim 1, characterized in that: The first camera (11) is also used to obtain images of the medicine when it is taken out of the cabinet; The medication guidance method further includes executing the following steps after step S3: B1. When the pharmacist takes the medicine out of the medicine cabinet (1), the first camera (11) is used to obtain an image of the medicine that has been taken out of the cabinet, and the traceability code information of the medicine that has been taken out of the cabinet is obtained based on the image of the medicine that has been taken out of the cabinet. When the traceability code information of the medicine that has been taken out of the cabinet is the same as the traceability code information of the medicine that should be taken out, the traceability code information of the medicine that should be taken out is obtained based on the image of the medicine that should be taken out that was previously obtained based on the first camera (11) when the medicine that should be taken out is put into the cabinet.
4. The medication guidance method according to claim 1, characterized in that: The prescription information also includes medication cycle information for the prescribed drugs, and the validity period conditions also include: The remaining validity period of the drug is greater than the prescribed medication period information.
5. A medicine taking guidance system, applied to a medicine cabinet (1) in a hospital pharmacy, characterized in that: The medicine cabinet (1) is provided with a first camera (11) for acquiring images of the medicines entering the cabinet to obtain expiration information of the medicines entering the cabinet, and a second camera (12) for real-time monitoring and acquiring images of the medicines entering the cabinet. The medicines have label information generated when they enter the cabinet. The medicine-taking guidance system includes: A first image processor (2) is connected to the first camera (11) and is used to detect expiration date information of the stored medicines based on images of the stored medicines acquired by the first camera (11); The controller (3) is used to obtain prescription information and screen a plurality of candidate drugs from the drugs in the medicine cabinet (1) according to the prescription information, wherein the prescription information includes the name information of the prescribed drug, the corresponding drug specification information and the manufacturer information; The controller (3) is further configured to screen out drugs to be taken from candidate drugs based on the expiration date information of the candidate drugs, locate the drugs to be taken from the image of the drugs in the cabinet acquired by the second camera (12) based on the label information of the drugs to be taken, and extract the location information of the drugs to be taken. The drugs to be taken are candidate drugs with the shortest remaining expiration date under the premise of meeting the expiration date conditions. The expiration date conditions include: the drugs are not expired; The controller (3) is also used to generate location indication information based on the location information of the medicine to be taken.
6. The medication taking guidance system according to claim 5, characterized in that: The medicine cabinet (1) includes a plurality of medicine cabinets filled with medicines, and each medicine cabinet is equipped with an electric lock (13) for unlocking the corresponding medicine cabinet and being normally locked; The number of the first camera (11) and the second camera (12) is multiple, and the multiple first cameras (11) and the multiple second cameras (12) are all arranged in a one-to-one correspondence in the multiple medicine cabinets; The controller (3) is also used to determine the medicine cabinet where the medicine to be taken is located according to the location information of the medicine to be taken after the process of extracting the location information of the medicine to be taken, and control the electric lock (13) corresponding to the medicine cabinet where the medicine to be taken is located to unlock the corresponding medicine cabinet.
7. The medication taking guidance system according to claim 5, characterized in that: The first camera (11) is also used to obtain images of drugs entering the cabinet to obtain name information, corresponding drug specifications and manufacturer information of the drugs entering the cabinet, and to obtain images of drugs leaving the cabinet when the drugs leave the cabinet; The medication guidance system further includes: a second image processor (4) connected to the first camera (11) for detecting the name information of the outgoing drug and the corresponding drug specification information and manufacturer information, and the name information of the incoming drug and the corresponding drug specification information and manufacturer information, based on the image of the outgoing drug and the image of the incoming drug acquired by the first camera (11); an alarm (5) for sounding an alarm; The controller (3) is further configured to obtain an image of the medicine taken out of the medicine cabinet (1) based on the first camera (11), obtain the name information of the medicine taken out of the medicine cabinet and the corresponding medicine specification information and manufacturer information based on the image of the medicine taken out of the medicine cabinet, and issue an alarm when the name information of the medicine taken out of the medicine cabinet is different from the name information of the medicine to be taken out, or the medicine specification information of the medicine taken out of the medicine cabinet is different from the medicine specification information of the medicine to be taken out, or the manufacturer information of the medicine taken out of the medicine cabinet is different from the manufacturer information of the medicine to be taken out.
8. The medication taking guidance system according to claim 7, characterized in that: The process of screening a plurality of candidate drugs from the drugs in the medicine cabinet (1) according to the prescription information includes: Comparing the name information, corresponding drug specification information, and manufacturer information of the prescribed drug in the prescription information with the label name information, corresponding label drug specification information, and label manufacturer information of the drugs entering the cabinet, so as to screen out multiple candidate drugs from the drugs entering the cabinet. The label name information, corresponding label drug specification information, and label manufacturer information of the drugs entering the cabinet are pre-entered before the drugs enter the cabinet; The controller (3) is also used to obtain the name information of the entered drug and the corresponding drug specification information and manufacturer information based on the image of the entered drug obtained by the first camera (11) when the entered drug is entered into the cabinet before the process of obtaining the prescription information, and to issue an alarm when the name information of the entered drug is different from the name information of the label corresponding to the entered drug, the drug specification information of the entered drug is different from the drug specification information on the label corresponding to the entered drug, or the manufacturer information of the entered drug is different from the manufacturer information on the label corresponding to the entered drug.
9. An electronic device, characterized in that: The invention comprises a processor (301) and a memory (302), wherein the memory (302) stores a computer program executable by the processor (301), and when the processor (301) executes the computer program, the steps in any one of the methods according to claims 1 to 4 are executed.
10. A storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor (301), the computer program executes the steps of the method according to any one of claims 1 to 4.