Method and system for intelligent drug distribution

Through a two-stage identity authentication mechanism, a complete and secure closed-loop medication dispensing process is constructed, which solves the problem of misprescription of medicines in smart medicine boxes in environments where multiple people use them, and ensures the safety and accuracy of drug distribution.

CN120727221APending Publication Date: 2025-09-30THE FIRST MEDICAL CENT CHINESE PLA GENERAL HOSPITAL
View PDF 12 Cites 0 Cited by

Patent Information

Application Number
CN202510862370.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-06-25
Publication Date
2025-09-30

AI Technical Summary

Technical Problem

Existing smart medicine boxes or electronic medicine box systems are prone to drug misdispensing problems in clinical dispensing environments used by multiple people, resulting in lower medication safety.

Method used

A two-stage identity authentication mechanism is adopted to build a complete and secure closed-loop drug dispensing process through the identification of the drug box to be dispensed at the dispensing end and the identity verification at the drug user end, ensuring the accuracy and safety of drug unlocking and dispensing operations.

Benefits of technology

It improves the transparency of system operations and controllability of responsibilities, effectively prevents the risks of misdelivery, missed delivery and abuse, and ensures the safety and accuracy of drug distribution.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120727221A_ABST
    Figure CN120727221A_ABST
Patent Text Reader

Abstract

The invention provides an intelligent medicine distribution method and system, and relates to the technical field of computers, and the method comprises the steps: a medicine preparation end analyzes an electronic doctor's advice to obtain information of a to-be-distributed medicine, a to-be-distributed medicine box corresponding to the to-be-distributed medicine, and a medicine application end corresponding to the to-be-distributed medicine, and sends the information, the to-be-distributed medicine box and the medicine application end to a unified authority service platform; according to the information of the to-be-distributed medicine and the to-be-distributed medicine box corresponding to the to-be-distributed medicine, preparing the medicine; the unified authority service platform generates medicine dispensing end identification information and medicine taking end identification information and sends the information to the medicine box to be dispensed; and the medicine box to be dispensed is subjected to information identification and verification within the signal identification range, after verification of identification information of the medicine dispensing end is confirmed to be completed, the medicine dispensed by the medicine dispensing end is received, after verification of identification information of the medicine dispensing end is confirmed to be completed, the medicine storage space is unlocked, and a medicine dispensing success state is returned to the unified authority service platform. According to the invention, the information consistency is guaranteed by adopting two-stage identity authentication, and a complete and safe closed-loop medicine dispensing process is constructed.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer technology, and in particular to a method and system for intelligent drug distribution. Background Art

[0002] In recent years, with the accelerated pace of work, people are generally under greater stress and are more susceptible to various chronic diseases. These people need to take medication regularly year-round, but busy lifestyles often lead to missed doses, overdosing, and incorrect medications. To help people take their medications in a timely and correct manner, a common approach is to use smart pill boxes or electronic medicine cabinet systems to remind them to take their medications.

[0003] Most smart medicine boxes or electronic medicine box systems only have basic drug storage, timed reminder or one-way control functions. In a clinical drug dispensing environment used by multiple people, drug misdispensing problems are prone to occur, posing risks to patient medication safety.

[0004] Therefore, there is an urgent need for a method to improve the safety of smart drug dispensing. Summary of the Invention

[0005] In order to solve the technical problem of low safety of smart medicine dispensing in the existing technology, the embodiment of the present invention provides a method and system for smart medicine dispensing. The technical solution is as follows:

[0006] In one aspect, a method for intelligent drug distribution is provided, comprising:

[0007] The drug preparation terminal parses the electronic medical order to obtain information about the drug to be dispensed, the corresponding medicine box to be dispensed, and the corresponding medication terminal to be dispensed, sends the information about the drug to be dispensed, the corresponding medicine box to be dispensed, and the corresponding medication terminal to be dispensed in the electronic medical order to the unified authority service platform, and prepares the drug based on the information about the drug to be dispensed and the corresponding medicine box to be dispensed to provide it to the medication dispensing terminal;

[0008] The unified authority service platform issues a dispensing task to the medicine box to be dispensed, generates dispensing end identification information and medication end identification information, and sends the dispensing end identification information and medication end identification information to the medicine box to be dispensed;

[0009] After receiving the medicine dispensing task, the medicine box to be dispensed performs information identification and verification within the signal recognition range. After confirming that the verification of the identification information of the dispensing end is completed, it receives the medicine dispensed by the dispensing end. After confirming that the verification of the identification information of the medication end is completed, it unlocks the medicine storage space and returns the successful status of the medicine dispensing to the unified authority service platform.

[0010] If the verification of the identification information of the medicine box to be dispensed fails at the dispensing end or the identification information of the medication end fails, the failure of the dispensing task will be reported to the unified authority service platform and an alarm will be issued.

[0011] Optionally, before preparing medicines according to the information of the medicines to be distributed and the medicine boxes to be distributed corresponding to the medicines to be distributed, the medicine preparation end further includes:

[0012] Performing individual drug conflict searches in the medication knowledge graph based on the historical medication records of the medication terminal, and providing an alarm feedback and stopping medication preparation if the search result indicates that a drug conflict exists;

[0013] When the search result shows that there is no drug conflict, the drugs are prepared according to the information of the drugs to be distributed and the medicine boxes corresponding to the drugs to be distributed.

[0014] Optionally, the information of the medicine to be distributed includes:

[0015] Drug name, dosage, frequency of use, method of use, and time window for use;

[0016] The method of searching for individual drug conflicts in the medication knowledge graph based on the historical medication records of the medication terminal and providing an alarm feedback when the retrieval result indicates that a drug conflict exists includes:

[0017] Obtain historical medication records from the medication end and extract historical medication information from the historical medication records, wherein the historical medication information includes the name of the historical medication, the dosage of the historical medication, the frequency of use of the historical medication, the method of use of the historical medication, and the medication time window of the historical medication;

[0018] An individual drug conflict search is performed in the medication knowledge graph in combination with the historical drug information and the information of the drug to be distributed to obtain a drug conflict result. If the drug conflict result indicates that a drug conflict exists, an alarm feedback is performed.

[0019] Optionally, the method for intelligent drug distribution provided by an embodiment of the present invention further includes:

[0020] The unified authority service platform generates a medicine dispensing task sequence based on the medication time window of the medicine to be distributed. When entering the medicine dispensing task execution time window, it controls the medicine box corresponding to the medicine to be distributed to enter the medicine dispensing mode, and the medicine dispensing mode is used to turn on the signal recognition state of the medicine box to be distributed.

[0021] Optionally, the identification information of the dispensing end includes a unique identity identifier of a work card of the dispensing end;

[0022] After receiving the medicine dispensing task, the medicine box to be dispensed performs information identification and verification within the signal recognition range, including:

[0023] The medicine box to be dispensed uses real-time signal recognition to identify the unique identity identifier of the dispensing end work card that appears within the signal recognition range. After identifying the unique identity identifier of the dispensing end work card, the real-time distance between the dispensing end and the medicine box to be dispensed is obtained based on the position of the dispensing end work card, and the proximity time is recorded. When the real-time distance between the dispensing end work card is less than the set distance threshold or the proximity time exceeds the set signal recognition requirement time, the medicine box to be dispensed enters the pre-identification state and retrieves the dispensing end interaction information and unlockable status parameters from the unified authority service platform.

[0024] The medicine box to be dispensed sends an identification request to the unified authority service platform to obtain the interaction information of the dispensing end that currently needs to perform the medicine dispensing task. The identification request includes the unique identity identifier of the dispensing end work card;

[0025] After receiving the identification request, the unified authority service platform queries the matching dispensing end interaction information from the task scheduling system, encapsulates it into a unified format and sends it to the medicine box to be dispensed, and sends a formal identification signal to the dispensing end;

[0026] The medicine box to be dispensed calls the interactive information of the dispensing end for comparison, and receives the medicine dispensed by the dispensing end if the comparison result is consistent;

[0027] After receiving the formal identification signal, the dispensing end triggers the formal identification action;

[0028] When the NFC badge of the dispensing end is close to the NFC module of the medicine box to be dispensed, the medicine box to be dispensed uses the high-frequency NFC module to quickly compare the information read by the NFC badge with the information locally cached by the medicine box to be dispensed at the field level. If the comparison results are consistent, the consistency judgment result is that the comparison is successful, and the medicine dispensed by the dispensing end is received;

[0029] If the comparison results are inconsistent, the consistency judgment result is that the preliminary comparison failed. The medicine box to be dispensed reminds the dispensing end to re-verify. When the number of re-verifications exceeds the maximum permitted reconnection number, the medicine box to be dispensed starts the low-frequency module to enter the secondary comparison process. If the secondary comparison process fails, the formal identification is stopped.

