Electronic prescription signature method and device based on blockchain

Through the blockchain-based electronic prescription signature method, identity verification and handwritten signature authentication are used, combined with private key signature and blockchain storage, the problem of easy forgery and tampering of traditional electronic prescription signatures is solved, achieving higher security and credibility have enhanced transparency and trust in the medical industry.

CN118214560BActive Publication Date: 2024-12-17BEIJING HAOXINQING MOBILE MEDICAL TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410121823.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-01-29
Publication Date
2024-12-17
Estimated Expiration
2044-01-29

AI Technical Summary

Technical Problem

Traditional electronic prescription signatures have problems such as easy forgery and tampering, resulting in low medical security. Existing digital signatures and timestamps cannot guarantee the real-time and credibility of the prescription.

Method used

Using blockchain-based electronic prescription signature method, verify and authenticate by obtaining the doctor's identity and handwritten signature, signing electronic prescriptions using private keys, and distribute the signature data through the blockchain network to ensure signatures immutability and traceability.

Benefits of technology

It improves the safety and credibility of electronic prescriptions, prevents signatures from being tampered with, enhances the authenticity and legality of prescriptions, reduces the risks of medical disputes, and enhances the transparency and trust of the medical industry.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118214560B_ABST
    Figure CN118214560B_ABST
Patent Text Reader

Abstract

The present invention provides a blockchain-based electronic prescription signing method and device, comprising: after receiving an electronic prescription uploaded by a doctor, obtaining the doctor's identity and verifying the doctor's identity; after the verification is passed, obtaining a handwritten signature uploaded together with the electronic prescription, authenticating the handwritten signature, and generating authentication information of the handwritten signature; matching the doctor's private key based on the identity, signing the electronic prescription with the private key, and obtaining an electronic signature of the electronic prescription; distributing and storing the prescription information and signature data of the signed electronic prescription through a blockchain network, the signature data including the electronic signature and the authentication information, storing the electronic signature and the authentication information of the handwritten signature through the blockchain network, thereby improving the security of the electronic prescription and preventing the electronic signature of the electronic prescription from being tampered with.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of electronic signatures, and in particular to a blockchain-based electronic prescription signature method and device. Background Art

[0002] With the rapid development of medical information technology, electronic prescriptions have become an important part of the medical field. However, there are many problems with traditional electronic prescription signatures, such as easy forgery and tampering, which poses a great challenge to medical safety. Therefore, how to ensure the authenticity and security of electronic prescriptions has become an urgent problem to be solved.

[0003] Existing technical solutions such as digital signatures and timestamps are used to sign electronic prescriptions. However, these technical solutions have some problems. For example, digital signatures are easily tampered with, and timestamps cannot guarantee the real-time and credibility of prescriptions. Therefore, a more secure, reliable, and traceable electronic prescription signature solution is needed. Summary of the invention

[0004] The present invention provides a blockchain-based electronic prescription signature method and device to solve the defect of low security of electronic signatures in electronic prescriptions in the prior art.

[0005] The present invention provides an electronic prescription signature method based on blockchain, and the electronic prescription signature method comprises:

[0006] After receiving the electronic prescription uploaded by the doctor, obtaining the doctor's identity and verifying the doctor's identity;

[0007] After the verification is passed, the handwritten signature uploaded together with the electronic prescription is obtained, and the handwritten signature is authenticated to generate authentication information of the handwritten signature;

[0008] Matching the doctor's private key based on the identity identifier, signing the electronic prescription with the private key, and obtaining an electronic signature of the electronic prescription;

[0009] The prescription information and signature data of the signed electronic prescription are distributedly stored through a blockchain network, and the signature data includes the electronic signature and the authentication information.

[0010] According to a blockchain-based electronic prescription signature method provided by the present invention, the preprocessing of the original data includes:

[0011] After receiving the electronic prescription uploaded by the doctor, obtaining the doctor's identity information and before verifying the doctor's identity information, including:

[0012] Receiving the certificate images uploaded by the doctor through the terminal, the certificate images including the front and back images of the identity card and professional qualification certificate;

[0013] Extracting certificate information from the certificate image;

[0014] Comparing the certificate information with information in a preset authoritative database;

[0015] If the certificate information is consistent with the information in the preset authoritative database, the identity identification is issued to the doctor;

[0016] If the certificate information is inconsistent with the information in the preset authoritative database, a verification failure instruction and the reason for the verification failure are returned.

[0017] According to a blockchain-based electronic prescription signing method provided by the present invention, the obtaining of a handwritten signature uploaded together with the electronic prescription, authenticating the handwritten signature, and generating authentication information of the handwritten signature include:

