CN109509527B - Medicine dispensing method, block chain link point equipment and system - Google Patents
Medicine dispensing method, block chain link point equipment and system Download PDFInfo
- Publication number
- CN109509527B CN109509527B CN201811265583.5A CN201811265583A CN109509527B CN 109509527 B CN109509527 B CN 109509527B CN 201811265583 A CN201811265583 A CN 201811265583A CN 109509527 B CN109509527 B CN 109509527B
- Authority
- CN
- China
- Prior art keywords
- medicine
- target
- prescription
- link point
- block chain
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 239000003814 drug Substances 0.000 title claims abstract description 320
- 229940079593 drug Drugs 0.000 title claims abstract description 111
- 238000000034 method Methods 0.000 title claims abstract description 48
- 230000006870 function Effects 0.000 claims description 13
- 230000008569 process Effects 0.000 claims description 10
- 238000012795 verification Methods 0.000 claims description 9
- 238000004590 computer program Methods 0.000 claims description 7
- 238000012015 optical character recognition Methods 0.000 claims description 4
- 238000005516 engineering process Methods 0.000 claims description 2
- 230000003287 optical effect Effects 0.000 claims description 2
- 238000009513 drug distribution Methods 0.000 abstract 1
- 238000004891 communication Methods 0.000 description 8
- 238000010586 diagram Methods 0.000 description 7
- 238000012545 processing Methods 0.000 description 4
- 230000004044 response Effects 0.000 description 4
- 238000004422 calculation algorithm Methods 0.000 description 3
- 230000008878 coupling Effects 0.000 description 3
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 238000001514 detection method Methods 0.000 description 3
- 238000012377 drug delivery Methods 0.000 description 3
- 206010020772 Hypertension Diseases 0.000 description 2
- 238000013461 design Methods 0.000 description 2
- 201000010099 disease Diseases 0.000 description 2
- 208000037265 diseases, disorders, signs and symptoms Diseases 0.000 description 2
- 230000001815 facial effect Effects 0.000 description 2
- 230000000474 nursing effect Effects 0.000 description 2
- 208000024891 symptom Diseases 0.000 description 2
- 239000005541 ACE inhibitor Substances 0.000 description 1
- 102000008873 Angiotensin II receptor Human genes 0.000 description 1
- 108050000824 Angiotensin II receptor Proteins 0.000 description 1
- 229940127291 Calcium channel antagonist Drugs 0.000 description 1
- 206010019233 Headaches Diseases 0.000 description 1
- 206010033557 Palpitations Diseases 0.000 description 1
- 229940044094 angiotensin-converting-enzyme inhibitor Drugs 0.000 description 1
- 239000002220 antihypertensive agent Substances 0.000 description 1
- 229940127088 antihypertensive drug Drugs 0.000 description 1
- 230000006399 behavior Effects 0.000 description 1
- 239000000480 calcium channel blocker Substances 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 230000001413 cellular effect Effects 0.000 description 1
- 239000003795 chemical substances by application Substances 0.000 description 1
- 238000003745 diagnosis Methods 0.000 description 1
- 239000002934 diuretic Substances 0.000 description 1
- 229940030606 diuretics Drugs 0.000 description 1
- 208000002173 dizziness Diseases 0.000 description 1
- 238000002651 drug therapy Methods 0.000 description 1
- 230000002526 effect on cardiovascular system Effects 0.000 description 1
- 206010016256 fatigue Diseases 0.000 description 1
- 231100000869 headache Toxicity 0.000 description 1
- 230000036541 health Effects 0.000 description 1
- 230000001631 hypertensive effect Effects 0.000 description 1
- 208000034783 hypoesthesia Diseases 0.000 description 1
- 230000000977 initiatory effect Effects 0.000 description 1
- 210000004936 left thumb Anatomy 0.000 description 1
- 238000007726 management method Methods 0.000 description 1
- 238000005065 mining Methods 0.000 description 1
- 239000000203 mixture Substances 0.000 description 1
- 206010029446 nocturia Diseases 0.000 description 1
- 239000000825 pharmaceutical preparation Substances 0.000 description 1
- 229940127557 pharmaceutical product Drugs 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 230000002195 synergetic effect Effects 0.000 description 1
- 230000001225 therapeutic effect Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G16—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR SPECIFIC APPLICATION FIELDS
- G16H—HEALTHCARE INFORMATICS, i.e. INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR THE HANDLING OR PROCESSING OF MEDICAL OR HEALTHCARE DATA
- G16H20/00—ICT specially adapted for therapies or health-improving plans, e.g. for handling prescriptions, for steering therapy or for monitoring patient compliance
- G16H20/10—ICT specially adapted for therapies or health-improving plans, e.g. for handling prescriptions, for steering therapy or for monitoring patient compliance relating to drugs or medications, e.g. for ensuring correct administration to patients
Landscapes
- Health & Medical Sciences (AREA)
- Engineering & Computer Science (AREA)
- Chemical & Material Sciences (AREA)
- Bioinformatics & Cheminformatics (AREA)
- Medicinal Chemistry (AREA)
- Epidemiology (AREA)
- General Health & Medical Sciences (AREA)
- Medical Informatics (AREA)
- Primary Health Care (AREA)
- Public Health (AREA)
- Medical Treatment And Welfare Office Work (AREA)
Abstract
The application discloses a medicine dispensing method, block chain link point equipment and a system, wherein the method comprises the following steps: the target blockchain node equipment receives a medicine acquisition request sent by a medicine acquisition request terminal of a medicine acquisition requester; the medicine acquisition request carries patient identity information; the target blockchain node device determines a target prescription containing patient identity information from a plurality of prescriptions according to the target information containing prescriptions, which is pre-stored in a blockchain network; the target block chain link point equipment judges whether the target prescription contains medicines or not; if the medicine is contained, the target block chain link point equipment judges the state of the medicine; the states of the drug include: to be dispensed or to be dispensed; if the state of the medicine is to be dispensed, the target block chain link point equipment dispenses the medicine to a medicine requester; if the status of the drug is dispensed, the target block link point device sends a first prompt to the drug acquisition request terminal. By adopting the application, the reliable storage of the prescription can be realized, and the accuracy of drug distribution can be improved.
Description
Technical Field
The application relates to the technical field of medical treatment, in particular to a medicine dispensing method, block chain link point equipment and a system.
Background
In the prior art, a large amount of important medical data (such as prescriptions made by doctors) are stored in a trusted third party platform or institution, but the storage mode depending on the link point equipment of the central target block has a certain risk, and the medical data is easy to tamper. When the target blockchain node device receives a medicine dispensing request, the target blockchain node device dispenses the medicine according to the prescription provided by a doctor, and if the prescription is changed, the medicine dispensing error is caused.
Disclosure of Invention
The application provides a medicine dispensing method, a blockchain node device and a system, which can realize reliable storage of information such as prescriptions and the like, provide true and reliable prescription information for a medicine dispenser and improve medicine dispensing accuracy.
In a first aspect, the present application provides a drug delivery method applied to a blockchain node device, where the blockchain node device accesses a blockchain network, and the blockchain network includes a plurality of blockchain link point devices, where the drug delivery method is characterized by including:
The target blockchain node equipment receives a medicine acquisition request sent by a medicine acquisition request terminal, wherein the medicine acquisition request terminal is deployed on a medicine acquisition requester; the medicine acquisition request carries identity information of a patient;
The target block link point device determines a target prescription containing identity information of a patient from a plurality of prescriptions according to the target information containing prescriptions, which is stored in the block chain network in advance;
the target block link point device judges whether the target prescription contains a medicine;
If so, the target block chain link point equipment judges the state of the medicine; the states of the drug include: to be dispensed or to be dispensed;
If the state of the medicine is to be dispensed, the target block chain link point equipment dispenses the medicine to the medicine requester; if the state of the medicine is distributed, the target block link point equipment sends a first prompt to the medicine acquisition request terminal; the first prompt is used for prompting that the medicine is dispensed.
With reference to the first aspect, in some possible embodiments, after the target block link point device dispenses the drug to the drug requester if the state of the drug is to be dispensed, the method further includes:
the target block link point device modifies the status of the drug to dispensed.
With reference to the first aspect, in some possible embodiments,
The dispensed includes: during the distribution, the distribution is completed;
if the state of the medicine is distributed, the target block link point equipment sends a first prompt to the medicine acquisition request terminal; the first prompt is used for prompting that the medicine is dispensed, and comprises:
If the state of the medicine is in the process of dispensing, the target block link point equipment sends a second prompt to the medicine acquisition request terminal; the second prompt is used for prompting that the medicine is in dispensing;
Or alternatively
If the state of the medicine is that the dispensing is completed, the target block link point equipment sends a third prompt to the medicine obtaining request terminal; the third prompt is used for prompting that the medicine is dispensed.
With reference to the first aspect, in some possible embodiments,
The target block link point device further comprises, before determining a target prescription containing identity information of a patient from a plurality of prescriptions according to a plurality of target information containing prescriptions stored in advance in the block chain network:
The target block link point equipment receives a plurality of prescriptions sent by a plurality of prescription providing terminals deployed in a medical institution respectively;
the target block link point device generates a unique identifier of each prescription according to the characteristic value of each prescription in the plurality of prescriptions;
The target block link point device sends a plurality of target information to other block link node devices outside the block link node device, so that the other block link point devices verify the plurality of target information, and the target information comprises: a prescription and a unique identification of the prescription;
If the plurality of target information passes the verification, the target block link point device generates a target block containing the plurality of target information;
the target block link point device writes the target block to the blockchain network.
With reference to the first aspect, in some possible embodiments,
The identity information of the patient includes: the social security card number and iris characteristics of the patient;
the characteristic value at least comprises:
index of the prescription, social security card number of the patient in the prescription.
With reference to the first aspect, in some possible embodiments,
The target block link point device receives a plurality of prescriptions sent by a plurality of prescription providing terminals deployed in a medical institution respectively, and generates a unique identifier of each prescription according to a characteristic value of each prescription in the plurality of prescriptions, and specifically comprises the following steps:
The target block link point equipment receives a plurality of prescriptions sent by a plurality of prescription providing terminals deployed in a medical institution respectively, carries out hash operation on the characteristic value of each prescription in the plurality of prescriptions respectively, and takes the hash value after the hash operation as the unique identifier of each prescription respectively.
With reference to the first aspect, in some possible embodiments,
The target block link point device sends a plurality of target information to other block link node devices outside the block link node device, so that the other block link point devices verify the plurality of target information, and the method comprises the following steps:
The target block chain link point device sends a plurality of target information to other block chain link point devices except the target block chain link point device in the block chain network, so that a first block chain node device carries out hash operation on a characteristic value of a prescription in first target information according to a hash function used when the target block chain node device generates a unique identification of the prescription in the first target information, and the hash value after the hash operation is compared with the received unique identification of the prescription in the first target information sent by the target block chain link point device; the first target block link point device is any block link point device except the target block link point device in the block chain network, and the first target information is any target information in the plurality of target information;
And if the hash value after the hash operation is the same as the received unique identifier of the first target information sent by the target block link point device, the first target information passes verification.
In a second aspect, the present application provides a blockchain node device,
The blockchain node device is the target blockchain link point device, comprising:
the receiving unit is used for receiving a medicine acquisition request sent by the medicine acquisition request terminal, and the medicine acquisition request terminal is deployed on a medicine acquisition requester; the medicine acquisition request carries identity information of a patient;
A determining unit configured to determine a target prescription including identity information of a patient from a plurality of prescriptions based on a plurality of target information including prescriptions stored in advance in the blockchain network;
a first judging unit configured to judge whether the target prescription contains a medicine;
A second judging unit configured to judge a state of the medicine if included; the states of the drug include: to be dispensed or to be dispensed;
the dispensing unit is used for dispensing the medicine to the medicine requesting party if the state of the medicine is to be dispensed;
A sending unit, configured to send a first prompt to the medicine acquisition request terminal if the status of the medicine is already dispensed; the first prompt is used for prompting that the medicine is dispensed.
In a third aspect, the present application provides a blockchain node device, the blockchain node device being the target blockchain node device, comprising: the device comprises a transceiver, a memory and a processor coupled with the memory, wherein the transceiver, the memory and the processor coupled with the memory are mutually connected, the transceiver is used for executing receiving or sending actions, the memory is used for storing the implementation code of the medicine dispensing method, and the processor is used for calling the implementation code stored in the memory, namely executing the medicine dispensing method of the first aspect.
In a fourth aspect, the present application provides a pharmaceutical dispensing system comprising: the system comprises a plurality of blockchain node devices and a plurality of terminals respectively corresponding to each blockchain node device in the blockchain node devices, wherein the blockchain node devices are target blockchain node devices in the first aspect and various possible implementation manners thereof, and the terminals are medicine acquisition request terminals or prescription providing terminals in the first aspect and various possible implementation manners thereof.
In a fifth aspect, the present application provides a computer readable storage medium having instructions stored thereon which, when executed by a processor, cause the processor to perform the method of drug dispensing provided by the first aspect and any of its various possible implementations.
In a sixth aspect, the present application provides a computer program product which, when executed by a processor, causes the processor to perform the method of drug dispensing provided by the first aspect and any of its various possible implementations.
The application provides a medicine dispensing method, block chain link point equipment and a system. The block chain node equipment is accessed to a block chain network, and the block chain network comprises a plurality of block chain node equipment. Firstly, a target blockchain node device receives a medicine acquisition request sent by a medicine acquisition request terminal, wherein the medicine acquisition request terminal is deployed on a medicine acquisition requester; the medicine acquisition request carries the identity information of the patient; the target block link point device determines a target prescription containing identity information of a patient from a plurality of prescriptions according to the plurality of target information containing prescriptions which are pre-stored in the block chain network; the target block chain link point equipment judges whether the target prescription contains medicines or not; if the medicine is contained, the target block chain link point equipment judges the state of the medicine; the states of the drug include: to be dispensed or to be dispensed; if the state of the medicine is to be dispensed, the target block chain link point equipment dispenses the medicine to a medicine requester; if the state of the medicine is distributed, the target block chain link point equipment sends a first prompt to the medicine acquisition request terminal; the first prompt is used for prompting that the medicine is dispensed.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for the description of the embodiments will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present application, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a schematic diagram of a drug dispensing system provided by the present application;
FIG. 2 is a schematic view of a portion of a drug dispensing system according to the present application;
FIG. 3 is a schematic flow chart of a method of dispensing a pharmaceutical product provided by the present application;
FIG. 4 is a block chain network architecture diagram according to the present application;
FIG. 5 is a diagram illustrating the relationship between hash values stored on blocks in a blockchain network in accordance with the present application;
FIG. 6 is a schematic block diagram of a blockchain node device provided by the present application;
fig. 7 is a schematic block diagram of another blockchain node device provided by the present application.
Detailed Description
The following description of the embodiments of the present application will be made more apparent and fully hereinafter with reference to the accompanying drawings, in which some, but not all embodiments of the application are shown. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
It should be understood that the terms "comprises" and "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It is also to be understood that the terminology used in the description of the application herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in this specification and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
It should be further understood that the term "and/or" as used in the present specification and the appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes such combinations.
As used in this specification and the appended claims, the term "if" may be interpreted as "when..once" or "in response to a determination" or "in response to detection" depending on the context. Similarly, the phrase "if a determination" or "if a [ described condition or event ] is detected" may be interpreted in the context of meaning "upon determination" or "in response to determination" or "upon detection of a [ described condition or event ]" or "in response to detection of a [ described condition or event ]".
In particular implementations, the terminals described in this disclosure include, but are not limited to, other portable devices such as mobile phones, laptop computers, or tablet computers having a touch-sensitive surface (e.g., a touch screen display and/or a touch pad). It should also be appreciated that in some embodiments, the device is not a portable communication device, but a desktop computer having a touch-sensitive surface (e.g., a touch screen display and/or a touch pad).
In the following discussion, a terminal including a display and a touch sensitive surface is described. However, it should be understood that the terminal may include one or more other physical user interface devices such as a physical keyboard, mouse, and/or joystick.
The terminal supports various applications, such as one or more of the following: drawing applications, presentation applications, word processing applications, website creation applications, disk burning applications, spreadsheet applications, gaming applications, telephony applications, video conferencing applications, email applications, instant messaging applications, workout support applications, photo management applications, digital camera applications, digital video camera applications, web browsing applications, digital music player applications, and/or digital video player applications.
Various applications that may be executed on the terminal may use at least one common physical user interface device such as a touch sensitive surface. One or more functions of the touch-sensitive surface and corresponding information displayed on the terminal may be adjusted and/or changed between applications and/or within the corresponding applications. In this way, the common physical architecture (e.g., touch-sensitive surface) of the terminal may support various applications with user interfaces that are intuitive and transparent to the user.
Referring to fig. 1, which is a schematic diagram of a drug dispensing system according to the present application, as shown in fig. 1, the drug dispensing system may include: the system comprises a plurality of block chain node devices and a plurality of terminals respectively corresponding to each block chain node device in the plurality of block chain node devices.
It should be noted that the target blockchain node device is a blockchain node device in a blockchain network, and taking the target blockchain node device as a blockchain node device a as an example, the blockchain node device a corresponds to a medical institution a, and the blockchain network may further include a blockchain node device B, where the blockchain node device B corresponds to the medical institution B. For convenience of description, the present application will be described by taking a target blockchain node device corresponding to medical institution a as an example.
The drug dispensing system will be described in detail below using the target block link point device in the drug dispensing system as an example.
Fig. 2 is a schematic diagram schematically showing a part of the structure of the drug dispensing system.
As shown in fig. 2, the partial structure may include:
Target block chain node equipment and medicine acquisition request terminals and prescription providing terminals corresponding to the target block chain node equipment. Wherein,
The drug acquisition request terminal and the prescription providing terminal may be terminals in a drug dispensing system, and the terminals may refer to access terminals, user Equipment (UE), subscriber units, subscriber stations, mobile stations, remote terminals, mobile terminals, user terminals, wireless communication devices, user agents, or user devices. An access terminal may be a cellular telephone, a cordless telephone, a conference initiation protocol telephone, a wireless local loop station, a personal digital assistant, a handheld device with wireless communication capabilities, a computing device or other processing device connected to a wireless modem, a wearable device, or a terminal device in a future-evolving public land mobile network.
In a drug dispensing system, may include: prescription provider, medicine acquisition requester and medicine dispenser. In the embodiment of the application, taking the example that a medicine acquisition request terminal is deployed at a medicine acquisition request party, a prescription providing terminal is deployed at a prescription provider, and a target block chain link point device is deployed at a medicine dispensing party.
In the embodiment of the application, a doctor of a medical institution can log in a prescription providing client to input registration information into a prescription providing terminal arranged on a prescription provider (such as the medical institution), the prescription providing terminal sends the registration information to target block chain link point equipment, and then the target block chain node equipment obtains a private key which is set by the doctor of the medical institution and used for logging in the prescription providing client and stores the private key.
The drug acquisition request party staff (such as pharmacy staff) can log in the drug acquisition request client to input registration information into the drug acquisition request terminal deployed at the drug request party (such as medical institution and pharmacy), the drug acquisition request terminal sends the registration information to the target block chain link point equipment deployed at the drug dispenser, and then the target block chain node equipment obtains a private key for logging in the drug acquisition request client and stores the private key.
Furthermore, after different users are registered in the target block link point equipment through the medicine acquisition request terminal or the prescription providing terminal respectively, a medicine acquisition request party worker can log in the medicine acquisition request client to input a medicine acquisition request to the medicine acquisition request terminal; a doctor of a multi-institute medical facility can input prescriptions of patients to prescription providing terminals disposed at prescription providers, respectively, through prescription providing clients.
It should be noted that a medical facility may include: hospitals, women and child care homes, community health service centers, rural (town) care homes, nursing homes, outpatient departments (such as the department of Chinese medicine outpatient, the department of Chinese and Western medicine combined with the outpatient department), village care rooms, emergency treatment centers, clinical examination centers, dedicated disease control homes or nursing homes, and the like.
The drug retrieval requester may be a pharmacy, pharmacy of a medical facility, or the like.
It should be noted that the client may include: locally running applications, functions running on a Web browser (also known as Web apps), applets embedded in email, applets embedded in client software for instant messaging (e.g., weChat (WeChat)), and functions embedded in other applications (e.g., weChat) (e.g., weChat public numbers), etc. For the client, the target block link point device needs to run a corresponding target block link point device end program to provide corresponding services, such as database services, data calculation, decision execution, and the like.
In the embodiment of the application, the target block chain link point device can also be called background block chain node device, component block chain link point device, medicine distribution target block chain node device and the like, and the target block chain node device can be in communication connection with a medicine acquisition request terminal capable of sending a medicine acquisition request and a prescription providing terminal for sending a prescription through the internet and can respond to the received medicine acquisition request.
It should be noted that, the target blockchain node device receives the medicine acquisition request sent by the medicine acquisition request terminal, and the medicine acquisition request terminal is deployed on the medicine acquisition requester; the medicine acquisition request carries the identity information of the patient; the target blockchain node device determines a target prescription containing identity information of a patient from a plurality of prescriptions according to the target information containing prescriptions, which is stored in the blockchain network in advance; the target block chain link point equipment judges whether the target prescription contains medicines or not; if the medicine is contained, the target block chain link point equipment judges the state of the medicine; the states of the drug include: to be dispensed or to be dispensed; if the state of the medicine is to be dispensed, the target block chain link point equipment dispenses the medicine to a medicine requester; if the state of the medicine is distributed, the target block chain link point equipment sends a first prompt to the medicine acquisition request terminal; the first prompt is used for prompting that the medicine is dispensed. By adopting the application, on one hand, reliable storage of information such as prescriptions and the like can be realized, and real and reliable prescription information can be provided for a medicine dispenser, and on the other hand, a patient can finish medicine taking in a medical institution or a pharmacy appointed by the medical institution.
The blockchain has the following three properties: 1. blockchain is a distributed database system placed in an unsecure environment; 2. adopting a hash function mode to ensure that the existing data is not tampered; 3. and adopting a consensus algorithm to agree on the newly added data.
Embodiments of the present application are generally directed to the property of tamper resistance by employing a hash function to ensure that target information stored on a blockchain is not tampered with.
It should be noted that the hash function has the following properties, and assuming that X is obtained by hashing, y=h (X), then: knowing X, Y is easy to derive, whereas knowing Y does not, in particular, there is no other X1, so that H (X1) =y. That is, the hash function has irreversibility.
Referring to fig. 3, fig. 3 is a schematic flow chart of a drug dispensing method according to an embodiment of the present application.
As shown in fig. 3, the following describes in detail a drug dispensing method provided by a drug dispensing system, which may at least include the following steps:
S301, the target blockchain node equipment receives a medicine acquisition request sent by a medicine acquisition request terminal.
In the embodiment of the application, a medicine acquisition request terminal is deployed at a medicine acquisition request party; the medication acquisition request carries the identity information of the patient. The target blockchain node device is a blockchain link point device in the blockchain network.
The identity information of the patient may include: in addition to the patient's social security card number (e.g., 430903xxxxxx 3915), iris features (e.g., left eye iris features), may include: facial features, fingerprint features (e.g., left thumb fingerprint feature), age, name, gender, birth month, contact, etc. of the patient.
Drug retrieval requesters may include, but are not limited to: pharmacy and pharmacy of medical institution.
The medication intake request terminal may store the medication intake request described above in two ways, including but not limited to.
The first way is: and storing the medicine acquisition request in a cloud database connected with a medicine acquisition request terminal.
The second way is: the medicine acquisition request is stored in an internal memory of the medicine acquisition request terminal.
S302, the target blockchain node equipment determines a target prescription containing identity information of a patient from a plurality of prescriptions according to the target information containing prescriptions, which is stored in the blockchain network in advance.
In an embodiment of the present application, the prescription is a prescription that a doctor of a medical institution prescribes for a patient.
The target blockchain node device further comprises the following working procedures before determining a target prescription containing the identity information of the patient from a plurality of prescriptions according to a plurality of target information containing prescriptions, which are pre-stored in a blockchain network:
Process one: the target block link point device receives a plurality of prescriptions sent by a plurality of prescription providing terminals deployed at the medical institution, respectively.
In particular, the prescription providing terminal may store the prescription in two ways, including but not limited to.
The first way is: and storing the prescription in a cloud database connected with the prescription providing terminal.
The second way is: the prescription is stored in an internal memory of the prescription providing terminal.
It should be noted that prescriptions may include, but are not limited to: including patient identity information (e.g., patient social security card number), clinical manifestation symptoms, diagnostic results, therapeutic means or drugs, etc.
Taking the prescription as an example of a prescription for a hypertensive patient, the prescription may include the following: social security card number, name, age, sex, contact means, and clinical manifestation symptoms of the patient are: dizziness, headache, fatigue, palpitation, inattention, numbness of limbs, nocturia, and the like, and the diagnosis results are as follows: patients with slow-going hypertension, the treatment means are as follows: antihypertensive drug therapy (drug which can control twenty-four hours of disease to reach standard after once daily administration) improves living behavior and synergistic control of multiple cardiovascular risk factors. The medicine comprises: diuretics, calcium channel blockers, angiotensin converting enzyme inhibitors, angiotensin II receptor blockers, and the like.
And a second process: the target blockchain node device generates a unique identification for each prescription from the characteristic value of each prescription in the plurality of prescriptions.
In an embodiment of the present application, the feature values may at least include: index of prescription, social security card number of patient.
Specifically, the target blockchain node device receives a plurality of prescriptions sent by a plurality of prescription providing terminals deployed in a medical institution respectively, performs hash operation on a characteristic value of each prescription in the plurality of prescriptions respectively, and uses the hash value after the hash operation as a unique identifier of each prescription respectively.
It should be noted that the characteristic values in the above prescription include: the index of the prescription and the social security card number of the patient in the prescription can also comprise: the name, year and month of birth, age, and contact of the patient in the prescription.
And a third process: the target blockchain node device sends a plurality of target information to other blockchain node devices outside the blockchain node device, so that the other blockchain node devices verify the plurality of target information, wherein the target information comprises: prescriptions and unique identification of prescriptions.
Specifically, the target block chain node device sends a plurality of target information to other block chain link point devices except the target block chain link point device in the block chain network, so that the first block chain node device carries out hash operation on the characteristic value of the prescription in the first target information according to a hash function used when the target block chain link point device generates the unique identification of the prescription in the first target information, and the hash value after the hash operation is compared with the received unique identification of the prescription in the first target information sent by the target block chain link point device; the first target block link point device is any block link point device except for the target block link point device in the block chain network, and the first target information is any one of a plurality of target information.
If the hash value after the hash operation is the same as the received unique identification of the first target information sent by the target block link point device, the first target information passes verification.
And a process IV: if the plurality of target information passes the verification, the target block link point device generates a target block containing the plurality of target information.
Specifically, the blocks on the blockchain network are composed of block heads and block bodies. The block header includes the hash value of the current block, the hash value of the previous block, the timestamp and other information, and the block body includes the data information of the current block.
Taking a prescription prescribed by a doctor for a patient as an example, as shown in fig. 4, the block N has the same block structure as the block (n+1), and the prescription is stored in the block main body.
And a fifth process: the target block link point device writes the target block to the blockchain network.
Specifically, the specific manner in which a target block containing multiple target information is written to the blockchain network is described in detail below.
Firstly, taking the last block on the existing block chain network as the last block of the target block, and recording the hash value of the last block in the block head of the target block; and then recording the current time as the time stamp of the target block, and when the next new block is generated, taking the target block as the previous block of the new block, wherein the hash value of the target block is recorded in the block head of the new block. Wherein, the last block on the blockchain network refers to the block with the time of the timestamp record closest to the current time in all blocks on the blockchain network.
In summary, the objective block records the hash value of the last block and the hash value of the target block, and the objective is to ensure the non-tamper property of the prescription by utilizing the chain structure and the irreversibility of the hash encryption algorithm connected back and forth on the blockchain network.
For example, as shown in fig. 5, consider a block 1-4 on a blockchain network, where the block 1 holds the hash value H0 of the previous block, the hash value H1 of the block 1, and the data block a of the block 1, and the block 2 holds the hash value H1 of the previous block, the hash value H2 of the block 2, and the data block B of the block 2, the block 3-level block 4, and so on. For each block, the hash value of the block is calculated by performing hash operation on the data synthesized by the data block of the block and the hash value of the last block.
For example, the hash values of blocks 1-4 in fig. 5 are calculated by: h1 =hash (a|h0), h2=hash (b|h1), h3=hash (c|h2), h4=hash (d|h3), where|denotes concatenation and Hash denotes a Hash operation. In summary, it can be seen that, if a data block on any block is tampered with, the hash values on all blocks after the block on the blockchain network need to be changed according to the connection relationship between the front block and the back block. For example: if the contents of data block a on block 1 in fig. 5 are to be changed, the hash values in blocks 2, 3, 4 and Ha Xitou on subsequent blocks need to be changed accordingly. Obviously, the difficulty is high, the cost is very high, and in theory, 51% and more nodes (the nodes can create new blocks, commonly called mining nodes) on the blockchain network are controlled, so that the tampering of the data can be completed.
S303, the target block chain link point device judges whether the target prescription contains medicines.
In the embodiment of the application, the target block link point device can read out characters in the target prescription by an OCR (Optical Character Recognition, OCR) character recognition technology so as to determine whether the target prescription contains medicines.
It should be noted that before the target block link point device determines whether the target prescription contains a drug, the following steps are further performed:
Step A: the target blockchain node device does not determine a target prescription containing the identity information of the patient from a plurality of prescriptions according to the plurality of target information containing prescriptions which are pre-stored in the blockchain network;
And (B) step (B): the target block link point device sends a first indication to the medication request acquisition terminal, the first indication indicating that there is no target prescription from the plurality of prescriptions that contains the identity information of the patient.
S304, if the medicine is contained, the target block chain link point equipment judges the state of the medicine.
Specifically, the state of the drug is: the drug that has been dispensed, i.e., is on the way to the drug retrieval requester, is not currently delivered to the drug requester.
The state of the medicine is: the drug has been dispensed, i.e., it has been delivered to the drug requestor.
It should be noted that if no drug is present in the prescription, the target blockchain node device sends a second indication to the drug acquisition request terminal, the second indication being used to indicate that no drug is present in the prescription.
S305, if the state of the medicine is to be dispensed, the target block chain link point equipment dispenses the medicine to a medicine requester; if the state of the medicine is distributed, the target block chain link point equipment sends a first prompt to the medicine acquisition request terminal; the first prompt is used for prompting that the medicine is dispensed.
In the embodiment of the present application, if the status of the drug is to be dispensed, the target block link point device dispenses the drug to the drug requester, which may specifically include, but is not limited to, the following three modes:
The first way is: if the state of the medicine is to be dispensed, the target block link point device directly dispenses the medicine to the medicine request terminal.
The second way is: if the status of the drug is to be dispensed, the target blockchain node device sends a fourth prompt to the first terminal of the drug taker, the fourth prompt being for notifying the drug taker to dispense the drug to the drug requester.
Specifically, the first terminal of the drug delivery person may include, but is not limited to: a cell phone, a computer or a pager of the drug taking person, etc.
Third mode: and if the state of the medicine is to be distributed, the target blockchain node equipment sends a fourth prompt to the application terminal, and the fifth prompt is used for informing the application terminal to distribute the medicine to the medicine requesting party.
Specifically, the application terminal may include, but is not limited to: the intelligent robot can be used for conveying medicines.
It should be noted that if the status of the drug is dispensed, the target block link point device sends a first prompt to the drug acquisition request terminal; wherein the dispensing includes: during the dispensing, the dispensing is completed.
Specifically, if the state of the medicine is in the process of dispensing, the target block chain link point device sends a second prompt to the medicine acquisition request terminal; the second prompt is used to prompt that the drug is in dispensing.
The drug is in the process of being dispensed, that is, the drug has not been delivered to the drug retrieval requester until now on its way to the drug retrieval requester.
Or alternatively
If the state of the medicine is that the dispensing is completed, the target block chain link point equipment sends a third prompt to the medicine obtaining request terminal; the third prompt is used for prompting that the medicine is dispensed.
The dispensing of the drug is complete, i.e., the drug has been delivered to the drug retrieval requester.
It should be noted that, if the status of the medicine is to be dispensed, the target block link point device modifies the status of the medicine to dispensed after the target block link point device dispenses the medicine to the medicine requester.
In summary, the target blockchain node device receives a medicine acquisition request sent by a medicine acquisition request terminal, and the medicine acquisition request terminal is deployed on a medicine acquisition requester; the medicine acquisition request carries the identity information of the patient; the target blockchain node device determines a target prescription containing identity information of a patient from a plurality of prescriptions according to the target information containing prescriptions, which is stored in the blockchain network in advance; the target block chain link point equipment judges whether the target prescription contains medicines or not; if the medicine is contained, the target block chain link point equipment judges the state of the medicine; the states of the drug include: to be dispensed or to be dispensed; if the state of the medicine is to be dispensed, the target block chain link point equipment dispenses the medicine to a medicine requester; if the state of the medicine is distributed, the target block chain link point equipment sends a first prompt to the medicine acquisition request terminal; the first prompt is used for prompting that the medicine is dispensed. By adopting the application, on one hand, reliable storage of information such as prescriptions and the like can be realized, real and reliable prescription information is provided for a medicine dispensing party, and the medicine dispensing accuracy is improved. On the other hand, the patient can finish taking medicine at the medical institution or the pharmacy appointed by the medical institution, which is very convenient and can save a great deal of time.
Referring to fig. 6, a block chain node device 60 may be the target block chain node device in fig. 3. As shown in fig. 6, the blockchain node device 60 includes: receiving section 601, determining section 602, first judging section 603, second judging section 604, distributing section 605 and transmitting section 606. Wherein:
A receiving unit 601, configured to receive a drug acquisition request sent by a drug acquisition request terminal, where the drug acquisition request terminal is disposed on a drug acquisition requester; the medication acquisition request carries identity information of the patient.
A determining unit 602, configured to determine, from a plurality of prescriptions, a target prescription containing identity information of a patient according to a plurality of target information containing prescriptions stored in advance in the blockchain network.
A first judging unit 603 is configured to judge whether the target prescription contains a medicine.
A second judging unit 604 for judging the state of the medicine if included; the states of the drug include: to be dispensed or to be dispensed.
And a dispensing unit 605 for dispensing the medicine to the medicine requester if the status of the medicine is to be dispensed.
A sending unit 606, configured to send a first prompt to the medicine acquisition request terminal if the status of the medicine is already dispensed; the first prompt is used for prompting that the medicine is dispensed.
The sending unit 306 is specifically configured to:
The dispensing includes: during the dispensing, the dispensing is completed.
If the state of the medicine is in the process of dispensing, a second prompt is sent to a medicine acquisition request terminal; the second prompt is used to prompt that the drug is in dispensing.
Or alternatively
If the state of the medicine is that the dispensing is completed, a third prompt is sent to the medicine acquisition request terminal; the third prompt is used for prompting that the medicine is dispensed.
The block link point apparatus 60 includes: the receiving unit 601, the determining unit 602, the first judging unit 603, the second judging unit 604, the distributing unit 605, and the transmitting unit 606 further include: further comprises: the device comprises a first generating unit, a second generating unit and a writing unit. Wherein,
The determining unit 602 determines, from a plurality of prescriptions, a target prescription containing identity information of a patient based on a plurality of target information containing prescriptions stored in advance in the blockchain network,
The receiving unit 601 is further configured to receive a plurality of prescriptions transmitted by a plurality of prescription providing terminals disposed in a medical institution, respectively.
The first generation unit is used for generating a unique identifier of each prescription according to the characteristic value of each prescription in the prescriptions.
The sending unit 606 is further configured to send a plurality of pieces of target information to other blockchain node devices outside the blockchain node device, so that the other blockchain node devices verify the plurality of pieces of target information, where the pieces of target information include: a prescription and a unique identification of the prescription.
And a second generation unit configured to generate a target block containing the plurality of target information if the plurality of target information passes the verification.
And the writing unit is used for writing the target block into the blockchain network.
The block link point apparatus 60 includes: the receiving unit 601, the determining unit 602, the first judging unit 603, the second judging unit 604, the distributing unit 605, and the transmitting unit 606 further include: and a modifying unit, configured to modify the state of the drug to be dispensed after the state of the drug is to be dispensed and the dispensing unit 605 dispenses the drug to the drug requester.
It should be understood that blockchain node device 60 is merely one example provided by embodiments of the present application, and that blockchain node device 60 may have more or fewer components than shown, may combine two or more components, or may have a different configuration implementation of the components.
It will be appreciated that, regarding the specific implementation of the functional blocks included in the block link point apparatus 60 of fig. 6, reference may be made to the foregoing method embodiment described in fig. 3, and no further description is given here.
The present application provides another blockchain node device, the blockchain link point device 70 may be the target blockchain point device in fig. 3. As shown in fig. 7, the blockchain node device 70 may include: a processor 701, a memory 702 (one or more computer-readable storage media), and a transceiver 703. These components may communicate over one or more communication buses 704.
The processor 701 may be a central processor (Central Processing Unit, CPU), a network processor (Network Processor, NP) or a combination of CPU and NP.
The processor 701 may further comprise a hardware chip. The hardware chip may be an Application-specific integrated Circuit (ASIC), a programmable logic device (Programmable Logic Device, PLD), or a combination thereof. The PLD may be a complex programmable Logic device (Complex Programmable Logic Device, CPLD), a Field-programmable gate array (Field-programmable GATE ARRAY, FPGA), general-purpose array Logic (GENERIC ARRAY Logic, GAL), or any combination thereof.
As can be appreciated, the processor 701 may be configured to determine if a prescription containing the identity information of the patient exists in the first database; if a prescription containing the identity information of the patient exists in the first database, judging whether a medicine exists in the prescription; judging the state of the medicine if the medicine exists in the prescription; the states of the drug include: to be dispensed or to be dispensed; and if the state of the medicine is to be dispensed, dispensing the medicine to the medicine requesting party.
Memory 702 is coupled to processor 701 and may be used to store various software programs and/or sets of instructions. In particular implementations, memory 702 may include high-speed random access memory and may also include non-volatile memory, such as one or more magnetic disk storage devices, flash memory devices, or other non-volatile solid-state storage devices. The memory 702 may store an operating system (hereinafter referred to as a system), such as ANDROID, IOS, WINDOWS, or an embedded operating system, such as LINUX. The memory 702 may also store network communication programs that may be used to communicate with one or more additional devices, one or more terminal devices, and one or more network devices. The memory 702 may also store a user interface program that can vividly display the content image of the application program through a graphical operation interface, and receive control operations of the application program by a user through input controls such as menus, dialog boxes, buttons, and the like.
As can be appreciated, the memory 702 may also be configured to store a medicine acquisition request sent by the medicine acquisition request terminal and a prescription issued by a doctor of the medical institution sent by the prescription providing terminal, where the medicine acquisition request carries identity information of the patient; the identity information of the patient includes at least one of: the medicine acquisition request terminal is deployed at a medicine acquisition request party, such as an identity card number, a social security card number, fingerprint characteristics, facial characteristics or iris characteristics of a patient.
The transceiver 703 may also be used to receive a drug acquisition request sent by the drug acquisition request terminal and a prescription issued by a doctor of the medical institution sent by the prescription providing terminal.
The transceiver 703 may also be configured to send a first prompt to the medication acquisition request terminal if the status of the medication is dispensed; the first prompt is used for prompting that the medicine is dispensed.
The transceiver 703 may be further configured to, after the processor 701 determines whether a prescription containing the identity information of the patient exists in the first database, send a first indication to the medication intake request terminal if the prescription containing the identity information of the patient does not exist in the first database, the first indication indicating that the prescription for dispensing the medication to the patient does not exist.
The transceiver 703 may be further configured to, after the processor 701 determines whether a drug is present in the prescription, if no drug is present in the prescription, send a second indication to the drug acquisition request terminal by the target blockchain node device, the second indication indicating that no drug is present in the prescription.
It should be understood that blockchain node device 70 is merely one example provided by embodiments of the present application, and that blockchain node device 70 may have more or fewer components than shown, may combine two or more components, or may have a different configuration implementation of the components.
It will be appreciated that, regarding the specific implementation of the functional blocks included in the blockchain node device 70 of fig. 7, reference may be made to the method embodiment described in fig. 3, and a detailed description thereof is omitted herein.
The present application provides a computer readable storage medium storing a computer program which is implemented when executed by a processor.
The computer readable storage medium may be an internal storage unit of the terminal according to any of the foregoing embodiments, for example, a hard disk or a memory of the terminal. The computer readable storage medium may also be an external storage device of the terminal, such as a plug-in hard disk, a smart memory card (SMART MEDIA CARD, SMC), a Secure Digital (SD) card, a flash memory card (FLASH CARD), etc. that are provided on the terminal. Further, the computer readable storage medium may also include both an internal storage unit of the terminal and an external storage device. The computer-readable storage medium is used to store a computer program and other programs and data required by the terminal. The computer-readable storage medium may also be used to temporarily store data that has been output or is to be output.
The present application also provides a computer program product comprising a non-transitory computer readable storage medium storing a computer program operable to cause a computer to perform part or all of the steps of any one of the methods described in the method embodiments above. The computer program product may be a software installation package, the computer comprising the electronic device.
Those of ordinary skill in the art will appreciate that the elements and algorithm steps described in connection with the embodiments disclosed herein may be embodied in electronic hardware, in computer software, or in a combination of the two, and that the elements and steps of the examples have been generally described in terms of function in the foregoing description to clearly illustrate the interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
It will be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working procedures of the terminal and the unit described above may refer to the corresponding procedures in the foregoing method embodiments, which are not repeated herein.
In several embodiments provided by the present application, it should be understood that the disclosed terminal and method may be implemented in other manners. For example, the compositions and steps of the examples are described. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
The above-described terminal embodiments are merely illustrative, for example, the division of the units is merely a logical function division, and there may be other manners of division in actual implementation, for example, multiple units or components may be combined or integrated into another system, or some features may be omitted, or not performed. In addition, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, terminals or units, or may be an electrical, mechanical or other form of connection.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the embodiment of the present application.
In addition, each functional unit in the embodiments of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The integrated units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application is essentially or a part contributing to the prior art, or all or part of the technical solution may be embodied in the form of a software product stored in a storage medium, comprising several instructions for causing a computer device (which may be a personal computer, a target block link point device, or a network device, etc.) to perform all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
While the application has been described with reference to certain preferred embodiments, it will be understood by those skilled in the art that various changes and substitutions of equivalents may be made and equivalents will be apparent to those skilled in the art without departing from the scope of the application. Therefore, the protection scope of the application is subject to the protection scope of the claims.
Claims (7)
1. A pharmaceutical dispensing method for a blockchain node device, the blockchain node device accessing a blockchain network, the blockchain network including a plurality of blockchain node devices, the pharmaceutical dispensing method comprising:
The method comprises the steps that target block chain link point equipment receives registration information of a doctor of a medical institution sent by a prescription providing terminal, obtains a private key used for logging in the prescription providing terminal and set by the doctor of the medical institution, stores the private key used for logging in the prescription providing terminal, and is one block chain link point equipment in a block chain network;
The target block link point equipment logs in a prescription providing terminal deployed in each medical institution through private keys used for logging in the prescription providing terminals and set by doctors of the medical institutions, and receives prescriptions of patients input by the doctors of the medical institutions through the prescription providing terminals of the medical institutions so as to obtain a plurality of prescriptions;
The target block link point equipment respectively carries out hash operation on the characteristic value of each prescription in the prescriptions, and respectively takes the hash value after the hash operation as the unique identifier of each prescription, wherein the characteristic value of the prescription comprises the index of the prescription and the identity information of a patient in the prescription;
The target block chain link point device sends a plurality of target information to other block chain link point devices except the target block chain link point device in the block chain network, so that a first block chain node device carries out hash operation on a characteristic value of a prescription in first target information according to a hash function used when the target block chain node device generates a unique identification of the prescription in the first target information, and the hash value after the hash operation is compared with the received unique identification of the prescription in the first target information sent by the target block chain link point device; the first target block link point device is any block link point device except the target block link point device in the block chain network, and the first target information is any target information in the plurality of target information; if the hash value after the hash operation is the same as the received unique identifier of the first target information sent by the target block link point device, the first target information passes verification;
If the plurality of target information passes the verification, the target block link point device generates a target block containing the plurality of target information, and writes the target block into a block chain network;
the target blockchain node equipment receives a medicine acquisition request sent by a medicine acquisition request terminal, and the medicine acquisition request terminal is deployed on a medicine acquisition requester; the medicine acquisition request carries identity information of a patient;
The target block link point device determines a target prescription containing identity information of a patient from a plurality of prescriptions according to the target information containing prescriptions, which is stored in the block chain network in advance;
The target blockchain node equipment identifies the prescription through an optical character identification technology so as to judge whether the target prescription contains medicines or not;
If so, the target block chain link point equipment judges the state of the medicine; the states of the drug include: to be dispensed or to be dispensed;
If the state of the medicine is to be dispensed, the target block chain link point equipment dispenses the medicine to the medicine requester; if the state of the medicine is distributed, the target block link point equipment sends a first prompt to the medicine acquisition request terminal; the first prompt is used for prompting that the medicine is dispensed.
2. The method of claim 1, wherein the target block link point device, after dispensing the drug to the drug requester if the status of the drug is to be dispensed, further comprises:
the target block link point device modifies the status of the drug to dispensed.
3. The method of claim 1, wherein,
The dispensed includes: during the distribution, the distribution is completed;
if the state of the medicine is distributed, the target block link point equipment sends a first prompt to the medicine acquisition request terminal; the first prompt is used for prompting that the medicine is dispensed, and comprises:
If the state of the medicine is in the process of dispensing, the target block link point equipment sends a second prompt to the medicine acquisition request terminal; the second prompt is used for prompting that the medicine is in dispensing;
Or alternatively
If the state of the medicine is that the dispensing is completed, the target block link point equipment sends a third prompt to the medicine obtaining request terminal; the third prompt is used for prompting that the medicine is dispensed.
4. The method of claim 1, wherein,
The identity information of the patient includes: the social security card number and iris characteristics of the patient;
the characteristic value at least comprises:
Index of prescriptions, social security card number of patients in prescriptions.
5. A block link point device, wherein the block link node device is a target block link point device, comprising:
The receiving unit is used for receiving registration information of a doctor of a medical institution sent by the prescription providing terminal, obtaining a private key used for logging in the prescription providing terminal and set by the doctor of the medical institution, and storing the private key used for logging in the prescription providing terminal, wherein the target block chain link point device is one block chain link point device in the block chain network;
The receiving unit is further used for logging in the prescription providing terminals arranged in the medical institutions through private keys set by doctors of the medical institutions and used for logging in the prescription providing terminals, and receiving prescriptions of patients input by the doctors of the medical institutions through the prescription providing terminals of the medical institutions to obtain a plurality of prescriptions;
The first generation unit is used for respectively carrying out hash operation on the characteristic value of each prescription in the prescriptions, and respectively taking the hash value after the hash operation as the unique identifier of each prescription, wherein the characteristic value of the prescription comprises the index of the prescription and the identity information of a patient in the prescription;
A sending unit, configured to send a plurality of target information to other block link point devices in the block chain network, where the other block link point devices are other than the target block link point device, so that a first block chain node device performs hash operation on a characteristic value of a prescription in first target information according to a hash function used when the target block chain node device generates a unique identifier of the prescription in the first target information, and compares the hash value after the hash operation with a received unique identifier of the prescription in the first target information sent by the target block link point device; the first target block link point device is any block link point device except the target block link point device in the block chain network, and the first target information is any target information in the plurality of target information; if the hash value after the hash operation is the same as the received unique identifier of the first target information sent by the target block link point device, the first target information passes verification;
A second generation unit configured to generate a target block containing the plurality of target information when the plurality of target information passes the verification;
A writing unit for writing the target block into the blockchain network;
the receiving unit is further used for receiving a medicine acquisition request sent by a medicine acquisition request terminal, and the medicine acquisition request terminal is deployed on a medicine acquisition requester; the medicine acquisition request carries identity information of a patient;
A determining unit configured to determine a target prescription including identity information of a patient from a plurality of prescriptions based on a plurality of target information including prescriptions stored in advance in the blockchain network;
A first judgment unit for recognizing the prescription by an optical character recognition technique to judge whether the target prescription contains a medicine;
A second judging unit configured to judge a state of the medicine if included; the states of the drug include: to be dispensed or to be dispensed;
the dispensing unit is used for dispensing the medicine to the medicine requesting party if the state of the medicine is to be dispensed;
The sending unit is further configured to send a first prompt to the medicine acquisition request terminal if the status of the medicine is already distributed; the first prompt is used for prompting that the medicine is dispensed.
6. A block link point device, wherein the block link node device is the target block link point device, comprising: a transceiver, a memory and a processor coupled to the memory, the transceiver, the memory and the processor coupled to the memory being interconnected, wherein the transceiver is configured to perform a receiving or transmitting action, the memory is configured to store implementation code of a drug dispensing method, and the processor is configured to invoke the implementation code stored in the memory, i.e. to perform the drug dispensing method of any of claims 1-4.
7. A computer readable storage medium, characterized in that the computer storage medium stores a computer program comprising program instructions which, when executed by a processor, cause the processor to perform the pharmaceutical dispensing method according to any of claims 1-4.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811265583.5A CN109509527B (en) | 2018-10-27 | 2018-10-27 | Medicine dispensing method, block chain link point equipment and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811265583.5A CN109509527B (en) | 2018-10-27 | 2018-10-27 | Medicine dispensing method, block chain link point equipment and system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109509527A CN109509527A (en) | 2019-03-22 |
CN109509527B true CN109509527B (en) | 2024-06-25 |
Family
ID=65746961
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811265583.5A Active CN109509527B (en) | 2018-10-27 | 2018-10-27 | Medicine dispensing method, block chain link point equipment and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109509527B (en) |
Families Citing this family (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110097311A (en) * | 2019-03-26 | 2019-08-06 | 顺丰速运有限公司 | Medicine sends method, apparatus, equipment and storage medium |
CN110020800A (en) * | 2019-04-04 | 2019-07-16 | 泰康保险集团股份有限公司 | Information processing method, device, medium and electronic equipment based on block chain |
CN110634548B (en) * | 2019-09-23 | 2022-02-01 | 重庆华医康道科技有限公司 | Block chain-based dispensing and medicine checking fast matching method |
CN111105247A (en) * | 2019-12-03 | 2020-05-05 | 北京海益同展信息科技有限公司 | Medicine information acquisition method and device, server and storage medium |
CN112927819A (en) * | 2021-02-02 | 2021-06-08 | 杭州云嘉健康管理有限公司 | 5G cloud consulting room system |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101923606A (en) * | 2010-08-20 | 2010-12-22 | 无锡北邮感知技术产业研究院有限公司 | System and method for drug placement, distribution and source tracing based on digital tags |
CN107799163A (en) * | 2017-01-22 | 2018-03-13 | 平安医疗健康管理股份有限公司 | Prescription circulation methods, devices and systems based on block chain |
CN108648789A (en) * | 2018-03-29 | 2018-10-12 | 浙江康健绿线网络技术有限公司 | A kind of shared circulation method and platform based on electronic prescription |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107785059A (en) * | 2017-01-22 | 2018-03-09 | 平安医疗健康管理股份有限公司 | Medicine distribution method and system based on block chain |
CN107818817A (en) * | 2017-01-22 | 2018-03-20 | 平安医疗健康管理股份有限公司 | The prescription side of continuing method and system based on block chain |
-
2018
- 2018-10-27 CN CN201811265583.5A patent/CN109509527B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101923606A (en) * | 2010-08-20 | 2010-12-22 | 无锡北邮感知技术产业研究院有限公司 | System and method for drug placement, distribution and source tracing based on digital tags |
CN107799163A (en) * | 2017-01-22 | 2018-03-13 | 平安医疗健康管理股份有限公司 | Prescription circulation methods, devices and systems based on block chain |
CN108648789A (en) * | 2018-03-29 | 2018-10-12 | 浙江康健绿线网络技术有限公司 | A kind of shared circulation method and platform based on electronic prescription |
Also Published As
Publication number | Publication date |
---|---|
CN109509527A (en) | 2019-03-22 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109559792B (en) | Medicine dispensing method, block chain link point equipment and system | |
CN109509527B (en) | Medicine dispensing method, block chain link point equipment and system | |
US11907397B2 (en) | Records access and management | |
EP3236374B1 (en) | Distributed healthcare records management | |
JP7387705B2 (en) | Data usage method, system and its program using BCN (blockchain network) | |
WO2018152410A1 (en) | Records access and management | |
CN109741802A (en) | Data managing method, device, computer equipment and storage medium | |
JP2013101585A (en) | Device and method for information processing, and program | |
US20220414599A1 (en) | Remotely diagnosing conditions and providing prescriptions using a multi-access health care provider portal | |
CN106991292A (en) | A kind of health guidance method and system | |
WO2020082808A1 (en) | Pharmacy selection method, server, computer readable storage medium, and system | |
CN109522817B (en) | Patient hospitalization auditing method, block chain link point equipment and system | |
CN109448811A (en) | Checking prescription improved method, device, electronic equipment and storage medium | |
CN109522743A (en) | A kind of medical insurance bill auditing method, block chain node device and system | |
CN109584085B (en) | Medical insurance bill auditing method, block chain link point equipment and system | |
KR102110388B1 (en) | Method for operating connected personal health record service based on regional block chain | |
US20160125145A1 (en) | Apparatus, system and method for displaying medicine-taking information | |
CN109509532B (en) | Medicine dispensing method, server and system | |
CN109524082B (en) | Medicine dispensing method, server and system | |
CN109509105B (en) | Medicine taking certificate auditing method, server and system | |
KR102636838B1 (en) | DTx PLATFORM SYSTEM AND METHOD SUPPORTING CONTINUOUS PRESCRIPTION AND MULTI-HOSPITAL CONTINUOUS PRESCRIPTION | |
US20240013879A1 (en) | Medical system and computer program | |
WO2023194788A1 (en) | System and method for managing collection of medical data | |
TR201615046A2 (en) | Prescription information notification system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
TA01 | Transfer of patent application right |
Effective date of registration: 20220527 Address after: 518000 China Aviation Center 2901, No. 1018, Huafu Road, Huahang community, Huaqiang North Street, Futian District, Shenzhen, Guangdong Province Applicant after: Shenzhen Ping An medical and Health Technology Service Co.,Ltd. Address before: Room 12G, Block H, 666 Beijing East Road, Huangpu District, Shanghai 200000 Applicant before: PING AN MEDICAL AND HEALTHCARE MANAGEMENT Co.,Ltd. |
|
TA01 | Transfer of patent application right | ||
GR01 | Patent grant | ||
GR01 | Patent grant |