[0030] Optionally, after confirming that the verification of the medication terminal identification information is completed, unlocking the medication storage space includes:

[0031] The medicine box to be dispensed undergoes identity verification on the medication end. After the identity verification on the medication end is successful, the medicine storage space is unlocked. After the unlocking is completed, the status of the medication dispensing task is updated to the unified authority service platform, and the completion time of the medication dispensing task is recorded.

[0032] Optionally, before the unified authority service platform issues a medicine dispensing task to the medicine box to be dispensed, the method further includes:

[0033] The unified authority service platform collects statistics on adjustment influencing factors of signal recognition parameters of the medicine box to be dispatched, wherein the adjustment influencing factors include historical module voltage input peak values, historical module operating current peak values, historical module voltage input valley values, historical module operating current valley values, and historical average antenna resonant frequencies of the medicine box to be dispatched, and compares the adjustment influencing factors with a preset adjustment influencing factor verification parameter interval to obtain deviation values ​​of each adjustment influencing factor of the signal recognition parameters of the medicine box to be dispatched;

[0034] After correcting the deviation values ​​of the adjustment influencing elements, a signal recognition parameter adjustment factor of the medicine box to be dispatched is obtained; based on the signal recognition parameter adjustment factor of the medicine box to be dispatched, a mapping match is performed with a pre-stored mapping set of signal recognition parameter adjustment factors and signal recognition parameter adjustment value sets in a database to obtain a signal recognition parameter adjustment value set for the medicine box to be dispatched, and the signal recognition parameters of the medicine box to be dispatched are adjusted accordingly;

[0035] The signal identification parameter adjustment value set of the medicine box to be dispatched includes a channel scanning interval adjustment value, a channel holding time adjustment value, a signal identification power threshold adjustment value, and a signal receiving sensitivity adjustment value;

[0036] Based on the signal recognition parameter adjustment value set of the medicine box to be dispatched, the signal recognition parameters of the medicine box to be dispatched are adjusted accordingly. After the adjustment, the signal recognition trial operation test period is entered, and the first round of signal recognition data, including the signal strength fluctuation amplitude, the channel scanning coverage rate, and the signal recognition power consumption, is collected. The data is compared with the preset signal strength fluctuation amplitude threshold, the preset channel scanning coverage rate threshold, and the preset signal recognition power consumption threshold to obtain the deviation value of the first round of signal recognition data. After correction, the signal recognition trial operation test result is obtained. If the signal recognition trial operation test result is qualified, the signal recognition state of the medicine box to be dispatched is officially started;

[0037] If the signal recognition trial run test result is unqualified, an early warning report will be generated and the drug delivery task will be suspended.

[0038] An embodiment of the present invention further provides a system for intelligent drug distribution, wherein the system for intelligent drug distribution is used to implement the method for intelligent drug distribution provided in an embodiment of the present invention, and the system includes:

[0039] a medication preparation terminal, configured to parse an electronic medical order to obtain information about the medication to be dispensed, a corresponding medication box to be dispensed, and a corresponding medication user terminal for the medication to be dispensed, send the information about the medication to be dispensed, the corresponding medication box to be dispensed, and the corresponding medication user terminal in the electronic medical order to a unified authority service platform, and prepare medication based on the information about the medication to be dispensed and the corresponding medication box to be dispensed, and provide the medication to the medication dispensing terminal;

[0040] The unified authority service platform is used to issue a dispensing task to a medicine box to be dispensed, generate identification information of a dispensing end and identification information of a medication user, send the identification information of the dispensing end and the medication user to the medicine box to be dispensed, and return a successful drug dispensing status to the unified authority service platform;

[0041] The medicine box to be dispensed is used to perform information identification and verification within the signal recognition range after receiving the medicine dispensing task, receive the medicine dispensed by the medicine dispensing end after confirming that the verification of the identification information of the medicine consumption end is completed, unlock the medicine storage space after confirming that the verification of the identification information of the medicine consumption end is completed, and report the failure of the medicine dispensing task to the unified authority service platform and issue an alarm at the same time when the verification of the identification information of the medicine dispensing end or the verification of the identification information of the medicine consumption end fails.

[0042] An embodiment of the present invention further provides a device for intelligent drug distribution, the device for intelligent drug distribution comprising:

[0043] processor;

[0044] A memory having computer-readable instructions stored thereon, wherein the computer-readable instructions, when executed by the processor, implement the method provided by the embodiment of the present invention.

[0045] An embodiment of the present invention further provides a computer-readable storage medium, in which program code is stored. The program code can be called by a processor to execute the method provided by the embodiment of the present invention.

[0046] The beneficial effects brought about by the technical solution provided by the embodiment of the present invention include at least:

[0047] The embodiment of the present invention adopts a two-stage identity authentication to ensure information consistency and build a complete and secure closed-loop drug dispensing process. In the drug dispensing process, the solution identifies the dispensing end through the medicine box to be dispensed, ensuring the interaction efficiency while strictly controlling the probability of misidentification. When the identification is successful, it is necessary to further verify the identity of the medication end. Only after double confirmation can the drug unlocking and dispensing operations be executed, and the task status is synchronized to the unified authority service platform, forming a complete closed loop from task issuance, identification interaction, drug unlocking to task return. This full-process recording and traceability mechanism greatly improves the transparency of system operations and the controllability of responsibilities, and effectively prevents the risks of misdelivery, missed delivery and abuse. BRIEF DESCRIPTION OF THE DRAWINGS

[0048] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0049] Figure 1 This is a flow chart of a method for intelligent drug distribution provided by an embodiment of the present invention;

[0050] Figure 2 This is a schematic diagram of the structure of a system for intelligent drug distribution provided by an embodiment of the present invention;

[0051] Figure 3 This is a schematic diagram of the structure of a device for intelligent drug distribution provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0052] The technical solution of the present invention is described below in conjunction with the accompanying drawings.

[0053] In the embodiments of the present invention, words such as "exemplarily" and "for example" are used to indicate examples, illustrations, or explanations. Any embodiment or design described as an "exemplary" in the present invention should not be interpreted as being preferred or advantageous over other embodiments or designs. Rather, the use of the word "exemplary" is intended to present concepts in a concrete manner. Furthermore, in the embodiments of the present invention, "and / or" can mean both or either of the two.

[0054] In the embodiments of the present invention, the terms "image" and "picture" may sometimes be used interchangeably. It should be noted that, when the distinction is not emphasized, the meanings they convey are the same. The terms "of," "corresponding," and "corresponding" may sometimes be used interchangeably. It should be noted that, when the distinction is not emphasized, the meanings they convey are the same.

[0055] In the embodiments of the present invention, sometimes a subscript such as W1 may be mistakenly written as a non-subscript form such as W1. When the difference is not emphasized, the meanings to be expressed are the same.

[0056] In order to make the technical problems, technical solutions and advantages to be solved by the present invention clearer, a detailed description will be given below with reference to the accompanying drawings and specific embodiments.

[0057] In order to solve the technical problem of low safety of smart medicine dispensing in the existing technology, the embodiment of the present invention provides a method and system for smart medicine dispensing. The technical solution is as follows:

[0058] On the one hand, if Figure 1 As shown, a method for intelligent drug distribution is provided, comprising:

[0059] S1. The drug preparation terminal parses the electronic medical order to obtain information about the drug to be dispensed, the corresponding medicine box to be dispensed, and the corresponding medication terminal to be dispensed, sends the information about the drug to be dispensed, the corresponding medicine box to be dispensed, and the corresponding medication terminal to be dispensed in the electronic medical order to a unified authority service platform, and prepares the drug based on the information about the drug to be dispensed and the corresponding medicine box to be dispensed, and provides the drug dispensing terminal with the drug.

[0060] S2. The unified authority service platform issues a dispensing task to the medicine box to be dispensed, generates dispensing terminal identification information and medication end identification information, and sends the dispensing terminal identification information and medication end identification information to the medicine box to be dispensed;

[0061] S3. After receiving the medication dispensing task, the medicine box to be dispensed performs information identification and verification within the signal recognition range. After confirming that the verification of the identification information of the dispensing end is complete, it receives the medication dispensed by the dispensing end. After confirming that the verification of the identification information of the medication consumption end is complete, it unlocks the medication storage space and returns the successful status of medication dispensing to the unified authority service platform.

[0062] S4. When the identification information of the medicine box to be dispensed fails to be verified at the dispensing end or the identification information of the medication end fails to be verified, the failure of the dispensing task is reported to the unified authority service platform and an alarm is issued.