[0018] Perform CA authentication on the handwritten signature to generate the authentication information of the handwritten signature.

[0019] According to a blockchain-based electronic prescription signing method provided by the present invention, after signing the electronic prescription by using the private key and the handwritten signature, and distributing and storing the prescription information and signature data of the signed electronic prescription through a blockchain network, the method further includes:

[0020] Generate a prescription ID of the electronic prescription and prescription information of the electronic prescription, and store the prescription ID and the prescription information in the blockchain network;

[0021] The prescription information includes at least one of the following information:

[0022] Basic information of doctors and patients:

[0023] Name of doctor and hospital where he / she practices;

[0024] Patient's name, gender, age, and ID number;

[0025] Patient visit records and medical history information;

[0026] Prescription basic information:

[0027] Date and time of prescription;

[0028] Diagnosis and condition overview;

[0029] Purpose of prescription and reason for medication;

[0030] the expected effects and possible risks of the drug;

[0031] Prescription drugs and dosage:

[0032] The name, dosage form, strength, and quantity of each drug listed in the prescription;

[0033] Route of administration;

[0034] Drug usage;

[0035] Drug dosage.

[0036] According to a blockchain-based electronic prescription signing method provided by the present invention, the method further includes:

[0037] receiving a request for modification of an electronic prescription and receiving a modified electronic prescription;

[0038] Extract whether the signature information of the modified electronic prescription is consistent with the signature information of the electronic signature stored in the blockchain network;

[0039] If they are consistent, the modification of the electronic prescription is agreed, and the modified electronic prescription is stored in the blockchain network;

[0040] If there is any inconsistency, the electronic prescription modification request will be rejected.

[0041] According to a blockchain-based electronic prescription signing method provided by the present invention, the method further includes:

[0042] Upon receiving an electronic prescription acquisition request sent by a patient or a medical institution, the electronic prescription is issued to the patient or the medical institution, and the blockchain record carried by the issued electronic prescription is obtained;

[0043] Extracting the authentication information and the electronic signature from the blockchain record;

[0044] Determine whether the CA authentication information and electronic signature in the signature data are consistent with the authentication information and electronic signature stored in the blockchain network;

[0045] If yes, the electronic prescription has not been tampered with, and the electronic prescription issuance process is completed;

[0046] If not, an electronic prescription tampering warning message is sent.

[0047] According to a blockchain-based electronic prescription signing method provided by the present invention, the method further includes:

[0048] When the doctor signs an electronic prescription for the first time or receives a private key update request from the doctor, a new private key is issued and bound to the doctor's identity.

[0049] The present invention also provides an electronic prescription signature device based on blockchain, comprising:

[0050] A verification module, used to obtain the identity of the doctor after receiving the electronic prescription uploaded by the doctor, and verify the identity of the doctor;

[0051] A handwritten signature authentication module, used to obtain the handwritten signature uploaded together with the electronic prescription after verification, authenticate the handwritten signature, and generate authentication information of the handwritten signature;

[0052] An electronic signature module, used to match the doctor's private key based on the identity identifier, sign the electronic prescription through the private key, and obtain the electronic signature of the electronic prescription;

[0053] The storage module is used to distribute and store the prescription information and signature data of the signed electronic prescription through a blockchain network, wherein the signature data includes the electronic signature and the authentication information.

[0054] The present invention also provides a computing device, comprising:

[0055] Memory and processor;

[0056] The memory is used to store computer-executable instructions, and the processor is used to execute the computer-executable instructions. When the computer-executable instructions are executed by the processor, the steps of the blockchain-based electronic prescription signature method as described in any one of the above items are implemented.

[0057] The present invention also provides a computer-readable storage medium storing computer-executable instructions, which, when executed by a processor, implement the steps of the blockchain-based electronic prescription signing method as described in any one of the above.

[0058] The present invention provides an electronic prescription signing method based on blockchain, which includes: after receiving an electronic prescription uploaded by a doctor, obtaining the doctor's identity and verifying the doctor's identity; after the verification is passed, obtaining a handwritten signature uploaded together with the electronic prescription, authenticating the handwritten signature, and generating authentication information of the handwritten signature; matching the doctor's private key based on the identity, signing the electronic prescription with the private key, and obtaining an electronic signature of the electronic prescription; distributing and storing the prescription information and signature data of the signed electronic prescription through a blockchain network, the signature data including the electronic signature and the authentication information, and storing the electronic signature and the authentication information of the handwritten signature through the blockchain network, thereby improving the security of the electronic prescription and preventing the electronic signature of the electronic prescription from being tampered with. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0060] Figure 1 It is a flowchart of a blockchain-based electronic prescription signature method provided by an embodiment of the present invention;

