CN114329552B - Reservation method, block chain system, electronic device and computer readable medium - Google Patents

Reservation method, block chain system, electronic device and computer readable medium Download PDF

Info

Publication number
CN114329552B
CN114329552B CN202111627588.XA CN202111627588A CN114329552B CN 114329552 B CN114329552 B CN 114329552B CN 202111627588 A CN202111627588 A CN 202111627588A CN 114329552 B CN114329552 B CN 114329552B
Authority
CN
China
Prior art keywords
node
user
information
blood
hash value
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
Application number
CN202111627588.XA
Other languages
Chinese (zh)
Other versions
CN114329552A (en
Inventor
田新雪
肖征荣
李朝霞
马书惠
杨子文
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China United Network Communications Group Co Ltd
Original Assignee
China United Network Communications Group Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by China United Network Communications Group Co Ltd filed Critical China United Network Communications Group Co Ltd
Priority to CN202111627588.XA priority Critical patent/CN114329552B/en
Publication of CN114329552A publication Critical patent/CN114329552A/en
Application granted granted Critical
Publication of CN114329552B publication Critical patent/CN114329552B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Medical Treatment And Welfare Office Work (AREA)

Abstract

The invention discloses an appointment method, a block chain system, electronic equipment and a computer readable medium, which are used for solving the problems that the interests of patients cannot be guaranteed and the situation is disordered due to the complicated appointment process. The method comprises the following steps: the user node obtains a hash value according to the blood information and the identity identification information of the user through hash calculation and sends the hash value to the timestamp node; the time stamp node receives the hash value, signs the time when the hash value is received and the hash value by using a private key of the time stamp node, and sends the signed time and the hash value to the user node as signature information; the user node receives the signature information, packages the signature information, the blood information of the user and the blood demand information into broadcast information and broadcasts the broadcast information to the block chain system; and the blood bank node receives the broadcast information, verifies the signature information by using the public key of the time stamp node, and sends reservation confirmation information to the user node when the verification is passed and the blood bank corresponding to the blood bank node has blood meeting the requirement.

Description

Reservation method, block chain system, electronic device and computer readable medium
Technical Field
The invention relates to the technical field of block chains, in particular to a reservation method, a block chain system, electronic equipment and a computer readable medium.
Background
For patients who need platelet transfusion or hemoglobin transfusion for a long time, symptoms such as fatigue and syncope often appear when the hemoglobin is lower than 60, internal bleeding or external bleeding can appear when the hemoglobin is lower than 20, and even more serious conditions are that when the hemoglobin is lower than 10, cerebral bleeding can appear on the patients, thus endangering the lives of the patients.
In the conventional medical system, when a patient needs transfusion, particularly transfusion of platelets or transfusion of hemoglobin, the patient needs to carry a blood standard test order of the patient in the hospital or other hospitals recognized by the hospital, go to an emergency treatment or an outpatient clinic of a blood department for registration, wait for the doctor to call the number, then go to a nurse station with an order list for taking a blood sample, and send the blood sample to a blood bank of the hospital for ordering after the blood sample is taken.
And inquiring the existing hemoglobin or platelet in the blood bank by the blood bank doctor according to the blood sample information of the patient, and if the remaining blood samples which are not matched and have the same blood type with the patient exist in the blood bank, configuring the platelet or the hemoglobin for the hemoglobin or the platelet according to the blood sample information provided by the patient. If there are no remaining unpaired blood samples of the same blood type as the patient in the blood bank, the patient needs to wait for notification from the hospital blood bank to transfuse, platelet, or hemoglobin.
The whole process is from registering, seeing a doctor, paying, drawing blood sample, send blood sample to the blood bank, needs more than 3 hours at least, and the condition of an illness of many patients often can not support the patient and wait for this for a long time, once internal bleeding appears, patient's life can't be guaranteed.
Especially, the blood bank in the hospital has no residual blood sample which is not matched and has the same blood type with the patient, the patient continues to go to the second hospital to repeat the above process under the condition of fear of accidents until the blood bank in the first hospital has residual blood sample which is not matched and has the same blood type with the patient, when a nurse collects the blood sample, only the patient is present, the family members cannot substitute the blood sample, a large amount of time of the patient is wasted, and in the process of continuously going to the hospital for reservation, the life of the patient cannot be guaranteed.
Meanwhile, when blood peduncles meet, the benefits of patients cannot be guaranteed, and the blood peduncles insert troops at will, so that the situations of blood transfusion platelets or blood transfusion hemoglobin are seriously disordered, even the patients are injured and killed, and doctor-patient disputes are caused.
Disclosure of Invention
Therefore, the invention provides an appointment method, a block chain system, electronic equipment and a computer readable medium, which are used for solving the problems that the interests of patients cannot be guaranteed and situations are seriously disordered due to the complicated appointment process in the prior art.
In order to achieve the above object, a first aspect of the present invention provides a reservation method for a blockchain system including at least one user node, a timestamp node, and at least one blood bank node, the method including:
the user node obtains a first hash value according to blood information and identity information of a user through hash calculation, and sends the first hash value to the timestamp node;
the timestamp node receives the first hash value, signs the first time when the first hash value is received and the first hash value by using a private key of the timestamp node, and sends the signed first time and the signed first hash value serving as signature information to the user node;
the user node receives the signature information, packages the signature information, the blood information of the user and the blood demand information of the user into broadcast information and broadcasts the broadcast information to the block chain system;
and the blood bank node receives the broadcast information, verifies the signature information by using the public key of the timestamp node, and sends reservation confirmation information to the user node under the condition that the verification is passed and the blood bank corresponding to the blood bank node has blood meeting the blood requirement of the user.
Optionally, the blood information of the user includes hemoglobin and/or platelet number of the blood of the user, and blood type information of the user; the blood demand information of the user comprises the quantity of hemoglobin and/or platelets required by the user and the blood type required by the user.
Optionally, the sending, by the user node, the first hash value to the timestamp node includes: the user node encrypts the first hash value by using the public key of the timestamp node according to a preset algorithm, signs the encrypted first hash value by using the private key of the user node, and sends the signed first hash value to the timestamp node; the timestamp node receiving the first hash value comprises: the timestamp node verifies the received information by using the public key of the user node, and decrypts the received information by using the private key of the timestamp node according to a preset algorithm under the condition that the verification is passed, so as to obtain the first hash value; the time stamp node sending the signed first time and the first hash value as signature information to the user node includes: the time stamp node encrypts the signature information by using the public key of the user node according to a predetermined algorithm, signs the encrypted signature information by using the private key of the time stamp node, and sends the signed signature information to the user node; the user node receives the signature information, including: the user node verifies the received information by using the public key of the timestamp node, and decrypts the received information by using the private key of the user node according to a preset algorithm under the condition that the verification is passed, so as to obtain the signature information; the user node packs the signature information, the blood information of the user and the blood demand information of the user into broadcast information, and broadcasts the broadcast information to the block chain system, and the method comprises the following steps: the user node packs the signature information, the blood information of the user and the blood demand information of the user into broadcast information, signs the broadcast information by using a private key of the user node, and broadcasts the signed broadcast information to the block chain system; the blood bank node receiving the broadcast information comprises: and the blood bank node verifies the received information by using the public key of the user node, and acquires the broadcast information under the condition of passing the verification.
Optionally, the sending reservation confirmation information to the user node when the blood bank corresponding to the blood bank node passes the verification and blood meeting the blood requirement of the user exists includes: in the case of passing verification, the blood bank node extracts the first time and the blood demand of the user from the signature information; determining an appointment sequence of the user according to the first time, and determining whether blood meeting the blood requirement of the user exists in a blood bank corresponding to the blood bank node according to the appointment sequence and the blood requirement of the user; and sending reservation confirmation information to the user under the condition that the blood bank corresponding to the blood bank node has blood meeting the blood requirement of the user.
Optionally, the reservation confirmation information includes a payment type supported by a blood bank corresponding to the blood bank node, the identity information of the user, and address information of the blood bank corresponding to the blood bank node; after the blood bank node sends reservation confirmation information to the user node, the method further includes: under the condition that the user confirms and accepts the payment type supported by the blood bank corresponding to the blood bank node and the address information of the blood bank corresponding to the blood bank node, the user node encrypts the identity identification information of the user by using a preset algorithm to obtain a first encryption result and sends the first encryption result to the block chain system in a broadcasting mode; the blood bank node acquires the first encryption result, decrypts the first encryption result by using a preset algorithm to acquire the identity identification information of the user, and obtains a second hash value through hash calculation according to the blood information and the identity identification information of the user; and reserving blood corresponding to the blood requirement of the user under the condition that the second hash value is the same as the first hash value, and supplying the blood to a blood bank corresponding to the blood bank node for transfusion.
Optionally, the sending the first encryption result to the blockchain system in a broadcast manner includes:
the user node signs the first encryption result by using a private key of the user node, and sends the signed first encryption result to the block chain system in a broadcasting manner;
the blood bank node obtaining the first encryption result, including:
and the blood bank node verifies the received information by using the public key of the user node, and acquires the first encryption result under the condition of passing verification.
Optionally, the encrypting, by the user node, the identity information of the user using a predetermined algorithm to obtain a first encryption result includes: the user node encrypts the identity information of the user by using a private key of the user node according to a predetermined algorithm to obtain a first encryption result; the blood bank node decrypts the first encryption result by using a predetermined algorithm to obtain the identification information of the user, and the method comprises the following steps: and the blood bank node decrypts the first encryption result by using the public key of the user node according to a preset algorithm to obtain the identity information of the user.
A second aspect of the invention provides a blockchain system comprising at least one user node, a timestamp node, at least one blood bank node;
the user node is used for calculating blood information and identity identification information of a user through Hash calculation to obtain a first Hash value, and sending the first Hash value to the timestamp node;
the timestamp node is used for receiving the first hash value, signing the first time when the first hash value is received and the first hash value by using a private key of the timestamp node, and sending the signed first time and the signed first hash value to the user node as signature information;
the user node is further configured to receive the signature information, package the signature information, the blood information of the user, and the blood demand information of the user into broadcast information, and broadcast the broadcast information to the blockchain system;
and the blood bank node is used for receiving the broadcast information, verifying the signature information by using the public key of the timestamp node, and sending reservation confirmation information to the user node under the condition that the verification is passed and the blood bank corresponding to the blood bank node has blood meeting the blood requirement of the user.
In a third aspect of the present invention, there is provided an electronic apparatus comprising:
one or more processors;
a storage device having one or more programs stored thereon which, when executed by the one or more processors, cause the one or more processors to implement the above-described method;
one or more I/O interfaces connected between the processor and the memory and configured to enable information interaction between the processor and the memory.
In a fourth aspect of the invention, a computer-readable medium is provided, on which a computer program is stored, which program, when being executed by a processor, is adapted to carry out the above-mentioned method.
The reservation method, the block chain system, the electronic equipment and the computer readable medium in the embodiment of the invention are based on the block chain system, utilize the characteristic that the block chain cannot be tampered, avoid the black box operation in the reservation process, ensure the fairness of reserving the sequence of the blood transfusion platelet and the blood transfusion hemoglobin, avoid the situation confusion of the blood transfusion platelet or the blood transfusion hemoglobin, reduce the doctor-patient dispute and ensure the benefits of patients. Meanwhile, all blood bank nodes in the block chain system can receive the broadcast information sent by the user nodes, so that the user nodes can make an appointment at a plurality of blood banks simultaneously, time waste caused by repeated registration, outpatient service waiting, blood sample collection and blood bank appointment of a user in a plurality of hospitals is avoided, the efficiency of appointment of blood transfusion platelets and blood transfusion hemoglobin is improved, the time and energy of the user are saved, and the life safety of a patient is guaranteed to a certain extent.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the description serve to explain the principles of the invention and not to limit the invention.
Fig. 1 is a schematic diagram illustrating a block chain system according to an embodiment of the present invention;
fig. 2 is a schematic flowchart of a reservation method according to an embodiment of the present invention;
fig. 3 is a schematic flowchart illustrating a part of steps of a reservation method according to an embodiment of the present invention;
fig. 4 is a schematic flowchart illustrating a part of steps of a reservation method according to an embodiment of the present invention;
FIG. 5 is a block diagram of a block chain system according to an embodiment of the present invention;
fig. 6 is a schematic composition diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
The following detailed description of embodiments of the invention refers to the accompanying drawings. It should be understood that the detailed description and specific examples, while indicating the present invention, are given by way of illustration and explanation only, not limitation.
As used herein, the term "and/or" includes any and all combinations of one or more of the associated listed items.
The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used herein, the singular forms "a", "an" and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
When used herein, the terms "comprises," comprising, "and/or" comprising, "" 8230, "" made from 8230, "" specifying the presence of stated features, integers, steps, operations, elements, and/or components, do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
The embodiments of the invention may be described with reference to plan and/or cross-sectional views in idealized schematic representations of the invention. Accordingly, the example illustrations may be modified in accordance with manufacturing techniques and/or tolerances.
Unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art. It will be further understood that terms, such as those defined in commonly used dictionaries, should be interpreted as having a meaning that is consistent with their meaning in the context of the relevant art and the present invention and will not be interpreted in an idealized or overly formal sense unless expressly so defined herein.
In a first aspect, embodiments of the present invention provide a method of ordering primarily to assist a patient in ordering transfusions, particularly platelet transfusions, hemoglobin transfusions, and the like. The reservation method is used for a block chain system.
The block chain is a special distributed database, is a novel application mode of computer technologies such as distributed data storage, point-to-point transmission, a consensus mechanism, an encryption algorithm and the like, is essentially a decentralized database, can be written into and read from the block chain when any information needing to be stored, can be set up by anyone, is added into a block chain network to form a node, does not have a central node in the world of the block chain, and each node is equal and stores the whole database. You can write/read data to any node because all nodes will be synchronized last, ensuring that the blockchain is consistent.
In a narrow sense, the blockchain is a distributed account book which is a chain data structure formed by combining data blocks in a sequential connection mode according to a time sequence and is guaranteed in a cryptographic mode and cannot be tampered and forged. Broadly, blockchain technology is a completely new distributed infrastructure and computing paradigm that utilizes blockchain data structures to authenticate and store data, distributed node consensus algorithms to generate and update data, cryptography to secure data transmission and access, and intelligent contracts composed of automated script code to program and manipulate data.
The block chain is a series of data blocks which are generated by using a cryptographic method in a correlation mode, and each data block contains information of one bitcoin network transaction for verifying the validity (anti-counterfeiting) of the information and generating a next block, so that the information of the block chain is not falsifiable and has high safety.
Fig. 1 is a schematic diagram illustrating a block chain system according to an embodiment of the present invention.
Referring to fig. 1, a block chain system according to an embodiment of the present invention includes at least one user node, a timestamp node, and at least one blood bank node.
The timestamp node is a node used for stamping a timestamp for information as the name implies, and specifically can be a server and can stamp the information according to the time for receiving the information; the user node is a block chain link point corresponding to a user (namely, a patient needing platelet transfusion or hemoglobin transfusion), and the user can access the block chain system through a terminal (such as a mobile phone) to become the user node; the blood bank node is a node corresponding to a blood bank, different blood bank nodes correspond to different blood banks, and one blood bank node usually corresponds to only one blood bank.
Since there is more than one user and blood bank, a block chain system often includes multiple user nodes and multiple blood bank nodes.
Fig. 2 is a schematic flowchart of a reservation method according to an embodiment of the present invention.
Referring to fig. 2, a reservation method according to an embodiment of the present invention specifically includes:
s201, the user node obtains a first hash value according to the blood information and the identity information of the user through hash calculation, and sends the first hash value to the timestamp node.
A user accesses the blockchain system through a terminal (such as a mobile phone) to become a user node of the blockchain system, calculates a hash value (namely a first hash value) from own blood information and identity identification information obtained by blood drawing and testing through hash calculation, and sends the first hash value to a timestamp node.
The blood information of the user includes hemoglobin or platelet amount in blood of the user (when the user needs to transfuse platelets, the blood information of the user includes platelet amount in blood of the user, and when the user needs to transfuse hemoglobin, the blood information of the user includes hemoglobin amount in blood of the user), and blood type information of the user (such as specific blood type of the user).
The identification information of the user may be an identification number of the user.
In some embodiments, the user node sends the first HASH value HASH _ a to the timestamp node in a public key encryption and private key signature manner, so as to ensure the security of information transmission, prevent information leakage, and protect user privacy.
That is, the sending, by the user node, the first HASH value HASH _ a to the timestamp node specifically includes: the user node encrypts the first HASH value HASH _ A by using the public key of the timestamp node according to a preset algorithm, signs the encrypted first HASH value HASH _ A by using the private key of the user node, and sends the signed first HASH value HASH _ A to the timestamp node.
S202, the timestamp node receives the first hash value, signs the first time when the first hash value is received and the first hash value by using a private key of the timestamp node, and sends the signed first time and the signed first hash value to the user node as signature information.
The time stamp node of the block chain system receives the first HASH value HASH _ A sent by the user node, signs the first time of the received first HASH value HASH _ A and the first HASH value HASH _ A together by using a private key of the time stamp node, and sends the signed first time and the first HASH value HASH _ A as signature information to the user node.
When the first HASH value HASH _ a received by the timestamp node is encrypted by using the public key of the timestamp node for the user node, and the private key of the user node is used for signing the first HASH value HASH _ a, after the timestamp node receives the first HASH value HASH _ a, firstly, the public key of the user node in the block chain account book stored in the timestamp node is inquired according to the block chain identifier of the user node (specifically, the terminal identifier of the terminal used by the user), and the signature of the received information is verified by using the public key of the user node. And under the condition that the verification is passed, the time stamp node decrypts the received information by using a private key of the time stamp node according to a preset algorithm to obtain a first HASH value HASH _ A.
In some embodiments, the timestamp node also encrypts the information by using a public key and sends the first HASH value HASH _ a and the first time to the user node in a private key signature manner, so that the security of information transmission is ensured, information leakage is prevented, and the privacy of a user is protected.
That is to say, the sending, by the timestamp node, the signed first time and the first HASH value HASH _ a to the user node as the signature information specifically includes: the time stamp node encrypts the signature information by using the public key of the user node according to a preset algorithm, then uses the private key of the time stamp node to sign, and sends the signed signature information to the user node.
And S203, the user node receives the signature information, packages the signature information, the blood information of the user and the blood demand information of the user into broadcast information and broadcasts the broadcast information to the block chain system.
And the user node receives the signature information sent by the timestamp node, packages the blood information of the user and the blood demand information of the user into broadcast information and broadcasts the broadcast information to the block chain system.
The blood demand information of the user comprises the number of hemoglobin or platelets required by the user and the blood type information of the user.
When the signature information received by the user node is signature information obtained by encrypting the timestamp node by using the public key of the user node and signing by using the private key of the timestamp node, the user node verifies the private key signature of the received signature information by using the public key of the timestamp node after receiving the signature information. And under the condition that the verification is passed, the user node decrypts the received information by using the private key of the user node according to a preset algorithm to obtain signature information, namely the first time signed by using the private key of the time stamp node and the first HASH value HASH _ A.
In some embodiments, the user node broadcasts the broadcast information in a private key signature manner, so as to ensure the security of information transmission, prevent information leakage, and protect user privacy.
That is to say, the receiving of the signature information by the user node, and packaging the signature information, the blood information of the user, and the blood requirement information of the user into broadcast information, and broadcasting into the block chain system specifically includes: and the user node packs the signature information, the blood information of the user and the blood demand information of the user into broadcast information, signs the broadcast information according to a private key of the user node, and broadcasts the signed broadcast information to the block chain system.
And S204, the blood bank node receives the broadcast information, verifies the signature information by using the public key of the time stamp node, and sends reservation confirmation information to the user node under the condition that the verification is passed and the blood bank corresponding to the blood bank node has blood meeting the blood requirement of the user.
The user node broadcasts the broadcast information to the block chain system in a broadcast mode, so that all blood bank nodes in the block chain system can receive the broadcast information, after receiving the broadcast information, the public key of the timestamp node is used for verifying signature information in the broadcast information for each blood bank node, and under the condition that the verification is passed, the blood bank nodes inquire whether blood meeting the blood requirement of the user exists in a blood bank corresponding to the blood bank nodes or not according to the blood requirement information of the user in the broadcast information, and if the blood bank nodes exist, the blood bank nodes send reservation confirmation information to the user node for the user to confirm whether transfusion of hemoglobin or platelets in the blood bank corresponding to the blood bank nodes is scheduled or not.
When the broadcast information received by the blood bank node is the broadcast information signed by the user node by using the private key of the user node, the blood bank node verifies the private key signature of the received broadcast information by using the public key of the user node after receiving the broadcast information, and under the condition that the verification is passed, the blood bank node acquires the blood information of the user, the blood demand information of the user, the first time signed by using the private key of the timestamp node and the first HASH value HASH _ A.
The blood bank node also signs the reservation information by using a private key of the blood bank node, and sends the signed reservation information to the user node.
The reservation method provided by the embodiment of the invention is based on the block chain, utilizes the characteristic that the block chain cannot be tampered, avoids the detailed operation in the reservation process, ensures the fairness of the sequence of reserving the blood transfusion platelet and the blood transfusion hemoglobin, avoids the situation confusion of the blood transfusion platelet or the blood transfusion hemoglobin, reduces the medical dispute and ensures the benefit of the patient.
Meanwhile, all blood bank nodes in the block chain can receive the broadcast information sent by the user node, so that the user node can make an appointment at a plurality of blood banks simultaneously, time waste caused by repeated registration, outpatient service waiting, blood sample collection and blood bank appointment of a user in a plurality of hospitals is avoided, the time and energy of the user are saved while the efficiency of appointment of blood transfusion platelets and blood transfusion hemoglobin is improved, internal bleeding caused by the waiting time process and the occurrence of hospital infection caused by a plurality of running hospitals are avoided, and the life safety of a patient is ensured to a certain extent.
In some embodiments, the blood bank node takes the first time as the time of the user queue, queries the blood bank according to the user queue time, and sends the reservation information to the user node.
Specifically, referring to fig. 3, in the case where the blood bank corresponding to the blood bank node passes the verification and blood satisfying the blood demand of the user exists, the transmitting the reservation confirmation information to the user node (step S204) includes:
and S301, under the condition that the verification is passed, the blood bank node extracts the first time and the blood requirement of the user from the signature information.
And the blood bank node verifies the signature information in the broadcast information by using the public key of the time stamp node, and when the verification is passed, the blood bank node acquires the first time in the signature information, and the first time is used as the time of queuing the user (namely the time of reserving the platelet or hemoglobin by the user).
S302, determining the reservation sequence of the user according to the first time, and determining whether blood meeting the blood requirement of the user exists in the blood bank corresponding to the blood bank node according to the reservation sequence and the blood requirement of the user.
The blood bank node inquires whether blood meeting the blood requirement of the user exists in the blood bank corresponding to the blood bank node according to the sequence of the reservation time of the user reserved in the blood bank node (the user with the previous reservation time has the priority of using platelets or hemoglobin) and the blood requirement information of the user in the broadcast information.
And S303, sending reservation confirmation information to the user when the blood bank corresponding to the blood bank node contains blood meeting the blood requirement of the user.
And if the blood bank corresponding to the blood bank node contains blood meeting the blood requirement of the user, the blood bank node sends reservation confirmation information to the user node, so that the user can confirm whether the blood bank corresponding to the blood bank node is reserved for transfusion of hemoglobin or platelets.
The first time is the time when the timestamp node receives the first HASH value HASH _ A, and the private key of the timestamp node is used for signing, so that the blood bank node uses the first time as the user queuing time, and objective, fair and reasonable user queuing time can be guaranteed.
Meanwhile, as the blood bank node receives the first time and uses the first time of the private key signature of the time stamp node, the openness and traceability of the block chain can ensure the authenticity of the first time, and the blood vendor is prevented from using false time queue.
In some embodiments, the reservation information sent by the blood bank node to the user node includes a payment type supported by the blood bank corresponding to the blood bank node, identification information of the user, and address information of the blood bank corresponding to the blood bank node.
The payment type supported by the blood bank corresponding to the blood bank node may specifically be whether the blood bank supports medical insurance or not.
Then, referring to fig. 4, the blood bank node receives the broadcast information, verifies the signature information using the public key of the time stamp node, and transmits reservation confirmation information to the user node (step S204) when the verification is passed and the blood bank corresponding to the blood bank node has blood satisfying the blood demand of the user, the method further includes:
s401, under the condition that the user confirms that the payment type supported by the blood bank corresponding to the blood bank node is accepted and the address information of the blood bank corresponding to the blood bank node is received, the user node encrypts the identity identification information of the user by using a preset algorithm to obtain a first encryption result and sends the first encryption result to the block chain system in a broadcasting mode.
The user node receives the reservation information sent by the blood bank node, so that the user can confirm whether to accept the payment type supported by the blood bank corresponding to the blood bank node (such as the blood bank supports or does not support medical insurance payment) and the address of the blood bank corresponding to the blood bank node (such as whether the blood bank is too far away).
In some embodiments, the reservation information received by the user node is the reservation information signed by using a private key of the blood bank node, and the user node verifies the received information by using a public key of the blood bank node, and acquires the reservation information if the verification is passed.
Under the condition that a user confirms that the payment type supported by the blood bank corresponding to the blood bank node is received and the address information of the blood bank corresponding to the blood bank node is received, the user node encrypts the identity identification information of the user by using a preset algorithm to obtain a first encryption result, and the first encryption result is sent to a block chain system in a broadcasting mode to be acquired by the blood bank node.
The first encryption result obtained by encrypting, by the user node, the identity information of the user according to the predetermined algorithm may specifically be that the user node encrypts, by using a private key of the user node, the identity information of the user according to the predetermined algorithm to obtain the first encryption result.
In some embodiments, when the user node sends the first encryption result to the blood bank node, the user node also uses the private key to sign, that is, the user node signs the first encryption result with the private key of the user node, and sends the signed first encryption result to the blockchain system in a broadcast manner.
It should be emphasized that the user node may receive the reservation information sent by the plurality of blood bank nodes, and only sends the first encryption result to the blood bank node selected by the user, and the other blood bank nodes do not receive the first encryption result sent by the user node within a certain time, and then confirm that the user gives up the reservation in the corresponding blood bank.
S402, the blood bank node obtains a first encryption result, decrypts the first encryption result by using a preset algorithm to obtain the identity information of the user, and obtains a second hash value through hash calculation according to the blood information and the identity information of the user.
The blood bank node acquires a first encryption result sent by the user node, and decrypts the first encryption result by using a preset algorithm to acquire the identity information of the user.
In some embodiments, the first encryption result received by the blood bank node is the first encryption result signed by using the private key of the user node, and then the blood bank node verifies the received information by using the public key of the user node, and if the verification is passed, the first encryption result is obtained.
In some embodiments, the user node encrypts the identification information of the user by using a private key of the user node according to a predetermined algorithm to obtain a first encryption result, and when the blood bank node decrypts the first encryption result, the blood bank node also decrypts by using a public key of the user node according to the predetermined algorithm to obtain the identification information of the user.
After the blood bank node acquires the user's identification information, a second HASH value HASH _ A1 is obtained through HASH calculation according to the previously acquired user's blood information and the user's identification information acquired this time.
And S403, reserving blood corresponding to the blood requirement of the user under the condition that the second hash value is the same as the first hash value, and supplying the blood to the blood bank corresponding to the blood bank node for transfusion.
Comparing the first HASH value HASH _ A with the second HASH value HASH _ A1 by the blood bank node, if the two values are equal, the appointment is real, the blood bank node appoints blood corresponding to the blood requirement of the user, and the blood platelets or hemoglobin are configured according to the blood requirement of the user (mainly the number of the blood platelets or hemoglobin required by the user) for the user to go to the blood bank corresponding to the blood bank node for platelet transfusion or hemoglobin transfusion.
The first HASH value HASH _ a is calculated by using the blood information of the user and the identification information of the user, so that the uniqueness of the first HASH value HASH _ a is ensured, and therefore, the blood bank can check the authenticity and uniqueness of the received blood demand information by using the first HASH value HASH _ a. The second HASH value HASH _ A1 is obtained by calculating a HASH value by using the user identification information sent by the user node and the user blood information acquired before, and if the first HASH value HASH _ a is equal to the second HASH value HASH _ A1, it indicates that the user identification information and the user blood information are consistent with the information reserved before, and the reservation is true and credible.
The comparison between the first HASH value HASH _ A and the second HASH value HASH _ A1 avoids that a blood vendor makes an advance reservation with own identification information, and then allows other people to use the reservation to perform platelet transfusion or hemoglobin transfusion (the identification of the blood vendor and the final platelet transfusion or hemoglobin transfusion person is obviously different, so that the first HASH value HASH _ A and the second HASH value HASH _ A1 obtained in the way are obviously different), thereby guaranteeing the benefits of patients.
The steps of the above methods are divided for clarity, and the implementation may be combined into one step or split some steps, and the steps are divided into multiple steps, so long as the same logical relationship is included, which are all within the protection scope of the present patent; it is within the scope of this patent to add insignificant modifications or introduce insignificant designs to the algorithms or processes, but not to change the core designs of the algorithms and processes.
In a second aspect, referring to fig. 5, an embodiment of the present invention provides a blockchain system, where the blockchain system includes at least one user node, a timestamp node, and at least one blood bank node;
the user node is used for calculating blood information and identity identification information of a user through Hash calculation to obtain a first Hash value, and sending the first Hash value to the timestamp node;
the time stamp node is used for receiving the first hash value, signing the first time when the first hash value is received and the first hash value by using a private key of the time stamp node, and sending the signed first time and the signed first hash value to the user node as signature information;
the user node is also used for receiving the signature information, packaging the signature information, the blood information of the user and the blood demand information of the user into broadcast information and broadcasting the broadcast information to the block chain system;
the blood bank node is used for receiving the broadcast information, verifying the signature information by using the public key of the time stamp node, and sending reservation confirmation information to the user node under the condition that the verification is passed and the blood bank corresponding to the blood bank node has blood meeting the blood requirement of the user.
It is to be understood that this invention is not limited to the particular arrangements and instrumentalities shown in the attached drawings. For convenience and brevity of description, detailed description of a known method is omitted here, and for the specific working processes of the system, the module and the unit described above, reference may be made to corresponding processes in the foregoing method embodiments, which are not described herein again.
Referring to fig. 6, an embodiment of the present invention provides an electronic device, including:
one or more processors 601;
a memory 602 having one or more programs stored thereon that, when executed by the one or more processors, cause the one or more processors to implement the reservation method of any of the above;
one or more I/O interfaces 603 coupled between the processor and the memory, configured to enable information interaction between the processor and the memory.
The processor 601 is a device with data processing capability, which includes but is not limited to a Central Processing Unit (CPU), etc.; memory 602 is a device having data storage capabilities including, but not limited to, random access memory (RAM, more specifically SDRAM, DDR, etc.), read Only Memory (ROM), electrically Erasable Programmable Read Only Memory (EEPROM), FLASH memory (FLASH); an I/O interface (read/write interface) 603 is coupled between the processor 601 and the memory 602, and can enable information interaction between the processor 601 and the memory 602, which includes but is not limited to a data Bus (Bus) and the like.
In some embodiments, the processor 601, memory 602, and I/O interface 603 are interconnected via a bus, which in turn connects to other components of the computing device.
The present embodiment further provides a computer readable medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the reservation method provided in the present embodiment, and in order to avoid repeated descriptions, specific steps of the reservation method are not described herein again.
It will be understood by those of ordinary skill in the art that all or some of the steps of the above inventive method, systems, functional modules/units in the apparatus may be implemented as software, firmware, hardware, and suitable combinations thereof. In a hardware implementation, the division between functional modules/units mentioned in the above description does not necessarily correspond to the division of physical components; for example, one physical component may have multiple functions, or one function or step may be performed by several physical components in cooperation. Some or all of the physical components may be implemented as software executed by a processor, such as a central processing unit, digital signal processor, or microprocessor, or as hardware, or as an integrated circuit, such as an application specific integrated circuit. Such software may be distributed on computer readable media, which may include computer storage media (or non-transitory media) and communication media (or transitory media). The term computer storage media includes volatile and nonvolatile, removable and non-removable media implemented in any method or technology for storage of information such as computer readable instructions, data structures, program modules or other data, as is well known to those of ordinary skill in the art. Computer storage media includes, but is not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital Versatile Disks (DVD) or other optical disk storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other medium which can be used to store the desired information and which can be accessed by a computer. In addition, communication media typically embodies computer readable instructions, data structures, program modules or other data in a modulated data signal such as a carrier wave or other transport mechanism and includes any information delivery media as is well known to those skilled in the art.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrases "comprising a component of' 8230; \8230;" does not exclude the presence of another like element in a process, method, article, or apparatus that comprises the element.
Those skilled in the art will appreciate that although some embodiments described herein include some features included in other embodiments, not others, combinations of features of different embodiments are meant to be within the scope of the embodiments and form different embodiments.
It will be understood that the above embodiments are merely exemplary embodiments taken to illustrate the principles of the present invention, which is not limited thereto. It will be apparent to those skilled in the art that various modifications and improvements can be made without departing from the spirit and scope of the invention, and such modifications and improvements are also considered to be within the scope of the invention.

Claims (10)

1. A reservation method for a blockchain system comprising at least one user node, a timestamp node, at least one blood bank node, the method comprising:
the user node obtains a first hash value according to blood information and identity information of a user through hash calculation, and sends the first hash value to the timestamp node;
the timestamp node receives the first hash value, signs the first time when the first hash value is received and the first hash value by using a private key of the timestamp node, and sends the signed first time and the signed first hash value to the user node as signature information;
the user node receives the signature information, packages the signature information, the blood information of the user and the blood demand information of the user into broadcast information and broadcasts the broadcast information to the block chain system;
and the blood bank node receives the broadcast information, verifies the signature information by using the public key of the time stamp node, and sends reservation confirmation information to the user node under the condition that the verification is passed and the blood bank corresponding to the blood bank node has blood meeting the blood requirement of the user.
2. The method of claim 1,
the blood information of the user comprises the number of hemoglobin and/or platelets of the blood of the user and the blood type information of the user;
the blood demand information of the user comprises the quantity of hemoglobin and/or platelets required by the user and the blood type required by the user.
3. The method of claim 1,
the user node sending the first hash value to the timestamp node comprises:
the user node encrypts the first hash value by using the public key of the timestamp node according to a preset algorithm, signs the encrypted first hash value by using the private key of the user node, and sends the signed first hash value to the timestamp node;
the timestamp node receiving the first hash value comprises:
the timestamp node verifies the received information by using the public key of the user node, and decrypts the received information by using the private key of the timestamp node according to a predetermined algorithm under the condition that the verification is passed, so as to obtain the first hash value;
the time stamp node sending the signed first time and the first hash value as signature information to the user node includes:
the timestamp node encrypts the signature information by using the public key of the user node according to a preset algorithm, signs the encrypted signature information by using the private key of the timestamp node, and sends the signed signature information to the user node;
the user node receives the signature information, including:
the user node verifies the received information by using the public key of the timestamp node, and decrypts the received information by using the private key of the user node according to a preset algorithm under the condition that the verification is passed, so as to obtain the signature information;
the user node packs the signature information, the blood information of the user and the blood demand information of the user into broadcast information, and broadcasts the broadcast information to the block chain system, and the method comprises the following steps:
the user node packs the signature information, the blood information of the user and the blood demand information of the user into broadcast information, signs the broadcast information by using a private key of the user node, and broadcasts the signed broadcast information to the block chain system;
the blood bank node receiving the broadcast information comprises:
and the blood bank node verifies the received information by using the public key of the user node, and acquires the broadcast information under the condition of passing the verification.
4. The method of claim 1, wherein the sending reservation confirmation information to the user node in case that the blood bank corresponding to the blood bank node passes the verification and has blood meeting the blood requirement of the user comprises:
in the case of verification passing, the blood bank node extracting the first time and the blood demand of the user from the signature information;
determining an appointment sequence of the user according to the first time, and determining whether blood meeting the blood requirement of the user exists in a blood bank corresponding to the blood bank node according to the appointment sequence and the blood requirement of the user;
and sending reservation confirmation information to the user under the condition that the blood bank corresponding to the blood bank node has blood meeting the blood requirement of the user.
5. The method of claim 1, wherein the appointment confirmation information comprises payment types supported by a blood bank corresponding to the blood bank node, identification information of the user, address information of the blood bank corresponding to the blood bank node;
after the blood bank node sends reservation confirmation information to the user node, the method further includes:
under the condition that the user confirms and accepts the payment type supported by the blood bank corresponding to the blood bank node and the address information of the blood bank corresponding to the blood bank node, the user node encrypts the identity identification information of the user by using a preset algorithm to obtain a first encryption result and sends the first encryption result to the block chain system in a broadcasting mode;
the blood bank node acquires the first encryption result, decrypts the first encryption result by using a preset algorithm to acquire the identity identification information of the user, and obtains a second hash value through hash calculation according to the blood information and the identity identification information of the user;
and under the condition that the second hash value is the same as the first hash value, reserving blood corresponding to the blood requirement of the user, and supplying the blood to a blood bank corresponding to the blood bank node by the user for transfusion.
6. The method of claim 5,
the sending the first encryption result to the blockchain system in a broadcast manner comprises:
the user node signs the first encryption result by using a private key of the user node, and sends the signed first encryption result to the block chain system in a broadcasting manner;
the blood bank node obtaining the first encryption result, including:
and the blood bank node verifies the received information by using the public key of the user node, and acquires the first encryption result under the condition of passing verification.
7. The method of claim 5,
the user node encrypts the identity information of the user by using a predetermined algorithm to obtain a first encryption result, and the first encryption result comprises the following steps:
the user node encrypts the identity information of the user by using a private key of the user node according to a predetermined algorithm to obtain a first encryption result;
the blood bank node decrypts the first encryption result by using a predetermined algorithm to obtain the identity information of the user, and the method comprises the following steps:
and the blood bank node decrypts the first encryption result by using the public key of the user node according to a preset algorithm to obtain the identity information of the user.
8. A blockchain system, the blockchain system comprising at least one user node, a timestamp node, at least one blood bank node;
the user node is used for calculating blood information and identity identification information of a user through Hash calculation to obtain a first Hash value, and sending the first Hash value to the timestamp node;
the timestamp node is used for receiving the first hash value, signing the first time when the first hash value is received and the first hash value by using a private key of the timestamp node, and sending the signed first time and the signed first hash value to the user node as signature information;
the user node is also used for receiving the signature information, packaging the signature information, the blood information of the user and the blood demand information of the user into broadcast information, and broadcasting the broadcast information to the block chain system;
and the blood bank node is used for receiving the broadcast information, verifying the signature information by using the public key of the timestamp node, and sending reservation confirmation information to the user node under the condition that the verification is passed and the blood bank corresponding to the blood bank node has blood meeting the blood requirement of the user.
9. An electronic device, comprising:
one or more processors;
storage, having one or more programs stored thereon, which when executed by the one or more processors, cause the one or more processors to implement the method of any of claims 1-7;
one or more I/O interfaces connected between the processor and the memory and configured to enable information interaction between the processor and the memory.
10. A computer-readable medium, on which a computer program is stored which, when being executed by a processor, carries out the method according to any one of claims 1-7.
CN202111627588.XA 2021-12-28 2021-12-28 Reservation method, block chain system, electronic device and computer readable medium Active CN114329552B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111627588.XA CN114329552B (en) 2021-12-28 2021-12-28 Reservation method, block chain system, electronic device and computer readable medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111627588.XA CN114329552B (en) 2021-12-28 2021-12-28 Reservation method, block chain system, electronic device and computer readable medium

Publications (2)

Publication Number Publication Date
CN114329552A CN114329552A (en) 2022-04-12
CN114329552B true CN114329552B (en) 2023-01-17

Family

ID=81015174

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111627588.XA Active CN114329552B (en) 2021-12-28 2021-12-28 Reservation method, block chain system, electronic device and computer readable medium

Country Status (1)

Country Link
CN (1) CN114329552B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107147501A (en) * 2017-06-27 2017-09-08 中国联合网络通信集团有限公司 Timestamp processing method and processing device
CN109905874A (en) * 2019-01-04 2019-06-18 中国联合网络通信集团有限公司 The method and system of the autonomous number of selecting based on block chain
CN110351363A (en) * 2019-07-12 2019-10-18 全链通有限公司 Data back up method, equipment and computer readable storage medium

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107147501A (en) * 2017-06-27 2017-09-08 中国联合网络通信集团有限公司 Timestamp processing method and processing device
CN109905874A (en) * 2019-01-04 2019-06-18 中国联合网络通信集团有限公司 The method and system of the autonomous number of selecting based on block chain
CN110351363A (en) * 2019-07-12 2019-10-18 全链通有限公司 Data back up method, equipment and computer readable storage medium

Also Published As

Publication number Publication date
CN114329552A (en) 2022-04-12

Similar Documents

Publication Publication Date Title
ES2589050T3 (en) Procedure to read attributes of an ID token
CN110931093A (en) Medical information sharing system and method
CN110148475A (en) A kind of Medical data sharing method, apparatus, readable storage medium storing program for executing and server
CN110086608A (en) User authen method, device, computer equipment and computer readable storage medium
JP7005102B2 (en) Data usage, systems and programs using BCN (Blockchain Network)
Yen et al. Two RFID-based solutions for secure inpatient medication administration
WO2009001317A1 (en) Secure authentication of electronic prescriptions
CN110910978B (en) Information processing method and related device applied to blockchain network
CN110635913A (en) Electronic prescription verification method and device
US20090064271A1 (en) Filtering policies for data aggregated by an esb
US20150254423A1 (en) Computer-based prescription system for medicaments
CN112700251A (en) Identity confirmation method, device and system in financial scene
US20240275600A1 (en) Secure element, method for registering tokens, and token reference register
JP2016149086A (en) Biometric authentication platform system, biometric authentication information management apparatus, biometric authentication information management method, and biometric authentication information management program
CN110535958B (en) Health information storage method and related equipment
CN110224989B (en) Information interaction method and device, computer equipment and readable storage medium
CN114944937A (en) Distributed digital identity verification method, system, electronic device and storage medium
CN114329552B (en) Reservation method, block chain system, electronic device and computer readable medium
US20220109986A1 (en) Identity management on a mobile device
CN110120254B (en) Medical data storage and sharing method
CN114422109B (en) Information encryption method, device, server and medium
WO2016129445A1 (en) Biometric authentication platform system, biometric authentication information management device, biometric authentication information management method, and biometric authentication information management program
CN114141345B (en) Medical information processing method, operator node, hospital node and system
CN114334110B (en) Reservation method, block chain system, electronic device and computer readable medium
CN111968720A (en) Electronic prescription system based on dual authentication

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
GR01 Patent grant
GR01 Patent grant