[0063] Optionally, before preparing medicines according to the information of the medicines to be distributed and the medicine boxes to be distributed corresponding to the medicines to be distributed, the medicine preparation end further includes:

[0064] Performing individual drug conflict searches in the medication knowledge graph based on the historical medication records of the medication terminal, and providing an alarm feedback and stopping medication preparation if the search result indicates that a drug conflict exists;

[0065] When the search result shows that there is no drug conflict, the drugs are prepared according to the information of the drugs to be distributed and the medicine boxes corresponding to the drugs to be distributed.

[0066] In practice, the medication preparation end extracts information about the medication to be dispensed from the electronic doctor's order. The medication administration end retrieves historical medication records for comparison with current medication information. Combined with the medication knowledge graph, a conflict check is performed between the current medication and historical medication records. If a conflict is found, an alert is issued and the medication dispensing process is terminated. If there is no conflict, medication preparation proceeds. The unified permission service platform generates a medication dispensing task sequence based on the medication information.

[0067] Perform individual drug conflict retrieval in the medication knowledge graph based on the historical medication records of the medication terminal, specifically including:

[0068] The drug preparation end uses the BioBERT fine-tuned model to parse electronic medical orders and extract structured fields in the electronic medical orders to obtain information about the drugs to be distributed in the electronic medical orders, including the drug name, drug dosage, frequency of use, method of use, and time window for medication.

[0069] Convert the parsing results into triples and match the corresponding entities in the drug knowledge graph through the SPARQL query interface.

[0070] Obtain historical medication records from the medication end and extract the historical drug information in the historical medication records, including the drug name, drug dosage, frequency of use, method of use and medication time window of each historical drug.

[0071] The medication knowledge graph is used to search for individual drug conflicts based on historical medication records from the medication client. If a conflict is detected, a red alert pop-up window is sent to the medication preparation client. This individual drug conflict search utilizes the locally integrated Lexicomp database and the comparison of interaction relationships between graph entities.

[0072] It's important to note that medical terminology and drug names in medical orders can be recognized using BioBERT, a BERT model pre-trained on biomedical data. BioBERT can be fine-tuned before use. Fine-tuning involves retraining a pre-trained model on a specific task to adapt it to the language style of electronic medical orders.

[0073] A triple is a basic unit of a knowledge graph and is in the form of <subject><predicate><object>. For example, in an embodiment of the present invention, there is a triple of <aspirin><frequency of use><once a day>.

[0074] SPARQL is a standard query language for querying RDF (Resource Description Framework) graph data and can be used to query medication knowledge graphs.

[0075] Based on the triples in the electronic medical order, the corresponding drug entities and their relationships, attributes, etc. can be found in the graph through entity matching.

[0076] In practical applications, historical medication records can be retrieved from the electronic health record (EHR) on the medication side, and the relationship edges in the graph can be combined to determine whether there is a drug conflict between the current electronic medical order and the historical medication records.

[0077] Lexicomp is an authoritative drug information database that contains detailed information on drug interactions, metabolic mechanisms, and contraindications. It can be used for localized deployment and relationship alignment between graph entities.

[0078] A medication knowledge graph uses knowledge graph technology to structure various types of drug-related information. This information is then organized, stored, and reasoned about through entities and relationships in the form of a graph. A medication knowledge graph is a network containing drug-related knowledge, where nodes represent different entities and edges represent the relationships between them. Entities are the basic components of a knowledge graph and typically represent specific concepts or objects. For medication knowledge graphs, entities include drug names, drug ingredients, and so on. Relationships represent the connections between entities and are typically expressed as verbs or actions.

[0079] Optionally, the information of the medicine to be distributed includes:

[0080] Drug name, dosage, frequency of use, method of use, and time window for use;

[0081] The method of searching for individual drug conflicts in the medication knowledge graph based on the historical medication records of the medication terminal and providing an alarm feedback when the retrieval result indicates that a drug conflict exists includes:

[0082] Obtain historical medication records from the medication end and extract historical medication information from the historical medication records, wherein the historical medication information includes the name of the historical medication, the dosage of the historical medication, the frequency of use of the historical medication, the method of use of the historical medication, and the medication time window of the historical medication;

[0083] An individual drug conflict search is performed in the medication knowledge graph in combination with the historical drug information and the information of the drug to be distributed to obtain a drug conflict result. If the drug conflict result indicates that a drug conflict exists, an alarm feedback is performed.

[0084] Optionally, the method for intelligent drug distribution provided by an embodiment of the present invention further includes:

[0085] The unified authority service platform generates a medicine dispensing task sequence based on the medication time window of the medicine to be distributed. When entering the medicine dispensing task execution time window, it controls the medicine box corresponding to the medicine to be distributed to enter the medicine dispensing mode, and the medicine dispensing mode is used to turn on the signal recognition state of the medicine box to be distributed.

[0086] Optionally, the identification information of the dispensing end includes a unique identity identifier of a work card of the dispensing end;

[0087] After receiving the medicine dispensing task, the medicine box to be dispensed performs information identification and verification within the signal recognition range, including:

[0088] The medicine box to be dispensed uses real-time signal recognition to identify the unique identity identifier of the dispensing end work card that appears within the signal recognition range. After identifying the unique identity identifier of the dispensing end work card, the real-time distance between the dispensing end and the medicine box to be dispensed is obtained based on the position of the dispensing end work card, and the proximity time is recorded. When the real-time distance between the dispensing end work card is less than the set distance threshold or the proximity time exceeds the set signal recognition requirement time, the medicine box to be dispensed enters the pre-identification state and retrieves the dispensing end interaction information and unlockable status parameters from the unified authority service platform.

[0089] The medicine box to be dispensed sends an identification request to the unified authority service platform to obtain the interaction information of the dispensing end that currently needs to perform the medicine dispensing task. The identification request includes the unique identity identifier of the dispensing end work card;

[0090] After receiving the identification request, the unified authority service platform queries the matching dispensing end interaction information from the task scheduling system, encapsulates it into a unified format and sends it to the medicine box to be dispensed, and sends a formal identification signal to the dispensing end;

[0091] The medicine box to be dispensed calls the interactive information of the dispensing end for comparison, and receives the medicine dispensed by the dispensing end if the comparison result is consistent;

[0092] After receiving the formal identification signal, the dispensing end triggers the formal identification action;

[0093] When the NFC badge of the dispensing end is close to the NFC module of the medicine box to be dispensed, the medicine box to be dispensed uses the high-frequency NFC module to quickly compare the information read by the NFC badge with the information locally cached by the medicine box to be dispensed at the field level. If the comparison results are consistent, the consistency judgment result is that the comparison is successful, and the medicine dispensed by the dispensing end is received;

[0094] If the comparison results are inconsistent, the consistency judgment result is that the preliminary comparison failed. The medicine box to be dispensed reminds the dispensing end to re-verify. When the number of re-verifications exceeds the maximum permitted reconnection number, the medicine box to be dispensed starts the low-frequency module to enter the secondary comparison process. If the secondary comparison process fails, the formal identification is stopped.

[0095] For example, when the dispensing end is performing a dispensing task, the work card of its device broadcasts its work card unique identity identifier in real time. The medicine box to be dispensed compares the unique identity identifier of the work card of the dispensing end that appears within the signal recognition range with the unique identity identifier of the work card that needs to perform the dispensing task. If the comparison results are consistent, the real-time distance between the dispensing end and the medicine box to be dispensed is obtained based on the universal unique identifier of the position of the work card of the dispensing end.

[0096] For example, the current unique identifier of the work card of the dispensing device is WID-ABC123XYZ, and its position UUID is POS-001FF234AB. The work card of the dispensing device broadcasts its unique identifier in real time. The broadcast information includes workerUID: WID-ABC123XYZ and Position_UUID: POS-001FF234AB. The medicine box to be dispensed receives workerUID: WID-ABC123XYZ and Position_UUID: POS-001FF234AB within the identification range. POS-001FF234AB, and record the received signal strength at this time as -68dBm. The medicine box to be dispensed compares the received workerUID:WID-ABC123XYZ with the unique identifier WID-ABC123XYZ of the work card that needs to perform the medicine dispensing task. After obtaining a consistent comparison result, based on Position_UUID:POS-001FF234AB and combined with the signal strength, a preset distance model is used to calculate the real-time distance between the dispensing end and the medicine box to be dispensed. The specific calculation process includes: ,in, The real-time distance between the dispensing terminal and the medicine box to be dispensed. The transmission power preset in the distance model, in dBm. is the signal strength received when the medicine box to be dispatched receives the workerUID, and n is the environmental attenuation factor preset in the distance model.