[0061] Figure 2 It is a structural schematic diagram of an electronic prescription signature device based on blockchain provided by an embodiment of the present invention;

[0062] Figure 3 It is a schematic diagram of the structure of a computing device provided in an embodiment of the present invention. DETAILED DESCRIPTION

[0063] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0064] Combine the following Figure 1-Figure 3 The present invention describes an electronic prescription signature method based on blockchain.

[0065] Figure 1 It is a flowchart of the blockchain-based electronic prescription signing method provided in an embodiment of the present invention.

[0066] like Figure 1 As shown, this embodiment provides a blockchain-based electronic prescription signature method, which mainly includes the following steps:

[0067] Step S101, after receiving the electronic prescription uploaded by the doctor, the doctor's identity is obtained and the doctor's identity is verified.

[0068] In a specific implementation process, the electronic prescription is formed by the doctor after he diagnoses the patient and inputs the medical information through a handheld terminal or other terminal device. After receiving the electronic prescription, it is necessary to verify the doctor's identity first to avoid medical disputes caused by uploading by other people. Furthermore, in order to ensure the security of the electronic prescription uploading process, a terminal device can only be bound to or correspond to one doctor. If the electronic prescription is uploaded by the unbound doctor, the upload operation cannot be achieved. The verification of the doctor's identity is achieved through an identity identifier, which is a recognizable identifier given to the doctor. When verifying the doctor's identity, the doctor's identity is determined by reading the identity identifier.

[0069] Step S102, after the verification is passed, obtain the handwritten signature uploaded together with the electronic prescription, authenticate the handwritten signature, and generate authentication information of the handwritten signature.

[0070] Specifically, when uploading an electronic prescription, the doctor's handwritten signature will be uploaded simultaneously. The handwritten signature can be written by the doctor personally on an electronic device. In order to ensure the authenticity of the handwritten signature, the handwritten signature can be authenticated and authentication information of the handwritten signature can be generated to ensure the authenticity of the handwritten signature and that it has not been tampered with.

[0071] Step S103, matching the doctor's private key based on the identity identifier, signing the electronic prescription with the private key, and obtaining an electronic signature of the electronic prescription.

[0072] Specifically, the doctor is assigned a corresponding private key through identity identification. The generation and distribution of the private key should be completed by a trusted third party or security service to ensure the secure transmission and storage of the key, and use the private key to electronically sign the electronic prescription. The doctor's private key is used to verify and confirm the legitimacy of the transaction or data.

[0073] Step S104, the prescription information and signature data of the signed electronic prescription are distributedly stored through a blockchain network, and the signature data includes the electronic signature and the authentication information.

[0074] Specifically, prescription information will be stored in the blockchain network together with signature data, forming an unalterable and traceable data chain. Such a design can not only ensure the authenticity and legality of prescriptions, but also help doctors and patients better understand and use drugs. At the same time, the transparency and traceability of blockchain can increase public trust in the medical industry.

[0075] Signature data is an important basis for verifying the authenticity and non-tampering of prescriptions. When patients or medical institutions need to obtain prescriptions, they can confirm the authenticity and non-tampering of prescriptions by verifying the legitimacy of signature data. If the signature data is consistent with the record in the blockchain network, it means that the prescription is authentic and has not been tampered with.

[0076] By signing the prescription with a private key, we can ensure the authenticity and security of the prescription. The uniqueness and immutability of the private key ensure the legitimacy and credibility of the signature. At the same time, since the signature data is stored in the blockchain network, any tampering will be rejected by other nodes, further enhancing the security of the prescription.

[0077] Therefore, the doctor's use of a private key to sign when issuing an electronic prescription is one of the important steps in the present invention, which ensures the authenticity and security of the prescription and provides more reliable technical support for the medical field.

[0078] In the blockchain-based electronic prescription signature scheme, prescription information and signature data are distributedly stored through the blockchain network.

[0079] When the doctor completes the electronic prescription and signs it, the prescription information and signature data will be uploaded to the blockchain network. The blockchain network is a decentralized distributed network consisting of multiple nodes. Each node stores all the data on the blockchain, including prescription information and signature data. This distributed storage method has the following advantages:

[0080] Data security: Since data is stored in multiple nodes, any data tampering or damage at any single node will not affect the data security of the entire network. This enhances the reliability and fault tolerance of the data.

[0081] Data immutability: Due to the decentralized nature of blockchain, any tampering with the data will be rejected by other nodes. This ensures the immutability of the data, ensuring the authenticity and security of the prescription.

[0082] Data traceability: Since data is stored on multiple nodes, we can trace the source and flow of data. This helps to investigate and solve problems when they arise, and improves the transparency and credibility of the system.

