Medical information processing method and system, electronic device and readable storage medium
By using hash algorithms and Merkle tree technology to store medical insurance data in separate channels on the blockchain, the data security and privacy issues of the medical insurance system are resolved, safe and reliable data sharing and query are achieved, and the efficiency and security of medical insurance management are improved.
Patent Information
- Application Number
- CN202110632721.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-06-07
- Publication Date
- 2025-09-19
- Estimated Expiration
- 2041-06-07
AI Technical Summary
The existing medical insurance management system has security risks caused by centralized data storage, including data leakage and tampering, which makes it difficult to ensure data integrity and privacy, especially affecting medical treatment and data query in the case of out-of-town medical treatment.
Using hash algorithm and Merkle tree technology, medical data is uploaded in two ways, one to the root node of the medical data center and the other to the patient's root node. Two data structures are constructed through blockchain, one for internal storage in the hospital and the other for patient sharing, forming an unalterable electronic medical record blockchain.
It achieves secure storage and privacy protection of medical data, prevents data tampering and leakage, supports on-demand data sharing across the country, and improves the efficiency of medical insurance review and data traceability.
Smart Images

Figure CN115510050B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of blockchain, and in particular to a medical information processing method and system, an electronic device, and a readable storage medium. Background Art
[0002] With the continuous improvement of the social security system, medical insurance coverage has expanded, and local hospitals have become the primary destination for patients seeking medical care. As the number of medical insurance personnel continues to grow, the workload of medical insurance settlement has become increasingly daunting. Uneven regional economic development has led to uneven distribution of medical resources and frequent population mobility. Furthermore, with the rapid economic development and increasing demand for health care in recent years, the number of people seeking medical treatment in other places has increased. To reduce the workload of hospital administrators and improve the efficiency of medical insurance review and settlement processes by standardizing and streamlining the medical insurance review and settlement process, several online medical insurance patient management platforms have emerged. Several social security departments have also established a national platform for medical settlement in other places, encompassing settlement, collaborative management, query services, and statistical analysis subsystems, as well as provincial and municipal social security business processing systems for participating and receiving medical treatment.
[0003] Existing local medical insurance management systems and national inter-provincial medical treatment settlement platforms all rely on traditional architectures, digitally managing and storing medical insurance information. Medical insurance data is stored on medical insurance management system servers or databases. Furthermore, whether centralized at the national, provincial, or municipal level, medical insurance data is subject to risks such as data leakage and tampering. When central storage servers are subject to unauthorized access, hacker attacks, or tampering, data security is difficult to guarantee, and data modifications are difficult to fully trace. For example, if the storage server of the social insurance business processing system at a municipal medical treatment site is attacked, hospitals at the treatment site will be unable to retrieve patient information, preventing patients from receiving treatment at the treatment site. If data tampering occurs, even more serious consequences may result. Summary of the Invention
[0004] The present invention provides a medical information processing method and system, an electronic device and a readable storage medium to solve the technical defects in the prior art.
[0005] The present invention provides a medical information processing method, comprising:
[0006] Hash the medical information of each patient and each time to obtain the processed hash value;
[0007] Uploading the hash value in two ways, one of which is uploaded to the root node of the medical data center based on the first Merkle tree, and the other is uploaded to the root node of the patient based on the second Merkle tree;
[0008] Multiple second Merkle trees of the same patient are timestamped into a blockchain.
[0009] According to the medical information processing method of an embodiment of the present invention, the hashing of each patient's medical information at each time includes:
[0010] According to the preset cycle, each patient's medical information is packaged according to the medical industry information standards and then hashed.
[0011] According to the medical information processing method of the embodiment of the present invention, the method further includes:
[0012] Upload the first Merkle tree and the second Merkle tree to the blockchain platform.
[0013] According to the medical information processing method of an embodiment of the present invention, the first Merkle tree has the comprehensive medical information of each patient as a leaf node and the medical data center as a root node, and the first Merkle tree is opened on demand to store the comprehensive medical information;
[0014] The second Merkle tree has the single medical data information of the same patient as the leaf nodes and the target patient as the root node; the second Merkle tree is used to share the single medical data information externally.
[0015] According to the medical information processing method of the embodiment of the present invention, the method further includes:
[0016] Based on the patient's registration information, determine whether the patient's medical information exists in the blockchain platform;
[0017] If the medical information of the patient exists, the leaf nodes of the first Merkle tree and the leaf nodes of the second Merkle tree are updated respectively based on the patient's registration information and uploaded to the blockchain platform.
[0018] According to the medical information processing method of the embodiment of the present invention, the method further includes:
[0019] If the medical information of the patient does not exist, generating the medical information of the patient based on the patient's registered medical information;
[0020] After hashing the patient's medical information, it is uploaded to the medical data center root node and the patient root node respectively, and then uploaded to the blockchain platform.
[0021] According to the medical information processing method according to an embodiment of the present invention, the leaf nodes of the first Merkle tree and the root node of the medical data center further include:
[0022] Branch nodes are set at the unit level.
[0023] An embodiment of the present invention further provides a medical information processing system, comprising:
[0024] The hash processing module is used to perform hash processing on each patient's medical information each time to obtain the processed hash value;
[0025] A medical information processing module is used to upload the hash value in two ways, one of which is uploaded to the medical data center root node based on the first Merkle tree, and the other is uploaded to the patient root node based on the second Merkle tree;
[0026] The blockchain processing module is used to form a blockchain by timestamps using multiple second Merkle trees of the same patient.
[0027] The present invention also provides an electronic device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the steps of any of the above-described medical information processing methods are implemented.
[0028] The present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of any of the medical information processing methods described above.
[0029] The embodiment of the present invention introduces a blockchain solution to upload the hash value in two ways, one of which is uploaded to the root node of the medical data center based on the first Merkle tree, and the other is uploaded to the patient root node based on the second Merkle tree; and in response to the open demand for business data, two data structures are designed to store key data on the chain, solving the security problems brought about by centralized storage and single-point storage of medical data, and enabling nationwide medical data sharing on demand, so that data can stimulate productivity and effectively prevent data tampering and privacy leakage. BRIEF DESCRIPTION OF THE DRAWINGS
[0030] In order to more clearly illustrate the technical solutions in the present invention or the prior art, a brief introduction is given below to 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 any creative work.
[0031] Figure 1 is a flowchart of a medical information processing method provided by one embodiment of the present invention;
[0032] Figure 2 Schematic diagram of the structure of the Merkle tree in the medical information processing method provided by one embodiment of the present invention;
[0033] Figure 3 This is a schematic diagram of the structure of the blockchain in the medical information processing method provided by one embodiment of the present invention;
[0034] Figure 4 This is a schematic diagram of the process of uploading diagnosis and treatment information to a chain in the medical information processing method provided by one embodiment of the present invention;
[0035] Figure 5 is a schematic diagram of a medical information processing system provided by an embodiment of the present invention;
[0036] Figure 6 It is a structural schematic diagram of the electronic device provided by the present invention. DETAILED DESCRIPTION
[0037] To make the objectives, technical solutions, and advantages of the present invention more clear, the technical solutions of the present invention will be clearly and completely described below in conjunction with the accompanying drawings. Obviously, the embodiments described are only some of the embodiments of the present invention, not all of them. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative efforts shall fall within the scope of protection of the present invention.
[0038] The embodiment of the present invention discloses a medical information processing method, see Figure 1 ,include:
[0039] S1. Hash the medical information of each patient and each time to obtain the processed hash value;
[0040] Medical information such as medical insurance payment information, patient diagnosis and treatment information in the medical management system or off-site settlement platform is stored using the hash algorithm in blockchain technology, and the characteristics of hash functions and Merkle trees are utilized to achieve the characteristics of non-tamperability of medical information ledgers, while solving the storage problems of key data such as electronic medical records and electronic doctor's orders.
[0041] The hash algorithm uses mathematical algorithms to map inconsistently sized data into strings of fixed size. From another perspective, the encrypted hash algorithm is a one-way function, which means that the hash value of the data can be easily calculated, but it is difficult to infer the original data based on the hash value.
[0042] S2. Uploading the hash value in two ways: one way is uploaded to the root node of the medical data center based on the first Merkle tree, and the other way is uploaded to the root node of the patient based on the second Merkle tree;
[0043] The first Merkle tree and the second Merkle tree are both Merkle tree structures. The Merkle Tree structure is a data structure based on a hash algorithm. Its characteristic is that each non-leaf node is the hash value of its leaf node. The hash value is uploaded in two ways, one way is uploaded to the root node of the medical data center based on the first Merkle tree, and the other way is uploaded to the root node of the patient based on the second Merkle tree. The upload paths are different, and the two root nodes are used to realize the separate storage of data. In view of the privacy of medical data, in the distributed storage solution based on blockchain, the first Merkle tree is an on-demand open Merkle tree for storing internal medical data of the hospital to meet the needs of hospital scientific research and patient privacy protection. In view of the sharing needs of some medical data, in the distributed storage solution based on blockchain, the second Merkle tree is a shared patient medical record Merkle tree to meet the understanding of the patient's previous non-tamperable treatment process by different medical institutions.
[0044] See the diagram of the Merkle tree structure for details. Figure 2 The value of node3 is the hash of node7 and node8, and the value of the root node is the hash of node3 and node4. The purpose of the Merkle tree is to allow the data in a block to be transmitted piecemeal: a node can download only the block header from one source, and a small part of the tree is associated with another source, and still ensure that all the data is correct. This works because the hash values are transmitted upward.
[0045] S3. Multiple second Merkle trees of the same patient are combined into a blockchain according to timestamps.
[0046] In response to the characteristics of centralized storage and the risks it brings, such as illegal access, hacker attacks, and data tampering, a distributed data storage method based on blockchain is proposed to store key data and achieve data security and anti-tampering based on the technical characteristics of blockchain.
[0047] The embodiment of the present invention introduces a blockchain solution to upload the hash value in two ways, one of which is uploaded to the root node of the medical data center based on the first Merkle tree, and the other is uploaded to the patient root node based on the second Merkle tree; and in response to the open demand for business data, two data structures are designed to store key data on the chain, solving the security problems brought about by centralized storage and single-point storage of medical data, and enabling nationwide medical data sharing on demand, so that data can stimulate productivity and effectively prevent data tampering and privacy leakage.
[0048] The medical information processing method according to the embodiment of the present invention can achieve data protection:
[0049] All electronic records, including medical records, orders, and prescriptions, from each designated medical institution can be considered a kind of medical ledger. The existing electronic medical record storage rules remain unchanged. Hospitals, departments, and physicians can be thought of as branches on an inverted tree, with the hospital (data center) at the root. This tree can be binary or multi-branched, with its depth set based on the hospital's departments and personnel. The leaves represent the medical information for each patient. Each leaf of the tree (a patient's medical record at the hospital) is packaged periodically (daily, weekly, or monthly), hashed, and uploaded node by node, as shown in the Merkle tree diagram above. This creates a Merkle tree. This tree stores the original electronic medical records of all patients at the hospital and can be used for medical research, though only a portion is publicly accessible.
[0050] At the same time, data sharing can also be achieved:
[0051] The hospital uses each patient as the root node and builds a two-pronged, two-layer Merkle tree. The leaves (identical to the patient's medical records at the hospital) are directly below the root node. If each visit is used as a node, the patient's clinical information, including registration, admission, discharge, test results, surgical reports, medical records, prescriptions, and billing data, is packaged according to medical industry information standards, hashed, and uploaded in two ways: one to the hospital's root node as required, and the other to the patient's root node. This forms a bookkeeping "block" with "times" as the node.
[0052] Since the leaves of these two Merkle trees correspond to the same patients, and the Merkle tree with the patient as the root node is shared externally, the specific medical information is stored by both the hospital and the patient. Figure 3 This "block" and the "blocks" of the patient's treatment in other hospitals form a block "chain" of the patient's medical records in a timestamp sequence, namely the "electronic medical record" or "health record."
[0053] The above designs two trees of the medical blockchain: one is an internal Merkle tree of the hospital that is open on demand to meet the hospital's scientific research and patient privacy protection needs; the other is a patient medical record Merkle tree (blockchain) shared with the outside world to meet the needs of different medical institutions for understanding the patient's previous and unalterable medical treatment process.
[0054] Because the Merkle tree is essentially a hash tree, the root node is only the hash value of the relevant leaves or nodes, not the specific medical records. In other words, the leaves (specific medical information) are only stored in the hands of the hospital and the patient and are not publicly available. What is shared is only the hash value of the patient's medical record Merkle tree root node and the hash value of the previous electronic medical record. The hospital decides whether to share specific medical information and other medical information with third parties on demand. The patient determines the scope and content of their medical information and other medical information to be disclosed. This is of great significance for clarifying the ownership of personal data and protecting privacy rights.
[0055] Due to the characteristics of hash functions, variables of any length can be converted into hash values of the same length after hashing. Therefore, it can be assumed that while medical data continues to grow, the hash value remains the same length. Conversely, using the hash value to infer the original data is currently unsolvable. Since patients are treated at different hospitals, if each hospital stored all of their medical records locally, the centralization issue mentioned above would arise. However, by using the Merkle tree and hash algorithm in the blockchain, each hospital only needs to store the hash value of the patient's previous medical record and the current medical information, avoiding the rapid storage expansion and security issues that would result from backing up all the patient's medical records locally. By storing the fixed-length hash value of the previous medical record locally, the possibility of tampering with the patient's medical records by other institutions is prevented.
[0056] According to the medical information processing method of an embodiment of the present invention, the hashing of each patient's medical information at each time includes:
[0057] According to the preset cycle, each patient's medical information is packaged according to the medical industry information standards and then hashed.
[0058] According to the medical information processing method of the embodiment of the present invention, the method further includes:
[0059] Upload the first Merkle tree and the second Merkle tree to the blockchain platform.
[0060] According to the medical information processing method of an embodiment of the present invention, the first Merkle tree has the comprehensive medical information of each patient as a leaf node and the medical data center as a root node, and the first Merkle tree is opened on demand to store the comprehensive medical information;
[0061] The second Merkle tree has the single medical data information of the same patient as the leaf nodes and the target patient as the root node; the second Merkle tree is used to share the single medical data information externally.
[0062] According to the medical information processing method of the embodiment of the present invention, the method further includes:
[0063] Based on the patient's registered medical information, determine whether the patient's medical information exists in the blockchain platform;
[0064] If the medical information of the patient exists, the leaf nodes of the first Merkle tree and the leaf nodes of the second Merkle tree are updated respectively based on the patient's registration information and uploaded to the blockchain platform.
[0065] According to the medical information processing method of the embodiment of the present invention, the method further includes:
[0066] If the medical information of the patient does not exist, generating the medical information of the patient based on the patient's registered medical information;
[0067] After hashing the patient's medical information, it is uploaded to the medical data center root node and the patient root node respectively, and then uploaded to the blockchain platform.
[0068] According to the medical information processing method according to an embodiment of the present invention, the leaf nodes of the first Merkle tree and the root node of the medical data center further include:
[0069] Branch nodes are set at the unit level. Hospitals, departments, and doctors can be thought of as branch nodes on an upside-down tree, with the root node being the hospital (data center). This tree can be binary or multi-branched, with the depth set based on the hospital departments and personnel. The leaves represent the medical information corresponding to each patient.
[0070] See also Figure 4 , Figure 4 A schematic diagram of the process of uploading medical information to the blockchain is given. To further illustrate the medical information processing method, a more specific processing process is provided below, including:
[0071] Based on the patient's registered medical information, query the diagnosis and treatment information in the blockchain platform (that is, the blockchain platform corresponding to the medical system) to determine whether the patient's medical information exists in the blockchain platform;
[0072] If the medical information of the patient exists, the leaf nodes of the first Merkle tree and the leaf nodes of the second Merkle tree are updated respectively based on the patient's registration information and uploaded to the blockchain platform.
[0073] If the medical information of the patient does not exist, generating the patient's diagnosis and treatment information (that is, medical information) based on the patient's registered medical information;
[0074] After hashing the patient's medical information, it is uploaded to the medical data center root node and the patient root node respectively, and then uploaded to the blockchain platform.
[0075] The embodiment of the present invention discloses a medical information processing system, see Figure 5 ,include:
[0076] The hash processing module 10 is used to perform hash processing on each patient's medical information each time to obtain a processed hash value;
[0077] The hash algorithm uses mathematical algorithms to map inconsistently sized data into strings of fixed size. From another perspective, the encrypted hash algorithm is a one-way function, which means that the hash value of the data can be easily calculated, but it is difficult to infer the original data based on the hash value.
[0078] The medical information processing module 20 is used to upload the hash value in two ways, one of which is uploaded to the medical data center root node based on the first Merkle tree, and the other is uploaded to the patient root node based on the second Merkle tree;
[0079] The hash value is uploaded in two paths: one to the medical data center root node based on the first Merkle tree, and the other to the patient root node based on the second Merkle tree. These different upload paths utilize two different root nodes to achieve separate data storage. To ensure the privacy of medical data, in a blockchain-based distributed storage solution, the first Merkle tree is an on-demand, open Merkle tree for storing internal hospital medical data, meeting the needs of hospital research and patient privacy protection. To address the need to share some medical data, in a blockchain-based distributed storage solution, the second Merkle tree is a shared Merkle tree of patient medical records, allowing different medical institutions to understand the patient's entire, unalterable medical history.
[0080] The blockchain processing module 30 is used to form a blockchain by timestamps using multiple second Merkle trees of the same patient.
[0081] This block, along with other blocks of the patient's treatment at other hospitals, forms a block chain of the patient's medical records, known as an "electronic medical record" or "health record," in a time-stamped sequence. To address the inherent risks of centralized storage, such as unauthorized access, hacker attacks, and data tampering, a distributed data storage method based on blockchain has been proposed. This method is used to store critical data and ensures data security and tamper-proofing based on the technical characteristics of blockchain.
[0082] The embodiment of the present invention introduces a blockchain solution to upload the hash value in two ways, one of which is uploaded to the root node of the medical data center based on the first Merkle tree, and the other is uploaded to the patient root node based on the second Merkle tree; and in response to the open demand for business data, two data structures are designed to store key data on the chain, solving the security problems brought about by centralized storage and single-point storage of medical data, and enabling nationwide medical data sharing on demand, so that data can stimulate productivity and effectively prevent data tampering and privacy leakage.
[0083] According to the medical information processing system of an embodiment of the present invention, the hashing of each patient's medical information at each time includes:
[0084] According to the preset cycle, each patient's medical information is packaged according to the medical industry information standards and then hashed.
[0085] According to the medical information processing system of the embodiment of the present invention, the system further includes:
[0086] The chain module is used to upload the first Merkle tree and the second Merkle tree to the blockchain platform.
[0087] According to the medical information processing system of an embodiment of the present invention, the first Merkle tree has the comprehensive medical information of each patient as a leaf node and the medical data center as a root node, and the first Merkle tree is opened on demand to store the comprehensive medical information;
[0088] The second Merkle tree has the single medical data information of the same patient as the leaf nodes and the target patient as the root node; the second Merkle tree is used to share the single medical data information externally.
[0089] According to the medical information processing system of the embodiment of the present invention, the system further includes:
[0090] A judgment module, configured to judge whether the medical information of the patient exists in the blockchain platform based on the patient's registration information;
[0091] An update module is used to update the leaf nodes of the first Merkle tree and the leaf nodes of the second Merkle tree respectively based on the patient's registration information when the patient's medical information exists, and upload them to the blockchain platform.
[0092] According to the medical information processing system of the embodiment of the present invention, the system further includes:
[0093] a medical information generation module, configured to generate the medical information of the patient based on the patient's registered medical information when the medical information of the patient does not exist;
[0094] A creation module is used to hash the patient's medical information and upload it to the medical data center root node and the patient root node, and then upload it to the blockchain platform.
[0095] According to the medical information processing system of an embodiment of the present invention, the leaf nodes of the first Merkle tree and the root node of the medical data center further include:
[0096] Branch nodes are set at the unit level.
[0097] Figure 6 The following is a schematic diagram of the physical structure of an electronic device, which may include: a processor 610, a communication interface 620, a memory 630, and a communication bus 640. The processor 610, the communication interface 620, and the memory 630 communicate with each other via the communication bus 640. The processor 610 may call logic instructions in the memory 630 to execute a medical information processing method, which includes:
[0098] S1. Hash the medical information of each patient and each time to obtain the processed hash value;
[0099] S2. Uploading the hash value in two ways: one way is uploaded to the root node of the medical data center based on the first Merkle tree, and the other way is uploaded to the root node of the patient based on the second Merkle tree;
[0100] S3. Multiple second Merkle trees of the same patient are combined into a blockchain according to timestamps.
[0101] In addition, the logical instructions in the above-mentioned memory can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when sold or used as an independent product. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes several instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0102] In another aspect, the present invention further provides a computer program product, comprising a computer program stored on a non-transitory computer-readable storage medium, wherein the computer program comprises program instructions. When the program instructions are executed by a computer, the computer is capable of performing a medical information processing method, the method comprising:
[0103] S1. Hash the medical information of each patient and each time to obtain the processed hash value;
[0104] S2. Uploading the hash value in two ways: one way is uploaded to the root node of the medical data center based on the first Merkle tree, and the other way is uploaded to the root node of the patient based on the second Merkle tree;
[0105] S3. Multiple second Merkle trees of the same patient are combined into a blockchain according to timestamps.
[0106] In another aspect, the present invention further provides a non-transitory computer-readable storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the computer program is implemented to perform a medical information processing method, the method comprising:
[0107] S1. Hash the medical information of each patient and each time to obtain the processed hash value;
[0108] S2. Uploading the hash value in two ways: one way is uploaded to the root node of the medical data center based on the first Merkle tree, and the other way is uploaded to the root node of the patient based on the second Merkle tree;
[0109] S3. Multiple second Merkle trees of the same patient are combined into a blockchain according to timestamps.
[0110] The system embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units. They may be located in one place or distributed across multiple network units. Some or all of the modules may be selected based on actual needs to achieve the objectives of this embodiment. Persons of ordinary skill in the art will be able to understand and implement the present invention without inventive effort.
[0111] Through the description of the above embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by means of software plus a necessary general hardware platform, or of course, by hardware. Based on this understanding, the essence of the above technical solution or the part that contributes to the existing technology can be embodied in the form of a software product. The computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a magnetic disk, an optical disk, etc., and includes a number of instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or certain parts of the embodiments.
[0112] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the various embodiments of the present invention.
Claims
1. A medical information processing method, characterized in that: include: Hash the medical information of each patient and each time to obtain the processed hash value; Uploading the hash value in two ways, one of which is uploaded to the root node of the medical data center based on the first Merkle tree, and the other is uploaded to the root node of the patient based on the second Merkle tree; Multiple second Merkle trees of the same patient are timestamped into a blockchain; The first Merkle tree has the comprehensive medical information of each patient as a leaf node and the medical data center as a root node, and the first Merkle tree is opened on demand to store the comprehensive medical information; The second Merkle tree has the single medical information of the same patient as the leaf nodes and the target patient as the root node; the second Merkle tree is used to share the single medical information externally.
2. The medical information processing method according to claim 1, wherein: The hashing of each patient's medical information at each time includes: According to the preset cycle, each patient's medical information is packaged according to the medical industry information standards and then hashed.
3. The medical information processing method according to claim 1, wherein: The method further comprises: Upload the first Merkle tree and the second Merkle tree to the blockchain platform.
4. The medical information processing method according to claim 1, wherein: The method further comprises: Based on the patient's registration information, determine whether the patient's medical information exists in the blockchain platform; If the medical information of the patient exists, the leaf nodes of the first Merkle tree and the leaf nodes of the second Merkle tree are updated respectively based on the patient's registration information and uploaded to the blockchain platform.
5. The medical information processing method according to claim 4, characterized in that: The method further comprises: If the medical information of the patient does not exist, generating the medical information of the patient based on the patient's registered medical information; After hashing the patient's medical information, it is uploaded to the medical data center root node and the patient root node respectively, and then uploaded to the blockchain platform.
6. The medical information processing method according to claim 1, wherein: The leaf nodes of the first Merkle tree and the root node of the medical data center also include: Branch nodes are set at the unit level.
7. A medical information processing system, characterized in that: include: The hash processing module is used to perform hash processing on each patient's medical information each time to obtain the processed hash value; A medical information processing module is used to upload the hash value in two ways, one of which is uploaded to the medical data center root node based on the first Merkle tree, and the other is uploaded to the patient root node based on the second Merkle tree; A blockchain processing module, configured to combine multiple second Merkle trees of the same patient into a blockchain according to timestamps; The first Merkle tree has the comprehensive medical information of each patient as a leaf node and the medical data center as a root node, and the first Merkle tree is opened on demand to store the comprehensive medical information; The second Merkle tree has the single medical information of the same patient as the leaf nodes and the target patient as the root node; the second Merkle tree is used to share the single medical information externally.
8. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the program, the steps of the medical information processing method according to any one of claims 1 to 6 are implemented.
9. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the medical information processing method according to any one of claims 1 to 6 are implemented.
Citation Information
Patent Citations
Personal health records sharing system and method thereof
KR102097622B1
KR20200006375A