[0097] The unified authority service platform is called to resolve the location universal unique identifier into the real-time coordinates of the dispensing end in space. Based on the coordinates corresponding to the location universal unique identifier of the dispensing end and the coordinates of the medicine box to be dispensed, the Euclidean distance algorithm is used to calculate the real-time distance between the two.

[0098] Determine the pre-identification status of the triggering medicine box to be dispensed, specifically including:

[0099] The medicine box to be dispensed reads the real-time distance of the dispensing end and records the approach time in real time. When the real-time distance of the work card of the dispensing end is less than the set distance threshold or the approach time exceeds the set signal recognition requirement time, the medicine box to be dispensed enters the pre-identification state. The pre-identification state of the medicine box to be dispensed is used to cache the interaction information of the dispensing end locally.

[0100] The medicine box to be dispensed retrieves the dispensing-end interaction information from the unified permission service platform and preloads it into the local cache along with the unlockable status parameters, including:

[0101] The medicine box to be dispensed sends an identification request to the unified authority service platform to obtain the interaction information of the dispensing end that currently needs to perform the medicine dispensing task. The identification request includes the unique identity identifier of the dispensing end work card;

[0102] Upon receiving the identification request, the unified authorization service platform retrieves matching dispensing-end interaction information from the task scheduling system, encapsulates it in a unified format, and sends it to the medicine box to be dispensed. It also sends a formal identification signal to the dispensing end. Optionally, the unified authorization service platform also encapsulates the unlockable status parameter and sends it to the medicine box to be dispensed.

[0103] The unlockable state parameters include unlocking operating voltage and unlocking operating current.

[0104] In some embodiments, the medicine box to be dispensed reads the work badge information of the dispensing end through NFC. The read work badge information is compared with the identification data cached locally. Determine whether the comparison results are consistent. If the consistency judgment fails, a retry prompt is given. If the number of failures is too many, the dispensing task is determined to have failed. If the consistency judgment is successful, the identity information of the medication end is checked. Determine whether the identity verification of the medication end is successful. If the identity verification fails, the dispensing fails and an alarm is triggered. After the identity verification is successful, the medicine box to be dispensed unlocks the medicine storage space. The task status is updated and the dispensing time is recorded and uploaded to the unified authority service platform to complete the dispensing process.

[0105] The medicine box to be dispatched uses a high-frequency near-field communication module to quickly compare the information read from the near-field communication work badge with the information cached locally on the medicine box to be dispatched at the field level. If the comparison results are consistent, the consistency judgment result is that the comparison is successful.

[0106] In this embodiment of the present invention, the high-frequency module (13.56 MHz) uses a near-field communication chip (such as NXP PN5180) that complies with the ISO 14443 / ISO 15693 standard, and the low-frequency module (2.4 GHz) uses a radio frequency chip (such as TI CC2652R) that supports IEEE 802.15.4 (such as Zigbee).

[0107] The high-frequency near-field communication module reads the information fields stored in the work badge, including but not limited to the dispensing end ID, the near-field communication work badge ID and the unlocking authorization authentication tag. During the pre-identification stage, the medicine box to be dispensed has obtained and cached the interaction information of the corresponding dispensing end from the unified authority service platform, including the above fields.

[0108] The read NFC ID card information fields are compared with the local cache fields one by one to see if the field contents are completely consistent.

[0109] If the comparison results are inconsistent, the consistency judgment result is comparison failure. At the same time, the medicine box to be dispensed reminds the dispensing end to re-verify. When the number of re-verifications exceeds the maximum permitted reconnection number, the medicine box to be dispensed starts the low-frequency module to enter the secondary comparison process.

[0110] In an embodiment of the present invention, if the comparison results are inconsistent, the medicine box to be dispensed prompts the dispensing end to re-approach verification through a beep, indicator light, or screen prompt, and records the number of reconnection attempts. Each verification failure will accumulate a "reconnection attempt number" to determine whether the maximum number of reconnection attempts has been exceeded. If the maximum number of reconnection attempts has been exceeded, the low-frequency module is activated to enter the secondary comparison process, including:

[0111] Switch to the low-frequency identification module and read the low-frequency identity information, including the low-frequency work badge ID, the device name, MAC address, and binding ID in the BLE broadcast, and match it with the local cache.

[0112] If the low-frequency module fails to compare, the medicine box to be dispensed determines that the medicine dispensing task has failed.

[0113] Optionally, after confirming that the verification of the medication terminal identification information is completed, unlocking the medication storage space includes:

[0114] The medicine box to be dispensed undergoes identity verification on the medication end. After the identity verification on the medication end is successful, the medicine storage space is unlocked. After the unlocking is completed, the status of the medication dispensing task is updated to the unified authority service platform, and the completion time of the medication dispensing task is recorded.

[0115] In some embodiments, the identity verification of the medication end is performed by scanning the bracelet code of the medication end.

[0116] Optionally, before the unified authority service platform issues a medicine dispensing task to the medicine box to be dispensed, the method further includes:

[0117] The unified authority service platform collects statistics on adjustment influencing factors of signal recognition parameters of the medicine box to be dispatched, wherein the adjustment influencing factors include historical module voltage input peak values, historical module operating current peak values, historical module voltage input valley values, historical module operating current valley values, and historical average antenna resonant frequencies of the medicine box to be dispatched, and compares the adjustment influencing factors with a preset adjustment influencing factor verification parameter interval to obtain deviation values ​​of each adjustment influencing factor of the signal recognition parameters of the medicine box to be dispatched;

[0118] After correcting the deviation values ​​of the adjustment influencing elements, a signal recognition parameter adjustment factor of the medicine box to be dispatched is obtained; based on the signal recognition parameter adjustment factor of the medicine box to be dispatched, a mapping match is performed with a pre-stored mapping set of signal recognition parameter adjustment factors and signal recognition parameter adjustment value sets in a database to obtain a signal recognition parameter adjustment value set for the medicine box to be dispatched, and the signal recognition parameters of the medicine box to be dispatched are adjusted accordingly;

[0119] The signal identification parameter adjustment value set of the medicine box to be dispatched includes a channel scanning interval adjustment value, a channel holding time adjustment value, a signal identification power threshold adjustment value, and a signal receiving sensitivity adjustment value;

[0120] Based on the signal recognition parameter adjustment value set of the medicine box to be dispatched, the signal recognition parameters of the medicine box to be dispatched are adjusted accordingly. After the adjustment, the signal recognition trial operation test period is entered, and the first round of signal recognition data, including the signal strength fluctuation amplitude, the channel scanning coverage rate, and the signal recognition power consumption, is collected. The data is compared with the preset signal strength fluctuation amplitude threshold, the preset channel scanning coverage rate threshold, and the preset signal recognition power consumption threshold to obtain the deviation value of the first round of signal recognition data. After correction, the signal recognition trial operation test result is obtained. If the signal recognition trial operation test result is qualified, the signal recognition state of the medicine box to be dispatched is officially started;

[0121] If the signal recognition trial run test result is unqualified, an early warning report will be generated and the drug delivery task will be suspended.

[0122] It should be noted that the signal recognition state means that the medicine box to be dispensed is in a working mode of continuously monitoring external signals or interaction requests, which is used to sense whether there are authorized medicine dispensing and medication ends approaching, and to perform signal recognition with the medicine dispensing and medication ends. In the signal recognition state, the medicine box to be dispensed will enable the signal receiving module and continuously scan the surrounding broadcast signals.

[0123] The unified authority service platform retrieves the cache information of the embedded system inside the medicine box to be dispatched, and counts the adjustment influencing elements of the signal recognition parameters of the medicine box to be dispatched. The adjustment influencing elements include the historical module voltage input peak value, historical module operating current peak value, historical module voltage input valley value, historical module operating current valley value and historical average antenna resonant frequency of the medicine box to be dispatched. The adjustment influencing elements are compared with the preset adjustment influencing element verification parameter range and antenna resonant frequency verification value to obtain the deviation values ​​of each adjustment influencing element of the signal recognition parameters of the medicine box to be dispatched.

[0124] The adjustment-affecting element verification parameter interval includes the module voltage verification parameter interval and the module current verification parameter interval.

[0125] After the deviation values ​​of each adjustment influencing element are corrected and coupled, the signal recognition parameter adjustment factor of the medicine box to be dispatched is obtained, which specifically includes:

[0126] ;