[0083] By storing prescription information and signature data in the blockchain network, we can ensure the authenticity and security of the data and prevent it from being tampered with or forged. At the same time, this distributed storage method also improves the reliability and fault tolerance of the system, providing more reliable technical support for the medical field.

[0084] In the blockchain-based electronic prescription signature scheme, due to the decentralized nature of the blockchain, if the prescription is tampered with, the tampered data will be rejected by other nodes in the network.

[0085] When a prescription is tampered with, the tampered data will be inconsistent with the original record in the blockchain network. When other nodes receive the tampered data, they will confirm the legitimacy of the data by verifying whether the data is consistent with the record in the blockchain network.

[0086] Due to the decentralized nature of blockchain, each node stores all the data on the blockchain. If the tampered data is inconsistent with the original record in the blockchain network, then the data will be rejected by other nodes. This means that the tampered data cannot be verified as legitimate data and therefore cannot be accepted and stored in the blockchain network.

[0087] This mechanism ensures the security of the prescription. Even if someone tries to tamper with the prescription, due to the decentralized nature of the blockchain, the tampered data cannot be accepted and stored by other nodes. This prevents the spread and influence of tampered data and ensures the authenticity and security of the prescription.

[0088] Therefore, the blockchain-based electronic prescription signature scheme can effectively prevent prescriptions from being tampered with and ensure the security of prescriptions by utilizing the decentralized characteristics of blockchain.

[0089] Further, based on the above embodiment, in this embodiment, after receiving the electronic prescription uploaded by the doctor, obtaining the identity information of the doctor, and before verifying the identity information of the doctor, the following steps are included:

[0090] Receiving the certificate images uploaded by the doctor through the terminal, the certificate images including the front and back images of the identity card and professional qualification certificate;

[0091] Extracting certificate information from the certificate image;

[0092] Comparing the certificate information with information in a preset authoritative database;

[0093] If the certificate information is consistent with the information in the preset authoritative database, the identity identification is issued to the doctor;

[0094] If the certificate information is inconsistent with the information in the preset authoritative database, a verification failure instruction and the reason for the verification failure are returned.

[0095] Specifically, before a doctor issues an electronic prescription, the doctor needs to download an official mobile app and complete the relevant identity authentication process through this app.

[0096] Doctors use the ID card and professional qualification certificate collection function of the mobile app to take photos of the front and back of the ID card and professional qualification certificate. The app uses OCR (optical character recognition) technology to automatically extract information from relevant documents. In order to ensure the accuracy of the information, the app also provides manual proofreading and modification functions. After collecting the relevant information, the extracted ID card and professional qualification certificate information will be sent to the backend server. The backend server connects with the national certification authority in real time to verify the authenticity of this information. This includes checking whether the ID card exists and is valid, and whether the professional qualification certificate is authentic and expired. If the information on the ID card and professional qualification certificate is consistent with the records in the authoritative database, the doctor will receive a notification of successful real-name authentication and can continue to issue electronic prescriptions. If the verification fails, the doctor will be prompted to re-enter or upload the relevant information and be informed of the reason for the failure. All real-name authentication processes and results will be recorded in the log for subsequent review and tracking. Throughout the process, all data transmission is encrypted to ensure the security of data during transmission. The original images of the ID card and professional qualification certificate will only be stored briefly on the server to complete the verification process, and will be immediately deleted or anonymized.

[0097] After completing the real-name authentication, doctors will receive a unique ID that is associated with their ID card and qualification certificate information. In the subsequent electronic prescription signing process, the system will use this ID to confirm the doctor's identity, ensuring that only certified doctors can perform operations such as prescribing and signing prescriptions.

[0098] In this way, we can ensure the legitimacy and authority of electronic prescription signatures and prevent forgery or impersonation of doctors to sign. This further enhances the security and credibility of electronic prescriptions and provides more reliable technical support for the medical field.

[0099] Further, based on the above embodiment, the step of obtaining the handwritten signature uploaded together with the electronic prescription, authenticating the handwritten signature, and generating authentication information of the handwritten signature in this embodiment includes:

[0100] Perform CA authentication on the handwritten signature to generate the authentication information of the handwritten signature.

[0101] Specifically, after the handwritten signature is completed, the doctor needs to upload the signature data to the blockchain network. During the upload process, the system will perform CA (Certificate Authority) authentication on the signature data. CA authentication is a digital certificate authentication method used to verify the legitimacy and authenticity of digital certificates. Through CA authentication, the authenticity and non-tampering of the signature data can be ensured.

[0102] Further, based on the above embodiment, the electronic prescription is signed by the private key and the handwritten signature, and the prescription information and signature data of the signed electronic prescription are distributedly stored through the blockchain network, and further includes:

