Automatic medicine dispensing device and medicine dispensing method
By designing a separate communication structure between the drug acquisition end and the tonic end in the automatic drug delivery device, and using the medical insurance decoding program to decode the encrypted data in the electronic medical insurance QR code, the problem of hardware replacement in the existing technology is solved, and software upgrades are achieved, reducing costs.
Patent Information
- Application Number
- CN202411783460.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-06
- Publication Date
- 2025-04-01
AI Technical Summary
When existing drug delivery equipment is connected to the medical insurance system, it needs to replace the hardware, resulting in a higher cost burden.
Design an automatic drug delivery device, which obtains encrypted data by scanning the electronic medical insurance QR code and sends it to the tonic terminal. The tonic side starts the medical insurance decoding program, and after decoding, the identity information is sent back to the drug retrieval, realizing drug distribution. This device is connected to the medical insurance system through software upgrades to avoid hardware updates.
Through software upgrades, the connection with the medical insurance system is achieved, which reduces the cost of equipment updates and avoids the additional burden of data migration and system debugging.
Smart Images

Figure CN119742025A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of medicine dispensing equipment, and in particular to an automatic medicine dispensing equipment and a medicine dispensing method. Background Art
[0002] Medicine dispensing equipment is an automated device widely used in hospitals, pharmacies and other medical institutions. It can automatically dispense medicines according to the patient's prescription. Through the computer control system, the medicine dispensing equipment can accurately extract medicines from the medicine warehouse, reduce the errors of manual medicine dispensing, and improve the efficiency and accuracy of medicine dispensing. In addition, the medicine dispensing equipment also has the function of drug inventory management, which can monitor the inventory in real time and remind timely replenishment of medicines, so as to avoid the occurrence of drug shortages.
[0003] Since its introduction, medicine dispensing equipment has undergone continuous technological updates and iterations. With the advancement of medical informatization and the upgrade of the medical insurance system, many old medicine dispensing equipment face the problem of connecting with the medical insurance system. In order to solve this problem, the relevant technology requires the replacement of medicine dispensing equipment hardware, but this often brings a high cost burden. Summary of the invention
[0004] The present application provides an automatic medicine dispensing device and a medicine dispensing method, which solves the technical problem of high cost caused by replacing the hardware of the medicine dispensing device in the related art, and achieves the technical effect of reducing the cost of equipment update.
[0005] In order to achieve the above objectives, the main technical solutions adopted in this application include:
[0006] In a first aspect, an embodiment of the present application provides an automatic medicine dispensing device, the device comprising: a medicine dispensing end installed with a first operating system and a medicine replenishing end installed with a second operating system; wherein the medicine dispensing end is designed separately from the medicine replenishing end and is communicatively connected, and the first operating system and the second operating system belong to different categories of operating systems;
[0007] The medicine dispensing end is used to obtain the encrypted data carried in the electronic medical insurance QR code of the target object and send the encrypted data to the medicine replenishing end;
[0008] The medicine dispensing end is used to start the medical insurance decoding program when receiving the encrypted data, decode the encrypted data through the medical insurance decoding program, obtain the decoded identity information of the target object, and send the identity information of the target object to the medicine dispensing end;
[0009] The medicine dispensing end is also used to receive and call the prescription data of the target object according to the identity information of the target object, so as to perform corresponding medicine dispensing operations for the target object.
[0010] Optionally, the encrypted data includes an encrypted identity string;
[0011] The medicine replenishment terminal is also used to display the medical insurance verification operation interface, and to display the encrypted identity string on the medical insurance verification operation interface.
[0012] Optionally, the medicine replenishment end is also used to display the medical insurance verification operation interface through the main thread, and simulate the identity information input operation through the sub-thread to display the encrypted identity string in the medical insurance verification operation interface.
[0013] Optionally, the medical insurance verification operation interface includes a target input control, and the target input control is an input control corresponding to the electronic voucher code;
[0014] The medicine replenishment terminal is also used to display the encrypted identity string at the corresponding position of the target input control in the medical insurance verification operation interface.
[0015] Optionally, the medicine dispensing end is provided with a code scanning unit;
[0016] The code scanning unit is used to scan the electronic medical insurance two-dimensional code of the target object to identify the encrypted data carried in the electronic medical insurance two-dimensional code.
[0017] Optionally, the number of the medicine replenishing terminal is one, the number of the medicine dispensing terminal is multiple, each of the medicine dispensing terminals is independently designed, and is respectively connected to the medicine replenishing terminal for communication;
[0018] The first operating system adopts the Android operating system, and the second operating system adopts the Windows operating system.
[0019] Optionally, the medicine dispensing end sends the encrypted data to the medicine replenishing end through the first communication mode or the second communication mode;
[0020] The medicine replenishment terminal starts the medical insurance decoding program through the second communication method;
[0021] The medicine replenishing end sends the identity information of the target object to the medicine dispensing end through the first communication method or the second communication method.
[0022] In a second aspect, an embodiment of the present application provides an automatic medicine dispensing method, which is applied to an automatic medicine dispensing device, wherein the automatic medicine dispensing device includes a medicine dispensing end installed with a first operating system and a medicine replenishing end installed with a second operating system; wherein the medicine dispensing end is designed separately from the medicine replenishing end and is communicatively connected, and the first operating system and the second operating system belong to different categories of operating systems; the method includes:
[0023] The medicine dispensing terminal obtains the encrypted data carried in the target object's electronic medical insurance QR code, and sends the encrypted data to the medicine replenishing terminal;
[0024] When receiving the encrypted data, the medicine dispensing end starts the medical insurance decoding program, decodes the encrypted data through the medical insurance decoding program, obtains the decoded identity information of the target object, and sends the identity information of the target object to the medicine dispensing end;
[0025] The medicine dispensing terminal receives and calls the prescription data of the target object according to the identity information of the target object, so as to perform corresponding medicine dispensing operations for the target object.
[0026] Optionally, the method is applied to a medicine replenishing end of an automatic medicine dispensing device, wherein the automatic medicine dispensing device further comprises a medicine dispensing end equipped with a first operating system, and a second operating system is installed in the medicine dispensing end; wherein the medicine dispensing end is designed separately from the medicine replenishing end and is communicatively connected, and the first operating system and the second operating system belong to different categories of operating systems; and the method comprises:
[0027] Receiving the encrypted data carried in the electronic medical insurance QR code of the target object sent by the drug dispensing terminal;
[0028] Starting a medical insurance decoding program, decoding the encrypted data through the medical insurance decoding program, and obtaining the decoded identity information of the target object;
[0029] The identity information of the target object is sent to the medicine dispensing terminal, so that the medicine dispensing terminal calls the prescription data of the target object according to the identity information of the target object to perform corresponding medicine dispensing operations for the target object.
[0030] Optionally, the encrypted data includes an encrypted identity string; the starting of the medical insurance decoding program to decode the encrypted data through the medical insurance decoding program to obtain the decoded identity information of the target object includes:
[0031] Start the medical insurance decoding program to display the medical insurance verification operation interface through the main thread and simulate the identity information input operation through the sub-thread;
[0032] Displaying the encrypted identity string in the medical insurance verification operation interface;
[0033] The encrypted identity character string is decoded by the medical insurance decoding program to obtain the decoded identity information of the target object.
[0034] In the present application, the medicine dispensing end of the automatic medicine dispensing device is used to obtain the encrypted data carried in the electronic medical insurance QR code of the target object, and send the encrypted data to the medicine replenishment end; the medicine replenishment end is used to start the medical insurance decoding program when receiving the encrypted data, decode the encrypted data through the medical insurance decoding program, obtain the decoded identity information of the target object, and send the identity information of the target object to the medicine dispensing end; the medicine dispensing end is also used to receive and call the prescription data of the target object according to the identity information of the target object, so as to perform the corresponding medicine dispensing operation for the target object. The medicine dispensing end sends the encrypted data to the medicine replenishment end and relies on the medicine replenishment end to perform the decoding operation, so that the automatic medicine dispensing device can be connected with the medical insurance system through software upgrades, without the need to upgrade the hardware, which effectively reduces the cost. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] In order to more clearly illustrate the specific implementation methods of the present application or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0036] Figure 1 A schematic diagram of an automatic medicine dispensing device provided in an embodiment of this specification;
[0037] Figure 2 A schematic diagram of the medical insurance verification operation interface provided in the embodiments of this specification;
[0038] Figure 3 A schematic diagram of an automatic medicine dispensing device provided in an embodiment of this specification;
[0039] Figure 4 A flow chart of an automatic medication dispensing method provided in an embodiment of this specification;
[0040] Figure 5 A flow chart of an automatic medication dispensing method provided in an embodiment of this specification;
[0041] Figure 6 A flow chart of an automatic medication dispensing method provided in an embodiment of this specification;
[0042] Figure 7 A schematic diagram of the structure of a computer device provided in an embodiment of this specification. DETAILED DESCRIPTION
[0043] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution 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 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 those skilled in the art without creative work are within the scope of protection of the present application.
[0044] With the continuous advancement of medical informatization and the upgrading of the medical insurance system, many old medicine dispensing devices are facing the problem of docking with the medical insurance system. In order to achieve this docking, the relevant technology usually requires the replacement of the host hardware to adapt to the new system interface. However, this approach not only involves high hardware procurement and installation costs, but may also lead to a series of additional time and resource investments such as data migration and system debugging, thereby increasing the economic burden and operation and maintenance pressure of hospitals or medical institutions.
[0045] Based on this, the present application provides an automatic medicine dispensing device, wherein the medicine dispensing end is used to obtain the encrypted data carried in the electronic medical insurance QR code of the target object, and send the encrypted data to the medicine replenishing end; the medicine replenishing end is used to start the medical insurance decoding program when receiving the encrypted data, decode the encrypted data through the medical insurance decoding program, obtain the decoded identity information of the target object, and send the identity information of the target object to the medicine dispensing end; the medicine dispensing end is also used to receive and call the prescription data of the target object according to the identity information of the target object, so as to perform the corresponding medicine dispensing operation for the target object. The medicine dispensing end sends the encrypted data to the medicine replenishing end, and relies on the medicine replenishing end to perform the decoding operation, so that the automatic medicine dispensing device can be connected with the medical insurance system through software upgrades, without the need to upgrade the hardware, effectively reducing costs, and avoiding a series of additional time and resource investments such as data migration and system debugging.
[0046] According to an embodiment of the present application, an embodiment of an automatic medicine dispensing device is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0047] See also Figure 1 The automatic medicine dispensing device 100 provided in the embodiment of the present application includes: a medicine dispensing end 101 installed with a first operating system and a medicine replenishing end 102 installed with a second operating system. The medicine dispensing end 101 and the medicine replenishing end 102 are designed separately and are in communication connection, and the first operating system and the second operating system belong to different categories of operating systems.
[0048] Specifically, the medicine dispensing terminal 101 can be an interface operated by the patient in the medicine dispensing device, and its main function is to help the patient pick up the dispensed medicine. The patient can authenticate his identity and pick up the medicine in a variety of ways, such as by scanning a QR code, scanning a barcode, or identifying the patient, to ensure that the medicine matches the patient's prescription information. When in use, the patient first authenticates his identity and confirms the prescription information through the system, and then the automatic medicine dispensing device releases the medicine to the medicine dispensing port of the medicine dispensing terminal 101 for the patient to pick up.
[0049] The medicine replenishment terminal 102 may be a part of the automatic medicine dispensing device operated by the staff of the hospital or pharmacy, and is mainly used for the replenishment and management of medicines. For example, through the medicine replenishment terminal 102, the staff replenishes new medicines or stock medicines into the device to ensure that the medicine inventory is sufficient and the inventory recorded by the system is consistent with the actual quantity. The staff can also update the medicine information, check the inventory status and count the medicine quantity through the medicine replenishment terminal 102, so as to ensure the normal operation of the automatic medicine dispensing device and prevent the shortage or wrong storage of medicines.
[0050] In some large-scale automatic medicine dispensing equipment, the medicine dispensing end 101 and the medicine replenishing end 102 are usually designed to be separated and connected through a wired or wireless communication link to ensure data synchronization and information sharing at both ends.
[0051] Due to differences in functional requirements, operational complexity, security requirements, and user experience, the first operating system of the medicine dispensing terminal 101 and the second operating system of the medicine replenishing terminal 102 can be operating systems of different categories. The medicine dispensing terminal 101 focuses on the simple self-service medicine dispensing operation of patients, so its first operating system design pays more attention to simplicity, intuitiveness, and quick response to ensure that patients can successfully complete the medicine dispensing process. The medicine replenishing terminal 102 needs to handle complex tasks such as drug management, inventory updates, and data processing, so its second operating system usually has powerful management functions and authority control, and can be integrated with other hospital systems to ensure the efficiency and safety of automatic drug dispensing equipment.
[0052] In this embodiment, the medicine dispensing end 101 is used to obtain the encrypted data carried in the electronic medical insurance QR code of the target object, and send the encrypted data to the medicine replenishment end 102. The medicine replenishment end 102 is used to start the medical insurance decoding program when receiving the encrypted data, decode the encrypted data through the medical insurance decoding program, obtain the decoded identity information of the target object, and send the identity information of the target object to the medicine dispensing end 101. The medicine dispensing end 101 is also used to receive and call the prescription data of the target object according to the identity information of the target object, so as to perform the corresponding medicine dispensing operation for the target object.
[0053] Specifically, first, the medicine dispensing end 101 scans the electronic medical insurance QR code provided by the target object (usually the patient), identifies the encrypted data therefrom, and sends the encrypted data to the medicine replenishment end 102 through the communication link between the medicine dispensing end 101 and the medicine replenishment end 102. Then the medicine replenishment end 102 receives the encrypted data, starts the medical insurance decoding program on the local machine, for example, loads the dynamic link library connected to the medical insurance system, and calls the decoding function therein to decode the encrypted data. After the decoding is successful, the medicine replenishment end 102 obtains the identity information of the target object, such as the name, ID number and other plain text data, and then sends the data to the medicine dispensing end 101 through the communication link between the medicine replenishment end 102 and the medicine dispensing end 101. Finally, the medicine dispensing end 101 can query the prescription data of the target object in the database of the hospital or pharmacy according to the received identity information of the target object, and release the medicine to the medicine dispensing port of the medicine dispensing end 101 according to the prescription data.
[0054] It should be noted that there may be compatibility issues between the medical insurance decoding program and the operating system and the device hardware. If the medical insurance decoding program can run on the first operating system, then the medicine dispensing end 101 scans the electronic medical insurance QR code provided by the target object, and after identifying the encrypted data, the medical insurance decoding program can be started on the local machine to decode and obtain the identity information of the target object. Based on the identity information, the medicine dispensing end 101 queries the corresponding prescription data in the database of the hospital or pharmacy, and finally releases the medicine to the medicine dispensing port according to the prescription data. When the medical insurance decoding program cannot run on the first operating system, but can run on the second operating system, the software of the automatic medicine dispensing device can be upgraded, and the encrypted data carried in the electronic medical insurance QR code can be decrypted by the medicine replenishing end 102 without replacing the hardware device of the medicine dispensing end 101 and updating its operating system.
[0055] In the above embodiment, the medicine dispensing end of the automatic medicine dispensing device is used to obtain the encrypted data carried in the electronic medical insurance QR code of the target object, and send the encrypted data to the medicine replenishing end; the medicine replenishing end is used to start the medical insurance decoding program when receiving the encrypted data, decode the encrypted data through the medical insurance decoding program, obtain the decoded identity information of the target object, and send the identity information of the target object to the medicine dispensing end; the medicine dispensing end is also used to receive and call the prescription data of the target object according to the identity information of the target object, so as to perform the corresponding medicine dispensing operation for the target object. By sending the encrypted data to the medicine replenishing end and relying on the medicine replenishing end to perform the decoding operation, the automatic medicine dispensing device can achieve docking with the medical insurance system through software upgrades, without the need to upgrade the hardware, which effectively reduces the cost.
[0056] In some embodiments, the encrypted data includes an encrypted identity string; the medicine refill end is also used to display the medical insurance verification operation interface, and to display the encrypted identity string on the medical insurance verification operation interface.
[0057] Specifically, after the drug dispensing terminal scans the electronic medical insurance QR code provided by the target object (usually the patient), it identifies the encrypted data such as the encrypted identity string of the target object and sends the encrypted data to the drug replenishment terminal. After receiving the encrypted data, the drug replenishment terminal starts the medical insurance decoding program and displays the medical insurance verification operation interface. For example, please refer to Figure 2 In addition, after receiving the encrypted identity string of the target object, the medical insurance decoding program can display it in the electronic certificate encoding area 202.
[0058] In some embodiments, the medicine replenishment end is also used to display the medical insurance verification operation interface through the main thread, and simulate the identity information input operation through the child thread to display the encrypted identity string in the medical insurance verification operation interface.
[0059] Specifically, the medicine dispensing end scans the electronic medical insurance QR code provided by the target object (usually the patient), identifies the encrypted data such as the encrypted identity string of the target object, and sends the encrypted data to the medicine replenishment end. After receiving the encrypted data, the medicine replenishment end starts the medical insurance decoding program. The medicine replenishment end can display the medical insurance verification operation interface through the main thread. For example, please refer to Figure 2 In addition, the tonic end may also call a child thread to simulate keyboard operation, and input the encrypted identity string of the target object into the electronic certificate encoding area 202 . After the input is completed, the encrypted identity string may be displayed in the electronic certificate encoding area 202 .
[0060] The design of the main thread and sub-thread can ensure that the interface display and background processing of the medical insurance decoding program run efficiently at the same time, which can improve the performance of automatic drug dispensing equipment when verifying the medical insurance QR code.
[0061] In some embodiments, the medical insurance verification operation interface includes a target input control, which is an input control corresponding to the electronic certificate code; the medicine replenishment end is also used to display the encrypted identity string at the corresponding position of the target input control in the medical insurance verification operation interface.
[0062] Among them, the input control can be an interface component for the user to interact with the medical insurance decoding program, which is used to receive and transmit information input by the user, such as a text input box.
[0063] Specifically, the medicine dispensing end scans the electronic medical insurance QR code provided by the target object (usually the patient), identifies the encrypted data such as the encrypted identity string of the target object, and sends the encrypted data to the medicine replenishment end. After receiving the encrypted data, the medicine replenishment end starts the medical insurance decoding program. The medicine replenishment end can display the medical insurance verification operation interface through the main thread. For example, please refer to Figure 2, where the electronic certificate encoding area 202 is the target input control, the tonic end can simulate keyboard operation through the child thread, input the encrypted identity string in the electronic certificate encoding area 202, and after the input is completed, the encrypted identity string can be displayed in the electronic certificate encoding area 202.
[0064] As the interaction point between the drug refill terminal and the medical insurance decoding program, the target input control can receive the encrypted identity string of the target object and pass it to the medical insurance decoding program safely and accurately, ultimately achieving accurate decoding of the target object's electronic medical insurance QR code.
[0065] In some embodiments, the medicine dispensing end is configured with a code scanning unit; the code scanning unit is used to scan the electronic medical insurance QR code of the target object to identify the encrypted data carried in the electronic medical insurance QR code.
[0066] Specifically, the scanning unit first scans the target object's electronic medical insurance QR code through an integrated scanning device, such as a high-resolution camera or a QR code scanning gun, to capture the QR code image data; then identifies the encrypted data carried in the QR code image data through a decoding algorithm (such as Zxing, ZBar).
[0067] Because the medical insurance decoding program cannot run on the first operating system of the medicine dispensing end, the medicine dispensing end cannot decrypt the encrypted data, but sends it to the medicine refilling end which can run the medical insurance decoding program. The medicine refilling end will start the medical insurance decoding program to decode the encrypted data.
[0068] See also Figure 3 In some embodiments, the number of the medicine replenishing terminal is one, and the number of the medicine dispensing terminal is multiple, each medicine dispensing terminal is independently designed and is respectively communicated with the medicine replenishing terminal; the first operating system adopts the Android operating system, and the second operating system adopts the Windows operating system.
[0069] Specifically, the first operating system of the medicine dispensing end adopts the Android operating system, and the second operating system of the medicine refilling end adopts the Windows operating system. The medical insurance decoding program can adopt a dynamic link library (DLL). Since the DLL file can run on the Windows operating system but not on the Android operating system, the medicine dispensing end scans the electronic medical insurance QR code of the target object, and after identifying the encrypted data of the target object's identity information, the encrypted data needs to be sent to the medicine refilling end for decoding.
[0070] When there is only one medicine replenishment terminal and multiple medicine dispensing terminals, the medicine replenishment terminal can manage the decoding request messages of multiple medicine dispensing terminals through a message queue (such as RabbitMQ). The message queue stores the decoding request messages in the queue, and the medicine replenishment terminal processes these requests in parallel through multi-threading. After the decoding is successful, the medicine replenishment terminal returns the identity information of the target object to the corresponding medicine dispensing terminal through the callback queue. In this way, the medicine replenishment terminal can efficiently process the decoding requests of multiple medicine dispensing terminals, ensuring the high concurrent processing capability of the automatic medicine dispensing equipment.
[0071] In some embodiments, the medicine dispensing end of the automatic medicine dispensing device sends encrypted data to the medicine replenishing end through the first communication method or the second communication method; the medicine replenishing end starts the medical insurance decoding program through the second communication method; the medicine replenishing end sends the identity information of the target object to the medicine dispensing end through the first communication method or the second communication method.
[0072] The first communication mode or the second communication mode may be two different communication protocols in a computer network.
[0073] Specifically, both the medicine dispensing end and the medicine replenishing end support the first communication mode and the second communication mode, and the medical insurance decoding program only supports the second communication mode. Therefore, after the medicine dispensing end identifies the encrypted data of the identity information of the target object from the electronic medical insurance QR code, it can be sent to the medicine replenishing end through the first communication mode or the second communication mode. After receiving the encrypted data, the medicine replenishing end can only start the medical insurance decoding program through the second communication mode. After the decoding is successful, the medicine replenishing end can send the decoded identity information of the target object to the medicine dispensing end through the first communication mode or the second communication mode.
[0074] In some embodiments, both the medicine dispensing end and the medicine replenishing end support two communication protocols, MQTT and WebSocket, and the medical insurance decoding program only supports the WebSocket communication protocol. After the medicine dispensing end identifies the encrypted data of the target object's identity information from the electronic medical insurance QR code, it can be sent to the medicine replenishing end through the MQTT or WebSocket communication protocol. After the medicine replenishing end receives the encrypted data, it can only start the medical insurance decoding program through the WebSocket communication protocol. After the decoding is successful, the medicine replenishing end can send the decoded identity information of the target object to the medicine dispensing end through the MQTT or WebSocket communication protocol.
[0075] See also Figure 4 In an embodiment of the present application, an automatic medicine dispensing method is also provided, which is applied to an automatic medicine dispensing device, wherein the automatic medicine dispensing device includes a medicine dispensing end installed with a first operating system and a medicine replenishing end installed with a second operating system; wherein the medicine dispensing end and the medicine replenishing end are separately designed and communicatively connected, and the first operating system and the second operating system belong to different categories of operating systems; the steps of the automatic medicine dispensing method include:
[0076] S810. The medicine dispensing end obtains the encrypted data carried in the target object's electronic medical insurance QR code, and sends the encrypted data to the medicine refilling end.
[0077] S820. When receiving the encrypted data, the medicine refilling end starts the medical insurance decoding program, decodes the encrypted data through the medical insurance decoding program, obtains the decoded identity information of the target object, and sends the identity information of the target object to the medicine dispensing end.
[0078] S830: The medicine dispensing terminal receives and calls the prescription data of the target object according to the identity information of the target object, so as to perform corresponding medicine dispensing operations for the target object.
[0079] Specifically, the medicine dispensing end first scans the electronic medical insurance QR code provided by the target object (usually the patient), identifies the encrypted data of the target object's identity information, and sends the encrypted data to the medicine replenishment end through the communication link between the medicine dispensing end and the medicine replenishment end. Then the medicine replenishment end receives the encrypted data, starts the medical insurance decoding program on the local machine, loads the dynamic link library that is connected to the medical insurance system, and calls the decoding function therein to decode the encrypted data. After the decoding is successful, the medicine replenishment end obtains the identity information of the target object, such as the medical insurance account number, ID card number and other plain text data, and then sends the identity information of the target object to the medicine dispensing end through the communication link between the medicine replenishment end and the medicine dispensing end. Finally, the medicine dispensing end can query the corresponding prescription data in the database of the hospital or pharmacy according to the received identity information of the target object, and release the medicine to the medicine dispensing port of the medicine dispensing end according to the prescription data.
[0080] It should be noted that the medical insurance decoding program may have compatibility issues with the operating system and device hardware. If the medical insurance decoding program can run on the first operating system, the drug dispensing terminal scans the electronic medical insurance QR code provided by the target object, identifies the encrypted data, and then starts the medical insurance decoding program on the local machine to decode and obtain the identity information of the target object. Based on the identity information, the drug dispensing terminal queries the corresponding prescription data in the database of the hospital or pharmacy, and finally releases the medicine to the dispensing port according to the prescription data.
[0081] When the medical insurance decoding program cannot run on the first operating system but can run on the second operating system, the software of the automatic drug dispensing equipment can be upgraded, and the encrypted data carried in the electronic medical insurance QR code can be decrypted through the drug refill end without replacing the hardware equipment at the drug dispensing end and updating its operating system, thereby achieving docking with the medical insurance system.
[0082] See also Figure 5In some embodiments, the automatic medicine dispensing method is applied to a medicine replenishing end of an automatic medicine dispensing device, the automatic medicine dispensing device further comprises a medicine dispensing end installed with a first operating system, and a second operating system is installed in the medicine replenishing end; wherein the medicine dispensing end is designed separately from the medicine replenishing end and is in communication connection, and the first operating system and the second operating system belong to different categories of operating systems; the steps of the automatic medicine dispensing method include:
[0083] S910, receiving the encrypted data carried in the electronic medical insurance QR code of the target object sent by the medicine collection terminal.
[0084] S920, start the medical insurance decoding program, decode the encrypted data through the medical insurance decoding program, and obtain the decoded identity information of the target object.
[0085] S930: Send the identity information of the target object to the medicine dispensing terminal, so that the medicine dispensing terminal calls the prescription data of the target object according to the identity information of the target object, so as to perform corresponding medicine dispensing operations for the target object.
[0086] Specifically, the medicine replenishment end first receives the encrypted data carried in the electronic medical insurance QR code of the target object sent by the medicine dispensing end; then starts the medical insurance decoding program on the local machine, transmits the encrypted data to the medical insurance decoding program, and the medical insurance decoding program decodes the encrypted data to obtain the identity information of the decoded target object; finally, the medicine replenishment end sends the identity information of the target object to the medicine dispensing end through the communication link between the medicine replenishment end and the medicine dispensing end. The medicine dispensing end can query the corresponding prescription data in the database of the hospital or pharmacy based on the received identity information of the target object, and release the medicine to the medicine dispensing port of the medicine dispensing end according to the prescription data.
[0087] See also Figure 6 In some embodiments, the encrypted data includes an encrypted identity string; starting a medical insurance decoding program, decoding the encrypted data through the medical insurance decoding program, and obtaining the decoded identity information of the target object, the steps include:
[0088] S1010. Start the medical insurance decoding program to display the medical insurance verification operation interface through the main thread and simulate the identity information input operation through the sub-thread.
[0089] S1020. Display the encrypted identity string in the medical insurance verification operation interface.
[0090] S1030. Decode the encrypted identity string using a medical insurance decoding program to obtain the decoded identity information of the target object.
[0091] Specifically, see Figure 2After receiving the encrypted data of the target object, the medicine replenishment end can start the medical insurance decoding program, display the medical insurance verification operation interface through the main thread, and simulate the keyboard operation through the child thread to input the encrypted identity string of the encrypted data in the electronic certificate encoding area 202. After the input is completed, the encrypted identity string can be displayed in the electronic certificate encoding area 202. Finally, the encrypted identity string is passed to the medical insurance decoding program, and the medical insurance decoding program can call the relevant decoding function to decode it. After the decoding is successful, the identity information of the decoded target object can be obtained.
[0092] See also Figure 7 , Figure 7 is a schematic diagram of the structure of a computer device provided in an embodiment of the present application, such as Figure 7 As shown, the computer device includes: one or more processors 10, a memory 20, and interfaces for connecting various components, including high-speed interfaces and low-speed interfaces. Various components are connected to each other using different buses for communication, and can be installed on a common mainboard or installed in other ways as needed. The processor can process the instructions executed in the computer device, including instructions stored in or on the memory to display the graphical information of the GUI on an external input / output device (such as, a display device coupled to the interface). In some optional embodiments, if necessary, multiple processors and / or multiple buses can be used together with multiple memories and multiple memories. Similarly, multiple computer devices can be connected, and each device provides some necessary operations (for example, as a server array, a group of blade servers, or a multi-processor system). Figure 7 A processor 10 is taken as an example.
[0093] The processor 10 may be a central processing unit, a network processor or a combination thereof. The processor 10 may further include a hardware chip. The hardware chip may be a dedicated integrated circuit, a programmable logic device or a combination thereof. The programmable logic device may be a complex programmable logic device, a field programmable gate array, a general purpose array logic or any combination thereof.
[0094] The memory 20 stores instructions executable by at least one processor 10, so that the at least one processor 10 executes the method shown in the above embodiment.
[0095] The memory 20 may 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; the data storage area may store data created according to the use of the computer device, etc. In addition, the memory 20 may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some optional embodiments, the memory 20 may optionally include a memory remotely arranged relative to the processor 10, and these remote memories may be connected to the computer device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0096] The memory 20 may include a volatile memory, such as a random access memory; the memory may also include a non-volatile memory, such as a flash memory, a hard disk or a solid state drive; the memory 20 may also include a combination of the above types of memory.
[0097] The computer device further comprises a communication interface 30 for the computer device to communicate with other devices or a communication network.
[0098] The embodiment of the present application also provides a computer-readable storage medium. The above method according to the embodiment of the present application can be implemented in hardware, firmware, or can be implemented as a computer code that can be recorded in a storage medium, or can be implemented as a computer code that is originally stored in a remote storage medium or a non-temporary machine-readable storage medium and will be stored in a local storage medium through a network download, so that the method described herein can be stored in such software processing on a storage medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware. Among them, the storage medium can be a magnetic disk, an optical disk, a read-only storage memory, a random access memory, a flash memory, a hard disk or a solid-state hard disk, etc.; further, the storage medium can also include a combination of the above types of memories. It can be understood that a computer, a processor, a microprocessor controller, or programmable hardware includes a storage component that can store or receive software or computer code. When the software or computer code is accessed and executed by a computer, a processor, or hardware, the method shown in the above embodiment is implemented.
[0099] The embodiment of the present application provides a computer program product, which includes computer instructions, which are stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the method of any embodiment of the present application.
[0100] Although the embodiments of the present application are described in conjunction with the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the present application, and such modifications and variations are all within the scope defined by the appended claims.
[0101] The systems, devices, modules or units described in the above embodiments may be implemented by computer chips or entities, or by products with certain functions. A typical implementation device is a computer. Specifically, the computer may be, for example, a personal computer, a laptop computer, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.
[0102] For the convenience of description, the above device is described in various units according to their functions. Of course, when implementing the present application, the functions of each unit can be implemented in the same or multiple software and / or hardware.
[0103] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.
[0104] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0105] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1A function specified in one or more boxes.
[0106] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0107] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.
[0108] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0109] The above is only an embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.
[0110] Although the embodiments of the present application have been described in conjunction with the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the present application, and such modifications and variations are all within the scope defined by the appended claims.
Claims
1. An automatic medicine dispensing device, characterized in that: The device comprises: a medicine dispensing end installed with a first operating system and a medicine replenishing end installed with a second operating system; wherein the medicine dispensing end and the medicine replenishing end are designed separately and are communicatively connected, and the first operating system and the second operating system belong to different categories of operating systems; The medicine dispensing end is used to obtain the encrypted data carried in the electronic medical insurance QR code of the target object and send the encrypted data to the medicine replenishing end; The medicine dispensing end is used to start the medical insurance decoding program when receiving the encrypted data, decode the encrypted data through the medical insurance decoding program, obtain the decoded identity information of the target object, and send the identity information of the target object to the medicine dispensing end; The medicine dispensing end is also used to receive and call the prescription data of the target object according to the identity information of the target object, so as to perform corresponding medicine dispensing operations for the target object.
2. The device according to claim 1, characterized in that The encrypted data includes an encrypted identity string; The medicine replenishment terminal is also used to display the medical insurance verification operation interface, and to display the encrypted identity string on the medical insurance verification operation interface.
3. The device according to claim 2, characterized in that The medicine replenishment end is also used to display the medical insurance verification operation interface through the main thread, and simulate the identity information input operation through the sub-thread to display the encrypted identity string in the medical insurance verification operation interface.
4. The device according to claim 3, characterized in that The medical insurance verification operation interface includes a target input control, and the target input control is an input control corresponding to the electronic voucher code; The medicine replenishment terminal is also used to display the encrypted identity string at the corresponding position of the target input control in the medical insurance verification operation interface.
5. The device according to claim 1, characterized in that The medicine dispensing end is provided with a code scanning unit; The code scanning unit is used to scan the electronic medical insurance two-dimensional code of the target object to identify the encrypted data carried in the electronic medical insurance two-dimensional code.
6. The device according to claim 1, characterized in that The number of the medicine replenishing terminal is one, the number of the medicine dispensing terminal is multiple, each of the medicine dispensing terminals is independently designed and is respectively connected to the medicine replenishing terminal in communication; The first operating system adopts the Android operating system, and the second operating system adopts the Windows operating system.
7. The device according to any one of claims 1 to 6, characterized in that The medicine dispensing end sends the encrypted data to the medicine replenishing end through the first communication mode or the second communication mode; The medicine replenishment terminal starts the medical insurance decoding program through the second communication method; The medicine replenishing end sends the identity information of the target object to the medicine dispensing end through the first communication method or the second communication method.
8. An automatic medicine dispensing method, characterized in that: Applied to an automatic medicine dispensing device, the automatic medicine dispensing device comprises a medicine dispensing end installed with a first operating system and a medicine replenishing end installed with a second operating system; wherein the medicine dispensing end and the medicine replenishing end are separately designed and communicatively connected, and the first operating system and the second operating system belong to different categories of operating systems; the method comprises: The medicine dispensing terminal obtains the encrypted data carried in the target object's electronic medical insurance QR code, and sends the encrypted data to the medicine replenishing terminal; When receiving the encrypted data, the medicine dispensing end starts the medical insurance decoding program, decodes the encrypted data through the medical insurance decoding program, obtains the decoded identity information of the target object, and sends the identity information of the target object to the medicine dispensing end; The medicine dispensing terminal receives and calls the prescription data of the target object according to the identity information of the target object, so as to perform corresponding medicine dispensing operations for the target object.
9. An automatic medicine dispensing method, characterized in that: A medicine replenishing end applied to an automatic medicine dispensing device, the automatic medicine dispensing device further comprising a medicine dispensing end equipped with a first operating system, the medicine dispensing end being equipped with a second operating system; wherein the medicine dispensing end is designed separately from the medicine dispensing end and is in communication connection with the medicine dispensing end, the first operating system and the second operating system belong to different categories of operating systems; the method comprising: Receiving the encrypted data carried in the electronic medical insurance QR code of the target object sent by the drug dispensing terminal; Starting a medical insurance decoding program, decoding the encrypted data through the medical insurance decoding program, and obtaining the decoded identity information of the target object; The identity information of the target object is sent to the medicine dispensing terminal, so that the medicine dispensing terminal calls the prescription data of the target object according to the identity information of the target object to perform corresponding medicine dispensing operations for the target object.
10. The method according to claim 9, characterized in that The encrypted data includes an encrypted identity string; the starting of the medical insurance decoding program, decoding the encrypted data by the medical insurance decoding program, and obtaining the decoded identity information of the target object, includes: Start the medical insurance decoding program to display the medical insurance verification operation interface through the main thread and simulate the identity information input operation through the sub-thread; Displaying the encrypted identity string in the medical insurance verification operation interface; The encrypted identity character string is decoded by the medical insurance decoding program to obtain the decoded identity information of the target object.