[0127] in, is the signal recognition parameter adjustment factor for the medicine box to be dispatched, The peak value of the voltage input of the history module of the medicine box to be dispatched. is the peak value of the historical module working current of the medicine box to be dispatched, Input valley value of voltage of history module for medicine box to be dispatched, is the historical module working current valley value of the medicine box to be dispatched, is the historical average antenna resonant frequency of the medicine box to be dispensed, It is the maximum value of the module voltage verification parameter range. It is the maximum value of the module working current verification parameter range. is the minimum value of the module voltage verification parameter interval, It is the minimum value of the module working current verification parameter range. is the antenna resonant frequency calibration value, Enter the peak weighting factor for the module voltage, is the peak weighting factor of the module operating current, Enter the valley weighting factor for the module voltage, is the weighting factor of the module working current valley, It should be noted that the module voltage input peak weighting factor, module operating current peak weighting factor, module voltage input valley weighting factor, module operating current valley weighting factor and average antenna resonant frequency weighting factor all have a value range between 0 and 1 and meet The module voltage input peak weighting factor is an influence factor of the module voltage input peak pre-stored in the database, indicating the degree of influence of the module voltage input peak on the signal identification parameter adjustment factor of the medicine box to be dispensed; the module working current peak weighting factor is an influence factor of the module working current peak pre-stored in the database, indicating the degree of influence of the module working current peak on the signal identification parameter adjustment factor of the medicine box to be dispensed; the module voltage input valley weighting factor is an influence factor of the module voltage input valley pre-stored in the database, indicating the degree of influence of the module voltage input valley on the signal identification parameter adjustment factor of the medicine box to be dispensed; the module working current valley weighting factor is an influence factor of the module working current valley pre-stored in the database, indicating the influence of the module working current valley on The degree of influence of the signal identification parameter adjustment factor of the medicine box to be dispatched; the average antenna resonant frequency weighting factor is the influencing factor of the average antenna resonant frequency pre-stored in the database, which indicates the degree of influence of the average antenna resonant frequency on the signal identification parameter adjustment factor of the medicine box to be dispatched. When used, it is directly extracted from the database. For example, the module voltage input peak value, module operating current peak value, module voltage input valley value, module operating current valley value and average antenna resonant frequency of the medicine box to be dispatched are input into a preset mapping set in the database to obtain the module voltage input peak value weighting factor, module operating current peak value weighting factor, module voltage input valley value weighting factor, module operating current valley value weighting factor and average antenna resonant frequency weighting factor, and the corresponding mapping relationship is one-to-one.

[0128] It should also be noted that there is a certain correlation between the historical module voltage input peak value, historical module operating current peak value, historical module voltage input valley value, historical module operating current valley value, and historical average antenna resonant frequency parameters of the medicine box to be dispensed. The voltage input peak value and the voltage input valley value together reflect the power supply stability of the medicine box's power supply module. Higher voltage peak values ​​indicate stronger instantaneous power support capabilities, making it suitable for high-sensitivity or high-power identification strategies. Lower voltage valley values ​​indicate power supply fluctuations or power outage risks. In these cases, the system should reduce identification strength to prevent false operation or frequent reconnection. The operating current peak value and operating current valley value represent the operating load range of the medicine box's communication and identification module. Higher peak current typically occurs during active identification or high-power response, reflecting the system's power increase to ensure successful identification in specific scenarios. The valley current reflects the system's minimum energy consumption level during quiet listening or low-power polling, indicating whether the medicine box has a good energy-saving strategy. The average antenna resonant frequency reflects the resonant frequency center of the medicine box's antenna during long-term operation, directly affecting the degree of communication frequency band matching with the medicine dispensing device. If the frequency deviates from the operating frequency of the drug dispensing end for a long time, it may easily lead to recognition failure or false triggering. The system needs to dynamically adjust parameters such as matching capacitance to realign the frequency band.

[0129] Based on the signal recognition parameter adjustment factor of the medicine box to be dispatched, a mapping match is performed with the mapping set of signal recognition parameter adjustment factors and signal recognition parameter adjustment value sets pre-stored in the database to obtain the signal recognition parameter adjustment value set of the medicine box to be dispatched, and the signal recognition parameters of the medicine box to be dispatched are adjusted accordingly.

[0130] The signal identification parameters of the medicine box to be dispatched include channel scanning interval, channel holding time, signal identification power threshold and signal receiving sensitivity.

[0131] It should be noted that the Channel Scan Interval refers to the time interval between each signal scan initiated by the medicine box in the signal recognition state. The unit is milliseconds (ms).

[0132] The Channel Hold Time refers to the duration of signal recognition on a channel after each scan. The unit is milliseconds (ms).

[0133] The Listening Power Threshold (LPT) refers to the minimum received power value for determining whether a signal is valid, expressed in dBm (decibel milliwatts).

[0134] Signal Sensitivity is a measure of the weakest effective signal strength that a wireless communication device can receive.

[0135] The signal identification parameter adjustment value set of the medicine box to be dispatched includes a channel scanning interval adjustment value, a channel holding time adjustment value, a signal identification power threshold adjustment value, and a signal receiving sensitivity adjustment value.

[0136] Adjusting the signal recognition parameters of the medicine box to be dispensed accordingly based on the signal recognition parameter adjustment value set of the medicine box to be dispensed specifically includes: , , , ,in, is the adjusted channel scanning interval, is the adjusted channel holding time, is the adjusted signal identification power threshold, is the signal receiving sensitivity after adjustment, is the channel scanning interval, is the channel holding time, is the signal identification power threshold, is the signal receiving sensitivity, is the channel scanning interval adjustment value, The channel holding time adjustment value, Adjust the power threshold value for signal identification, The new signal recognition parameters calculated above are written into the corresponding registers in the medicine box embedded control system to adjust the parameters of the wireless communication module.

[0137] After the adjustment, the signal recognition trial run test period begins. The first round of signal recognition data, including signal strength fluctuation amplitude, channel scanning coverage, and signal recognition power consumption, is collected through the embedded communication module and energy consumption monitoring unit of the medicine box to be dispatched. The data is compared with the signal strength fluctuation amplitude threshold, channel scanning coverage threshold, and signal recognition power consumption threshold to obtain the deviation value of the first round of signal recognition data. After correcting the coupling, the signal recognition trial run test results are obtained, which specifically include:

[0138] ;

[0139] in, Test eigenvalues ​​for signal recognition trials, is the signal strength fluctuation amplitude, is the channel scanning coverage, Identify power consumption for signals, is the signal strength fluctuation amplitude threshold, is the channel scanning coverage threshold, Identify power consumption thresholds for signals, is the signal strength fluctuation amplitude weighting coefficient, is the channel scanning coverage weighting coefficient, Identify a power consumption weighting factor for the signal.

[0140] It should be noted that the signal strength fluctuation amplitude weighting coefficient, channel scanning coverage weighting coefficient and signal identification power consumption weighting coefficient all have a value range between 0 and 1 and meet the following requirements: The signal strength fluctuation amplitude weighting coefficient is an influencing factor of the signal strength fluctuation amplitude pre-stored in the database, which indicates the degree of influence of the signal strength fluctuation amplitude on the characteristic value of the signal identification trial run test; the channel scanning coverage weighting coefficient is an influencing factor of the channel scanning coverage pre-stored in the database, which indicates the degree of influence of the channel scanning coverage on the characteristic value of the signal identification trial run test; the signal identification power consumption weighting coefficient is an influencing factor of the signal identification power consumption pre-stored in the database, which indicates the degree of influence of the signal identification power consumption on the characteristic value of the signal identification trial run test. When used, it is directly extracted from the database. For example, after inputting the signal strength fluctuation amplitude, channel scanning coverage and signal identification power consumption into the preset mapping set, the signal strength fluctuation amplitude weighting coefficient, channel scanning coverage weighting coefficient and signal identification power consumption weighting coefficient are obtained, and the corresponding mapping relationship is one-to-one.

[0141] It's also important to note that there's a correlation between signal strength fluctuations, channel scan coverage, and signal identification power consumption. High signal strength fluctuations indicate frequent changes in received signal strength within a short period of time, creating an unstable signal and easily leading to misidentification or failure. To compensate for the uncertainty caused by signal strength fluctuations, the module often automatically increases monitoring sensitivity, extends the monitoring duration, or increases the sampling frequency. These measures significantly increase power consumption during the identification process. Conversely, low signal strength fluctuations indicate a stable signal, allowing identification to be completed in a lower power mode, thereby optimizing energy efficiency. A high channel scan coverage indicates that the module scans a greater number of channels during the monitoring period, enabling it to identify a wider range of signal types and sources, adapting to complex scenarios. However, a higher coverage rate increases the number of frequency hops and the time spent scanning, directly leading to longer module operating hours and increased power consumption. To reduce power consumption, the channel scan range can be narrowed, but this may reduce the identification success rate, especially in high-interference environments. High signal strength fluctuations may lead to the module mistakenly assuming that the channel is experiencing interference, and the module may attempt to expand the channel scan coverage to find a frequency band with a clearer signal. However, this incurs additional energy consumption, and without a proper dynamic adjustment mechanism, it can lead to frequent channel hopping and increased recognition instability. If channel scanning coverage is too low, it may fail to capture target signals that briefly switch frequency bands due to signal strength fluctuations, resulting in missed recognition.