[0103] Generate a prescription ID of the electronic prescription and prescription information of the electronic prescription, and store the prescription ID and the prescription information in the blockchain network;

[0104] The prescription information includes at least one of the following information:

[0105] Basic information of doctors and patients:

[0106] Name of doctor and hospital where he / she practices;

[0107] Patient's name, gender, age, and ID number;

[0108] Patient visit records and medical history information;

[0109] Prescription basic information:

[0110] Date and time of prescription;

[0111] Diagnosis and condition overview;

[0112] Purpose of prescription and reason for medication;

[0113] the expected effects and possible risks of the drug;

[0114] Prescription drugs and dosage:

[0115] The name, dosage form, strength, and quantity of each drug listed in the prescription;

[0116] Route of administration;

[0117] Drug usage;

[0118] Drug dosage.

[0119] Specifically, when a doctor issues an electronic prescription, he needs to sign the prescription with his private key. The doctor's private key is used to verify and confirm the legitimacy of the transaction or data.

[0120] When a doctor issues an electronic prescription, not only is a unique prescription ID generated, but basic information related to the prescription is also collected and recorded, including but not limited to:

[0121] Basic information of doctors and patients:

[0122] Name of doctor and hospital where he / she practices;

[0123] Basic information of the patient, including name, gender, age, ID number, etc.

[0124] Patient visit records and medical history information (if any);

[0125] Prescription basic information:

[0126] Date and time of prescription;

[0127] Diagnosis and condition overview;

[0128] Purpose of prescription and reason for medication;

[0129] the expected effects and possible risks of the drug;

[0130] Prescription drugs and dosage:

[0131] The name, dosage form, strength, and quantity of each drug listed in the prescription;

[0132] Route of administration (e.g. oral, topical, injection, etc.);

[0133] Usage (e.g. once a day, after meals, etc.);

[0134] Dosage (e.g. how many tablets each time, how many milliliters, etc.);

[0135] This information will be stored in the blockchain network together with the signature data, forming an unalterable and traceable data chain. Such a design can not only ensure the authenticity and legality of the prescription, but also help doctors and patients better understand and use drugs. At the same time, through the transparency and traceability of the blockchain, the public's trust in the medical industry can be increased.

[0136] Further, based on the above embodiment, the method in this embodiment also includes:

[0137] receiving a request for modification of an electronic prescription and receiving a modified electronic prescription;

[0138] Extract whether the signature information of the modified electronic prescription is consistent with the signature information of the electronic signature stored in the blockchain network;

[0139] If they are consistent, the modification of the electronic prescription is agreed, and the modified electronic prescription is stored in the blockchain network;

[0140] If there is any inconsistency, the electronic prescription modification request will be rejected.

[0141] Specifically, in order to ensure the authenticity and non-tamperability of electronic prescriptions, it is not allowed to modify the original electronic prescriptions. However, in actual applications, due to adjustments in the doctor's diagnosis or changes in the condition, the electronic prescriptions need to be modified. Therefore, under the above requirements, when the original electronic prescription is modified, it is modified in the form of a version update, that is, the original electronic prescription stored in the blockchain network remains unchanged, and the modified electronic prescription is saved in the form of a new version. At the same time, when the electronic prescription is retrieved, it is first determined whether there is a modification. If the electronic prescription has been modified, the latest version of the electronic prescription is retrieved. The above measures not only ensure that the electronic prescription cannot be tampered with, but also meet the needs of modifying the electronic prescription in actual situations. At the same time, when the electronic prescription is modified, the original electronic prescription remains unchanged, and the modified electronic prescription is also stored in the blockchain. By checking different versions of electronic prescriptions, it can be further ensured that the electronic prescription has not been tampered with.

[0142] Further, based on the above embodiment, the method in this embodiment also includes:

[0143] Upon receiving an electronic prescription acquisition request sent by a patient or a medical institution, the electronic prescription is issued to the patient or the medical institution, and the blockchain record carried by the issued electronic prescription is obtained;

[0144] Extracting the authentication information and the electronic signature from the blockchain record;

[0145] Determine whether the CA authentication information and electronic signature in the signature data are consistent with the authentication information and electronic signature stored in the blockchain network;

[0146] If yes, the electronic prescription has not been tampered with, and the electronic prescription issuance process is completed;

[0147] If not, an electronic prescription tampering warning message is sent.

[0148] Specifically, when patients or medical institutions need to obtain electronic prescriptions, they need to confirm the authenticity and non-tampering of the prescription by verifying the legitimacy of the signature data.

