WO2019232946A1 - Method for recording medical data, system, computer apparatus, and storage medium - Google Patents
Method for recording medical data, system, computer apparatus, and storage medium Download PDFInfo
- Publication number
- WO2019232946A1 WO2019232946A1 PCT/CN2018/103934 CN2018103934W WO2019232946A1 WO 2019232946 A1 WO2019232946 A1 WO 2019232946A1 CN 2018103934 W CN2018103934 W CN 2018103934W WO 2019232946 A1 WO2019232946 A1 WO 2019232946A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- block
- nodes
- node
- data block
- medical data
- Prior art date
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/104—Peer-to-peer [P2P] networks
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/30—Decision processes by autonomous network management units using voting and bidding
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/104—Peer-to-peer [P2P] networks
- H04L67/1044—Group management mechanisms
- H04L67/1051—Group master selection mechanisms
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/1097—Protocols in which an application is distributed across nodes in the network for distributed storage of data in networks, e.g. transport arrangements for network file system [NFS], storage area networks [SAN] or network attached storage [NAS]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/12—Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
Definitions
- the present application relates to the field of data processing technology, and in particular, to a medical data recording method, system, computer device, and storage medium.
- a medical data recording method includes the following steps:
- the blockchain system establishes a P2P network at the network layer, and sets any computer in the medical institution that applies to record medical data information as a node in the P2P network;
- the blockchain system encapsulates a consensus mechanism at the consensus layer, and a preset number of nodes are selected through the consensus mechanism, and the selected nodes obtain a right to rotate bookkeeping rights according to a preset schedule, and the bookkeeping is to record medical treatment Data information process;
- the node After the node obtains the right to take turns in accounting, it receives the medical data information sent by the consensus mechanism, establishes a new data block, records the medical data information into the new data block, and passes the area
- the chain structure of the block chain system links the new data block to the previous data block to form a new block chain.
- a medical data recording system includes:
- Establish a P2P network unit set up as a blockchain system to establish a P2P network at the network layer, and set any computer in the medical institution that applies to record medical data information as a node in the P2P network;
- the node selection unit is set to encapsulate the consensus mechanism of the blockchain system at the consensus layer, and a preset number of nodes are selected through the consensus mechanism, and the selected nodes obtain the right of rotating bookkeeping according to a preset schedule. Recounting is the process of recording medical data information;
- the node accounting unit is configured to receive the medical data information sent by the consensus mechanism after the node obtains the accounting rights in turn, establish a new data block, and record the medical data information into the new data block. And through the chain structure of the blockchain system, the new data block is linked to the previous data block to form a new blockchain.
- a computer device includes a memory and a processor.
- the memory stores computer-readable instructions.
- the processor causes the processor to perform the following steps:
- the blockchain system establishes a P2P network at the network layer, and sets any computer in the medical institution that applies to record medical data information as a node in the P2P network;
- the blockchain system encapsulates a consensus mechanism in a consensus layer, and a preset number of nodes are filtered through the consensus mechanism, and the selected nodes obtain a right to rotate bookkeeping rights according to a preset schedule, and the bookkeeping is The process of recording medical data;
- the node After the node obtains the right to take turns in accounting, it receives the medical data information sent by the consensus mechanism, establishes a new data block, records the medical data information into the new data block, and passes the area
- the chain structure of the block chain system links the new data block to the previous data block to form a new block chain.
- a storage medium storing computer-readable instructions.
- the one or more processors execute the following steps:
- the blockchain system establishes a P2P network at the network layer, and sets any computer in the medical institution that applies to record medical data information as a node in the P2P network;
- the blockchain system encapsulates a consensus mechanism in a consensus layer, and a preset number of nodes are filtered through the consensus mechanism, and the selected nodes obtain a right to rotate bookkeeping rights according to a preset schedule, and the bookkeeping is The process of recording medical data;
- the node After the node obtains the right to take turns in accounting, it receives the medical data information sent by the consensus mechanism, establishes a new data block, records the medical data information into the new data block, and passes the area
- the chain structure of the block chain system links the new data block to the previous data block to form a new block chain.
- the above-mentioned medical data recording method, device, computer equipment and storage medium including a blockchain system, establish a P2P network at the network layer, and set any computer in the medical institution that applies to record medical data information as a node in the P2P network; area
- the blockchain system encapsulates the consensus mechanism in the consensus layer, and selects a preset number of nodes through the consensus mechanism.
- the selected nodes obtain the right to rotate accounting according to a preset schedule, and the accounting is the process of recording medical data information; the node obtains After taking turns to book rights, receive the medical data information sent by the consensus mechanism, establish a new data block, record the medical data information into the new data block, and link the new data block through the chain structure of the blockchain system Go to the previous data block to form a new blockchain.
- This technical solution uses the distributed ledger technology of blockchain technology to decentralize, and each computer in the network can dynamically adjust medical data information to realize digitalization, transparency and convenience of medical treatment, and better serve individuals and medical related institutions. .
- FIG. 1 is a flowchart of a medical data recording method according to an embodiment of the present application
- FIG. 2 is a flowchart of steps for selecting nodes in this application
- FIG. 3 is a flowchart of a node accounting step of the application
- FIG. 6 is a structural diagram of a medical data recording system in an embodiment of the present application.
- FIG. 1 is a flowchart of a medical data recording method according to an embodiment of the present application. As shown in FIG. 1, a medical data recording method includes:
- Step S1 Establish a P2P network: The blockchain system establishes a P2P network at the network layer, and sets any computer in the medical institution that applies to record medical data information as a node in the P2P network.
- Blockchain system is a system based on blockchain technology, also known as distributed ledger technology, which is an Internet database technology. Its characteristics are decentralized, open and transparent, allowing everyone to participate in maintaining database records.
- Blockchain system mainly includes network layer, consensus layer and data layer.
- Blockchain system is a new application mode of computer technology such as distributed data storage, point-to-point transmission, consensus mechanism, and encryption algorithm.
- the consensus mechanism is a mathematical algorithm for establishing trust and obtaining rights between different nodes in a blockchain system.
- the blockchain used to store data is a chain data structure that combines data blocks in a sequential manner in a chronological order, and it is a cryptographically guaranteed tamper-proof and unforgeable distributed ledger. .
- the blockchain technology can be used to achieve distributed records and distributed storage of data information.
- the so-called distributed records can be collectively recorded by any computer in a medical institution as a node instead of a centralized institution.
- the so-called distributed storage is that data can be stored in all participating nodes, rather than centralized storage in centralized institutional nodes.
- This step uses the P2P network networking method to make the network layer of the blockchain system decentralized.
- Any computer in many medical institutions that wants to apply for recording medical data information is used as a node to form a P2P network, and each node They interact through a flat topology.
- the computers in the medical institution capable of setting up a server and participating in accounting are nodes.
- each node has equal status, and there is no centralized hierarchical structure.
- Each node will participate in the process of verifying information and disseminating information equally.
- Step S2 screening nodes: The blockchain system encapsulates the consensus mechanism in the consensus layer, and selects a preset number of nodes through the consensus mechanism. The selected nodes obtain the right to take turns in bookkeeping according to a preset schedule, and the bookkeeping is used to record medical records. The process of data information.
- the consensus mechanism is the core technology of the blockchain.
- the consensus mechanism determines which node in the P2P network performs accounting, and the accounting decision method will affect the security and reliability of the entire blockchain system.
- the consensus mechanism in this step screens out the preset 101 medical institutions, and the medical data information that needs to be recorded can be obtained by edge computing.
- the top 101 medical institutions that have been screened out have the right to take turns in accounting according to a timetable such as 10 seconds to 30 seconds.
- Step S3 Node accounting: After the node obtains the right to take turns in accounting, the node receives the medical data information sent by the consensus mechanism, establishes a new data block, records the medical data information into the new data block, and passes the chain of the blockchain system. The new data block is linked to the previous data block to form a new block chain.
- the data layer of the blockchain system encapsulates the chain structure of the underlying data blocks, as well as related asymmetric public and private key data encryption algorithms and time stamps. This is the lowest data structure in the entire blockchain system. After a node obtains the right to take turns in accounting, it receives medical data information including hospitalization records, prescriptions, and pictures. After establishing a new data block, it is stored in a chain structure as the data layer information of the blockchain system.
- a blockchain system is established based on a P2P network, the network layer of the blockchain system is decentralized, the data layer of the blockchain system stores medical data information, and the consensus layer of the blockchain system verifies data consensus, thereby Dynamically adjust medical data information to realize digital, transparent and convenient medical treatment, and better serve individuals and medical-related institutions.
- each node in the P2P network interacts through a flat topology.
- a P2P network is a peer-to-peer computer network. It is a distributed application architecture that distributes tasks and workloads between peers. Participants in the network, that is, nodes share some of their hardware resources. , Including processing capabilities, storage capabilities, network connection capabilities, printers, etc. These shared resources provide services and content through the network and can be directly accessed by other peer nodes without going through intermediate entities. Participants in this P2P network are both providers of resources, services, and content, and acquirers of resources, services, and content.
- the flat topology is a secondary network architecture where the nodes proposed in the traditional three-layer network architecture are directly connected to the service provider, which fully meets the interaction requirements of P2P networks.
- the nodes use a flat topology to interact with each other, which can greatly reduce the complexity of the network.
- the computers of the medical institution are in an equal position.
- Each computer has The same function, no distinction between master and slave, a computer can serve as a server, set shared resources for use by other computers in the network, and can also be used as a workstation. There is no dedicated workstation in the entire P2P network, achieving the purpose of decentralization .
- the screening node includes:
- step S201 the DPoS consensus mechanism is adopted:
- the consensus mechanism adopts the DPoS consensus mechanism, and the DPoS consensus mechanism is set to select a preset number of nodes.
- the DPoS consensus mechanism (share authorization certificate mechanism) is based on the principle of allowing everyone who holds BitShares to vote, resulting in 101 representatives, that is, 101 nodes. The rights of the 101 nodes are completely equal to each other.
- a small group of nodes is selected from time to time through different strategies. The selected small group of nodes does new block creation, verification, signature, and mutual supervision, which greatly reduces the number of blocks. The time and computing power required to create and confirm. In this step, the computers of 101 medical institutions are selected as the preset number of nodes by using the DPoS consensus mechanism.
- Step S202 voting and screening of nodes: nodes in the P2P network register on the blockchain system and accept votes from other nodes. After receiving the votes of all nodes, the consensus mechanism records the number of votes of the nodes and obtains the highest number of votes. Set the number of nodes will get the right to take turns accounting.
- nodes When a node is registered, that is, the public key is registered on the blockchain system, and then the consensus mechanism of the blockchain system allocates a 32-bit identifier to the registered node, and this identifier is used as the unique code of the node. After registration, nodes can either vote for other nodes or receive votes from other nodes. Record the number of votes of each node through the consensus mechanism, arrange the number of votes from high to low, and obtain the right to take turns in accounting for the nodes that ranked the top 101.
- step S203 the accounting is performed in turn: the selected nodes obtain the right to rotate in accordance with a preset schedule, and the consensus mechanism sends the medical data information to the selected nodes in turn according to the preset schedule.
- the preset schedule may be to sequentially send medical data information to 101 nodes in a time period of 10 seconds, 20 seconds, or 30 seconds.
- a certain node that has obtained the right to take turns in accounting When establishing a new data block, the consensus mechanism records the recording time of the new data block. The time period from the establishment of the new data block to the broadcast of the entire network exceeds 10 seconds, 20 seconds, or 30 seconds. At that time, it is considered that the node that has obtained the right to take turns in accounting has missed the right to record a new data block, and the consensus mechanism sends this medical data information to the next node that has obtained the right to take turns in accounting instead of completing the accounting.
- the nodes in the P2P network are screened, allocated, and monitored through the DPoS consensus mechanism, which can greatly reduce the time and computing power costs required for block creation and confirmation.
- step S3 the node accounting includes:
- Step S301 establishing a new data block: After the node obtains the medical data information, it creates a new data block.
- the new data block includes a block header and a block body.
- the block header records the Merkle root of the previous block and the Merkle of the current block. Root and timestamp.
- the block body records medical data information. The timestamp is the time when the new data block was created.
- each data block contains a block header and a block body.
- the block header contains the Merkle root of the previous block, the Merkle root of the current block, the timestamp, the hash value of the Merkle root, and the block. Medical data recorded in the body.
- step S302 the Merkle root of the current block is recorded: the node calculates the medical data information obtained by the Merkle root hash function to generate a unique Merkle root record in the Merkle root of the current block of the block header.
- the Merkle tree is an important part of the blockchain system, and its role is to organize medical data information that has been calculated into hash values according to a binary tree structure.
- the generation process of the Merkle tree is: grouping medical data information into a hash function calculation, putting back the new hash value, and then taking out 2 data again for calculation, and recursing until the only Merkle root is left.
- This step uses the advantages of the Merkle tree, that is, good scalability, regardless of the medical data information, a Merkle tree can be generated.
- the time complexity of the search algorithm is very low, and it is easy to find the Merkle root from the underlying traceability to check whether the accounting exists or is legal, which greatly reduces the resource occupation during the operation.
- a unique Merkle root is generated by applying a generation rule of the Merkle tree and calculated by a hash function to the Merkle root of the current block in the block header, and this unique Merkle root is used as the unique identifier of the current block.
- step S303 the block is recorded: the node encrypts the medical data information by using an asymmetric encryption algorithm, and records it into the block.
- the asymmetric encryption algorithm in this step can use the following algorithms:
- the node uses the ⁇ e, n ⁇ public key to encrypt the medical data information and records it in the block to ensure the security and reliability of the data.
- step S304 a new blockchain is formed: the node that has obtained the right to bookkeeping links the current block to the previous block through a chain structure, and records the Merkle root of the previous block, resulting in the formation of a new blockchain .
- the current block is linked to the existing blockchain, and the medical data information will be permanently stored. Unless more than 51% of the nodes in the blockchain system can be controlled at the same time, a single node will access the database. The modification is invalid, so the stability and reliability of medical data information in the entire blockchain is extremely high.
- the Merkle root of the current block is generated by calculating a hash function of the medical data information, and the asymmetric encryption algorithm for the medical data information is recorded in the block body to form a new data block and linked to the blockchain.
- each node can achieve the purpose of accounting, each node has the same rights, and a decentralized accounting model ensures the stability and security of medical data information on the blockchain.
- the node links the new data block to the previous data block to form a new block chain, and further includes step S4, data broadcast verification:
- the node that generates the data block broadcasts the verification message to other nodes in the P2P network.
- the other nodes in the P2P network perform data verification on the new data block and notify the consensus mechanism of the verification result. All verifications received by the consensus mechanism When the results are all valid, all nodes in the P2P network are considered to recognize the new data block as being linked in the blockchain. When all the verification results received by the consensus mechanism are invalid, the new data block is considered invalid and will be removed from It is removed from the blockchain, and the medical data information corresponding to this new data block is sent to the next node that receives the right to take turns to perform accounting.
- the verification message in this step refers to the message of the new data block generated. After other nodes receive this message, the new data block is verified by the Merkle root to verify the data.
- the specific verification process is shown in Figure 5. Proceed as follows:
- Step S401 broadcasting one by one:
- a node that obtains the right to take turns accounting broadcasts the verification message to other nodes in the P2P network, it broadcasts it to neighboring nodes one by one.
- the verification message is the data information of the block header of the new data block. .
- each node adopts the P2P network networking mode, it can be based on the P2P network, and the nodes broadcast the verification message to each adjacent node.
- Step S402 the node verifies the validity: After any node receives the verification message from the neighboring node, it verifies the validity of the data structure and syntax specifications of the new data block. When the verification is valid, the verification message is continued to the neighboring node. Broadcast, when the verification message is invalid, the node does not forward the verification message.
- the node when the node verifies the new data block, the node does not need to save all the blockchain data, it only needs to save the block header containing the new data block to be verified, including the Merkle root of the current block. Find the Merkle root of the new data block through the underlying traceability to verify whether the data exists or is valid. During specific verification, it is determined whether the data structure and syntax specifications of the Merkle root of the current block conform to the unique Merkle root of a Merkle tree.
- the broadcasted nodes in the P2P network refer to a preset number of nodes screened by the consensus mechanism, that is, the 101 nodes that have been selected to obtain the right to take turns accounting.
- the unscreened nodes are not authorized to verify the new data area. Blocks to reduce the time and computing power required to create and confirm blocks.
- each newly generated data block is recognized by other nodes in the P2P network and then linked to the blockchain, so that all nodes have fair accounting and Supervision rights further ensure the security and reliability of all data blocks on the blockchain.
- a medical data recording system including:
- Establish a P2P network unit set up as a blockchain system to establish a P2P network at the network layer, and set any computer in the medical institution that applies to record medical data information as a node in the P2P network;
- the screening node unit is set as a blockchain system that encapsulates the consensus mechanism at the consensus layer. A predetermined number of nodes are selected through the consensus mechanism. The selected nodes obtain the right to take turns to book according to a preset schedule. Data information process;
- the node accounting unit is set to receive the medical data information sent by the consensus mechanism after the node obtains the right to take turns in accounting, establish a new data block, record the medical data information into the new data block, and pass the chain of the blockchain system.
- the new data block is linked to the previous data block to form a new block chain.
- each node in the P2P network interacts through a flat topology.
- the consensus mechanism adopts the DPoS consensus mechanism, and the DPoS consensus mechanism is set to select a preset number of nodes, and the screening node unit further includes:
- the voting screening module is set up so that nodes in the P2P network register on the blockchain system and accept votes from other nodes. After receiving the votes of all nodes, the consensus mechanism records the number of votes of the nodes and presets the highest number of votes. The number of nodes will get the right to take turns in accounting;
- the rotation bookkeeping module is configured to obtain the right of bookkeeping by the selected nodes according to a preset schedule, and the consensus mechanism sends medical data information to the selected nodes in turn according to a preset schedule.
- the node accounting unit includes:
- Establish a new data block module Set the node to obtain medical data information and then create a new data block.
- the new data block includes the block header and the block body.
- the block header records the Merkle root of the previous block and the Merkle of the current block.
- Root, timestamp, block body records medical data information, timestamp is the time when new data block was created;
- the Merkle root module is recorded, and the node is set to generate the unique Merkle root record from the medical data obtained by the Merkle root through the hash function of the Merkle root and record it into the Merkle root of the current block in the block header;
- Record block module set as a node to encrypt medical data information by asymmetric encryption algorithm and record it in the block;
- a new blockchain module is formed, and the node is set to link the current block to the previous block through a chain structure, and the Merkle root of the previous block is recorded, resulting in the formation of a new blockchain.
- the method further includes a verification broadcast unit.
- the node is configured to link a new data block to a previous data block to form a new blockchain, and the node that generates the data block broadcasts a verification message to the P2P.
- Other nodes in the network, other nodes in the P2P network perform data verification on the new data block, and notify the consensus mechanism of the verification result.
- the verification broadcast unit further includes:
- One-by-one broadcasting module when the node set to obtain the right to take turns accounting, broadcasts the verification message to other nodes in the P2P network, and broadcasts it to neighboring nodes one by one.
- the verification message is the data information of the block header of the new data block. ;
- the validity verification module is configured to verify the validity of the data structure and syntax specifications of the new data block after any node receives the verification message from the neighboring node. When the verification is valid, the verification message is continued to the neighboring node. Broadcast. When the verification message is invalid, the node does not forward the verification message.
- the broadcasted nodes in the P2P network refer to a preset number of nodes screened by the consensus mechanism. Unscreened nodes are not authorized to verify new data blocks to reduce the time and computing power required to create and confirm blocks. .
- a computer device which includes a memory and a processor.
- the memory stores computer-readable instructions, and when the computer-readable instructions are executed by the processor, the processor is caused to implement the foregoing when the computer-readable instructions are executed. The steps in the medical data recording method in the embodiment.
- a storage medium storing computer-readable instructions.
- the computer-readable instructions are executed by one or more processors, the one or more processors are caused to execute the medical data records in the foregoing embodiments. Steps in the method.
- the program may be stored in a computer-readable storage medium.
- the storage medium may include: Read-only memory (ROM, Read Only Memory), random access memory (RAM, Random Access Memory), magnetic disks or optical disks, etc.
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computing Systems (AREA)
- Physics & Mathematics (AREA)
- Mathematical Physics (AREA)
- Theoretical Computer Science (AREA)
- Health & Medical Sciences (AREA)
- General Health & Medical Sciences (AREA)
- Medical Informatics (AREA)
- Medical Treatment And Welfare Office Work (AREA)
Abstract
The present application relates to the technical field of data processing, and particularly relates to a method for recording medical data, a system, a computer apparatus, and a storage medium. The method for recording bone medical data comprises: a blockchain system establishing a P2P network in a network layer, and configuring an arbitrary computer in a medical institution as a node in the P2P network; the blockchain system encapsulating a consensus mechanism in a consensus layer, and selecting a pre-determined number of nodes by means of the consensus mechanism, wherein the selected nodes acquire a turn-taking ledger permission according to a pre-determined timetable; upon acquisition of the turn-taking ledger permission, a node establishing a new data block, recording medical data in the new data block, and linking, by means of a chain structure of the blockchain system, the new data block and a previous data block, so as to form a new blockchain. The present application utilizes the distributed ledger technique and decentralization in the blockchain technology, thereby realizing digital, transparent, and convenient medical data management, and providing better services to individuals and medical institutions.
Description
本申请要求于2018年06月04日提交中国专利局、申请号为201810561627.2、发明名称为“医疗数据记录方法、系统、计算机设备和存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims priority from a Chinese patent application filed on June 04, 2018 with the Chinese Patent Office, application number 201810561627.2, and the invention name is "medical data recording method, system, computer equipment, and storage medium", the entire contents of which are incorporated by reference. Incorporated in this application.
本申请涉及数据处理技术领域,尤其涉及一种医疗数据记录方法、系统、计算机设备和存储介质。The present application relates to the field of data processing technology, and in particular, to a medical data recording method, system, computer device, and storage medium.
身体和医疗数据是现代社会个人非常重要的隐私情报,例如指纹或虹膜这种唯一性独特性“身体密码”。因此严格保密个人的医疗记录、身份特征等信息非常重要,但传统的中心化数据库甚至文件柜等,很有可能因为网络操作失误,黑客攻击等原因导致个人健康数据被泄露到网上,让许多人的医疗信息安全受到威胁。同时,可以用于数字医疗记录的智能医疗设备,在紧急情况下无法及时为医院和医生提供最新和可靠的患者信息。Physical and medical data are very important private information for individuals in modern society, such as fingerprints or iris, which are unique and unique "body codes." Therefore, it is very important to keep personal medical records, identity characteristics and other information strictly confidential. However, traditional centralized databases and even file cabinets are likely to cause personal health data to be leaked to the Internet due to network operation errors, hacking, etc. Of medical information is threatened. At the same time, smart medical devices that can be used for digital medical records cannot provide hospitals and doctors with up-to-date and reliable patient information in an emergency.
因此传统的数字医疗数据存在着医疗数据泄露后信息受到安全威胁,医生或医院无法得到患者最新最可靠信息的问题。Therefore, traditional digital medical data has a problem that information is threatened after medical data is leaked, and doctors or hospitals cannot obtain the latest and most reliable information of patients.
发明内容Summary of the Invention
有鉴于此,有必要针对现有的传统数字医疗数据存在的信息安全及获得信息不及时问题,提供一种医疗数据记录方法、系统、计算机设备和存储介质。In view of this, it is necessary to provide a medical data recording method, system, computer equipment, and storage medium in response to the problems of existing information security and untimely access to existing traditional digital medical data.
一种医疗数据记录方法,包括如下步骤:A medical data recording method includes the following steps:
区块链系统在网络层建立P2P网络,将医疗机构中的申请记录医疗数据信息的任一计算机设置为所述P2P网络中的一个节点;The blockchain system establishes a P2P network at the network layer, and sets any computer in the medical institution that applies to record medical data information as a node in the P2P network;
区块链系统在共识层封装共识机制,通过所述共识机制筛选出预设个数的节点,筛选出的所述节点按照预设的时间表获得轮流记账权利,所述记账为记录医疗数据信息的过程;The blockchain system encapsulates a consensus mechanism at the consensus layer, and a preset number of nodes are selected through the consensus mechanism, and the selected nodes obtain a right to rotate bookkeeping rights according to a preset schedule, and the bookkeeping is to record medical treatment Data information process;
所述节点获得轮流记账权利后,接收所述共识机制发送的所述医疗数据信息,建立新数据区块,将所述医疗数据信息记录到所述新数据区块中,并通过所述区块链系统的链式结构,将所述新数据区块链接到前一数据区块,形成新的区块链。After the node obtains the right to take turns in accounting, it receives the medical data information sent by the consensus mechanism, establishes a new data block, records the medical data information into the new data block, and passes the area The chain structure of the block chain system links the new data block to the previous data block to form a new block chain.
一种医疗数据记录系统,包括:A medical data recording system includes:
建立P2P网络单元,设置为区块链系统在网络层建立P2P网络,将医疗机构中的申请记录医疗数据信息的任一计算机设置为所述P2P网络中的一个节点;Establish a P2P network unit, set up as a blockchain system to establish a P2P network at the network layer, and set any computer in the medical institution that applies to record medical data information as a node in the P2P network;
筛选节点单元,设置为区块链系统在共识层封装共识机制,通过所述共识机制筛选出预设个数的节点,筛选出的所述节点按照预设的时间表获得轮流记账权利,所述记账为记录医疗数据信息的过程;The node selection unit is set to encapsulate the consensus mechanism of the blockchain system at the consensus layer, and a preset number of nodes are selected through the consensus mechanism, and the selected nodes obtain the right of rotating bookkeeping according to a preset schedule. Recounting is the process of recording medical data information;
节点记账单元,设置为所述节点获得轮流记账权利后,接收所述共识机制发送的医疗数据信息,建立新数据区块,将所述医疗数据信息记录到所述新数据区块中,并通过所述区块链系统的链式结构,将所述新数据区块链接到前一数据区块,形成新的区块链。The node accounting unit is configured to receive the medical data information sent by the consensus mechanism after the node obtains the accounting rights in turn, establish a new data block, and record the medical data information into the new data block. And through the chain structure of the blockchain system, the new data block is linked to the previous data block to form a new blockchain.
一种计算机设备,包括存储器和处理器,所述存储器中存储有计算机可读指令,所述计算机可读指令被所述处理器执行时,使得所述处理器执行以下步骤:A computer device includes a memory and a processor. The memory stores computer-readable instructions. When the computer-readable instructions are executed by the processor, the processor causes the processor to perform the following steps:
区块链系统在网络层建立P2P网络,将医疗机构中的申请记录医疗数据信息的任一计算机设置为所述P2P网络中的一个节点;The blockchain system establishes a P2P network at the network layer, and sets any computer in the medical institution that applies to record medical data information as a node in the P2P network;
所述区块链系统在共识层封装共识机制,通过所述共识机制筛选出预设个数的节点,筛选出的所述节点按照预设的时间表获得轮流记账权利,所述记账为记录医疗数据信息的过程;The blockchain system encapsulates a consensus mechanism in a consensus layer, and a preset number of nodes are filtered through the consensus mechanism, and the selected nodes obtain a right to rotate bookkeeping rights according to a preset schedule, and the bookkeeping is The process of recording medical data;
所述节点获得轮流记账权利后,接收所述共识机制发送的所述医疗数据信息,建立新数据区块,将所述医疗数据信息记录到所述新数据区块中,并通过所述区块链系统的链式结构,将所述新数据区块链接到前一数据区块,形成新 的区块链。After the node obtains the right to take turns in accounting, it receives the medical data information sent by the consensus mechanism, establishes a new data block, records the medical data information into the new data block, and passes the area The chain structure of the block chain system links the new data block to the previous data block to form a new block chain.
一种存储有计算机可读指令的存储介质,所述计算机可读指令被一个或多个处理器执行时,使得一个或多个处理器执行以下步骤:A storage medium storing computer-readable instructions. When the computer-readable instructions are executed by one or more processors, the one or more processors execute the following steps:
区块链系统在网络层建立P2P网络,将医疗机构中的申请记录医疗数据信息的任一计算机设置为所述P2P网络中的一个节点;The blockchain system establishes a P2P network at the network layer, and sets any computer in the medical institution that applies to record medical data information as a node in the P2P network;
所述区块链系统在共识层封装共识机制,通过所述共识机制筛选出预设个数的节点,筛选出的所述节点按照预设的时间表获得轮流记账权利,所述记账为记录医疗数据信息的过程;The blockchain system encapsulates a consensus mechanism in a consensus layer, and a preset number of nodes are filtered through the consensus mechanism, and the selected nodes obtain a right to rotate bookkeeping rights according to a preset schedule, and the bookkeeping is The process of recording medical data;
所述节点获得轮流记账权利后,接收所述共识机制发送的所述医疗数据信息,建立新数据区块,将所述医疗数据信息记录到所述新数据区块中,并通过所述区块链系统的链式结构,将所述新数据区块链接到前一数据区块,形成新的区块链。After the node obtains the right to take turns in accounting, it receives the medical data information sent by the consensus mechanism, establishes a new data block, records the medical data information into the new data block, and passes the area The chain structure of the block chain system links the new data block to the previous data block to form a new block chain.
上述医疗数据记录方法、装置、计算机设备和存储介质,包括区块链系统在网络层建立P2P网络,将医疗机构中的申请记录医疗数据信息的任一计算机设置为P2P网络中的一个节点;区块链系统在共识层封装共识机制,通过共识机制筛选出预设个数的节点,筛选出的节点按照预设的时间表获得轮流记账权利,记账为记录医疗数据信息的过程;节点获得轮流记账权利后,接收共识机制发送的医疗数据信息,建立新数据区块,将医疗数据信息记录到新数据区块中,并通过区块链系统的链式结构,将新数据区块链接到前一数据区块,形成新的区块链。本技术方案利用区块链技术的分布式账本技术,去中心化,网络中的每台计算机均可动态调整医疗数据信息,实现医疗数字化、透明化和便捷化,更好服务个人和医疗相关机构。The above-mentioned medical data recording method, device, computer equipment and storage medium, including a blockchain system, establish a P2P network at the network layer, and set any computer in the medical institution that applies to record medical data information as a node in the P2P network; area The blockchain system encapsulates the consensus mechanism in the consensus layer, and selects a preset number of nodes through the consensus mechanism. The selected nodes obtain the right to rotate accounting according to a preset schedule, and the accounting is the process of recording medical data information; the node obtains After taking turns to book rights, receive the medical data information sent by the consensus mechanism, establish a new data block, record the medical data information into the new data block, and link the new data block through the chain structure of the blockchain system Go to the previous data block to form a new blockchain. This technical solution uses the distributed ledger technology of blockchain technology to decentralize, and each computer in the network can dynamically adjust medical data information to realize digitalization, transparency and convenience of medical treatment, and better serve individuals and medical related institutions. .
通过阅读下文优选实施方式的详细描述,各种其他的优点和益处对于本领域普通技术人员将变得清楚明了。附图仅用于示出优选实施方式的目的,而并不认为是对本申请的限制。Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the detailed description of the preferred embodiments below. The drawings are only for the purpose of illustrating preferred embodiments and are not to be considered as limiting the present application.
图1为本申请一个实施例中的医疗数据记录方法的流程图;FIG. 1 is a flowchart of a medical data recording method according to an embodiment of the present application;
图2为本申请筛选节点步骤的流程图;FIG. 2 is a flowchart of steps for selecting nodes in this application;
图3为本申请节点记账步骤的流程图;FIG. 3 is a flowchart of a node accounting step of the application;
图4为本申请数据区块的一种结构示意图;4 is a schematic structural diagram of a data block of the present application;
图5为本申请数据广播验证步骤的流程图;5 is a flowchart of a data broadcast verification step of the present application;
图6为本申请一个实施例中医疗数据记录系统的结构图。FIG. 6 is a structural diagram of a medical data recording system in an embodiment of the present application.
为了使本申请的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本申请进行进一步详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本申请,并不用于限定本申请。In order to make the purpose, technical solution, and advantages of the present application clearer, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the application, and are not used to limit the application.
本技术领域技术人员可以理解,除非特意声明,这里使用的单数形式“一”、“一个”、“所述”和“该”也可包括复数形式。应该进一步理解的是,本申请的说明书中使用的措辞“包括”是指存在所述特征、整数、步骤、操作、元件和/或组件,但是并不排除存在或添加一个或多个其他特征、整数、步骤、操作、元件、组件和/或它们的组。Those skilled in the art will understand that, unless specifically stated otherwise, the singular forms "a", "an", "the" and "the" may include plural forms. It should be further understood that the word "comprising" used in the specification of the present application refers to the presence of the described features, integers, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, Integers, steps, operations, elements, components, and / or groups thereof.
图1为本申请一个实施例中的医疗数据记录方法的流程图,如图1所示,一种医疗数据记录方法,包括:FIG. 1 is a flowchart of a medical data recording method according to an embodiment of the present application. As shown in FIG. 1, a medical data recording method includes:
步骤S1,建立P2P网络:区块链系统在网络层建立P2P网络,将医疗机构中的申请记录医疗数据信息的任一计算机设置为P2P网络中的一个节点。Step S1: Establish a P2P network: The blockchain system establishes a P2P network at the network layer, and sets any computer in the medical institution that applies to record medical data information as a node in the P2P network.
区块链系统是一种基于区块链技术的系统,也被称为分布式账本技术,是一种互联网数据库技术。其特点是去中心化、公开透明,让每个人均可参与维护数据库记录。区块链系统主要包括网络层、共识层和数据层。区块链系统是分布式数据存储、点对点传输、共识机制、加密算法等计算机技术的新型应用模式。其中,共识机制是区块链系统中实现不同节点之间建立信任、获取权益的数学算法。而其中存储数据用的区块链是一种按照时间顺序将数据区块以顺序相连的方式组合成的一种链式数据结构,并以密码学方式保证的不可篡改和 不可伪造的分布式账本。因此本步骤采用区块链技术能实现数据信息的分布式记录和分布式存储,所谓分布式记录就是可以由医疗机构中的任一一台计算机作为节点集体记录,而非由一个中心化的机构进行记录,所谓分布式存储是数据可以存储在所有参与记录的节点中,而非集中存储在中心化的机构节点中。Blockchain system is a system based on blockchain technology, also known as distributed ledger technology, which is an Internet database technology. Its characteristics are decentralized, open and transparent, allowing everyone to participate in maintaining database records. Blockchain system mainly includes network layer, consensus layer and data layer. Blockchain system is a new application mode of computer technology such as distributed data storage, point-to-point transmission, consensus mechanism, and encryption algorithm. Among them, the consensus mechanism is a mathematical algorithm for establishing trust and obtaining rights between different nodes in a blockchain system. The blockchain used to store data is a chain data structure that combines data blocks in a sequential manner in a chronological order, and it is a cryptographically guaranteed tamper-proof and unforgeable distributed ledger. . Therefore, in this step, the blockchain technology can be used to achieve distributed records and distributed storage of data information. The so-called distributed records can be collectively recorded by any computer in a medical institution as a node instead of a centralized institution. For recording, the so-called distributed storage is that data can be stored in all participating nodes, rather than centralized storage in centralized institutional nodes.
本步骤采用了P2P网络的组网方式使得区块链系统的网络层实现去中心化,将众多医疗机构中想要申请记录医疗数据信息的任一计算机作为节点,组成P2P网络,且每个节点之间通过扁平式拓扑结构交互。本步骤中,有能力搭建服务器,并参与记账的医疗机构中的计算机都是节点。这样的组网方式,实现每个节点都地位对等,不存在任何中心化的层级结构,每个节点都会平等的参与验证信息和传播信息的过程。This step uses the P2P network networking method to make the network layer of the blockchain system decentralized. Any computer in many medical institutions that wants to apply for recording medical data information is used as a node to form a P2P network, and each node They interact through a flat topology. In this step, the computers in the medical institution capable of setting up a server and participating in accounting are nodes. In such a networking mode, each node has equal status, and there is no centralized hierarchical structure. Each node will participate in the process of verifying information and disseminating information equally.
步骤S2,筛选节点:区块链系统在共识层封装共识机制,通过共识机制筛选出预设个数的节点,筛选出的节点按照预设的时间表获得轮流记账权利,记账为记录医疗数据信息的过程。Step S2, screening nodes: The blockchain system encapsulates the consensus mechanism in the consensus layer, and selects a preset number of nodes through the consensus mechanism. The selected nodes obtain the right to take turns in bookkeeping according to a preset schedule, and the bookkeeping is used to record medical records. The process of data information.
共识机制是区块链的核心技术,共识机制决定了P2P网络中哪个节点来进行记账,而记账决定方式将会影响整个区块链系统的安全性和可靠性。本步骤的共识机制筛选出预设个数为前101个的医疗机构,需要记录的医疗数据信息可以由边缘计算获得。筛选出的前101个的医疗机构按照如10秒-30秒的时间表获得轮流记账权利。The consensus mechanism is the core technology of the blockchain. The consensus mechanism determines which node in the P2P network performs accounting, and the accounting decision method will affect the security and reliability of the entire blockchain system. The consensus mechanism in this step screens out the preset 101 medical institutions, and the medical data information that needs to be recorded can be obtained by edge computing. The top 101 medical institutions that have been screened out have the right to take turns in accounting according to a timetable such as 10 seconds to 30 seconds.
步骤S3,节点记账:节点获得轮流记账权利后,接收共识机制发送的医疗数据信息,建立新数据区块,将医疗数据信息记录到新数据区块中,并通过区块链系统的链式结构,将新数据区块链接到前一数据区块,形成新的区块链。Step S3: Node accounting: After the node obtains the right to take turns in accounting, the node receives the medical data information sent by the consensus mechanism, establishes a new data block, records the medical data information into the new data block, and passes the chain of the blockchain system. The new data block is linked to the previous data block to form a new block chain.
在区块链系统的数据层封装了底层数据区块的链式结构,以及相关的非对称公私钥数据加密算法和时间戳等,这是整个区块链系统中最底层的数据结构。某一节点获得轮流记账权利后,接收到包括住院记录,处方,图片等医疗数据信息,建立新数据区块后,存储到链式结构中,作为区块链系统的数据层信息。The data layer of the blockchain system encapsulates the chain structure of the underlying data blocks, as well as related asymmetric public and private key data encryption algorithms and time stamps. This is the lowest data structure in the entire blockchain system. After a node obtains the right to take turns in accounting, it receives medical data information including hospitalization records, prescriptions, and pictures. After establishing a new data block, it is stored in a chain structure as the data layer information of the blockchain system.
本实施例,利用基于P2P网络建立区块链系统,区块链系统的网络层去中心化,区块链系统的数据层存储医疗数据信息,区块链系统的共识层对数据共识验证,从而动态调整医疗数据信息,实现医疗数字化、透明化和便捷化,更 好服务个人和医疗相关机构。In this embodiment, a blockchain system is established based on a P2P network, the network layer of the blockchain system is decentralized, the data layer of the blockchain system stores medical data information, and the consensus layer of the blockchain system verifies data consensus, thereby Dynamically adjust medical data information to realize digital, transparent and convenient medical treatment, and better serve individuals and medical-related institutions.
在一个实施例中,P2P网络中的每个节点之间通过扁平式拓扑结构交互。In one embodiment, each node in the P2P network interacts through a flat topology.
P2P网络是一种对等计算机网络,是一种在对等者(Peer)之间分配任务和工作负载的分布式应用架构,网络的参与者,即节点之间共享他们所拥有的一部分硬件资源,包括处理能力、存储能力、网络连接能力、打印机等,这些共享资源通过网络提供服务和内容,能被其它对等节点直接访问而无需经过中间实体。在此P2P网络中的参与者既是资源、服务和内容的提供者,又是资源、服务和内容的获取者。而扁平式拓扑结构是针对传统三层网络架构提出的节点直接连接到服务商的二级网络架构,完全符合P2P网络的交互要求。A P2P network is a peer-to-peer computer network. It is a distributed application architecture that distributes tasks and workloads between peers. Participants in the network, that is, nodes share some of their hardware resources. , Including processing capabilities, storage capabilities, network connection capabilities, printers, etc. These shared resources provide services and content through the network and can be directly accessed by other peer nodes without going through intermediate entities. Participants in this P2P network are both providers of resources, services, and content, and acquirers of resources, services, and content. The flat topology is a secondary network architecture where the nodes proposed in the traditional three-layer network architecture are directly connected to the service provider, which fully meets the interaction requirements of P2P networks.
本实施例,节点与节点之间采用扁平式拓扑结构交互,可大大减少网络的复杂度,在本申请的P2P网络环境中,医疗机构的计算机之间都处于对等的地位,各台计算机有相同的功能,无主从之分,一台计算机既可作为服务器,设定共享资源供网络中其他计算机所使用,又可以作为工作站,整个P2P网络没有专用的工作站,实现了去中心化的目的。In this embodiment, the nodes use a flat topology to interact with each other, which can greatly reduce the complexity of the network. In the P2P network environment of this application, the computers of the medical institution are in an equal position. Each computer has The same function, no distinction between master and slave, a computer can serve as a server, set shared resources for use by other computers in the network, and can also be used as a workstation. There is no dedicated workstation in the entire P2P network, achieving the purpose of decentralization .
在一个实施例中,如图2所示,步骤S2,筛选节点包括:In one embodiment, as shown in FIG. 2, in step S2, the screening node includes:
步骤S201,采用DPoS共识机制:共识机制采用DPoS共识机制,DPoS共识机制设置为选出预设个数的节点。In step S201, the DPoS consensus mechanism is adopted: The consensus mechanism adopts the DPoS consensus mechanism, and the DPoS consensus mechanism is set to select a preset number of nodes.
DPoS共识机制(股份授权证明机制),其原理是让每一个持有比特股的人进行投票,由此产生101位代表,即101个节点,101个节点彼此的权利是完全相等的。DPoS共识机制具体工作时,是通过不同的策略,不定时的选中一小群节点,被选中的这一小群节点做新区块的创建、验证、签名和相互监督,大幅度的减少了区块创建和确认所需要消耗的时间和算力成本。本步骤通过采用DPoS共识机制来筛选出101个医疗机构的计算机作为预设个数的节点。The DPoS consensus mechanism (share authorization certificate mechanism) is based on the principle of allowing everyone who holds BitShares to vote, resulting in 101 representatives, that is, 101 nodes. The rights of the 101 nodes are completely equal to each other. When the DPoS consensus mechanism works specifically, a small group of nodes is selected from time to time through different strategies. The selected small group of nodes does new block creation, verification, signature, and mutual supervision, which greatly reduces the number of blocks. The time and computing power required to create and confirm. In this step, the computers of 101 medical institutions are selected as the preset number of nodes by using the DPoS consensus mechanism.
步骤S202,投票筛选节点:P2P网络中的节点在区块链系统上注册,并接受其他节点的投票,共识机制在接收到所有节点的投票后,记录节点的投票数,得票数最高的前预设个数的节点将获得轮流记账权利。Step S202, voting and screening of nodes: nodes in the P2P network register on the blockchain system and accept votes from other nodes. After receiving the votes of all nodes, the consensus mechanism records the number of votes of the nodes and obtains the highest number of votes. Set the number of nodes will get the right to take turns accounting.
节点在注册时,即在区块链系统上注册公钥,然后区块链系统的共识机制分配给注册的节点一个32位的标识符,此标识符作为该节点的唯一编码。注册 完成后,节点既可以给其他节点投票,也可以接收其他节点的投票。通过共识机制记录每个节点的投票数,将投票数从高到低进行排列,将得票数排在前101个的节点获得轮流记账权利。When a node is registered, that is, the public key is registered on the blockchain system, and then the consensus mechanism of the blockchain system allocates a 32-bit identifier to the registered node, and this identifier is used as the unique code of the node. After registration, nodes can either vote for other nodes or receive votes from other nodes. Record the number of votes of each node through the consensus mechanism, arrange the number of votes from high to low, and obtain the right to take turns in accounting for the nodes that ranked the top 101.
步骤S203,轮流记账:筛选出的节点按照预设的时间表获得轮流记账权利,共识机制按照此预设的时间表将医疗数据信息轮流发送给筛选出的节点。In step S203, the accounting is performed in turn: the selected nodes obtain the right to rotate in accordance with a preset schedule, and the consensus mechanism sends the medical data information to the selected nodes in turn according to the preset schedule.
预设的时间表可以是按10秒、20秒或30秒的时间段依次向101个节点发送医疗数据信息。获得轮流记账权利的某一节点,在建立新数据区块时,共识机制记录新数据块的记录时间,新数据区块从建立到全网广播超过10秒、20秒或30秒的时间段时,则认为获得轮流记账权利的节点错过了记录新数据区块的权利,共识机制将此医疗数据信息发送给下一获得轮流记账权利的节点代替完成记账。The preset schedule may be to sequentially send medical data information to 101 nodes in a time period of 10 seconds, 20 seconds, or 30 seconds. A certain node that has obtained the right to take turns in accounting. When establishing a new data block, the consensus mechanism records the recording time of the new data block. The time period from the establishment of the new data block to the broadcast of the entire network exceeds 10 seconds, 20 seconds, or 30 seconds. At that time, it is considered that the node that has obtained the right to take turns in accounting has missed the right to record a new data block, and the consensus mechanism sends this medical data information to the next node that has obtained the right to take turns in accounting instead of completing the accounting.
本实施例,通过DPoS共识机制对P2P网络中的节点进行筛选、分配和监督,能大幅度的减少了区块创建和确认所需要消耗的时间和算力成本。In this embodiment, the nodes in the P2P network are screened, allocated, and monitored through the DPoS consensus mechanism, which can greatly reduce the time and computing power costs required for block creation and confirmation.
在一个实施例中,如图3所示,步骤S3,节点记账包括:In one embodiment, as shown in FIG. 3, in step S3, the node accounting includes:
步骤S301,建立新数据区块:节点获得医疗数据信息后,建立新数据区块,新数据区块包括区块头和区块体,区块头记录前一区块的Merkle根、当前区块的Merkle根、时间戳,区块体记录医疗数据信息,时间戳为新数据区块建立时的时间。Step S301, establishing a new data block: After the node obtains the medical data information, it creates a new data block. The new data block includes a block header and a block body. The block header records the Merkle root of the previous block and the Merkle of the current block. Root and timestamp. The block body records medical data information. The timestamp is the time when the new data block was created.
如图4所示,每个数据区块均包含区块头和区块体,区块头包含前一区块的Merkle根、当前区块的Merkle根、时间戳、Merkle根的哈希值,区块体内记录的医疗数据信息。As shown in Figure 4, each data block contains a block header and a block body. The block header contains the Merkle root of the previous block, the Merkle root of the current block, the timestamp, the hash value of the Merkle root, and the block. Medical data recorded in the body.
步骤S302,记录当前区块的Merkle根:节点将获得的医疗数据信息通过Merkle根的哈希函数计算生成唯一的Merkle根记录到区块头的当前区块的Merkle根中。In step S302, the Merkle root of the current block is recorded: the node calculates the medical data information obtained by the Merkle root hash function to generate a unique Merkle root record in the Merkle root of the current block of the block header.
Merkle树是区块链系统的重要组成部分,其作用是将已经运算为散列值的医疗数据信息按照二叉树形结构组织起来。Merkle树的生成过程为:将医疗数据信息分组进行哈希函数计算,将新的散列值放回,再重新拿出2个数据进行运算,一直递归下去,直到剩下唯一的Merkle根。本步骤采用Merkle树的优 点,即良好的扩展性,不管医疗数据信息是怎么样的,都可以生成一颗Merkle树。且查找算法的时间复杂度很低,也容易从底层溯源查找到Merkle根来进行记账是否存在或合法,极大降低运算时的资源占用。本步骤通过应用Merkle树的生成规则,通过哈希函数计算生成唯一的Merkle根记录到区块头的当前区块的Merkle根中,此唯一的Merkle根作为当前区块的唯一标识。The Merkle tree is an important part of the blockchain system, and its role is to organize medical data information that has been calculated into hash values according to a binary tree structure. The generation process of the Merkle tree is: grouping medical data information into a hash function calculation, putting back the new hash value, and then taking out 2 data again for calculation, and recursing until the only Merkle root is left. This step uses the advantages of the Merkle tree, that is, good scalability, regardless of the medical data information, a Merkle tree can be generated. In addition, the time complexity of the search algorithm is very low, and it is easy to find the Merkle root from the underlying traceability to check whether the accounting exists or is legal, which greatly reduces the resource occupation during the operation. In this step, a unique Merkle root is generated by applying a generation rule of the Merkle tree and calculated by a hash function to the Merkle root of the current block in the block header, and this unique Merkle root is used as the unique identifier of the current block.
步骤S303,记录区块体:节点将医疗数据信息通过非对称加密算法进行加密,记入到区块体中。In step S303, the block is recorded: the node encrypts the medical data information by using an asymmetric encryption algorithm, and records it into the block.
本步骤中的非对称加密算法可以采用如下算法:The asymmetric encryption algorithm in this step can use the following algorithms:
(1)选择两个不同的大素数p和q;(1) Choose two different large prime numbers p and q;
(2)计算大素数的乘积n=pq和Φ(n)=(p-1)(q-1);(2) Calculate the product of large primes n = pq and Φ (n) = (p-1) (q-1);
(3)选择大于1小于Φ(n)的随机整数e,使得最大公约数gcd(e,Φ(n))=1;(3) Select a random integer e greater than 1 and smaller than Φ (n), so that the greatest common divisor gcd (e, Φ (n)) = 1;
(4)计算d使得d×e=1modΦ(n)(即d×e modΦ(n)=1);(4) Calculate d such that d × e = 1 modΦ (n) (that is, d × e modΦ (n) = 1);
(5)对每一个密钥k=(n,p,q,d,e),定义加密变换为Ek(x)=xe mod n,解密变换为Dk(x)=yd mod n;(5) For each key k = (n, p, q, d, e), define the encryption transformation as Ek (x) = xemod modn, and the decryption transformation as Dk (x) = ydmod modn;
(6)p,q销毁,以{e,n}为公开密钥,{d,n}为私有密钥,其中,公钥设置为加密,私钥设置为解密。(6) p, q is destroyed, with {e, n} as the public key and {d, n} as the private key, where the public key is set to encryption and the private key is set to decrypt.
本步骤中,节点采用{e,n}的公钥,对医疗数据信息进行加密后记入到区块体中,保证数据的安全可靠。In this step, the node uses the {e, n} public key to encrypt the medical data information and records it in the block to ensure the security and reliability of the data.
步骤S304,形成新的区块链:取得记账权利的节点通过链式结构,将当前区块链接到前一区块之后,并记录前一区块的Merkle根,致使形成新的区块链。In step S304, a new blockchain is formed: the node that has obtained the right to bookkeeping links the current block to the previous block through a chain structure, and records the Merkle root of the previous block, resulting in the formation of a new blockchain .
本步骤中,将当前区块链接至已有的区块链上,医疗数据信息就会永久的存储起来,除非能够同时控制住区块链系统中超过51%的节点,否则单个节点上对数据库的修改是无效的,这样整个区块链中的医疗数据信息的稳定性和可靠性极高。In this step, the current block is linked to the existing blockchain, and the medical data information will be permanently stored. Unless more than 51% of the nodes in the blockchain system can be controlled at the same time, a single node will access the database. The modification is invalid, so the stability and reliability of medical data information in the entire blockchain is extremely high.
本实施例,通过对医疗数据信息的哈希函数计算生成当前区块的Merkle根,对医疗数据信息非对称加密算法记入到区块体中,形成新数据区块,并链接到区块链中,实现了每个节点均能记账的目的,每个节点所获得的权利相同,去中心化的记账模式,保证了区块链上的医疗数据信息的稳定和安全。In this embodiment, the Merkle root of the current block is generated by calculating a hash function of the medical data information, and the asymmetric encryption algorithm for the medical data information is recorded in the block body to form a new data block and linked to the blockchain In this way, each node can achieve the purpose of accounting, each node has the same rights, and a decentralized accounting model ensures the stability and security of medical data information on the blockchain.
在一个实施例中,如图1所示,节点将新数据区块链接到前一数据区块,形成新的区块链后,还包括步骤S4,数据广播验证:In one embodiment, as shown in FIG. 1, the node links the new data block to the previous data block to form a new block chain, and further includes step S4, data broadcast verification:
由生成该数据区块的节点将验证消息广播到P2P网络中的其他节点,P2P网络中的其他节点对新数据区块进行数据验证,并将验证结果通知共识机制,共识机制接收到的所有验证结果均为有效时,认为P2P网络中的所有节点都认可此新数据区块链接在区块链中,共识机制接收到的所有验证结果存在无效时,认为此新数据区块无效,将其从区块链中去除,将此新数据区块对应的医疗数据信息发送给下一个获得轮流记账权利的节点进行记账。The node that generates the data block broadcasts the verification message to other nodes in the P2P network. The other nodes in the P2P network perform data verification on the new data block and notify the consensus mechanism of the verification result. All verifications received by the consensus mechanism When the results are all valid, all nodes in the P2P network are considered to recognize the new data block as being linked in the blockchain. When all the verification results received by the consensus mechanism are invalid, the new data block is considered invalid and will be removed from It is removed from the blockchain, and the medical data information corresponding to this new data block is sent to the next node that receives the right to take turns to perform accounting.
本步骤中的验证消息是指生成的新数据区块这一消息,其他节点接收到这一消息后,对新数据区块通过Merkle根来对数据进行验证,具体验证过程如图5中所示,步骤如下:The verification message in this step refers to the message of the new data block generated. After other nodes receive this message, the new data block is verified by the Merkle root to verify the data. The specific verification process is shown in Figure 5. Proceed as follows:
步骤S401,逐个广播:获得轮流记账权利的节点在将验证消息广播到P2P网络中的其他节点时,采用逐个向临近节点广播的方式,其中验证消息为新数据区块的区块头的数据信息。Step S401, broadcasting one by one: When a node that obtains the right to take turns accounting, broadcasts the verification message to other nodes in the P2P network, it broadcasts it to neighboring nodes one by one. The verification message is the data information of the block header of the new data block. .
由于各节点之间采用P2P网络的组网方式,因此可以基于P2P网络,节点之间采用向逐个临近节点广播的方式传播验证消息。Because each node adopts the P2P network networking mode, it can be based on the P2P network, and the nodes broadcast the verification message to each adjacent node.
步骤S402,节点验证有效性:任一节点接收到临近节点传来的验证消息后,将新数据区块的数据结构、语法规范进行验证有效性,对于验证有效时,将验证消息向临近节点继续进行广播,对于验证消息无效时,节点不做验证消息转发的操作。Step S402, the node verifies the validity: After any node receives the verification message from the neighboring node, it verifies the validity of the data structure and syntax specifications of the new data block. When the verification is valid, the verification message is continued to the neighboring node. Broadcast, when the verification message is invalid, the node does not forward the verification message.
本步骤中,节点对新数据区块进行验证时,节点不用保存全部的区块链数据,仅需保存包含需要验证的新数据区块中,包含当前区块的Merkle根的区块头就可,通过底层溯源查找到新数据区块的Merkle根来验证数据是否存在或有效。具体验证时,是对当前区块的Merkle根的数据结构和语法规范是否符合一颗Merkle树的唯一Merkle根来确定。In this step, when the node verifies the new data block, the node does not need to save all the blockchain data, it only needs to save the block header containing the new data block to be verified, including the Merkle root of the current block. Find the Merkle root of the new data block through the underlying traceability to verify whether the data exists or is valid. During specific verification, it is determined whether the data structure and syntax specifications of the Merkle root of the current block conform to the unique Merkle root of a Merkle tree.
本步骤中,P2P网络中被广播的节点指被共识机制筛选出的预设个数的节点,即筛选出的101个获得轮流记账权利的节点,未筛选到的节点无权验证新数据区块,以减少区块创建和确认所需要消耗的时间和算力成本。In this step, the broadcasted nodes in the P2P network refer to a preset number of nodes screened by the consensus mechanism, that is, the 101 nodes that have been selected to obtain the right to take turns accounting. The unscreened nodes are not authorized to verify the new data area. Blocks to reduce the time and computing power required to create and confirm blocks.
本实施例,通过增加数据广播验证步骤,使每一个新生成的数据区块均由P2P网络中的其他节点认可后,才链接在区块链上,这样所有的节点均具有公平的记账和监督权利,进一步保证了区块链上所有数据区块的安全可靠。In this embodiment, by adding a data broadcast verification step, each newly generated data block is recognized by other nodes in the P2P network and then linked to the blockchain, so that all nodes have fair accounting and Supervision rights further ensure the security and reliability of all data blocks on the blockchain.
在一个实施例中,提出了一种医疗数据记录系统,如图6所示,包括:In one embodiment, a medical data recording system is proposed, as shown in FIG. 6, including:
建立P2P网络单元,设置为区块链系统在网络层建立P2P网络,将医疗机构中的申请记录医疗数据信息的任一计算机设置为P2P网络中的一个节点;Establish a P2P network unit, set up as a blockchain system to establish a P2P network at the network layer, and set any computer in the medical institution that applies to record medical data information as a node in the P2P network;
筛选节点单元,设置为区块链系统在共识层封装共识机制,通过共识机制筛选出预设个数的节点,筛选出的节点按照预设的时间表获得轮流记账权利,记账为记录医疗数据信息的过程;The screening node unit is set as a blockchain system that encapsulates the consensus mechanism at the consensus layer. A predetermined number of nodes are selected through the consensus mechanism. The selected nodes obtain the right to take turns to book according to a preset schedule. Data information process;
节点记账单元,设置为节点获得轮流记账权利后,接收共识机制发送的医疗数据信息,建立新数据区块,将医疗数据信息记录到新数据区块中,并通过区块链系统的链式结构,将新数据区块链接到前一数据区块,形成新的区块链。The node accounting unit is set to receive the medical data information sent by the consensus mechanism after the node obtains the right to take turns in accounting, establish a new data block, record the medical data information into the new data block, and pass the chain of the blockchain system. The new data block is linked to the previous data block to form a new block chain.
在一个实施例中,P2P网络中的每个节点之间通过扁平式拓扑结构交互。In one embodiment, each node in the P2P network interacts through a flat topology.
在一个实施例中,共识机制采用DPoS共识机制,DPoS共识机制设置为选出预设个数的节点,筛选节点单元还包括:In one embodiment, the consensus mechanism adopts the DPoS consensus mechanism, and the DPoS consensus mechanism is set to select a preset number of nodes, and the screening node unit further includes:
投票筛选模块,设置为P2P网络中的节点在区块链系统上注册,并接受其他节点的投票,共识机制在接收到所有节点的投票后,记录节点的投票数,得票数最高的前预设个数的节点将获得轮流记账权利;The voting screening module is set up so that nodes in the P2P network register on the blockchain system and accept votes from other nodes. After receiving the votes of all nodes, the consensus mechanism records the number of votes of the nodes and presets the highest number of votes. The number of nodes will get the right to take turns in accounting;
轮流记账模块,设置为筛选出的节点按照预设的时间表获得轮流记账权利,共识机制按照预设的时间表将医疗数据信息轮流发送给筛选出的节点。The rotation bookkeeping module is configured to obtain the right of bookkeeping by the selected nodes according to a preset schedule, and the consensus mechanism sends medical data information to the selected nodes in turn according to a preset schedule.
在一个实施例中,节点记账单元包括:In one embodiment, the node accounting unit includes:
建立新数据区块模块,设置为节点获得医疗数据信息后,建立新数据区块,新数据区块包括区块头和区块体,区块头记录前一区块的Merkle根、当前区块的Merkle根、时间戳,区块体记录医疗数据信息,时间戳为新数据区块建立时的时间;Establish a new data block module. Set the node to obtain medical data information and then create a new data block. The new data block includes the block header and the block body. The block header records the Merkle root of the previous block and the Merkle of the current block. Root, timestamp, block body records medical data information, timestamp is the time when new data block was created;
记录Merkle根模块,设置为节点将获得的医疗数据信息通过Merkle根的哈希函数计算生成唯一的Merkle根记录到区块头的当前区块的Merkle根中;The Merkle root module is recorded, and the node is set to generate the unique Merkle root record from the medical data obtained by the Merkle root through the hash function of the Merkle root and record it into the Merkle root of the current block in the block header;
记录区块体模块,设置为节点将医疗数据信息通过非对称加密算法进行加密,记入到区块体中;Record block module, set as a node to encrypt medical data information by asymmetric encryption algorithm and record it in the block;
形成新的区块链模块,设置为节点通过链式结构,将当前区块链接到前一区块之后,并记录前一区块的Merkle根,致使形成新的区块链。A new blockchain module is formed, and the node is set to link the current block to the previous block through a chain structure, and the Merkle root of the previous block is recorded, resulting in the formation of a new blockchain.
在一个实施例中,还包括验证广播单元:设置为节点将新数据区块链接到前一数据区块,形成新的区块链后,由生成该数据区块的节点将验证消息广播到P2P网络中的其他节点,P2P网络中的其他节点对新数据区块进行数据验证,并将验证结果通知共识机制,共识机制接收到的所有验证结果均为有效时,认为P2P网络中的所有节点都认可此新数据区块链接在区块链中,共识机制接收到的所有验证结果存在无效时,认为此新数据区块无效,将其从区块链中去除,将此新数据区块对应的医疗数据信息发送给下一个获得轮流记账权利的节点进行记账。In one embodiment, the method further includes a verification broadcast unit. The node is configured to link a new data block to a previous data block to form a new blockchain, and the node that generates the data block broadcasts a verification message to the P2P. Other nodes in the network, other nodes in the P2P network perform data verification on the new data block, and notify the consensus mechanism of the verification result. When all verification results received by the consensus mechanism are valid, all nodes in the P2P network are considered to be When the new data block is recognized to be linked in the blockchain, when all the verification results received by the consensus mechanism are invalid, the new data block is considered invalid, it is removed from the blockchain, and the new data block corresponds to The medical data information is sent to the next node that obtains the right to take turns to perform accounting.
在一个实施例中,验证广播单元还包括:In one embodiment, the verification broadcast unit further includes:
逐个广播模块,设置为获得轮流记账权利的节点在将验证消息广播到P2P网络中的其他节点时,采用逐个向临近节点广播的方式,其中验证消息为新数据区块的区块头的数据信息;One-by-one broadcasting module, when the node set to obtain the right to take turns accounting, broadcasts the verification message to other nodes in the P2P network, and broadcasts it to neighboring nodes one by one. The verification message is the data information of the block header of the new data block. ;
验证有效性模块,设置为任一节点接收到临近节点传来的验证消息后,将新数据区块的数据结构、语法规范进行验证有效性,对于验证有效时,将验证消息向临近节点继续进行广播,对于验证消息无效时,节点不做验证消息转发的操作;The validity verification module is configured to verify the validity of the data structure and syntax specifications of the new data block after any node receives the verification message from the neighboring node. When the verification is valid, the verification message is continued to the neighboring node. Broadcast. When the verification message is invalid, the node does not forward the verification message.
P2P网络中被广播的节点指被共识机制筛选出的预设个数的节点,未筛选到的节点无权验证新数据区块,以减少区块创建和确认所需要消耗的时间和算力成本。The broadcasted nodes in the P2P network refer to a preset number of nodes screened by the consensus mechanism. Unscreened nodes are not authorized to verify new data blocks to reduce the time and computing power required to create and confirm blocks. .
在一个实施例中,提出了一种计算机设备,包括存储器和处理器,存储器中存储有计算机可读指令,计算机可读指令被处理器执行时,使得处理器执行计算机可读指令时实现上述各实施例里医疗数据记录方法中的步骤。In one embodiment, a computer device is provided, which includes a memory and a processor. The memory stores computer-readable instructions, and when the computer-readable instructions are executed by the processor, the processor is caused to implement the foregoing when the computer-readable instructions are executed. The steps in the medical data recording method in the embodiment.
在一个实施例中,提出了一种存储有计算机可读指令的存储介质,计算机可读指令被一个或多个处理器执行时,使得一个或多个处理器执行上述各实施 例里医疗数据记录方法中的步骤。In one embodiment, a storage medium storing computer-readable instructions is provided. When the computer-readable instructions are executed by one or more processors, the one or more processors are caused to execute the medical data records in the foregoing embodiments. Steps in the method.
本领域普通技术人员可以理解上述实施例的各种方法中的全部或部分步骤是可以通过程序来指令相关的硬件来完成,该程序可以存储于一计算机可读存储介质中,存储介质可以包括:只读存储器(ROM,Read Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁盘或光盘等。A person of ordinary skill in the art may understand that all or part of the steps in the various methods of the foregoing embodiments may be implemented by a program instructing related hardware. The program may be stored in a computer-readable storage medium. The storage medium may include: Read-only memory (ROM, Read Only Memory), random access memory (RAM, Random Access Memory), magnetic disks or optical disks, etc.
以上所述实施例的各技术特征可以进行任意的组合,为使描述简洁,未对上述实施例中的各个技术特征所有可能的组合都进行描述,然而,只要这些技术特征的组合不存在矛盾,都应当认为是本说明书记载的范围。The technical features of the embodiments described above can be arbitrarily combined. In order to simplify the description, all possible combinations of the technical features in the above embodiments have not been described. However, as long as there is no contradiction in the combination of these technical features, It should be considered as the scope described in this specification.
以上所述实施例仅表达了本申请一些示例性实施例,其描述较为具体和详细,但并不能因此而理解为对本申请专利范围的限制。应当指出的是,对于本领域的普通技术人员来说,在不脱离本申请构思的前提下,还可以做出若干变形和改进,这些都属于本申请的保护范围。因此,本申请专利的保护范围应以所附权利要求为准。The above-mentioned embodiments only express some exemplary embodiments of the present application, and their descriptions are more specific and detailed, but cannot be understood as a limitation on the scope of the patent of the present application. It should be noted that, for those of ordinary skill in the art, without departing from the concept of the present application, several modifications and improvements can be made, and these all belong to the protection scope of the present application. Therefore, the protection scope of this application patent shall be subject to the appended claims.
Claims (20)
- 一种医疗数据记录方法,包括:A medical data recording method includes:区块链系统在网络层建立P2P网络,将医疗机构中的申请记录医疗数据信息的任一计算机设置为所述P2P网络中的一个节点;The blockchain system establishes a P2P network at the network layer, and sets any computer in the medical institution that applies to record medical data information as a node in the P2P network;所述区块链系统在共识层封装共识机制,通过所述共识机制筛选出预设个数的节点,筛选出的所述节点按照预设的时间表获得轮流记账权利,所述记账为记录医疗数据信息的过程;The blockchain system encapsulates a consensus mechanism in a consensus layer, and a preset number of nodes are filtered through the consensus mechanism, and the selected nodes obtain a right to rotate bookkeeping rights according to a preset schedule, and the bookkeeping is The process of recording medical data;所述节点获得轮流记账权利后,接收所述共识机制发送的所述医疗数据信息,建立新数据区块,将所述医疗数据信息记录到所述新数据区块中,并通过所述区块链系统的链式结构,将所述新数据区块链接到前一数据区块,形成新的区块链。After the node obtains the right to take turns in accounting, it receives the medical data information sent by the consensus mechanism, establishes a new data block, records the medical data information into the new data block, and passes the area The chain structure of the block chain system links the new data block to the previous data block to form a new block chain.
- 根据权利要求1所述的医疗数据记录方法,其中,所述P2P网络中的每个节点之间通过扁平式拓扑结构交互。The medical data recording method according to claim 1, wherein each node in the P2P network interacts through a flat topology.
- 根据权利要求1所述的医疗数据记录方法,其中,所述共识机制采用DPoS共识机制,所述DPoS共识机制设置为选出预设个数的节点;The medical data recording method according to claim 1, wherein the consensus mechanism adopts a DPoS consensus mechanism, and the DPoS consensus mechanism is set to select a preset number of nodes;所述P2P网络中的节点在所述区块链系统上注册,并接受其他节点的投票,所述共识机制在接收到所有节点的投票后,记录节点的投票数,得票数最高的前预设个数的节点将获得轮流记账权利;The nodes in the P2P network are registered on the blockchain system and accept the votes of other nodes. After receiving the votes of all nodes, the consensus mechanism records the number of votes of the nodes and presets the highest number of votes. The number of nodes will get the right to take turns in accounting;筛选出的所述节点按照所述预设的时间表获得轮流记账权利,所述共识机制按照所述预设的时间表将所述医疗数据信息轮流发送给筛选出的所述节点。The selected nodes obtain the right of bookkeeping in turn according to the preset schedule, and the consensus mechanism sends the medical data information to the selected nodes in turn according to the preset schedule.
- 根据权利要求1所述的医疗数据记录方法,其中,所述节点获得轮流记账权利后,将所述医疗数据信息记录到所述新数据区块中,形成新的区块链包括:The medical data recording method according to claim 1, wherein after the node obtains the right to take turns to record, recording the medical data information into the new data block to form a new block chain comprises:所述节点获得所述医疗数据信息后,建立所述新数据区块,所述新数据区块包括区块头和区块体,所述区块头记录前一区块的Merkle根、当前区块的Merkle根、时间戳,所述区块体记录所述医疗数据信息,所述时间戳为所述新数据区块建立时的时间;After the node obtains the medical data information, the new data block is created. The new data block includes a block header and a block body, and the block header records a Merkle root of a previous block and a current block of the current block. Merkle root, timestamp, the block records the medical data information, and the timestamp is the time when the new data block was established;所述节点将获得的所述医疗数据信息通过Merkle根的哈希函数计算生成唯一的Merkle根记录到所述区块头的当前区块的Merkle根中;Calculating, by the node, the obtained medical data information through a hash function of the Merkle root to generate a unique Merkle root record into the Merkle root of the current block of the block header;所述节点将所述医疗数据信息通过非对称加密算法进行加密,记入到所述区块体中;The node encrypts the medical data information by an asymmetric encryption algorithm, and records the medical data information into the block body;所述节点通过链式结构,将当前区块链接到前一区块之后,并记录前一区块的Merkle根,致使形成新的区块链。The node uses a chain structure to link the current block to the previous block and records the Merkle root of the previous block, resulting in the formation of a new block chain.
- 根据权利要求1所述的医疗数据记录方法,其中,所述节点将所述新数据区块链接到前一数据区块,形成新的区块链后,由生成所述数据区块的节点将验证消息广播到所述P2P网络中的其他节点,所述P2P网络中的其他节点对所述新数据区块进行数据验证,并将验证结果通知所述共识机制,所述共识机制接收到的所有验证结果均为有效时,认为所述P2P网络中的所有节点都认可所述新数据区块链接在所述区块链中,所述共识机制接收到的所有验证结果存在无效时,认为所述新数据区块无效,将所述新数据区块从所述区块链中去除,将所述新数据区块对应的所述医疗数据信息发送给下一个获得轮流记账权利的节点进行记账。The medical data recording method according to claim 1, wherein the node links the new data block to a previous data block to form a new block chain, and the node that generates the data block A verification message is broadcast to other nodes in the P2P network. The other nodes in the P2P network perform data verification on the new data block, and notify the consensus mechanism of the verification result. When the verification results are all valid, it is considered that all nodes in the P2P network recognize that the new data block is linked in the blockchain, and when all verification results received by the consensus mechanism are invalid, the said The new data block is invalid, the new data block is removed from the blockchain, and the medical data information corresponding to the new data block is sent to the next node that obtains the right to take turns to perform accounting. .
- 根据权利要求5述的医疗数据记录方法,其中,获得轮流记账权利的节点在将所述验证消息广播到所述P2P网络中的其他节点时,采用逐个向临近节点广播的方式,其中所述验证消息为所述新数据区块的区块头的数据信息;The medical data recording method according to claim 5, wherein when the node that obtains the right to take turns accounting, broadcasts the verification message to other nodes in the P2P network, it broadcasts to neighboring nodes one by one, wherein the The verification message is data information of a block header of the new data block;任一节点接收到临近节点传来的所述验证消息后,将所述新数据区块的数据结构、语法规范进行验证有效性,对于验证有效时,将验证消息向临近节点继续进行广播,对于所述验证消息无效时,节点不做所述验证消息转发的操作;After any node receives the verification message from a neighboring node, it verifies the validity of the data structure and syntax specifications of the new data block. When the verification is valid, the verification message is continuously broadcast to the neighboring nodes. When the verification message is invalid, the node does not perform the operation of forwarding the verification message;所述P2P网络中被广播的节点指被所述共识机制筛选出的预设个数的节点,未筛选到的节点无权验证所述新数据区块,以减少区块创建和确认所需要消耗的时间和算力成本。The broadcasted nodes in the P2P network refer to a preset number of nodes screened by the consensus mechanism, and the unscreened nodes are not authorized to verify the new data block to reduce the consumption required for block creation and confirmation. Cost of time and computing power.
- 一种医疗数据记录系统,包括:A medical data recording system includes:建立P2P网络单元,设置为区块链系统在的网络层建立P2P网络,将医疗机构中的申请记录医疗数据信息的任一计算机设置为所述P2P网络中的一个节点;Establish a P2P network unit and set it to establish a P2P network at the network layer of the blockchain system, and set any computer in the medical institution that applies to record medical data information as a node in the P2P network;筛选节点单元,设置为区块链系统在共识层封装共识机制,通过所述共识机制筛选出预设个数的节点,筛选出的所述节点按照预设的时间表获得轮流记账权利,所述记账为记录医疗数据信息的过程;The node selection unit is set to encapsulate the consensus mechanism of the blockchain system at the consensus layer, and a preset number of nodes are selected through the consensus mechanism, and the selected nodes obtain the right of rotating bookkeeping according to a preset schedule. Recounting is the process of recording medical data information;节点记账单元,设置为所述节点获得轮流记账权利后,接收所述共识机制发送的所述医疗数据信息,建立新数据区块,将所述医疗数据信息记录到所述新数据区块中,并通过所述区块链系统的链式结构,将所述新数据区块链接到前一数据区块,形成新的区块链。The node accounting unit is configured to receive the medical data information sent by the consensus mechanism after the node obtains the accounting rights in turn, establish a new data block, and record the medical data information to the new data block. The new data block is linked to the previous data block through the chain structure of the blockchain system to form a new block chain.
- 根据权利要求7所述的医疗数据记录系统,其中,所述P2P网络中的每个节点之间通过扁平式拓扑结构交互。The medical data recording system according to claim 7, wherein each node in the P2P network interacts through a flat topology.
- 根据权利要求7所述的医疗数据记录系统,其中,所述共识机制采用DPoS共识机制,所述DPoS共识机制设置为选出预设个数的节点;The medical data recording system according to claim 7, wherein the consensus mechanism adopts a DPoS consensus mechanism, and the DPoS consensus mechanism is set to select a preset number of nodes;所述筛选节点单元还包括:The screening node unit further includes:投票筛选模块,设置为所述P2P网络中的节点在所述区块链系统上注册,并接受其他节点的投票,所述共识机制在接收到所有节点的投票后,记录节点的投票数,得票数最高的前预设个数的节点将获得轮流记账权利;The voting screening module is set up so that nodes in the P2P network register on the blockchain system and accept votes from other nodes. The consensus mechanism records the number of votes of the nodes and receives votes after receiving votes from all nodes The highest number of previously preset nodes will get the right to take turns to book;轮流记账模块,设置为筛选出的所述节点按照所述预设的时间表获得轮流记账权利,所述共识机制按照所述预设的时间表将所述医疗数据信息轮流发送给筛选出的所述节点。The bookkeeping module is configured to obtain the right of bookkeeping by the selected nodes according to the preset timetable, and the consensus mechanism sends the medical data information to the screeners in turn according to the preset timetable. The nodes.
- 根据权利要求7所述的医疗数据记录系统,其中,所述节点记账单元包括:The medical data recording system according to claim 7, wherein the node accounting unit comprises:建立新数据区块模块,设置为所述节点获得所述医疗数据信息后,建立所述新数据区块,所述新数据区块包括区块头和区块体,所述区块头记录前一区块的Merkle根、当前区块的Merkle根、时间戳,所述区块体记录所述医疗数据信息,所述时间戳为所述新数据区块建立时的时间;A new data block module is set up to set up the new data block after the node obtains the medical data information, the new data block includes a block header and a block body, and the block header records the previous area A Merkle root of a block, a Merkle root of a current block, and a timestamp, the block body records the medical data information, and the timestamp is a time when the new data block is established;记录Merkle根模块,设置为所述节点将获得的所述医疗数据信息通过Merkle根的哈希函数计算生成唯一的Merkle根记录到所述区块头的当前区块的Merkle根中;The Merkle root module is recorded, and the node is configured to generate the unique Merkle root recorded by the node through calculation of the Merkle root hash function into the Merkle root of the current block of the block header;记录区块体模块,设置为所述节点将所述医疗数据信息通过非对称加密算法进行加密,记入到所述区块体中;The block recording module is configured so that the node encrypts the medical data information by an asymmetric encryption algorithm, and records the block into the block;形成新的区块链模块,设置为所述节点通过链式结构,将当前区块链接到前一区块之后,并记录前一区块的Merkle根,致使形成新的区块链。A new blockchain module is formed, and the node is set to link the current block to the previous block through a chain structure, and record the Merkle root of the previous block, resulting in the formation of a new blockchain.
- 根据权利要求7所述的医疗数据记录系统,其中,还包括验证广播单元:设置为所述节点将所述新数据区块链接到前一数据区块,形成新的区块链后,由生所述该数据区块的节点将验证消息广播到所述P2P网络中的其他节点,所述P2P网络中的其他节点对所述新数据区块进行数据验证,并将验证结果通知所述共识机制,所述共识机制接收到的所有验证结果均为有效时,认为所述P2P网络中的所有节点都认可所述新数据区块链接在所述区块链中,所述共识机制接收到的所有验证结果存在无效时,认为所述新数据区块无效,将所述新数据区块从区块链中去除,将所述新数据区块对应的所述医疗数据信息发送给下一个获得轮流记账权利的节点进行记账。The medical data recording system according to claim 7, further comprising a verification broadcasting unit: configured to link the new data block to the previous data block by the node, form a new block chain, and generate a new data block. The node of the data block broadcasts a verification message to other nodes in the P2P network, and the other nodes in the P2P network perform data verification on the new data block, and notify the consensus mechanism of the verification result When all the verification results received by the consensus mechanism are valid, it is considered that all nodes in the P2P network recognize that the new data block is linked in the blockchain, and all the nodes received by the consensus mechanism When the verification result is invalid, the new data block is considered invalid, the new data block is removed from the blockchain, and the medical data information corresponding to the new data block is sent to the next one to obtain a rotation record The right to book accounts.
- 根据权利要求11所述的医疗数据记录系统,其中,所述验证广播单元还包括:The medical data recording system according to claim 11, wherein the verification broadcasting unit further comprises:逐个广播模块,设置为获得轮流记账权利的节点在将所述验证消息广播到所述P2P网络中的其他节点时,采用逐个向临近节点广播的方式,其中所述验证消息为所述新数据区块的区块头的数据信息;One-by-one broadcasting module, the node set to obtain the right of bookkeeping in turn, when broadcasting the verification message to other nodes in the P2P network, broadcasts to the neighboring nodes one by one, wherein the verification message is the new data Data information of the block header of the block;验证有效性模块,设置为任一节点接收到临近节点传来的所述验证消息后,将所述新数据区块的数据结构、语法规范进行验证有效性,对于验证有效时,将验证消息向临近节点继续进行广播,对于所述验证消息无效时,节点不做所述验证消息转发的操作;The verification validity module is configured to verify the validity of the data structure and syntax specifications of the new data block after any node receives the verification message from a neighboring node. When the verification is valid, the verification message is sent to The neighboring nodes continue to broadcast. When the verification message is invalid, the node does not forward the verification message.所述P2P网络中被广播的节点指被所述共识机制筛选出的预设个数的节点,未筛选到的节点无权验证所述新数据区块,以减少区块创建和确认所需要消耗的时间和算力成本。The broadcasted nodes in the P2P network refer to a preset number of nodes screened by the consensus mechanism, and the unscreened nodes are not authorized to verify the new data block to reduce the consumption required for block creation and confirmation. Cost of time and computing power.
- 一种计算机设备,包括存储器和处理器,所述存储器中存储有计算机可读指令,所述计算机可读指令被所述处理器执行时,使得所述处理器执行以下步骤:A computer device includes a memory and a processor. The memory stores computer-readable instructions. When the computer-readable instructions are executed by the processor, the processor causes the processor to perform the following steps:区块链系统在网络层建立P2P网络,将医疗机构中的申请记录医疗数据信息的任一计算机设置为所述P2P网络中的一个节点;The blockchain system establishes a P2P network at the network layer, and sets any computer in the medical institution that applies to record medical data information as a node in the P2P network;所述区块链系统在共识层封装共识机制,通过所述共识机制筛选出预设个数的节点,筛选出的所述节点按照预设的时间表获得轮流记账权利,所述记账为记录医疗数据信息的过程;The blockchain system encapsulates a consensus mechanism in a consensus layer, and a preset number of nodes are filtered through the consensus mechanism, and the selected nodes obtain a right to rotate bookkeeping rights according to a preset schedule, and the bookkeeping is The process of recording medical data;所述节点获得轮流记账权利后,接收所述共识机制发送的所述医疗数据信息,建立新数据区块,将所述医疗数据信息记录到所述新数据区块中,并通过所述区块链系统的链式结构,将所述新数据区块链接到前一数据区块,形成新的区块链。After the node obtains the right to take turns in accounting, it receives the medical data information sent by the consensus mechanism, establishes a new data block, records the medical data information into the new data block, and passes the area The chain structure of the block chain system links the new data block to the previous data block to form a new block chain.
- 根据权利要求13所述的计算机设备,其中,所述共识机制采用DPoS共识机制,所述DPoS共识机制设置为选出预设个数的节点;The computer device according to claim 13, wherein the consensus mechanism adopts a DPoS consensus mechanism, and the DPoS consensus mechanism is set to select a preset number of nodes;通过所述DPoS共识机制筛选预设个数的节点时,还使得所述处理器执行以下步骤:When screening a preset number of nodes through the DPoS consensus mechanism, the processor is further caused to perform the following steps:所述P2P网络中的节点在所述区块链系统上注册,并接受其他节点的投票,所述共识机制在接收到所有节点的投票后,记录节点的投票数,得票数最高的前预设个数的节点将获得轮流记账权利;The nodes in the P2P network are registered on the blockchain system and accept the votes of other nodes. After receiving the votes of all nodes, the consensus mechanism records the number of votes of the nodes and presets the highest number of votes. The number of nodes will get the right to take turns in accounting;筛选出的所述节点按照所述预设的时间表获得轮流记账权利,所述共识机制按照所述预设的时间表将所述医疗数据信息轮流发送给筛选出的所述节点。The selected nodes obtain the right of bookkeeping in turn according to the preset schedule, and the consensus mechanism sends the medical data information to the selected nodes in turn according to the preset schedule.
- 根据权利要求13所述的计算机设备,其中,所述节点获得轮流记账权利后,还使得所述处理器执行以下步骤:The computer device according to claim 13, wherein, after the node obtains the right of taking turns in accounting, the node further causes the processor to perform the following steps:所述节点获得所述医疗数据信息后,建立所述新数据区块,所述新数据区块包括区块头和区块体,所述区块头记录前一区块的Merkle根、当前区块的Merkle根、时间戳,所述区块体记录所述医疗数据信息,所述时间戳为所述新数据区块建立时的时间;After the node obtains the medical data information, the new data block is created. The new data block includes a block header and a block body, and the block header records a Merkle root of a previous block and a current block of the current block. Merkle root, timestamp, the block records the medical data information, and the timestamp is the time when the new data block was established;所述节点将获得的所述医疗数据信息通过Merkle根的哈希函数计算生成唯一的Merkle根记录到所述区块头的当前区块的Merkle根中;Calculating, by the node, the obtained medical data information through a hash function of the Merkle root to generate a unique Merkle root record into the Merkle root of the current block of the block header;所述节点将所述医疗数据信息通过非对称加密算法进行加密,记入到所述区块体中;The node encrypts the medical data information by an asymmetric encryption algorithm, and records the medical data information into the block body;所述节点通过链式结构,将当前区块链接到前一区块之后,并记录前一区块的Merkle根,致使形成新的区块链。The node uses a chain structure to link the current block to the previous block and records the Merkle root of the previous block, resulting in the formation of a new block chain.
- 根据权利要求13所述的计算机设备,其中,所述节点将所述新数据区块链接到前一数据区块,形成新的区块链后,还使得所述处理器执行以下步骤:由生成所述数据区块的节点将验证消息广播到所述P2P网络中的其他节点,所述P2P网络中的其他节点对所述新数据区块进行数据验证,并将验证结果通知所述共识机制,所述共识机制接收到的所有验证结果均为有效时,认为所述P2P网络中的所有节点都认可所述新数据区块链接在所述区块链中,所述共识机制接收到的所有验证结果存在无效时,认为所述新数据区块无效,将所述新数据区块从所述区块链中去除,将所述新数据区块对应的所述医疗数据信息发送给下一个获得轮流记账权利的节点进行记账。The computer device according to claim 13, wherein the node links the new data block to a previous data block to form a new block chain, and further causes the processor to perform the following steps: The node of the data block broadcasts a verification message to other nodes in the P2P network, the other nodes in the P2P network perform data verification on the new data block, and notify the consensus mechanism of the verification result, When all the verification results received by the consensus mechanism are valid, it is considered that all nodes in the P2P network recognize that the new data block is linked in the blockchain, and all verifications received by the consensus mechanism When the result is invalid, the new data block is considered invalid, the new data block is removed from the blockchain, and the medical data information corresponding to the new data block is sent to the next acquisition rotation Nodes with accounting rights perform accounting.
- 一种存储有计算机可读指令的存储介质,所述计算机可读指令被一个或多个处理器执行时,使得一个或多个处理器执行以下步骤:A storage medium storing computer-readable instructions. When the computer-readable instructions are executed by one or more processors, the one or more processors execute the following steps:区块链系统在网络层建立P2P网络,将医疗机构中的申请记录医疗数据信息的任一计算机设置为所述P2P网络中的一个节点;The blockchain system establishes a P2P network at the network layer, and sets any computer in the medical institution that applies to record medical data information as a node in the P2P network;所述区块链系统在共识层封装共识机制,通过所述共识机制筛选出预设个数的节点,筛选出的所述节点按照预设的时间表获得轮流记账权利,所述记账为记录医疗数据信息的过程;The blockchain system encapsulates a consensus mechanism in a consensus layer, and a preset number of nodes are filtered through the consensus mechanism, and the selected nodes obtain a right to rotate bookkeeping rights according to a preset schedule, and the bookkeeping is The process of recording medical data;所述节点获得轮流记账权利后,接收所述共识机制发送的所述医疗数据信息,建立新数据区块,将所述医疗数据信息记录到所述新数据区块中,并通过所述区块链系统的链式结构,将所述新数据区块链接到前一数据区块,形成新的区块链。After the node obtains the right to take turns in accounting, it receives the medical data information sent by the consensus mechanism, establishes a new data block, records the medical data information into the new data block, and passes the area The chain structure of the block chain system links the new data block to the previous data block to form a new block chain.
- 根据权利要求17所述的存储介质,其中,所述共识机制采用DPoS共识机制,所述DPoS共识机制设置为选出预设个数的节点;The storage medium according to claim 17, wherein the consensus mechanism adopts a DPoS consensus mechanism, and the DPoS consensus mechanism is set to select a preset number of nodes;通过所述DPoS共识机制筛选预设个数的节点时,还使得一个或多个处理器执行以下步骤:When screening a preset number of nodes through the DPoS consensus mechanism, one or more processors are further caused to perform the following steps:所述P2P网络中的节点在所述区块链系统上注册,并接受其他节点的投票,所述共识机制在接收到所有节点的投票后,记录节点的投票数,得票数最高的前预设个数的节点将获得轮流记账权利;The nodes in the P2P network are registered on the blockchain system and accept the votes of other nodes. After receiving the votes of all nodes, the consensus mechanism records the number of votes of the nodes and presets the highest number of votes. The number of nodes will get the right to take turns in accounting;筛选出的所述节点按照所述预设的时间表获得轮流记账权利,所述共识机制按照所述预设的时间表将所述医疗数据信息轮流发送给筛选出的所述节点。The selected nodes obtain the right of bookkeeping in turn according to the preset schedule, and the consensus mechanism sends the medical data information to the selected nodes in turn according to the preset schedule.
- 根据权利要求17所述的存储介质,其中,所述节点获得轮流记账权利后,还使得一个或多个处理器执行以下步骤:The storage medium according to claim 17, wherein after the node obtains the right to take turns in accounting, it further causes one or more processors to perform the following steps:所述节点获得所述医疗数据信息后,建立所述新数据区块,所述新数据区块包括区块头和区块体,所述区块头记录前一区块的Merkle根、当前区块的Merkle根、时间戳,所述区块体记录所述医疗数据信息,所述时间戳为所述新数据区块建立时的时间;After the node obtains the medical data information, the new data block is created. The new data block includes a block header and a block body, and the block header records a Merkle root of a previous block and a current block of the current block. Merkle root, timestamp, the block records the medical data information, and the timestamp is the time when the new data block was established;所述节点将获得的所述医疗数据信息通过Merkle根的哈希函数计算生成唯一的Merkle根记录到所述区块头的当前区块的Merkle根中;Calculating, by the node, the obtained medical data information through a hash function of the Merkle root to generate a unique Merkle root record into the Merkle root of the current block of the block header;所述节点将所述医疗数据信息通过非对称加密算法进行加密,记入到所述区块体中;The node encrypts the medical data information by an asymmetric encryption algorithm, and records the medical data information into the block body;所述节点通过链式结构,将当前区块链接到前一区块之后,并记录前一区块的Merkle根,致使形成新的区块链。The node uses a chain structure to link the current block to the previous block and records the Merkle root of the previous block, resulting in the formation of a new block chain.
- 根据权利要求17所述的存储介质,其中,所述节点将所述新数据区块链接到前一数据区块,形成新的区块链后,还使得一个或多个处理器执行以下步骤:由生成所述数据区块的节点将验证消息广播到所述P2P网络中的其他节点,所述P2P网络中的其他节点对所述新数据区块进行数据验证,并将验证结果通知所述共识机制,所述共识机制接收到的所有验证结果均为有效时,认为所述P2P网络中的所有节点都认可所述新数据区块链接在所述区块链中,所述共识机制接收到的所有验证结果存在无效时,认为所述新数据区块无效,将所述新数据区块从所述区块链中去除,将所述新数据区块对应的所述医疗数据信息发送给下一个获得轮流记账权利的节点进行记账。The storage medium of claim 17, wherein the node links the new data block to a previous data block to form a new block chain, and further causes one or more processors to perform the following steps: The node generating the data block broadcasts a verification message to other nodes in the P2P network, and the other nodes in the P2P network perform data verification on the new data block, and notify the consensus of the verification result Mechanism, when all verification results received by the consensus mechanism are valid, it is considered that all nodes in the P2P network recognize that the new data block is linked in the blockchain, and the consensus mechanism receives When all verification results are invalid, the new data block is considered invalid, the new data block is removed from the blockchain, and the medical data information corresponding to the new data block is sent to the next The nodes that have obtained the right to take turns to perform accounting.
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810561627.2A CN109194702B (en) | 2018-06-04 | 2018-06-04 | Medical data recording method, system, computer device and storage medium |
CN201810561627.2 | 2018-06-04 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2019232946A1 true WO2019232946A1 (en) | 2019-12-12 |
Family
ID=64948567
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2018/103934 WO2019232946A1 (en) | 2018-06-04 | 2018-09-04 | Method for recording medical data, system, computer apparatus, and storage medium |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN109194702B (en) |
WO (1) | WO2019232946A1 (en) |
Families Citing this family (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109841274A (en) * | 2019-01-18 | 2019-06-04 | 中国人民解放军连勤保障部队第九〇九医院 | A kind of blood administration method based on block chain |
CN110289060A (en) * | 2019-06-20 | 2019-09-27 | 福州数据技术研究院有限公司 | A kind of personal medical data storage method under the chain based on random Merkle tree |
CN110891050B (en) * | 2019-10-24 | 2021-12-14 | 中国科学技术大学 | Full-chain atomic-level active safe routing method |
CN111128322A (en) * | 2019-12-06 | 2020-05-08 | 北京先通康桥医药科技有限公司 | Block chain-based medical data processing method, server and system |
CN111241069B (en) * | 2020-01-19 | 2023-10-20 | 上海墨珩网络科技有限公司 | Block chain-based data flattening method and system |
CN111625594A (en) * | 2020-04-22 | 2020-09-04 | 东南大学 | Countless health data bank carrier method based on block chain technology |
CN111741067B (en) * | 2020-05-20 | 2022-08-12 | 广州市格利网络技术有限公司 | Block chain-based tableware circulation information management method and device and block chain system |
CN112258304A (en) * | 2020-09-01 | 2021-01-22 | 网络通信与安全紫金山实验室 | Consensus accounting method, identification tracing method and system, and computer storage medium |
CN113988950B (en) * | 2021-11-17 | 2024-09-17 | 郑州厚普科技有限公司 | Management method and management platform for public welfare big data |
CN114139184B (en) * | 2021-12-01 | 2022-05-31 | 医贝云服(杭州)科技有限公司 | Medical data processing method and device based on near-end processing technology |
CN116257873A (en) * | 2022-09-09 | 2023-06-13 | 广州堃盛医疗用品有限公司 | Medical data storage method and device based on blockchain, electronic equipment and medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106354994A (en) * | 2016-08-22 | 2017-01-25 | 布比(北京)网络技术有限公司 | Method and system for processing medical data |
CN106850536A (en) * | 2016-11-30 | 2017-06-13 | 北京瑞卓喜投科技发展有限公司 | Block chain common recognition method and system |
CN106878000A (en) * | 2017-03-06 | 2017-06-20 | 中钞信用卡产业发展有限公司北京智能卡技术研究院 | A kind of alliance's chain common recognition method and system |
CN107424066A (en) * | 2017-07-19 | 2017-12-01 | 武汉凤链科技有限公司 | A kind of method and its system of mechanism of being built a consensus based on the magnitude of value |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106603698A (en) * | 2016-12-28 | 2017-04-26 | 北京果仁宝科技有限公司 | Block chain consensus method based on DPOS and nodes |
CN107122477A (en) * | 2017-05-02 | 2017-09-01 | 成都中远信电子科技有限公司 | A kind of block chain storage system |
CN107341660B (en) * | 2017-05-27 | 2021-06-29 | 唐盛(北京)物联技术有限公司 | Block chain bottom layer consensus mechanism and block chain system based on same |
-
2018
- 2018-06-04 CN CN201810561627.2A patent/CN109194702B/en active Active
- 2018-09-04 WO PCT/CN2018/103934 patent/WO2019232946A1/en active Application Filing
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106354994A (en) * | 2016-08-22 | 2017-01-25 | 布比(北京)网络技术有限公司 | Method and system for processing medical data |
CN106850536A (en) * | 2016-11-30 | 2017-06-13 | 北京瑞卓喜投科技发展有限公司 | Block chain common recognition method and system |
CN106878000A (en) * | 2017-03-06 | 2017-06-20 | 中钞信用卡产业发展有限公司北京智能卡技术研究院 | A kind of alliance's chain common recognition method and system |
CN107424066A (en) * | 2017-07-19 | 2017-12-01 | 武汉凤链科技有限公司 | A kind of method and its system of mechanism of being built a consensus based on the magnitude of value |
Also Published As
Publication number | Publication date |
---|---|
CN109194702A (en) | 2019-01-11 |
CN109194702B (en) | 2021-06-29 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2019232946A1 (en) | Method for recording medical data, system, computer apparatus, and storage medium | |
Shukla et al. | Identification and authentication in healthcare internet-of-things using integrated fog computing based blockchain model | |
CN111986755B (en) | Data sharing system based on blockchain and attribute-based encryption | |
CN108600227B (en) | Medical data sharing method and device based on block chain | |
US20230299938A9 (en) | System for privacy protection during iot secure data sharing and method thereof | |
US20210089676A1 (en) | Methods and systems for secure data exchange | |
JP7231630B2 (en) | Blockchain-implemented security systems and methods for blinded consequent selection | |
US20190371106A1 (en) | Voting system and method | |
Lin et al. | Secure Internet of medical Things (IoMT) based on ECMQV-MAC authentication protocol and EKMC-SCP blockchain networking | |
Ren et al. | HCNCT: A cross-chain interaction scheme for the blockchain-based metaverse | |
Qin et al. | A secure storage and sharing scheme of stroke electronic medical records based on consortium blockchain | |
Naresh et al. | Blockchain‐based patient centric health care communication system | |
CN115065679B (en) | Electronic health record sharing model, method, system and medium based on blockchain | |
Xiang et al. | Decentralized authentication and access control protocol for blockchain-based e-health systems | |
Yang et al. | Multiple access control scheme for EHRs combining edge computing with smart contracts | |
Li et al. | A Lightweight Fine‐Grained Searchable Encryption Scheme in Fog‐Based Healthcare IoT Networks | |
CN116303767A (en) | Medical data multistage management and sharing method based on CP-ABE | |
Li et al. | Electronic medical record sharing system based on hyperledger fabric and interplanetary file system | |
Wang et al. | Staged data delivery protocol: A blockchain‐based two‐stage protocol for non‐repudiation data delivery | |
CN114900534B (en) | Big data supervision method based on block chain technology | |
Xie et al. | Verifiable outsourcing EMRs scheme with attribute-based encryption in cloud-edge environments | |
Quan et al. | A trusted medical data sharing framework for edge computing leveraging blockchain and outsourced computation | |
Mittal et al. | A three-phase framework for secure storage and sharing of healthcare data based on blockchain, IPFS, proxy re-encryption and group communication | |
Krasnoselskii et al. | Distributed random number generator on Hedera Hashgraph | |
JP5275468B2 (en) | How to allow service access restrictions |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 18922008 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 18922008 Country of ref document: EP Kind code of ref document: A1 |