[0142] The signal recognition trial run test characteristic value is compared with the signal recognition trial run test characteristic threshold. If the signal recognition trial run test characteristic value is less than the signal recognition trial run test characteristic threshold, the signal recognition trial run test result is judged to be qualified; if the signal recognition trial run test characteristic value is greater than or equal to the signal recognition trial run test characteristic threshold, the signal recognition trial run test result is judged to be unqualified.

[0143] If the signal recognition trial run test result is qualified, the signal recognition state will be officially started.

[0144] If the signal recognition trial run test result is unqualified, an early warning report will be sent to the unified authority service platform.

[0145] For example, the unified authorization service platform can also obtain real-time performance data of the medicine box to be dispensed, including operating frequency, signal recognition sensitivity, and read / write speed, from various registers, including a frequency register, a sensitivity configuration register, and a communication module status register.

[0146] The unified authority service platform extracts real-time performance verification data from the database, including working verification frequency, signal recognition verification sensitivity, and verification read and write rates.

[0147] The real-time performance data of the medicine box to be dispatched is compared with the real-time performance verification data to obtain the deviation values ​​of the real-time performance data of the medicine box to be dispatched and the real-time performance verification data, including the operating frequency deviation value, the signal recognition sensitivity deviation value and the read / write rate deviation value. Correction coupling processing is performed to obtain the real-time performance characteristic value of the medicine box to be dispatched, specifically including:

[0148] ;

[0149] in, is the real-time performance characteristic value of the medicine box to be dispatched, is the working frequency of the medicine box to be dispatched, is the signal recognition sensitivity of the medicine box to be dispatched, is the reading and writing rate of the medicine box to be dispatched, is the working calibration frequency, To check the sensitivity of signal recognition, To verify the read and write speed, is the operating frequency weight coefficient, is the signal recognition sensitivity coefficient, is the read and write rate weighting coefficient.

[0150] It should be noted that the operating frequency ratio coefficient, signal recognition sensitivity ratio coefficient and read / write speed ratio coefficient all have a value range between 0 and 1 and meet the following requirements: The working frequency proportion coefficient is an influencing factor of the working frequency pre-stored in the database, which indicates the degree of influence of the working frequency on the real-time performance characteristic value of the medicine box to be dispensed; the signal recognition sensitivity proportion coefficient is an influencing factor of the signal recognition sensitivity pre-stored in the database, which indicates the degree of influence of the signal recognition sensitivity on the real-time performance characteristic value of the medicine box to be dispensed; the read-write rate proportion coefficient is an influencing factor of the read-write rate pre-stored in the database, which indicates the degree of influence of the read-write rate on the real-time performance characteristic value of the medicine box to be dispensed. When used, it is directly extracted from the database. For example, the working frequency, signal recognition sensitivity and read-write rate of the medicine box to be dispensed are input into the preset mapping set to obtain the working frequency proportion coefficient, signal recognition sensitivity proportion coefficient and read-write rate proportion coefficient, and the corresponding mapping relationship is one-to-one.

[0151] It's also important to note that there's a correlation between the operating frequency, signal recognition sensitivity, and read / write speed. The operating frequency refers to the wireless communication frequency band used (e.g., 13.56 MHz for near-field communication and 2.4 GHz for Bluetooth). It determines signal propagation characteristics and interference rejection. Signal recognition sensitivity, measured in dBm, refers to the minimum signal strength threshold required for stable communication at a given operating frequency. This determines the device's ability to detect weak signals. Read / write speed refers to the data exchange rate during communication, measured in kbps. High-frequency bands experience rapid signal attenuation and a short effective range, typically requiring stronger signal strength. Low-frequency bands offer greater penetration and interference rejection, so weaker signal strength is acceptable. Low signal strength can lead to packet loss or bit errors at high read / write speeds. Therefore, to maintain high read / write speeds, the signal strength must be above a certain threshold.

[0152] Based on the real-time performance characteristic value of the medicine box to be dispensed, a mapping match is performed with a mapping set between real-time performance characteristic values ​​and signal recognition ranges pre-stored in a database to obtain the signal recognition range of the medicine box to be dispensed.

[0153] Based on the real-time performance characteristic value of the medicine box to be dispatched, a mapping match is performed with a mapping set between the real-time performance characteristic value and the signal recognition required time pre-stored in the database to obtain the signal recognition required time of the medicine box to be dispatched.

[0154] In some embodiments, the drug dispensing end and the drug administration end in the embodiments of the present invention can be humans or intelligent machine devices.

[0155] like Figure 2 As shown, an embodiment of the present invention further provides a system for intelligent drug distribution, wherein the system for intelligent drug distribution is used to implement the method for intelligent drug distribution provided in an embodiment of the present invention, and the system includes:

[0156] The drug preparation terminal 201 is configured to parse the electronic medical order to obtain information about the drug to be dispensed, the corresponding medicine box to be dispensed, and the corresponding medication terminal of the drug to be dispensed, send the information about the drug to be dispensed, the corresponding medicine box to be dispensed, and the corresponding medication terminal of the drug to be dispensed in the electronic medical order to the unified authority service platform, and prepare the drug based on the information about the drug to be dispensed and the corresponding medicine box to be dispensed, and provide the drug to the dispensing terminal;

[0157] The unified authority service platform 202 is configured to issue a dispensing task to a medicine box to be dispensed, generate dispensing terminal identification information and medication receiving terminal identification information, send the dispensing terminal identification information and medication receiving terminal identification information to the medicine box to be dispensed, and transmit a successful drug dispensing status to the unified authority service platform.

[0158] The medicine box 203 for dispensing medicine is used to perform information identification and verification within the signal identification range after receiving the medicine dispensing task, receive the medicine dispensed by the medicine dispensing end after confirming that the verification of the identification information of the medicine using end is completed, unlock the medicine storage space after confirming that the verification of the identification information of the medicine using end is completed, and report the failure of the medicine dispensing task to the unified authority service platform and issue an alarm at the same time when the verification of the identification information of the medicine dispensing end or the verification of the identification information of the medicine using end fails.

[0159] An embodiment of the present invention further provides a device for intelligent drug distribution, the device for intelligent drug distribution comprising:

[0160] processor;

[0161] A memory having computer-readable instructions stored thereon, wherein the computer-readable instructions, when executed by the processor, implement the method provided by the embodiment of the present invention.

[0162] An embodiment of the present invention further provides a computer-readable storage medium, in which program code is stored. The program code can be called by a processor to execute the method provided by the embodiment of the present invention.

[0163] The beneficial effects brought about by the technical solution provided by the embodiment of the present invention include at least:

[0164] The embodiment of the present invention adopts a two-stage identity authentication to ensure information consistency and build a complete and secure closed-loop drug dispensing process. In the drug dispensing process, the solution identifies the dispensing end through the medicine box to be dispensed, ensuring the interaction efficiency while strictly controlling the probability of misidentification. When the identification is successful, it is necessary to further verify the identity of the medication end. Only after double confirmation can the drug unlocking and dispensing operations be executed, and the task status is synchronized to the unified authority service platform, forming a complete closed loop from task issuance, identification interaction, drug unlocking to task return. This full-process recording and traceability mechanism greatly improves the transparency of system operations and the controllability of responsibilities, and effectively prevents the risks of misdelivery, missed delivery and abuse.

[0165] The present invention also realizes individualized risk identification by integrating knowledge graphs, improves the accuracy and safety of drug dispensing, and performs structured comparison and conflict retrieval of individual drug conflicts based on electronic medical orders and historical medication records at the medication end with the help of medication knowledge graphs. It can effectively identify potential risks of adverse drug combinations and provide early warning prompts.

[0166] This invention enhances device recognition stability and communication robustness by establishing a multi-level permission control and dynamic parameter tuning mechanism. This solution coordinates the preparation, dispensing, and medicine boxes through a unified permission service platform, creating a unified permission authentication and information exchange hub. On this basis, the medicine box dynamically adjusts its recognition strategy based on signal recognition parameters and real-time performance data, ensuring stable sensing and recognition of dispensing signals in diverse signal environments and hardware fluctuations. This enhances device communication accuracy, interference resistance, and energy efficiency, improving the operational reliability of the entire system.