[0149] When patients or medical institutions obtain prescriptions, they first receive blockchain records containing prescription information and signature data. Then, they need to use corresponding verification tools or systems to verify the legitimacy of the signature data. The process of verifying signature data usually includes the following steps:

[0150] Extract signature data: Extract signature data from the received blockchain record.

[0151] Compare with the records in the blockchain network: Compare the extracted signature data with the records in the blockchain network. This can be done by querying the corresponding block in the blockchain network.

[0152] Verify the legitimacy of the signature data: If the extracted signature data is consistent with the record in the blockchain network, it means that the signature data is legitimate. This further proves the authenticity of the prescription and that it has not been tampered with.

[0153] By verifying the legitimacy of the signature data, patients or medical institutions can be confident that the electronic prescriptions they obtain are authentic and have not been tampered with. This provides an important trust foundation for the medical process and ensures the accuracy and security of medical decisions.

[0154] Therefore, in the blockchain-based electronic prescription signature scheme, it is a crucial step for patients or medical institutions to verify the legitimacy of the signature data when obtaining prescriptions. It ensures the authenticity and security of the prescription and provides more reliable technical support for the medical field.

[0155] By comprehensively judging whether the authentication information of the handwritten signature and the electronic signature are correct, the electronic signature can be guaranteed to be tamper-proof and authentic to the greatest extent.

[0156] By introducing handwritten signatures and CA authentication, we can further improve the security and credibility of electronic prescription signatures. Handwritten signatures can prevent electronic devices from being tampered with or forged, while CA authentication can verify the legitimacy and authenticity of signatures and doctor identity information. These measures together ensure the authenticity and security of electronic prescriptions and provide more reliable technical support for the medical field.

[0157] Further, based on the above embodiment, the method in this embodiment also includes:

[0158] When the doctor signs an electronic prescription for the first time or receives a private key update request from the doctor, a new private key is issued and bound to the doctor's identity.

[0159] In summary, the present invention has the following beneficial effects compared with the prior art:

[0160] Improve medical efficiency: Electronic prescription signatures can reduce the use of paper prescriptions, reduce medical costs, and improve the efficiency of medical processes.

[0161] Enhanced data security: The distributed storage and immutability of blockchain technology ensure the authenticity and security of prescription information, preventing data from being tampered with or forged.

[0162] Improve patient trust: Patients or medical institutions can verify the legitimacy of signature data to confirm the authenticity and non-tampering of the prescription, thereby increasing trust in the medical process.

[0163] Promoting medical information sharing and interoperability: Blockchain-based electronic prescription signature solutions can promote the sharing and interoperability of medical information and improve the overall efficiency of the medical system.

[0164] Reduce the risk of medical disputes: Since the authenticity and safety of prescriptions are guaranteed, the risk of medical disputes caused by prescription tampering or forgery can be reduced.

[0165] Promote digital transformation of the medical industry: Provide a reliable digital transformation solution for the medical industry to promote the medical industry to develop in a more efficient, secure and transparent direction.

[0166] Figure 2 It is a structural diagram of an electronic prescription signature device based on blockchain provided in an embodiment of the present invention.

[0167] like Figure 2 As shown, this embodiment provides an electronic prescription signature device based on blockchain, the device comprising:

[0168] The verification module 10 is used to obtain the identity of the doctor after receiving the electronic prescription uploaded by the doctor, and verify the identity of the doctor;

[0169] The handwritten signature authentication module 20 is used to obtain the handwritten signature uploaded together with the electronic prescription after verification, authenticate the handwritten signature, and generate authentication information of the handwritten signature;

[0170] An electronic signature module 30, used to match the doctor's private key based on the identity identifier, sign the electronic prescription through the private key, and obtain the electronic signature of the electronic prescription;

[0171] The storage module 40 is used to distribute and store the prescription information and signature data of the signed electronic prescription through a blockchain network, wherein the signature data includes the electronic signature and the authentication information.

[0172] Figure 3 The block diagram of a computing device 400 according to one embodiment of the present specification is shown. The components of the computing device 400 include but are not limited to a memory 410 and a processor 420. The processor 420 is connected to the memory 410 via a bus 430, and the database 450 is used to store data.

[0173] The computing device 400 also includes an access device 440 that enables the computing device 400 to communicate via one or more networks 460. Examples of these networks include a public switched telephone network (PSTN), a local area network (LAN), a wide area network (WAN), a personal area network (PAN), or a combination of communication networks such as the Internet. The access device 440 may include one or more of any type of network interface (e.g., a network interface card (NIC)) that is wired or wireless, such as an IEEE 802.11 wireless local area network (WLAN) wireless interface, a world-wide interoperability for microwave access (Wi-MAX) interface, an Ethernet interface, a universal serial bus (USB) interface, a cellular network interface, a Bluetooth interface, and a near field communication (NFC).

