Block chain-based two-way referral information encryption and sharing method and system, and device
By using fully homomorphic encryption algorithms and smart contracts in a blockchain network, the problems of data silos and privacy leaks in traditional two-way referral systems are solved, enabling secure data sharing and immutability, and ensuring the security and reliability of patient information.
Patent Information
- Application Number
- PCT/CN2023/096020
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-05-24
- Publication Date
- 2024-11-28
AI Technical Summary
Traditional two-way referral systems suffer from data silos and the risk of patient privacy leaks, especially when referring patients across regions or provinces, where data security and privacy protection are insufficient.
Employing a fully homomorphic encryption algorithm based on blockchain, data encryption and decryption are performed on the blockchain network through smart contracts. Combining consortium blockchain and private blockchain architectures, secure data transmission and immutability are ensured, enabling secure data sharing.
It achieves the immutability and strong time sequence of data in the two-way referral process between medical institutions, protects the privacy and security of patient data, and improves the security and reliability of the system.
Smart Images

Figure CN2023096020_28112024_PF_FP_ABST
Abstract
Description
Blockchain-based two-way referral information encryption and sharing method, system and device Technical Field
[0001] The present application relates to the technical field of two-way referral, and specifically to a method, system and device for encrypting and sharing two-way referral information based on blockchain. Background Art
[0002] Bidirectional referral is the process of transferring diagnosis and treatment between higher and lower level hospitals based on the patient's condition. The advantage of the bidirectional referral system is that patients who encounter difficult and serious diseases or whose original diseases worsen or undergo complex changes can obtain timely and effective protection through bidirectional referral, avoiding delays in diagnosis and treatment. After the acute treatment of inpatients in higher-level hospitals stabilizes, they can be referred to primary medical institutions for subsequent rehabilitation treatment, which not only saves medical expenses, but also creates treatment opportunities for other difficult and critically ill patients who urgently need hospitalization.
[0003] Traditional two-way referrals require primary medical institutions to issue referral forms, and patients take the referral forms to higher-level hospitals for treatment. Similarly, after the patient completes treatment at the higher-level hospital, they need to take the referral form issued by the higher-level hospital to the primary medical institution for rehabilitation treatment.
[0004] With the advancement of information technology, various medical institutions, medical institution alliances, and health departments have developed two-way referral management systems to facilitate referral application and acceptance, as well as reimbursement of medical expenses for patients based on referral status. However, because two-way referrals involve primary medical institutions, higher-level medical institutions, medical insurance departments, and regulatory authorities, and may involve referrals across counties, cities, and provinces, or even multiple referrals, some two-way referral systems are limited to regional medical institutions or medical alliances, resulting in siloed referral records. Furthermore, traditional two-way referral management systems utilize centralized storage. If hacked, referral records could be easily leaked, potentially compromising user privacy. Summary of the Invention
[0005] In order to solve one of the above-mentioned technical defects, the embodiments of the present application provide a blockchain-based two-way referral information encryption and sharing method, system and device, which can ensure the secure transmission of two-way referral data and patient privacy information.
[0006] According to a first aspect of an embodiment of the present application, a blockchain-based two-way referral information encryption and sharing method is provided, including:
[0007] Step S10, writing the fully homomorphic encryption algorithm into the smart contract of the blockchain;
[0008] Step S20: When the member nodes of the two-way referral conduct data transactions through the blockchain network, they activate the smart contract to encrypt and decrypt the data;
[0009] The smart contract is used to determine whether the user of each member node has the authority to upload, modify, access, and delete data, and complete the logical processing of data services by each member node.
[0010] Preferably, in step S20, the blockchain network stores: block information summary, two-way referral record data and patient electronic medical record data.
[0011] Preferably, the member nodes include: a referral initiating patient node, a referral initiating institution doctor node, a referral initiating medical institution node, a referral receiving medical institution node, a referral receiving doctor node and a supervisory node;
[0012] The doctor node of the referral initiating institution and the node of the referral receiving medical institution both have data upload and data access permissions;
[0013] The referral initiating patient node, referral initiating medical institution node, referral receiving doctor node and supervision node all have data access rights.
[0014] Preferably, in step S20, mobilizing the smart contract to encrypt and decrypt the data includes:
[0015] Step S201, initializing parameters;
[0016] Step S202, setting the function of the smart contract;
[0017] Step S203, monitoring the blockchain node status;
[0018] Step S204: Execute the smart contract based on the blockchain node status to complete the encryption / decryption of the two-way referral medical data.
[0019] Preferably, the blockchain node status includes two states: request response and receiving feedback, wherein the request response means: obtaining the node address, and receiving feedback means: receiving the contract interface, contract address and data;
[0020] The step S204 includes:
[0021] Step S2041, judging the legality of the node status. When the node status is requesting a response and is legal, executing step S2042; when the node status is receiving feedback and is legal, executing step S2043;
[0022] Step S2042: Execute the smart contract, encrypt the two-way referral medical data, and send the encrypted data to the blockchain network;
[0023] Step S2043: execute the smart contract, obtain the encrypted data, contract interface, contract address, and decrypt the encrypted data.
[0024] Preferably, the blockchain network adopts a dual-chain architecture combining a consortium chain and a private chain.
[0025] According to a second aspect of an embodiment of the present application, there is provided a blockchain-based two-way referral information encryption and sharing system, comprising: a plurality of terminals serving as member nodes of a blockchain network, each of the terminals communicating with the blockchain network;
[0026] The terminal is used to complete the referral initiation, upward referral, downward referral application form generation and referral record generation according to the operation authority;
[0027] The blockchain network is used to encrypt and share information when each member node conducts data transactions;
[0028] The encryption and sharing of the information adopt the blockchain-based two-way referral information encryption and sharing method as described above.
[0029] Preferably, a CA certificate is loaded on the terminal, and the certificate includes an account ID, a public-private key pair, and operation permissions.
[0030] According to a third aspect of the embodiments of the present application, there is provided an electronic device, including:
[0031] memory; processor; and computer program;
[0032] The computer program is stored in the memory and configured to be executed by the processor to implement any of the above methods.
[0033] According to a fourth aspect of the embodiments of the present application, a computer-readable storage medium is provided, on which a computer program is stored; the computer program is executed by a processor to implement any of the methods described above.
[0034] The technical effects of the blockchain-based two-way referral information encryption and sharing method, system, and device provided in the embodiments of this application are:
[0035] In this application, when the member nodes of the two-way referral conduct data transactions through the blockchain network, they mobilize the smart contract to encrypt and decrypt the data, wherein the fully homomorphic encryption algorithm is written into the smart contract; so that in the process of two-way referral between medical institutions, the transaction can be guaranteed to be tamper-proof and have strong time sequence, while also protecting the privacy and security of patient data, and it is extremely practical. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:
[0037] FIG1 is a flow chart of a method for encrypting and sharing bidirectional referral information based on blockchain according to an embodiment of the present application;
[0038] FIG2 is a schematic diagram of the process of step S20 in an embodiment of the present application;
[0039] FIG3 is a schematic diagram of the structure of a two-way referral information encryption and sharing system based on blockchain in an embodiment of the present application;
[0040] FIG4 is a schematic diagram of a process for a referral initiating medical institution to initiate a referral application in an embodiment of the present application;
[0041] FIG5 is a schematic diagram of a process for a referral receiving medical institution to receive a referral application in an embodiment of the present application;
[0042] FIG6 is a schematic diagram of a process for a referral initiating medical institution to withdraw a referral application in an embodiment of the present application;
[0043] FIG7 is a schematic diagram of a process for withdrawing a referral application after the referral receiving medical institution is rejected in an embodiment of the present application;
[0044] FIG8 is a flowchart of accessing patient referral records and obtaining electronic medical records in an embodiment of the present application; Implementation Method
[0045] Blockchain technology is a new decentralized infrastructure and distributed computing paradigm with technical characteristics such as decentralization, trustlessness, collective maintenance, programmability, and security and reliability. In response to the problems of single point failure, vulnerability to attacks, and patient privacy leakage in traditional centralized storage two-way referral systems, the present invention proposes a blockchain-based two-way referral information encryption and sharing method, system, and device. By protecting data rights, preventing data tampering, and decentralization, it ensures the security and reliability of patient two-way referral data, which is beneficial to protecting patient privacy.
[0046] In order to make the technical solutions and advantages of the embodiments of the present application more clearly understood, the exemplary embodiments of the present application are further described in detail below with reference to the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present application, and are not an exhaustive list of all the embodiments. It should be noted that the embodiments and features in the embodiments of the present application can be combined with each other unless they conflict.
[0047] As shown in FIG1 , the present application provides a blockchain-based two-way referral information encryption and sharing method, including:
[0048] Step S10, writing the fully homomorphic encryption algorithm into the smart contract of the blockchain;
[0049] Step S20: When the member nodes of the two-way referral conduct data transactions through the blockchain network, they activate the smart contract to encrypt and decrypt the data;
[0050] The smart contract is used to determine whether the user of each member node has the authority to upload, modify, access, and delete data, and complete the logical processing of data services by each member node.
[0051] Specifically, in step S20, the blockchain network stores: block information summary, two-way referral record data, and patient electronic medical record data.
[0052] In this embodiment, the member nodes include: referral initiating patient node, referral initiating institution doctor node, referral initiating medical institution node, referral receiving medical institution node, referral receiving doctor node and supervision node; the referral initiating institution doctor node and referral receiving medical institution node all have data upload and data access rights; the referral initiating patient node, referral initiating medical institution node, referral receiving doctor node and supervision node all have data access rights.
[0053] Referring to FIG. 2 , in step S20 , the smart contract is activated to encrypt and decrypt the data, including:
[0054] Step S201, initializing parameters;
[0055] Step S202, setting the function of the smart contract;
[0056] Step S203, monitoring the blockchain node status;
[0057] Step S204: Execute the smart contract based on the blockchain node status to complete the encryption / decryption of the two-way referral medical data.
[0058] Specifically, the blockchain node status includes two states: request response and receiving feedback. The request response means obtaining the node address, and the receiving feedback means receiving the contract interface, contract address, and data.
[0059] The step S204 includes:
[0060] Step S2041, judging the legality of the node status. When the node status is requesting a response and is legal, executing step S2042; when the node status is receiving feedback and is legal, executing step S2043;
[0061] Step S2042: Execute the smart contract, encrypt the two-way referral medical data, and send the encrypted data to the blockchain network;
[0062] Step S2043: execute the smart contract, obtain the encrypted data, contract interface, contract address, and decrypt the encrypted data.
[0063] In a specific embodiment, the initialization parameters include: smart contract interface , smart contract address , node address , request response , accept feedback , store data and calculation form ;
[0064] The functional functions of the smart contract include: encryption function , decryption function , homomorphic addition function , homomorphic multiplication function , transfer data function , receive data function , receiving node address function and trigger functions .
[0065] Specifically, the smart contract (FHE-Contract) is called to implement a fully homomorphic encrypted contract. The specific transaction process is as follows:
[0066] : Fully homomorphic encryption initial stage, input security parameters and circuit depth , output Model , generating parameters ;
[0067] : Key pair generation phase, generate private key and public key ;
[0068] : Data encryption stage, for two-way referral data Encrypted ;
[0069] : Data decryption phase, bidirectional referral data ciphertext , decrypted to get ;
[0070] : In the data addition operation phase, the bidirectional referral data ciphertext is added;
[0071] : In the data multiplication operation stage, multiplication operation is performed on the bidirectional referral data ciphertext.
[0072] In this embodiment, since the smart contract cannot directly interact with the network of member nodes, the interaction process requires a trigger link, which is an entity that links the smart contract and the medical blockchain network.
[0073] Specifically, the blockchain node status is monitored through triggers, and can be Implementation; if: , then, get the request node address; if it is: , then, receive the contract interface, contract address and data.
[0074] As shown in FIG3 , the present application also provides a blockchain-based two-way referral information encryption and sharing system, comprising: a plurality of terminals serving as member nodes of a blockchain network, each of the terminals communicating with the blockchain network;
[0075] The terminal is used to complete the referral initiation, upward referral, downward referral application form generation and referral record generation according to the operation authority;
[0076] The blockchain network is used to encrypt and share information when each member node conducts data transactions;
[0077] The encryption and sharing of the information adopt the blockchain-based two-way referral information encryption and sharing method as described above.
[0078] Specifically, the terminal is loaded with a CA certificate, which contains an account ID, a public-private key pair, and operation permissions.
[0079] In a specific embodiment, in the two-way referral process between medical institutions, the participants include seven entities: patients, doctors at the referral-initiating institution (doctor at medical institution A), referral-initiating medical institutions (referral office at medical institution A), referral-receiving medical institutions (referral office at medical institution B), referral-receiving doctors (doctor at medical institution B), regulatory authorities, and blockchain networks.
[0080] Each of the above participants completes the exchange of referral information through terminals with corresponding permissions. For example:
[0081] The patient is the initiator of the referral record and the owner of the referral record and electronic medical record information. Except for access operations by regulatory authorities, all operations on the patient's referral record and electronic medical record require the patient's consent before proceeding;
[0082] Doctors at medical institutions are providers of two-way referral services and are responsible for issuing referral application forms based on the patient's condition or deciding whether to accept the patient based on the referral application form (including upward referral application forms issued by doctors at primary medical institutions and downward referral application forms issued by doctors at higher-level medical institutions). The application form generally includes the patient's ID, name, age, gender, disease diagnosis, reason for referral, ID of the current medical institution, name of the current medical institution, ID of the proposed referral medical institution, name of the proposed referral medical institution, etc. With the patient's consent, doctors at medical institutions obtain the patient's referral record and electronic medical record information to facilitate the next step of treatment or rehabilitation treatment, etc.
[0083] The referral office of a medical institution is the agency that handles the two-way referral service. It is responsible for reviewing whether the information filled in the referral form meets the requirements for transfer-out or transfer-in, and determining whether to approve the transfer or accept the patient based on the review results.
[0084] Regulatory authorities have the right to review patient referral records.
[0085] In this application, the blockchain network described is a consortium blockchain network, whose main functions include:
[0086] For referral records, the hash value of each record will be uploaded to the blockchain network for complete protection;
[0087] With the exception of regulatory authorities accessing referral records, the blockchain network must obtain patient authorization for each request;
[0088] Every operation record of the referral record (including referral application, referral acceptance, referral record withdrawal, referral record access, etc.) will be uploaded to the blockchain network for subsequent investigation and audit.
[0089] Specifically, in order to achieve the secure sharing of two-way referral record data among various entities, each entity must register and log in on the blockchain network with its own account, and medical institution doctors and referral office application accounts must be registered under the corresponding medical institution ID.
[0090] In a specific embodiment, the referral initiating institution is represented by the referral office of medical institution A, the referral initiating institution doctor is represented by the doctor of medical institution A, the referral receiving medical institution is represented by the referral office of medical institution B, and the referral receiving doctor is represented by the doctor of medical institution B.
[0091] As shown in Figure 4, during the process of a referral application initiated by a referral initiating medical institution:
[0092] First, when a patient needs to be referred due to a change in his or her condition, the patient (or the patient's guardian or immediate family member) initiates a referral request; the doctor at the referral initiating institution reviews whether the patient meets the referral requirements based on the patient's request. If so, a referral application form is issued. If the referral initiating medical institution reviews and finds that the patient meets the relevant requirements, it agrees to issue the referral application form; the referral application form cannot be changed after it is issued and confirmed. If the patient or doctor wants to modify or withdraw the referral application form, they can only initiate a modification transaction or delete the transaction.
[0093] Secondly, after a referral application is issued, the blockchain network will encrypt the data using the patient's public key. In theory, only the patient holding the private key can decrypt the data. This encryption ensures the security of the referral application data. Even if the data is stolen, without the patient's private key, the thief cannot obtain the detailed content of the data.
[0094] Secondly, the referral initiating medical institution uploads the encrypted hash value of the referral application form to the blockchain network to ensure the integrity and validity of the referral application form data;
[0095] At this point, the medical institution's referral office can initiate a data addition transaction, described as a tuple: transaction type (addition), data ID (i.e., the hash value of the encrypted referral application data), data storage address, data owner, data operator, operation time, and digital signature. It's important to note that the digital signature is signed by both the patient and the doctor, indicating that the patient is aware of the referral application and providing a basis for the medical institution to access the referral record and electronic medical record information after the referral.
[0096] The referral application form is stored in the local database of the medical institution, and the data storage address will be specified in the transaction, instead of directly storing the referral application form and electronic medical record data on the blockchain network. This can reduce the capacity of each block and facilitate synchronization and backup.
[0097] Next, the transaction is broadcast to the blockchain network. Other nodes in the network check the certificate to ensure the doctor is qualified to upload the data. The referral application data is then found based on the data address in the transaction and a hash operation is performed on the encrypted referral application data. If the hash result matches the data ID in the transaction, the referral application data is considered valid.
[0098] Finally, the digital signature is verified based on the public keys of the doctor and the patient. Once all verifications are passed, this node will endorse the transaction. When the transaction receives enough endorsements, it can be packaged into a block and wait to be connected to the blockchain ledger.
[0099] In this embodiment, sufficient endorsements for a transaction are primarily determined by the number of nodes. The exact number of "sufficient" endorsements depends on the chaincode endorsement policy within the blockchain network. Different endorsement policies require different endorsement counts. Upon receiving a block, a peer node in the blockchain network verifies each transaction within the block, checking whether the inputs and outputs it relies on conform to the current blockchain state. Upon completion, the block is written to the ledger and the key-value state data is modified. This signifies a successful connection, and the blockchain network issues an event notifying the web or client that the block has been successfully connected to the blockchain ledger. Connecting to the blockchain ledger indicates successful storage and subsequent access.
[0100] In this embodiment, each entity joins the same blockchain network through a terminal that serves as a member node of the blockchain network; the terminal can be a computer, a mobile phone, etc.
[0101] As shown in Figure 5, when the doctor at medical institution A proposes to create a transaction to add data to the referral application form, the blockchain network will create a data status change transaction. The purpose of defining the data status is to prevent multiple parties from modifying it. At the same time, the blockchain network will check the data status before each access to improve processing speed.
[0102] When Medical Institution B receives a patient's referral application, if the referral office of Medical Institution B finds that the application meets the relevant referral requirements, the status of the referral application data will be changed to "completed referral". If it does not meet the relevant referral requirements, the status of the referral application data will be changed to "rejected referral pending withdrawal". At this time, the blockchain network will automatically change the status of the data to "completed referral" or "rejected referral pending withdrawal". At the same time, the blockchain network will monitor operations on this data in the hospital database. If any operation is performed without the patient's consent or without node verification, a warning will be returned and the operation will be rejected.
[0103] Data state change transactions can be described using a tuple as transaction type (state change), data ID, data owner, current data state, operation time, and digital signature.
[0104] In a specific embodiment, as shown in Figure 6, if a doctor or patient at medical institution A wishes to withdraw a referral request (i.e., change the referral request status to deleted) for some reason (e.g., the patient's condition worsens or he or she dies, making referral unsuitable, or the patient's condition is stable, etc.), they can initiate a data deletion transaction. This transaction can be described as a tuple consisting of the transaction type (delete), the ID of the deleted data, the data owner, the data operator, the operation time, and a digital signature. The digital signature here is a dual signature of the doctor and the patient, indicating the patient's consent to withdraw the referral request.
[0105] When doctor A at medical institution initiates the data deletion operation, the blockchain network will create a data status change transaction, changing the status of the referral application data to deleted.
[0106] As shown in FIG7 , if medical institution B rejects the referral application of medical institution A for some reason, and modifies the referral application data status to rejected referral pending withdrawal.
[0107] Medical institution A can initiate a data withdrawal request for a referral application (i.e., change the status of the referral application to withdrawn). This is a data status change transaction, described as a tuple consisting of the transaction type (change), the ID of the data being changed, the data owner, the data operator, the operation time, and a digital signature. The digital signature here is the patient's digital signature. When a doctor at medical institution A initiates the data status change operation, the blockchain network creates a data status change transaction, changing the status of the referral application data to withdrawn.
[0108] As shown in Figure 8, after the patient completes the referral process, Medical Institution B will develop a treatment plan based on the patient's previous electronic medical record information and the patient's current condition. Based on the patient's information and authorization, the doctor at Medical Institution B queries the patient's referral record on the blockchain network and obtains the patient's electronic medical record information.
[0109] First, the blockchain network verifies whether Doctor B's certificate at medical institution B has the corresponding query permissions. Once the permissions are verified, the blockchain network searches for relevant transactions based on the given query conditions through the smart contract. If no relevant transactions are found, the network returns "no". If relevant transactions are found, the smart contract verifies the data to see if it has been tampered with. If no relevant transactions are found, the network returns the addresses of all referral records for the patient and the consortium chain address of the patient's previous electronic medical records.
[0110] Afterwards, the medical institution decrypts the data using the patient's private key and returns the decrypted data to the medical institution;
[0111] Finally, the blockchain generates a data access transaction, which is then packaged into a block after being broadcast and endorsed by most nodes, and then waits to be connected to the blockchain ledger.
[0112] In addition, regulators can access their two-way referral data without the patient's permission, but cannot obtain the patient's electronic medical record data. However, regulators should inform patients of the operations they are about to perform, and their operation records will still be recorded on the blockchain.
[0113] The regulator first sends a data access request. Each blockchain node checks the regulator's certificate to verify its authority. Once verified, the blockchain network returns the address the regulator needs to access the data. The regulator then requests the patient's private key from the CA. The CA sends the patient's private key to the regulator through a specific channel. The regulator then finds the data address and decrypts it using the patient's private key. This access operation is then organized into a transaction and broadcast to the blockchain network.
[0114] In this embodiment, a blockchain network consisting of the IPFS interplanetary file system, alliance chain and private chain can be used, and based on the smart contract deployed on the alliance chain, members of entities such as medical institution doctors, medical institution referral offices, and patients can be used as data uploaders, data modification, data deletion and data query operations.
[0115] The alliance chain stores member information such as medical institutions, doctors in medical institutions, referral offices of medical institutions, patients, regulatory departments, as well as hash values of two-way referral records and status of two-way referrals. The private chain stores block information summaries, two-way referral record data and patient electronic medical record data on the alliance chain. Only contracts can be used to complete the business logic processing of data for each member node and determine whether the user has the authority to upload, modify, access, delete and other operations.
[0116] When a member node publishes data information, it first uses the DES (Data Encryption Standard) symmetric encryption algorithm to randomly generate a symmetric key for encrypting the uploaded data attachment, uses the symmetric key to encrypt the data attachment to obtain an encrypted file, and stores the encrypted file in the local IPFS cluster to obtain the IPFS address of the encrypted file; integrates the IPFS address of the encrypted file, the data attachment hash value, the file description and the upload time, and stores the integrated data in the IPFS cluster to integrate the data IPFS address, signs the member ID, data number, integrated data IPFS address, integrated data object hash value, and uploads and authenticates the data by calling the data upload management contract. If the verification is successful, the file mapping information is added to the data upload management contract. The file mapping information includes at least: file number, summary, two-way referral information, institution information, patient information, and two-way referral patient diagnosis (or medical record) summary.
[0117] In addition, the present application also provides an electronic device, including:
[0118] memory; processor; and computer program;
[0119] The computer program is stored in the memory and configured to be executed by the processor to implement any of the above methods.
[0120] In addition, the present application also provides a computer-readable storage medium on which a computer program is stored; the computer program is executed by a processor to implement any of the methods described above.
[0121] In summary, this application mainly solves the problem of difficulty in securely sharing bidirectional referral record data and patient electronic medical record information between all parties. The main advantages are as follows:
[0122] (1) Only the hash value of the two-way referral record data is stored on the blockchain network. Only the entity holding the corresponding private key can view the data record, and each operation will be recorded on the blockchain; the two-way referral record data and the patient's electronic medical record information are stored in the local InterPlanetary File System (IPFS). Only the patient's authorization and the corresponding medical institution can view it, which is highly secure.
[0123] (2) A dual-chain architecture combining alliance chain and private chain is adopted to ensure data security while taking into account system efficiency;
[0124] (3) The two-way referral data uses a fully homomorphic encryption algorithm through smart contracts to ensure the privacy and secure transmission of the two-way referral data;
[0125] (4) The introduction of fully homomorphic encryption technology in the blockchain not only ensures the immutability and strong temporal nature of transactions, but also protects the privacy and security of patient data.
[0126] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Furthermore, the present application may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code. The solutions in the embodiments of the present application may be implemented in various computer languages, such as C, VHDL, Verilog, object-oriented programming language Java, and interpreted scripting language JavaScript.
[0127] This application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the application. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate a device for implementing the functions specified in one or more processes in the flowchart and / or one or more blocks in the block diagram.
[0128] These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce a product including an instruction device that implements the functions specified in one or more processes in the flowchart and / or one or more boxes in the block diagram.
[0129] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, so that the instructions executed on the computer or other programmable device provide steps for implementing the functions specified in one or more processes in the flowchart and / or one or more boxes in the block diagram.
[0130] Although the preferred embodiments of the present application have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the present application.
[0131] Obviously, those skilled in the art may make various changes and modifications to this application without departing from the spirit and scope of this application. Thus, if these modifications and variations of this application fall within the scope of the claims of this application and their equivalents, this application is intended to include these modifications and variations.
Claims
1. A two-way referral information encryption and sharing method based on blockchain, characterized in that: include: Step S10, writing the fully homomorphic encryption algorithm into the smart contract of the blockchain; Step S20, when the member nodes of the two-way referral conduct data transactions through the blockchain network, the smart contract is mobilized to encrypt and decrypt the data; The smart contract is used to determine whether the user of each member node has the authority to upload, modify, access, and delete data, and complete the logical processing of data services by each member node.
2. According to the blockchain-based two-way referral information encryption and sharing method of claim 1, it is characterized in that: In step S20, the blockchain network stores: block information summary, two-way referral record data, and patient electronic medical record data.
3. According to the blockchain-based two-way referral information encryption and sharing method of claim 1, it is characterized in that: The member nodes include: a referral initiating patient node, a referral initiating institution doctor node, a referral initiating medical institution node, a referral receiving medical institution node, a referral receiving doctor node and a supervision node; The doctor node of the referral initiating institution and the node of the referral receiving medical institution both have data upload and data access permissions; The referral initiating patient node, referral initiating medical institution node, referral receiving doctor node and supervision node all have data access rights.
4. The blockchain-based two-way referral information encryption and sharing method according to claim 1 is characterized in that: In step S20, the smart contract is activated to encrypt and decrypt the data, including: Step S201, initializing parameters; Step S202, setting the function of the smart contract; Step S203, monitoring the blockchain node status; Step S204, execute the smart contract according to the blockchain node status to complete the encryption / decryption of the two-way referral medical data.
5. According to the blockchain-based two-way referral information encryption and sharing method of claim 4, it is characterized in that: The blockchain node status includes two states: request response and receiving feedback. The request response means obtaining the node address, and the receiving feedback means receiving the contract interface, contract address and data. The step S204 includes: Step S2041, judging the legality of the node state, when the node state is requesting a response and is legal, executing step S2042, when the node state is receiving feedback and is legal, executing step S2043; Step S2042, executing the smart contract, encrypting the two-way referral medical data, and sending the encrypted data to the blockchain network; Step S2043, execute the smart contract, obtain the encrypted data, contract interface, contract address, and decrypt the encrypted data.
6. The blockchain-based two-way referral information encryption and sharing method according to claim 1 is characterized in that: The blockchain network adopts a dual-chain architecture that combines a consortium chain and a private chain.
7. A two-way referral information encryption and sharing system based on blockchain, characterized in that: include: Multiple terminals as member nodes of the blockchain network, each of which communicates with the blockchain network; The terminal is used to complete the generation of referral initiation, upward referral, downward referral application form and referral record according to the operation authority; The blockchain network is used to encrypt and share information when each member node conducts data transactions; Among them, the encryption and sharing of the information adopts the blockchain-based two-way referral information encryption and sharing method described in claims 1 to 6.
8. The blockchain-based two-way referral information encryption and sharing system according to claim 7 is characterized in that: The terminal is loaded with a CA certificate, which contains an account ID, a public-private key pair, and operation permissions.
9. An electronic device, characterized in that: include: Memory; processor; as well as Computer programs; The computer program is stored in the memory and is configured to be executed by the processor to implement the method according to any one of claims 1 to 6.
10. A computer-readable storage medium, characterized in that: A computer program is stored thereon; the computer program is executed by a processor to implement the method according to any one of claims 1 to 6.
Citation Information
Patent Citations
Block chain-based digital medical information storage and sharing architecture construction method
CN114090510A
Electronic medical data sharing method, system, equipment and medium
CN115996151A
Zero-knowledge contingent payments protocol for granting access to encrypted assets
EP3764588A1
Trusted identity solution using blockchain
US20200076615A1
Cited By
Federal data sharing method and device based on front node
CN119316229A
Financial sharing platform based on block chain technology
CN120707137A