[0167] Figure 3 FIG. 1 is a schematic diagram of a device for intelligent drug distribution according to an embodiment of the present invention. Figure 3 As shown, optionally, the device 310 for intelligent drug distribution may include a first processor 2001.

[0168] Optionally, the device 310 for intelligent drug distribution may further include a memory 2002 and a transceiver 2003 .

[0169] The first processor 2001, the memory 2002 and the transceiver 2003 may be connected via a communication bus.

[0170] The following combination Figure 3 The components of the device 310 for intelligent drug distribution are described in detail:

[0171] The first processor 2001 is the control center of the device 310 for intelligent drug dispensing. It can be a single processor or a collective term for multiple processing elements. For example, the first processor 2001 can be one or more central processing units (CPUs), an application-specific integrated circuit (ASIC), or one or more integrated circuits configured to implement embodiments of the present invention, such as one or more digital signal processors (DSPs) or one or more field programmable gate arrays (FPGAs).

[0172] Optionally, the first processor 2001 can perform various functions of the device 310 for intelligent drug distribution by running or executing a software program stored in the memory 2002 and calling data stored in the memory 2002.

[0173] In a specific implementation, as an embodiment, the first processor 2001 may include one or more CPUs, such as Figure 3 CPU0 and CPU1 are shown in FIG.

[0174] In a specific implementation, as an embodiment, the device 310 for intelligent drug distribution may also include multiple processors, such as Figure 3 1 and 2. The first processor 2001 and the second processor 2004 are shown in FIG. Each of these processors can be a single-core processor (single-CPU) or a multi-core processor (multi-CPU). A processor herein can refer to one or more devices, circuits, and / or processing cores for processing data (e.g., computer program instructions).

[0175] The memory 2002 is used to store the software program for executing the solution of the present invention, and is controlled by the first processor 2001 for execution. The specific implementation method can refer to the above method embodiment and will not be repeated here.