[0174] In one embodiment of the present specification, the above components of the computing device 400 and Figure 3 Other components not shown in the figure may also be connected to each other, for example, via a bus. It should be understood that Figure 3 The computing device structure block diagram shown is only for the purpose of illustration, and is not intended to limit the scope of this specification. Those skilled in the art can add or replace other components as needed.

[0175] The computing device 400 may be any type of stationary or mobile computing device, including a mobile computer or mobile computing device (e.g., a tablet computer, a personal digital assistant, a laptop computer, a notebook computer, a netbook, etc.), a mobile phone (e.g., a smart phone), a wearable computing device (e.g., a smart watch, smart glasses, etc.), or other types of mobile devices, or a stationary computing device such as a desktop computer or a personal computer (PC). The computing device 400 may also be a mobile or stationary server.

[0176] Among them, the processor 420 is used to execute the following computer executable instructions, which, when executed by the processor, implement the steps of the above-mentioned blockchain-based electronic prescription signature method. The above is a schematic scheme of a computing device of this embodiment. It should be noted that the technical scheme of the computing device and the technical scheme of the above-mentioned blockchain-based electronic prescription signature method belong to the same concept. The details of the technical scheme of the computing device that are not described in detail can be found in the description of the technical scheme of the blockchain-based electronic prescription signature method.

[0177] An embodiment of the present specification also provides a computer-readable storage medium storing computer-executable instructions, which, when executed by a processor, implement the steps of the above-mentioned blockchain-based electronic prescription signature method.

[0178] The above is a schematic scheme of a computer-readable storage medium of this embodiment. It should be noted that the technical scheme of the storage medium and the technical scheme of the electronic prescription signature method based on blockchain belong to the same concept, and the details not described in detail in the technical scheme of the storage medium can be found in the description of the technical scheme of the electronic prescription signature method based on blockchain.

[0179] An embodiment of the present specification also provides a computer program, wherein when the computer program is executed in a computer, the computer is caused to execute the steps of the above-mentioned blockchain-based electronic prescription signing method.

[0180] The above is a schematic scheme of a computer program of this embodiment. It should be noted that the technical scheme of the computer program and the technical scheme of the electronic prescription signature method based on blockchain are of the same concept. For details not described in detail in the technical scheme of the computer program, please refer to the description of the technical scheme of the electronic prescription signature method based on blockchain.

[0181] The above is a description of a specific embodiment of the specification. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the embodiments and still achieve the desired results. In addition, the processes depicted in the drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.

[0182] The computer instructions include computer program codes, which may be in source code form, object code form, executable files or some intermediate forms, etc. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, USB flash drive, mobile hard disk, magnetic disk, optical disk, computer memory, read-only memory (ROM), random access memory (RAM), electric carrier signal, telecommunication signal and software distribution medium, etc. It should be noted that the content contained in the computer-readable medium may be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, computer-readable media do not include electric carrier signals and telecommunication signals.

[0183] It should be noted that, for the above-mentioned method embodiments, for the sake of simplicity of description, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the embodiments of this specification are not limited by the order of the actions described, because according to the embodiments of this specification, some steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the embodiments of this specification.

[0184] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0185] The preferred embodiments of this specification disclosed above are only used to help explain this specification. The optional embodiments do not describe all the details in detail, nor do they limit the invention to only the specific implementation methods described. Obviously, many modifications and changes can be made according to the content of the embodiments of this specification. This specification selects and specifically describes these embodiments in order to better explain the principles and practical applications of the embodiments of this specification, so that technicians in the relevant technical field can well understand and use this specification. This specification is only limited by the claims and their full scope and equivalents.

Claims

1. A blockchain-based electronic prescription signature method, characterized in that: The electronic prescription signature method comprises: After receiving the electronic prescription uploaded by the doctor, obtaining the doctor's identity and verifying the doctor's identity; After the verification is passed, the handwritten signature uploaded together with the electronic prescription is obtained, and the handwritten signature is authenticated to generate authentication information of the handwritten signature; Matching the doctor's private key based on the identity identifier, signing the electronic prescription with the private key, and obtaining an electronic signature of the electronic prescription; Distributed storage of the prescription information and signature data of the signed electronic prescription through a blockchain network, wherein the signature data includes the electronic signature and the authentication information; Wherein, after receiving the electronic prescription uploaded by the doctor, obtaining the identity information of the doctor, and before verifying the identity information of the doctor, it includes: Receiving the certificate images uploaded by the doctor through the terminal, the certificate images including the front and back images of the identity card and professional qualification certificate; Extracting certificate information from the certificate image; Comparing the certificate information with information in a preset authoritative database; If the certificate information is consistent with the information in the preset authoritative database, the identity identification is issued to the doctor; If the certificate information is inconsistent with the information in the preset authoritative database, a verification failure instruction and the reason for the verification failure are returned; receiving a request for modification of an electronic prescription and receiving a modified electronic prescription; Extract whether the signature information of the modified electronic prescription is consistent with the signature information of the electronic signature stored in the blockchain network; If they are consistent, the modification of the electronic prescription is agreed, and the modified electronic prescription is stored in the blockchain network; If there is any inconsistency, the electronic prescription modification request will be rejected.

2. The blockchain-based electronic prescription signature method according to claim 1, characterized in that: The obtaining of the handwritten signature uploaded together with the electronic prescription, authenticating the handwritten signature, and generating authentication information of the handwritten signature includes: Perform CA authentication on the handwritten signature to generate the authentication information of the handwritten signature.

3. The blockchain-based electronic prescription signature method according to claim 2 is characterized in that: After signing the electronic prescription with the private key and the handwritten signature, and distributing and storing the prescription information and signature data of the signed electronic prescription through a blockchain network, the method further includes: Generate a prescription ID of the electronic prescription and prescription information of the electronic prescription, and store the prescription ID and the prescription information in the blockchain network; The prescription information includes at least one of the following information: Basic information of doctors and patients: Name of doctor and hospital where he / she practices; Patient's name, gender, age, and ID number; Patient visit records and medical history information; Prescription basic information: Date and time of prescription; Diagnosis and condition overview; Purpose of prescription and reason for medication; the expected effects and possible risks of the drug; Prescription drugs and dosage: The name, dosage form, strength, and quantity of each drug listed in the prescription; Route of administration; Drug usage; Drug dosage.

4. The blockchain-based electronic prescription signature method according to claim 1, characterized in that: The method further comprises: Upon receiving an electronic prescription acquisition request sent by a patient or a medical institution, the electronic prescription is issued to the patient or the medical institution, and the blockchain record carried by the issued electronic prescription is obtained; Extracting the authentication information and the electronic signature from the blockchain record; Determine whether the CA authentication information and electronic signature in the signature data are consistent with the authentication information and electronic signature stored in the blockchain network; If yes, the electronic prescription has not been tampered with, and the electronic prescription issuance process is completed; If not, an electronic prescription tampering warning message is sent.

5. The blockchain-based electronic prescription signature method according to claim 4 is characterized in that: The method further comprises: When the doctor signs an electronic prescription for the first time or receives a private key update request from the doctor, a new private key is issued and bound to the doctor's identity.

6. An electronic prescription signature device based on blockchain, characterized in that: include: A verification module, used to obtain the identity of the doctor after receiving the electronic prescription uploaded by the doctor, and verify the identity of the doctor; A handwritten signature authentication module, used to obtain the handwritten signature uploaded together with the electronic prescription after verification, authenticate the handwritten signature, and generate authentication information of the handwritten signature; An electronic signature module, used to match the doctor's private key based on the identity identifier, sign the electronic prescription through the private key, and obtain the electronic signature of the electronic prescription; A storage module, used for distributing and storing the prescription information and signature data of the signed electronic prescription through a blockchain network, wherein the signature data includes the electronic signature and the authentication information; After receiving the electronic prescription uploaded by the doctor, obtaining the doctor's identity information and verifying the doctor's identity information include: Receiving the certificate images uploaded by the doctor through the terminal, the certificate images including the front and back images of the identity card and professional qualification certificate; Extracting certificate information from the certificate image; Comparing the certificate information with information in a preset authoritative database; If the certificate information is consistent with the information in the preset authoritative database, the identity identification is issued to the doctor; If the certificate information is inconsistent with the information in the preset authoritative database, a verification failure instruction and the reason for the verification failure are returned; receiving a request for modification of an electronic prescription and receiving a modified electronic prescription; Extract whether the signature information of the modified electronic prescription is consistent with the signature information of the electronic signature stored in the blockchain network; If they are consistent, the modification of the electronic prescription is agreed, and the modified electronic prescription is stored in the blockchain network; If there is any inconsistency, the electronic prescription modification request will be rejected.

7. A computing device, characterized in that include: Memory and processor; The memory is used to store computer-executable instructions, and the processor is used to execute the computer-executable instructions. When the computer-executable instructions are executed by the processor, the steps of the blockchain-based electronic prescription signature method described in any one of claims 1 to 5 are implemented.

8. A computer-readable storage medium storing computer-executable instructions, which, when executed by a processor, implement the steps of the blockchain-based electronic prescription signing method described in any one of claims 1 to 5.