[0176] Alternatively, the memory 2002 may be a read-only memory (ROM) or other type of static storage device capable of storing static information and instructions, a random access memory (RAM) or other type of dynamic storage device capable of storing information and instructions, an electrically erasable programmable read-only memory (EEPROM), a compact disc read-only memory (CD-ROM) or other optical disc storage, an optical disc storage (including a compact disc, laser disc, optical disc, digital versatile disc, Blu-ray disc, etc.), a magnetic disk storage medium or other magnetic storage device, or any other medium capable of carrying or storing desired program code in the form of instructions or data structures and capable of being accessed by a computer, but not limited thereto. The memory 2002 may be integrated with the first processor 2001 or may exist independently and be accessed through the interface circuit ( Figure 3 (not shown) is coupled to the first processor 2001, which is not specifically limited in this embodiment of the present invention.

[0177] The transceiver 2003 is used to communicate with a network device or a terminal device.

[0178] Optionally, the transceiver 2003 may include a receiver and a transmitter ( Figure 3 The receiver is used to implement a receiving function, and the transmitter is used to implement a sending function.

[0179] Optionally, the transceiver 2003 may be integrated with the first processor 2001 or may exist independently and communicate with the first processor 2001 through the interface circuit ( Figure 3 (not shown) is coupled to the first processor 2001, which is not specifically limited in this embodiment of the present invention.

[0180] It should be noted that Figure 3 The structure of the device 310 for intelligent drug distribution shown in the figure does not constitute a limitation on the router. The actual knowledge structure recognition device may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.

[0181] In addition, the technical effects of the device 310 for intelligent drug distribution can refer to the technical effects of the multimodal emotion recognition method described in the above method embodiment, and will not be repeated here.

[0182] It should be understood that the first processor 2001 in the embodiment of the present invention may be a central processing unit (CPU), or may be other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field programmable gate arrays (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor, or the processor may be any conventional processor, etc.

[0183] It should also be understood that the memory in the embodiments of the present invention may be volatile memory or non-volatile memory, or may include both volatile and non-volatile memory. The non-volatile memory may be read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), or flash memory. The volatile memory may be random access memory (RAM), which is used as an external cache. By way of example and not limitation, many forms of random access memory (RAM) are available, such as static RAM (SRAM), dynamic random access memory (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDR SDRAM), enhanced SDRAM (ESDRAM), synchronous link DRAM (SLDRAM), and direct rambus RAM (DR RAM).

[0184] The above embodiments can be implemented in whole or in part via software, hardware (e.g., circuits), firmware, or any other combination thereof. When implemented using software, the above embodiments can be implemented in whole or in part in the form of a computer program product. The computer program product comprises one or more computer instructions or computer programs. When loaded or executed on a computer, the processes or functions described in accordance with the embodiments of the present invention are fully or partially performed. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, the computer instructions can be transmitted from one website, computer, motor drive, or data center to another website, computer, motor drive, or data center via infrared, microwave, or other means. The computer-readable storage medium can be any available medium accessible by a computer, or a data storage device such as a motor drive or data center that includes a collection of one or more available media. The available medium can be magnetic media (e.g., floppy disks, hard disks, or magnetic tapes), optical media (e.g., DVDs), or semiconductor media. The semiconductor media can be a solid-state drive.

[0185] It should be understood that the term "and / or" as used herein simply describes a relationship between associated objects, indicating that three possible relationships exist. For example, "A and / or B" can represent: A alone, A and B together, or B alone. A and B can be singular or plural. Furthermore, the character " / " as used herein generally indicates an "or" relationship between the associated objects, but it may also indicate an "and / or" relationship. For specific understanding, please refer to the context.

[0186] In this disclosure, "at least one" means one or more, and "plurality" means two or more. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, "at least one of a, b, or c" can mean: a, b, c, ab, ac, bc, or abc, where a, b, and c can be single or plural.

[0187] It should be understood that in various embodiments of the present invention, the size of the serial numbers of the above-mentioned processes does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present invention.

[0188] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of the present invention.

[0189] Those skilled in the art will clearly understand that, for the convenience and brevity of description, the specific working processes of the above-described equipment, devices and units can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0190] In the several embodiments provided by the present invention, it should be understood that the disclosed devices, apparatuses and methods can be implemented in other ways. For example, the device embodiments described above are merely illustrative. For example, the division of the units is merely a logical function division. In actual implementation, there may be other division methods, such as multiple units or components can be combined or integrated into another device, 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 interface, indirect coupling or communication connection of the device or unit, which can be electrical, mechanical or other forms.

[0191] 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 these units may be selected to achieve the purpose of this embodiment according to actual needs.

[0192] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.

[0193] If the functions are implemented as software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the portion that contributes to the prior art, or the portion of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions for enabling a computer device (which can be a personal computer, a motor driver, or a network device, etc.) to perform all or part of the steps of the methods described in various embodiments of the present invention. The aforementioned storage medium includes various media that can store program code, such as a USB flash drive, a mobile hard drive, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk.

[0194] The above description is merely a specific embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Any modifications or substitutions that can be easily conceived by a person skilled in the art within the technical scope disclosed in the present invention should be included in the scope of protection of the present invention. Therefore, the scope of protection of the present invention should be based on the scope of protection of the claims.

Claims

1. A method for intelligent drug distribution, characterized in that: include: The drug preparation terminal parses the electronic medical order to obtain information about the drug to be dispensed, the corresponding medicine box to be dispensed, and the corresponding medication terminal to be dispensed, sends the information about the drug to be dispensed, the corresponding medicine box to be dispensed, and the corresponding medication terminal to be dispensed in the electronic medical order to the unified authority service platform, and prepares the drug based on the information about the drug to be dispensed and the corresponding medicine box to be dispensed to provide it to the medication dispensing terminal; The unified authority service platform issues a dispensing task to the medicine box to be dispensed, generates dispensing end identification information and medication end identification information, and sends the dispensing end identification information and medication end identification information to the medicine box to be dispensed; After receiving the medicine dispensing task, the medicine box to be dispensed performs information identification and verification within the signal recognition range. After confirming that the verification of the identification information of the dispensing end is completed, it receives the medicine dispensed by the dispensing end. After confirming that the verification of the identification information of the medication end is completed, it unlocks the medicine storage space and returns the successful status of the medicine dispensing to the unified authority service platform. If the verification of the identification information of the medicine box to be dispensed fails at the dispensing end or the identification information of the medication end fails, the failure of the dispensing task will be reported to the unified authority service platform and an alarm will be issued.

2. The method according to claim 1, characterized in that Before the medicine preparation end prepares medicine according to the information of the medicine to be distributed and the medicine box to be distributed corresponding to the medicine to be distributed, the method further includes: Performing individual drug conflict searches in the medication knowledge graph based on the historical medication records of the medication terminal, and providing an alarm feedback and stopping medication preparation if the search result indicates that a drug conflict exists; When the search result shows that there is no drug conflict, the drugs are prepared according to the information of the drugs to be distributed and the medicine boxes corresponding to the drugs to be distributed.

3. The method according to claim 2, characterized in that The information of the drugs to be distributed includes: Drug name, dosage, frequency of use, method of use, and time window for use; The method of searching for individual drug conflicts in the medication knowledge graph based on the historical medication records of the medication terminal and providing an alarm feedback when the retrieval result indicates that a drug conflict exists includes: Obtain historical medication records from the medication end and extract historical medication information from the historical medication records, wherein the historical medication information includes the name of the historical medication, the dosage of the historical medication, the frequency of use of the historical medication, the method of use of the historical medication, and the medication time window of the historical medication; An individual drug conflict search is performed in the medication knowledge graph in combination with the historical drug information and the information of the drug to be distributed to obtain a drug conflict result. If the drug conflict result indicates that a drug conflict exists, an alarm feedback is performed.

4. The method according to claim 3, characterized in that Also includes: The unified authority service platform generates a medicine dispensing task sequence based on the medication time window of the medicine to be distributed. When entering the medicine dispensing task execution time window, it controls the medicine box corresponding to the medicine to be distributed to enter the medicine dispensing mode, and the medicine dispensing mode is used to turn on the signal recognition state of the medicine box to be distributed.

5. The method according to claim 1, wherein The identification information of the dispensing terminal includes the unique identity identifier of the dispensing terminal work card; After receiving the medicine dispensing task, the medicine box to be dispensed performs information identification and verification within the signal recognition range, including: The medicine box to be dispensed uses real-time signal recognition to identify the unique identity identifier of the dispensing end work card that appears within the signal recognition range. After identifying the unique identity identifier of the dispensing end work card, the real-time distance between the dispensing end and the medicine box to be dispensed is obtained based on the position of the dispensing end work card, and the proximity time is recorded. When the real-time distance between the dispensing end work card is less than the set distance threshold or the proximity time exceeds the set signal recognition requirement time, the medicine box to be dispensed enters the pre-identification state and retrieves the dispensing end interaction information and unlockable status parameters from the unified authority service platform. The medicine box to be dispensed sends an identification request to the unified authority service platform to obtain the interaction information of the dispensing end that currently needs to perform the medicine dispensing task. The identification request includes the unique identity identifier of the dispensing end work card; After receiving the identification request, the unified authority service platform queries the matching dispensing end interaction information from the task scheduling system, encapsulates it into a unified format and sends it to the medicine box to be dispensed, and sends a formal identification signal to the dispensing end; The medicine box to be dispensed calls the interactive information of the dispensing end for comparison, and receives the medicine dispensed by the dispensing end if the comparison result is consistent; After receiving the formal identification signal, the dispensing end triggers the formal identification action; When the NFC badge of the dispensing end is close to the NFC module of the medicine box to be dispensed, the medicine box to be dispensed uses the high-frequency NFC module to quickly compare the information read by the NFC badge with the information locally cached by the medicine box to be dispensed at the field level. If the comparison results are consistent, the consistency judgment result is that the comparison is successful, and the medicine dispensed by the dispensing end is received; If the comparison results are inconsistent, the consistency judgment result is that the preliminary comparison failed. The medicine box to be dispensed reminds the dispensing end to re-verify. When the number of re-verifications exceeds the maximum permitted reconnection number, the medicine box to be dispensed starts the low-frequency module to enter the secondary comparison process. If the secondary comparison process fails, the formal identification is stopped.

6. The method according to claim 1, characterized in that After the verification of the identification information of the medication terminal is confirmed, the medication storage space is unlocked, including: The medicine box to be dispensed undergoes identity verification on the medication end. After the identity verification on the medication end is successful, the medicine storage space is unlocked. After the unlocking is completed, the status of the medication dispensing task is updated to the unified authority service platform, and the completion time of the medication dispensing task is recorded.

7. The method according to claim 1, characterized in that Before the unified authority service platform issues a medicine dispensing task to the medicine box to be dispensed, the method further includes: The unified authority service platform collects statistics on adjustment influencing factors of signal recognition parameters of the medicine box to be dispatched, wherein the adjustment influencing factors include historical module voltage input peak values, historical module operating current peak values, historical module voltage input valley values, historical module operating current valley values, and historical average antenna resonant frequencies of the medicine box to be dispatched, and compares the adjustment influencing factors with a preset adjustment influencing factor verification parameter interval to obtain deviation values ​​of each adjustment influencing factor of the signal recognition parameters of the medicine box to be dispatched; After correcting the deviation values ​​of the adjustment influencing elements, a signal recognition parameter adjustment factor of the medicine box to be dispatched is obtained; based on the signal recognition parameter adjustment factor of the medicine box to be dispatched, a mapping match is performed with a pre-stored mapping set of signal recognition parameter adjustment factors and signal recognition parameter adjustment value sets in a database to obtain a signal recognition parameter adjustment value set for the medicine box to be dispatched, and the signal recognition parameters of the medicine box to be dispatched are adjusted accordingly; The signal identification parameter adjustment value set of the medicine box to be dispatched includes a channel scanning interval adjustment value, a channel holding time adjustment value, a signal identification power threshold adjustment value, and a signal receiving sensitivity adjustment value; Based on the signal recognition parameter adjustment value set of the medicine box to be dispatched, the signal recognition parameters of the medicine box to be dispatched are adjusted accordingly. After the adjustment, the signal recognition trial operation test period is entered, and the first round of signal recognition data, including the signal strength fluctuation amplitude, the channel scanning coverage rate, and the signal recognition power consumption, is collected. The data is compared with the preset signal strength fluctuation amplitude threshold, the preset channel scanning coverage rate threshold, and the preset signal recognition power consumption threshold to obtain the deviation value of the first round of signal recognition data. After correction, the signal recognition trial operation test result is obtained. If the signal recognition trial operation test result is qualified, the signal recognition state of the medicine box to be dispatched is officially started; If the signal recognition trial run test result is unqualified, an early warning report will be generated and the drug delivery task will be suspended.

8. A system for intelligent drug distribution, wherein the system is used to implement the method for intelligent drug distribution according to any one of claims 1 to 7, characterized in that: The system comprises: a medication preparation terminal, configured to parse an electronic medical order to obtain information about the medication to be dispensed, a corresponding medication box to be dispensed, and a corresponding medication user terminal for the medication to be dispensed, send the information about the medication to be dispensed, the corresponding medication box to be dispensed, and the corresponding medication user terminal in the electronic medical order to a unified authority service platform, and prepare medication based on the information about the medication to be dispensed and the corresponding medication box to be dispensed, and provide the medication to the medication dispensing terminal; The unified authority service platform is used to issue a dispensing task to a medicine box to be dispensed, generate identification information of a dispensing end and identification information of a medication user, send the identification information of the dispensing end and the medication user to the medicine box to be dispensed, and return a successful drug dispensing status to the unified authority service platform; The medicine box to be dispensed is used to perform information identification and verification within the signal recognition range after receiving the medicine dispensing task, receive the medicine dispensed by the medicine dispensing end after confirming that the verification of the identification information of the medicine consumption end is completed, unlock the medicine storage space after confirming that the verification of the identification information of the medicine consumption end is completed, and report the failure of the medicine dispensing task to the unified authority service platform and issue an alarm at the same time when the verification of the identification information of the medicine dispensing end or the verification of the identification information of the medicine consumption end fails.

9. A device for intelligent drug distribution, characterized in that: The device for intelligent drug distribution includes: processor; A memory having computer-readable instructions stored thereon, wherein when the computer-readable instructions are executed by the processor, the method according to any one of claims 1 to 7 is implemented.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores program code, which can be called by a processor to execute the method according to any one of claims 1 to 7.

Citation Information

Patent Citations

  • Intelligent wear equipment and method for unlocking terminal through same

    CN105512537A

  • Dual-band operation method and dual-band radio frequency reader-writer

    CN105809079A

  • Medication decision-making support method based on drug knowledge map reasoning

    CN109378045A

  • Medicine dispensing system based on intelligent trolley and intelligent medicine dispensing method used for medicine dispensing system

    CN109700189A

  • Wireless unlocking method of intelligent door lock

    CN109993868A