CN109194702A - Medical data recording method, system, computer equipment and storage medium - Google Patents

Medical data recording method, system, computer equipment and storage medium Download PDF

Info

Publication number
CN109194702A
CN109194702A CN201810561627.2A CN201810561627A CN109194702A CN 109194702 A CN109194702 A CN 109194702A CN 201810561627 A CN201810561627 A CN 201810561627A CN 109194702 A CN109194702 A CN 109194702A
Authority
CN
China
Prior art keywords
block
node
network
common recognition
medical
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201810561627.2A
Other languages
Chinese (zh)
Other versions
CN109194702B (en
Inventor
张爽
王义文
王健宗
肖京
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ping An Technology Shenzhen Co Ltd
Original Assignee
Ping An Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ping An Technology Shenzhen Co Ltd filed Critical Ping An Technology Shenzhen Co Ltd
Priority to CN201810561627.2A priority Critical patent/CN109194702B/en
Priority to PCT/CN2018/103934 priority patent/WO2019232946A1/en
Publication of CN109194702A publication Critical patent/CN109194702A/en
Application granted granted Critical
Publication of CN109194702B publication Critical patent/CN109194702B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/104Peer-to-peer [P2P] networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/30Decision processes by autonomous network management units using voting and bidding
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/104Peer-to-peer [P2P] networks
    • H04L67/1044Group management mechanisms 
    • H04L67/1051Group master selection mechanisms
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1097Protocols 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]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks

Abstract

The present invention relates to technical field of data processing more particularly to a kind of medical data recording method, system, computer equipment and storage mediums.Bone medical data recording method includes: that block catenary system in network layer establishes P2P network, the node set any computer in medical institutions in P2P network.Block catenary system encapsulates common recognition mechanism in common recognition layer, and the node of predetermined number is filtered out by common recognition mechanism, and the node filtered out obtains right of keeping accounts in turn according to preset timetable.After node obtains right of keeping accounts in turn, new data block is established, medical data information is recorded in new data block, and pass through the chain structure of block catenary system, new data block is linked to last data block, forms new block chain.The present invention utilizes the distributed account book technology and decentralization of block chain technology, realizes medical digital, transparence and facilitation, better services individual and medical associated mechanisms.

Description

Medical data recording method, system, computer equipment and storage medium
Technical field
The present invention relates to technical field of data processing more particularly to a kind of medical data recording method, system, computers to set Standby and storage medium.
Background technique
Body and medical data are the personal very important privacy information of modern society, for example, fingerprint or iris it is this unique Property unique " pin body ".Therefore it is extremely important but traditional that the information such as personal medical records, identity characteristic are holded in close confidence Centralization database even file cabinet etc., it is more likely that because network operation is made mistakes, the reasons such as hacker attack lead to personal health Data are leaked to allows the medical information of many people to be on the hazard safely on the net.Meanwhile it can be used for the intelligence of digital medical record Energy Medical Devices, in case of emergency can not provide newest and reliable patient information in time for hospital and doctor.
Therefore there is information after medical data leakage by security threat, doctor or hospital for traditional digital medical data The problem of being unable to get patient's newest most authentic communication.
Summary of the invention
In view of this, it is necessary to too late for information security existing for existing conventional digital medical data and acquisition information Shi Wenti provides a kind of medical data recording method, system, computer equipment and storage medium.
A kind of medical data recording method, includes the following steps:
Block catenary system establishes P2P network in network layer, by appointing for the application record medical data information in medical institutions One computer installation is a node in the P2P network;
Block catenary system encapsulates common recognition mechanism in common recognition layer, and the node of predetermined number is filtered out by the common recognition mechanism, The node filtered out obtains right of keeping accounts in turn according to preset timetable, and the book keeping operation is record medical data information Process;
After the node obtains right of keeping accounts in turn, the medical data information that the common recognition mechanism is sent is received, is built Vertical new data block, the medical data information is recorded in the new data block, and passes through the block catenary system The new data block is linked to last data block, forms new block chain by chain structure.
Pass through the interaction of flat topological structure between each node in the P2P network in one of the embodiments,.
The common recognition mechanism is used for using DPoS common recognition mechanism, the DPoS common recognition mechanism in one of the embodiments, Select the node of predetermined number;
Node in the P2P network is registered on the block catenary system, and receives the ballot of other nodes, described total Knowledge mechanism records the votes of node, the node of the highest preceding predetermined number of number of votes obtained after the ballot for receiving all nodes Right of keeping accounts in turn will be obtained;
The node filtered out is kept accounts right in turn according to the preset timetable acquisition, the common recognition mechanism according to The medical data information is sent to the node filtered out by the preset timetable in turn.
After the node obtains right of keeping accounts in turn in one of the embodiments, using following steps by the medical treatment Data information is recorded in the new data block, and forms new block chain:
After the node obtains the medical data information, the new data block is established, the new data block includes Block head and block body, the block head record Merkle root, the timestamp of the Merkle root of previous block, current block, institute It states block body and records the medical data information, the timestamp is the time when new data block is established;
The medical data information of acquisition is calculated by the hash function of Merkle root and is generated uniquely by the node Merkle root record is into the Merkle root of the current block of the block head;
The node encrypts the medical data information by rivest, shamir, adelman, is logged into the block body In;
The node after current block is linked to previous block, and records previous block by chain structure Merkle root causes to form new block chain.
The new data block is linked to last data block by the node in one of the embodiments, is formed new Block chain after, the node by generating the data block is broadcast to other nodes in the P2P network, institute for message is verified Other nodes stated in P2P network carry out data verification to the new data block, and verification result is notified the common recognition machine System, when all verification results that the common recognition mechanism receives are effective, it is believed that all nodes in the P2P network are all recognized Can the new data block be linked in the block chain, all verification results that the common recognition mechanism receives exist invalid When, it is believed that the new data block is invalid, the new data block is removed from the block chain, by the new data block The corresponding medical data information is sent to next node for obtaining right of keeping accounts in turn and keeps accounts.
The node of right of keeping accounts in turn is obtained in one of the embodiments, described in be broadcast to the verifying message When other nodes in P2P network, using one by one to by the way of neighbor node broadcast, wherein the verifying message is the new number According to the data information of the block head of block;
After any node receives the verifying message that neighbor node transmits, by the data knot of the new data block Structure, syntax gauge carry out verifying validity, and when for verifying effective, the verifying message is continued extensively to neighbor node It broadcasts, when for the verifying message invalid, node does not do the operation of verifying message forwarding;
The node being broadcasted in the P2P network refers to the node of the predetermined number filtered out by the common recognition mechanism, is unscreened The node chosen haves no right to verify the new data block, with reduce block creation and confirmation required for consume time and calculate power at This.
A kind of medical data record system, including such as lower unit:
P2P network unit is established, P2P network is established in network layer for block catenary system, by the application in medical institutions Any computer of record medical data information is set as a node in the P2P network;
Node unit is screened, common recognition mechanism is encapsulated in common recognition layer for block catenary system, is screened by the common recognition mechanism The node of predetermined number out, the node filtered out obtain right of keeping accounts in turn according to preset timetable, and the book keeping operation is Record the process of medical data information;
Node accounting unit after obtaining right of keeping accounts in turn for the node, receives the doctor that the common recognition mechanism is sent Data information is treated, new data block is established, the medical data information is recorded in the new data block, and by described The new data block is linked to last data block, forms new block chain by the chain structure of block catenary system.
In one of the embodiments, further include verifying radio unit: being used for the node for the new data block chain It is connected to last data block, after forming new block chain, the node by generating the data block is broadcast to institute for message is verified Other nodes in P2P network are stated, other nodes in the P2P network carry out data verification to the new data block, and Verification result is notified into the common recognition mechanism, when all verification results that the common recognition mechanism receives are effective, it is believed that institute It states all nodes in P2P network and all approves that the new data block is linked in the block chain, the common recognition mechanism receives To all verification results there are it is invalid when, it is believed that the new data block is invalid, by the new data block from the block It is removed in chain, the new data block corresponding medical data information is sent to next acquisition and is kept accounts in turn right Node is kept accounts.
A kind of computer equipment, including memory and processor are stored with computer-readable instruction in the memory, institute When stating computer-readable instruction and being executed by the processor, so that the processor executes the step of above-mentioned medical data recording method Suddenly.
A kind of storage medium being stored with computer-readable instruction, the computer-readable instruction are handled by one or more When device executes, so that the step of one or more processors execute above-mentioned medical data recording method.
Above-mentioned medical data recording method, device, computer equipment and storage medium, including block catenary system is in network layer P2P network is established, one any computer of the application record medical data information in medical institutions set in P2P network A node;Block catenary system encapsulates common recognition mechanism in common recognition layer, and the node of predetermined number is filtered out by common recognition mechanism, is filtered out Node keep accounts in turn right according to the acquisition of preset timetable, keep accounts to record the process of medical data information;Node obtains After right of keeping accounts in turn, the medical data information that common recognition mechanism is sent is received, new data block is established, medical data information is remembered It records in new data block, and passes through the chain structure of block catenary system, new data block is linked to last data block, shape The block chain of Cheng Xin.The technical program utilizes the distributed account book technology of block chain technology, decentralization, every meter in network Calculation machine is dynamically adapted medical data information, realizes medical digital, transparence and facilitation, and better services are personal and medical Associated mechanisms.
Detailed description of the invention
By reading the following detailed description of the preferred embodiment, various other advantages and benefits are common for this field Technical staff will become clear.The drawings are only for the purpose of illustrating a preferred embodiment, and is not considered as to the present invention Limitation.
Fig. 1 is the flow chart of the medical data recording method in one embodiment of the invention;
Fig. 2 is the flow chart of present invention screening node step;
Fig. 3 is the flow chart of node billing step of the present invention;
Fig. 4 is a kind of structural schematic diagram of data block of the present invention;
Fig. 5 is the flow chart of data broadcasting verification step of the present invention;
Fig. 6 is the structure chart of medical digital data recording system in one embodiment of the invention.
Specific embodiment
In order to make the objectives, technical solutions, and advantages of the present invention clearer, with reference to the accompanying drawings and embodiments, right The present invention is further elaborated.It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, and It is not used in the restriction present invention.
Those skilled in the art of the present technique are appreciated that unless expressly stated, singular " one " used herein, " one It is a ", " described " and "the" may also comprise plural form.It is to be further understood that being arranged used in specification of the invention Diction " comprising " refer to that there are the feature, integer, step, operation, element and/or component, but it is not excluded that in the presence of or addition Other one or more features, integer, step, operation, element, component and/or their group.
Fig. 1 is the flow chart of the medical data recording method in one embodiment of the invention, as shown in Figure 1, a kind of medical treatment Data record method, comprising the following steps:
Step S1, establish P2P network: block catenary system establishes P2P network in network layer, and the application in medical institutions is remembered Any computer of record medical data information is set as a node in P2P network.
Block catenary system is a kind of system based on block chain technology, and also referred to as distributed account book technology is a kind of mutual Networking data library technology.Its main feature is that it is decentralization, open and clear, allow everyone to each may participate in maintenance data-base recording.Block Catenary system mainly includes network layer, common recognition layer and data Layer.Block catenary system is Distributed Storage, point-to-point transmission, is total to The new application mode of the computer technologies such as knowledge mechanism, Encryption Algorithm.Wherein, common recognition mechanism is that difference is realized in block catenary system The mathematical algorithm for trusting, obtaining equity is established between node.And wherein the block chain of storing data is a kind of suitable according to the time A kind of sequence linked data structure for being combined into such a way that sequence is connected by data block, and guaranteed in a manner of cryptography can not The distributed account book distorted and can not forged.Therefore this step is able to achieve the distributed recording of data information using block chain technology And distributed storage, so-called distributed recording are exactly that can be remembered by any computer in medical institutions as node collective Record, rather than recorded by the mechanism of a centralization, so-called distributed storage is that data can store in all participations record Node in, rather than be centrally stored in the agency node of centralization.
The networking mode that this step uses P2P network makes the network layer of block catenary system realize decentralization, will be many Any computer of application record medical data information is wanted in more medical institutions as node, forms P2P network, and each section Pass through the interaction of flat topological structure between point.It in this step, has the ability to build server, and participates in the medical institutions to keep accounts Computer be all node.Such networking mode realizes each node status equity, and there is no the levels of any centralization Structure, each node can the participation verification information of equality and the processes of propagation information.
Step S2, screen node: block catenary system encapsulates common recognition mechanism in common recognition layer, is filtered out by common recognition mechanism default The node of number, the node filtered out obtain right of keeping accounts in turn according to preset timetable, keep accounts as record medical data letter The process of breath.
Common recognition mechanism is the core technology of block chain, which node is common recognition mechanism determine in P2P network to keep accounts, And deciding means of keeping accounts will will affect the safety and reliability of entire block catenary system.The common recognition mechanism of this step filters out pre- If number is preceding 101 medical institutions, the medical data information for needing to record can be obtained by edge calculations.Before filtering out 101 medical institutions obtain right of keeping accounts in turn according to such as -30 seconds 10 seconds timetables.
Node book keeping operation: step S3 after node obtains right of keeping accounts in turn, receives the medical data letter that common recognition mechanism is sent Breath, establishes new data block, medical data information is recorded in new data block, and passes through the chain type knot of block catenary system New data block is linked to last data block by structure, forms new block chain.
The chain structure of bottom data block and relevant asymmetric public and private is encapsulated in the data Layer of block catenary system Key data encryption algorithm and timestamp etc., this is the data structure of the bottom in entire block catenary system.A certain node is taken turns After stream book keeping operation right, receives and recorded including being hospitalized, prescription, the medical data informations such as picture, after establishing new data block, storage Data Layer information into chain structure, as block catenary system.
The present embodiment establishes block catenary system, the network layer decentralization of block catenary system, area using based on P2P network The data Layer of block catenary system stores medical data information, and the common recognition layer of block catenary system, which knows together to data, to be verified, so that dynamic is adjusted Whole medical data information realizes medical digital, transparence and facilitation, better services individual and medical associated mechanisms.
In one embodiment, pass through the interaction of flat topological structure between each node in P2P network.
P2P network is a kind of peer-to-peer computer network, is that one kind distributes task between fellow (Peer) and work is negative The Distributed Application framework of load, the participant of network share a part of hardware resource that they are possessed between node, including Processing capacity, storage capacity, network-connectivity, printer etc., these shared resources pass through network offering services and content, energy It is directly accessed by other peer nodes without being subjected to intermediate entities.Participant in this P2P network be both resource, service and The supplier of content, and be that resource, service and content obtain taker.And flat topological structure is for traditional three-layer network frame The node that structure proposes is directly connected to the two levels network architecture of service provider, complies fully with the interactive requirements of P2P network.
The present embodiment is interacted using flat topological structure between node and node, can greatly reduce the complexity of network, In P2P network environment of the invention, all in the status of equity between the computer of medical institutions, each computer has identical Function, no master-slave, a computer can not only be used for server, and setting shared resource is made for other computers in network With, and can be used as work station, entire P2P network does not have dedicated work station, realizes the purpose of decentralization.
In one embodiment, as shown in Fig. 2, step S2, screening node include the following steps:
Step S201, using DPoS common recognition mechanism: common recognition mechanism is used to select using DPoS common recognition mechanism, DPoS common recognition mechanism The node of predetermined number out.
DPoS knows together mechanism (share authorisation verification mechanism), and principle is that the people for allowing each to hold bit stock throws Thus ticket generates 101 representatives, i.e. 101 nodes, 101 mutual rights of node are essentially equal.DPoS common recognition mechanism It is by different strategies, a small set of node is chosen in not timing, this selected a small set of node does new district when specific works Creation, verifying, signature and the mutually supervision of block, have been greatly reduced the time consumed required for block creation and confirmation and calculation Power cost.This step knows together mechanism by using DPoS to filter out the computer of 101 medical institutions as predetermined number Node.
Step S202, ballot screening node: the node in P2P network is registered on block catenary system, and receives other sections The ballot of point, common recognition mechanism records the votes of node after the ballot for receiving all nodes, default before number of votes obtained is highest The node of number will obtain right of keeping accounts in turn.
Node in registration, i.e., the registered public keys on block catenary system, then distribute to by the common recognition mechanism of block catenary system Node one 32 identifiers of registration, unique encodings of this identifier as the node.After the completion of registration, node both can be with It votes to other nodes, also can receive the ballot of other nodes.The votes that each node is recorded by common recognition mechanism will be thrown Poll is arranged from high to low, and number of votes obtained is come preceding 101 nodes and obtains right of keeping accounts in turn.
Step S203 keeps accounts in turn: the node filtered out obtains right of keeping accounts in turn according to preset timetable, machine of knowing together Medical data information is sent to the node filtered out according to this preset timetable by system in turn.
Preset timetable, which can be, successively sent medical number to 101 nodes by 10 seconds, 20 seconds or 30 seconds periods It is believed that breath.The a certain node for obtaining right of keeping accounts in turn, when establishing new data block, the note of common recognition mechanism record new data block It records the time, when new data block broadcasts the period more than 10 seconds, 20 seconds or 30 seconds from establishing the whole network, then it is assumed that obtain in turn The node of book keeping operation right misses the right of record new data block, this medical data information is sent to next obtain by common recognition mechanism The node for obtaining right of keeping accounts in turn replaces completing book keeping operation.
The present embodiment is screened, distributed and is supervised to the node in P2P network by DPoS common recognition mechanism, can be substantially The time for reducing consumption required for block creates and confirms of degree and calculation power cost.
In one embodiment, as shown in figure 3, step S3, node book keeping operation include the following steps:
Step S301 establishes new data block: after node obtains medical data information, establishing new data block, new data Block includes block head and block body, and block head records the Merkle root of previous block, the Merkle root of current block, time Stamp, block body record medical data information, and timestamp is time when new data block is established.
As shown in figure 4, each data block includes block head and block body, block head includes the Merkle of previous block The cryptographic Hash of root, the Merkle root of current block, timestamp, Merkle root, the interior medical data information recorded of block body.
Step S302, record the Merkle root of current block: the medical data information of acquisition is passed through Merkle root by node Hash function calculate in the Merkle root for generating the current block of unique Merkle root record to block head.
Merkle tree is the important component of block catenary system, and effect is the medical number by operation for hashed value It is believed that breath gets up according to binary tree structure organization.The generating process of Merkle tree are as follows: breathe out medical data information grouping Uncommon function calculates, and new hashed value is put back to, then takes out 2 data again and carry out operation, and recurrence is gone down always, until being left only One Merkle root.This step uses the advantages of Merkle tree, i.e., good scalability, regardless of how medical data information is , a Merkle tree can be generated.And the time complexity of lookup algorithm is very low, also is easy to trace to the source from bottom to find Merkle root whether there is or legal to carry out book keeping operation, greatly reduce resource occupation when operation.This step passes through application The create-rule of Merkle tree calculates the current block for generating unique Merkle root record to block head by hash function In Merkle root, this unique identification of unique Merkle root as current block.
Step S303, recording areas block: node encrypts medical data information by rivest, shamir, adelman, charges to Into block body.
Rivest, shamir, adelman in this step can use following algorithm:
(1) two different Big prime p and q are selected;
(2) product n=pq and Φ (n)=(p-1) (q-1) of Big prime are calculated;
(3) selection is greater than the 1 random integers e for being less than Φ (n), so that greatest common divisor gcd (e, Φ (n))=1;
(4) it calculates d and makes d × e=1mod Φ (n) (i.e. d × e mod Φ (n)=1);
(5) to each key k=(n, p, q, d, e), definition enciphering transformation is Ek (x)=xe mod n, decryption transformation For Dk (x)=yd mod n;
(6) p, q are destroyed, and with { e, n } for public-key cryptography, { d, n } is private cipher key, wherein public key for encrypting, use by private key In decryption.
In this step, node is logged into block body using the public key of { e, n } after encrypting to medical data information, Guarantee the safe and reliable of data.
Step S304 forms new block chain: obtaining the node of book keeping operation right by chain structure, current block is linked To after previous block, and the Merkle root of previous block is recorded, causes to form new block chain.
In this step, current block is linked on existing block chain, medical data information permanent will store Come, unless can control simultaneously be more than in block catenary system 51% node, otherwise to the modification of database on individual node Be it is invalid, the stability and reliability of the medical data information in block chain entire in this way are high.
The present embodiment calculates the Merkle root for generating current block by the hash function to medical data information, to doctor It treats data information rivest, shamir, adelman to be logged into block body, forms new data block, and be linked in block chain, realize The purpose that each node can keep accounts, each node right obtained is identical, and the accounting mode of decentralization ensure that block The stabilization and safety of medical data information on chain.
In one embodiment, it as shown in Figure 1, new data block is linked to last data block by node, is formed new Further include step S4 after block chain, data broadcasting is verified:
Other nodes that will be verified message by generating the node of the data block and be broadcast in P2P network, in P2P network Other nodes carry out data verification to new data block, and verification result is notified common recognition mechanism, the institute that common recognition mechanism receives When to have verification result be effective, it is believed that all nodes in P2P network all approve that this new data block is linked in block chain, All verification results that common recognition mechanism receives there are it is invalid when, it is believed that this new data block is invalid, by it from block chain It removes, this corresponding medical data information of new data block is sent to next node for obtaining right of keeping accounts in turn and is remembered Account.
Verifying message in this step refers to this message of the new data block of generation, other nodes receive this message Afterwards, new data block verifies data by Merkle root, specific verification process is as shown in Figure 5, and steps are as follows:
Step S401 is broadcasted one by one: the node for obtaining right of keeping accounts in turn is broadcast in P2P network will verify message When other nodes, by the way of being broadcasted one by one to neighbor node, wherein verifying message is the number of the block head of new data block It is believed that breath.
Due to using the networking mode of P2P network between each node, it can be based on P2P network, used between node The mode broadcasted to neighbor node one by one propagates verifying message.
Node verification validity: step S402 after any node receives the verifying message that neighbor node transmits, will be counted newly Carry out verifying validity according to the data structure of block, syntax gauge, for verify it is effective when, will verifying message to neighbor node after Continuous to be broadcasted, when for verifying message invalid, node does not do the operation of verifying message forwarding.
In this step, when node verifies new data block, node does not have to save whole block chain data, it is only necessary to Save comprising needing in the new data block verified, the block head of the Merkle root comprising current block can, traced back by bottom The Merkle root that source finds new data block, which carrys out verify data, whether there is or effectively.It is to current block when specific verifying Merkle root data structure and syntax gauge whether meet unique Merkle root of a Merkle tree to determine.
In this step, the node being broadcasted in P2P network refers to the node of the predetermined number filtered out by common recognition mechanism, that is, sieves 101 selected obtain the node for right of keeping accounts in turn, and the node not screened haves no right to verify new data block, to reduce block The time of consumption required for creating and confirming and calculation power cost.
The present embodiment, by increasing data broadcasting verification step, the data block for keeping each newly-generated is by P2P network In other nodes approve after, be just linked on block chain, nodes all in this way all has fair book keeping operation and supervision right, Further ensure the safe and reliable of all data blocks on block chain.
In one embodiment it is proposed that a kind of medical data records system, as shown in fig. 6, including such as lower unit:
P2P network unit is established, P2P network is established in network layer for block catenary system, by the application in medical institutions Any computer of record medical data information is set as a node in P2P network;
Node unit is screened, common recognition mechanism is encapsulated in common recognition layer for block catenary system, is filtered out by common recognition mechanism pre- If the node of number, the node filtered out obtains right of keeping accounts in turn according to preset timetable, keeps accounts to record medical data The process of information;
Node accounting unit after obtaining right of keeping accounts in turn for node, receives the medical data letter that common recognition mechanism is sent Breath, establishes new data block, medical data information is recorded in new data block, and passes through the chain type knot of block catenary system New data block is linked to last data block by structure, forms new block chain.
In one embodiment, further include verifying radio unit: new data block being linked to last data for node Block, after forming new block chain, other sections for will being verified message by generating the node of the data block and be broadcast in P2P network Point, other nodes in P2P network carry out data verification to new data block, and verification result is notified common recognition mechanism, common recognition When all verification results that mechanism receives are effective, it is believed that all nodes in P2P network all approve this new data block Be linked in block chain, all verification results that common recognition mechanism receives there are it is invalid when, it is believed that this new data block is invalid, will It is removed from block chain, this corresponding medical data information of new data block is sent to next acquisition and is kept accounts in turn right Node keep accounts.
In one embodiment it is proposed that a kind of computer equipment, including memory and processor, it is stored in memory Computer-readable instruction, when computer-readable instruction is executed by processor, so that reality when processor executes computer-readable instruction Existing following steps: block catenary system establishes P2P network in network layer, by the application record medical data information in medical institutions Any computer is set as a node in P2P network.Block catenary system encapsulates common recognition mechanism in common recognition layer, passes through machine of knowing together System filters out the node of predetermined number, and the node filtered out obtains right of keeping accounts in turn according to preset timetable, keeps accounts as note Record the process of medical data information.After node obtains right of keeping accounts in turn, the medical data information that common recognition mechanism is sent is received, is built Vertical new data block, medical data information is recorded in new data block, and passes through the chain structure of block catenary system, will be new Data block is linked to last data block, forms new block chain.
In one embodiment it is proposed that a kind of storage medium for being stored with computer-readable instruction, computer-readable finger When order is executed by one or more processors, so that one or more processors execute following steps: block catenary system is in network Layer establishes P2P network, sets any computer of the application record medical data information in medical institutions in P2P network One node.Block catenary system encapsulates common recognition mechanism in common recognition layer, and the node of predetermined number is filtered out by common recognition mechanism, screens Node out obtains right of keeping accounts in turn according to preset timetable, keeps accounts to record the process of medical data information.Node obtains After obtaining right of keeping accounts in turn, the medical data information that common recognition mechanism is sent is received, new data block is established, by medical data information It is recorded in new data block, and passes through the chain structure of block catenary system, new data block is linked to last data block, Form new block chain.
Those of ordinary skill in the art will appreciate that all or part of the steps in the various methods of above-described embodiment is can It is completed with instructing relevant hardware by program, which can be stored in a computer readable storage medium, storage Medium may include: read-only memory (ROM, Read Only Memory), random access memory (RAM, Random Access Memory), disk or CD etc..
Each technical characteristic of embodiment described above can be combined arbitrarily, for simplicity of description, not to above-mentioned reality It applies all possible combination of each technical characteristic in example to be all described, as long as however, the combination of these technical characteristics is not deposited In contradiction, all should be considered as described in this specification.
Some exemplary embodiments of the invention above described embodiment only expresses, the description thereof is more specific and detailed, but It cannot be construed as a limitation to the scope of the present invention.It should be pointed out that for the ordinary skill people of this field For member, without departing from the inventive concept of the premise, various modifications and improvements can be made, these belong to of the invention Protection scope.Therefore, the scope of protection of the patent of the invention shall be subject to the appended claims.

Claims (10)

1. a kind of medical data recording method, which comprises the steps of:
Block catenary system establishes P2P network in network layer, by any meter of the application record medical data information in medical institutions Calculation machine is set as a node in the P2P network;
The block catenary system encapsulates common recognition mechanism in common recognition layer, and the node of predetermined number is filtered out by the common recognition mechanism, The node filtered out obtains right of keeping accounts in turn according to preset timetable, and the book keeping operation is record medical data information Process;
After the node obtains right of keeping accounts in turn, the medical data information that the common recognition mechanism is sent is received, is established new The medical data information is recorded in the new data block data block, and passes through the chain type of the block catenary system The new data block is linked to last data block, forms new block chain by structure.
2. medical data recording method according to claim 1, which is characterized in that each node in the P2P network Between by flat topological structure interaction.
3. medical data recording method according to claim 1, which is characterized in that the common recognition mechanism is known together using DPoS Mechanism, the DPoS common recognition mechanism are used to select the node of predetermined number;
Node in the P2P network is registered on the block catenary system, and receives the ballot of other nodes, the common recognition machine System records the votes of node, the node of the highest preceding predetermined number of number of votes obtained will obtain after the ballot for receiving all nodes Obtain right of keeping accounts in turn;
The node filtered out obtains right of keeping accounts in turn according to the preset timetable, and the common recognition mechanism is according to described The medical data information is sent to the node filtered out by preset timetable in turn.
4. medical data recording method according to claim 1, which is characterized in that the node obtains right of keeping accounts in turn Afterwards, the medical data information is recorded in the new data block using following steps, and forms new block chain:
After the node obtains the medical data information, the new data block is established, the new data block includes block Head and block body, the block head record Merkle root, the timestamp of the Merkle root of previous block, current block, the area Block records the medical data information, and the timestamp is the time when new data block is established;
The medical data information of acquisition is calculated by the hash function of Merkle root and is generated uniquely by the node Merkle root record is into the Merkle root of the current block of the block head;
The node encrypts the medical data information by rivest, shamir, adelman, is logged into the block body;
The node after current block is linked to previous block, and records the Merkle of previous block by chain structure Root causes to form new block chain.
5. medical data recording method according to claim 1, which is characterized in that the node is by the new data block It is linked to last data block, after forming new block chain, the node by generating the data block is broadcast to message is verified Other nodes in the P2P network, other nodes in the P2P network carry out data verification to the new data block, And verification result is notified into the common recognition mechanism, when all verification results that the common recognition mechanism receives are effective, it is believed that All nodes in the P2P network all approve that the new data block is linked in the block chain, and the common recognition mechanism connects All verification results received there are it is invalid when, it is believed that the new data block is invalid, by the new data block from the area It is removed in block chain, the corresponding medical data information of the new data block is sent to next acquisition and is kept accounts in turn right Node keep accounts.
6. the medical data recording method stated according to claim 5, which is characterized in that the node for obtaining right of keeping accounts in turn is being incited somebody to action When the verifying message is broadcast to other nodes in the P2P network, by the way of being broadcasted one by one to neighbor node, wherein The verifying message is the data information of the block head of the new data block;
After any node receives the verifying message that neighbor node transmits, by the data structure of the new data block, language Regulation model carries out verifying validity, when for verifying effective, verifying message is continued to broadcast to neighbor node, for described When verifying message invalid, node does not do the operation of the verifying message forwarding;
The node being broadcasted in the P2P network refers to the node of the predetermined number filtered out by the common recognition mechanism, does not screen Node have no right to verify the new data block, with reduce block creation and confirmation required for consume time and calculate power cost.
7. a kind of medical data records system, which is characterized in that including such as lower unit:
Establish P2P network unit, for block catenary system network layer establish P2P network, by medical institutions application remember Any computer of record medical data information is set as a node in the P2P network;
Node unit is screened, common recognition mechanism is encapsulated in common recognition layer for block catenary system, is filtered out by the common recognition mechanism pre- If the node of number, the node filtered out obtains right of keeping accounts in turn according to preset timetable, and the book keeping operation is record The process of medical data information;
Node accounting unit after obtaining right of keeping accounts in turn for the node, receives the doctor that the common recognition mechanism is sent Data information is treated, new data block is established, the medical data information is recorded in the new data block, and by described The new data block is linked to last data block, forms new block chain by the chain structure of block catenary system.
8. medical data according to claim 7 records system, which is characterized in that further include verifying radio unit: being used for The new data block is linked to last data block by the node, after forming new block chain, by the raw described data field The node of block is broadcast to other nodes in the P2P network for message is verified, other nodes in the P2P network are to described New data block carries out data verification, and notifies the common recognition mechanism, the common recognition mechanism to receive all verification result When verification result is effective, it is believed that it is described that all nodes in the P2P network all approve that the new data block is linked at In block chain, all verification results that the common recognition mechanism receives there are it is invalid when, it is believed that the new data block is invalid, will The new data block is removed from block chain, the corresponding medical data information of the new data block is sent to next A node for obtaining right of keeping accounts in turn is kept accounts.
9. a kind of computer equipment, including memory and processor, it is stored with computer-readable instruction in the memory, it is described When computer-readable instruction is executed by the processor, so that the processor executes such as any one of claims 1 to 6 right It is required that the step of medical data recording method.
10. a kind of storage medium for being stored with computer-readable instruction, the computer-readable instruction is handled by one or more When device executes, so that one or more processors execute the medical data as described in any one of claims 1 to 6 claim and remember The step of recording method.
CN201810561627.2A 2018-06-04 2018-06-04 Medical data recording method, system, computer device and storage medium Active CN109194702B (en)

Priority Applications (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
PCT/CN2018/103934 WO2019232946A1 (en) 2018-06-04 2018-09-04 Method for recording medical data, system, computer apparatus, and storage medium

Applications Claiming Priority (1)

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

Publications (2)

Publication Number Publication Date
CN109194702A true CN109194702A (en) 2019-01-11
CN109194702B CN109194702B (en) 2021-06-29

Family

ID=64948567

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810561627.2A Active CN109194702B (en) 2018-06-04 2018-06-04 Medical data recording method, system, computer device and storage medium

Country Status (2)

Country Link
CN (1) CN109194702B (en)
WO (1) WO2019232946A1 (en)

Cited By (10)

* Cited by examiner, † Cited by third party
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
CN110891050A (en) * 2019-10-24 2020-03-17 中国科学技术大学 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
CN111241069A (en) * 2020-01-19 2020-06-05 上海墨珩网络科技有限公司 Data flattening method and system based on block chain
CN111625594A (en) * 2020-04-22 2020-09-04 东南大学 Countless health data bank carrier method based on block chain technology
CN111741067A (en) * 2020-05-20 2020-10-02 广州市格利网络技术有限公司 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
CN114139184A (en) * 2021-12-01 2022-03-04 医贝云服(杭州)科技有限公司 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 (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106354994A (en) * 2016-08-22 2017-01-25 布比(北京)网络技术有限公司 Method and system for processing medical data
CN106603698A (en) * 2016-12-28 2017-04-26 北京果仁宝科技有限公司 Block chain consensus method based on DPOS and nodes
CN106878000A (en) * 2017-03-06 2017-06-20 中钞信用卡产业发展有限公司北京智能卡技术研究院 A kind of alliance's chain common recognition method and system
CN107122477A (en) * 2017-05-02 2017-09-01 成都中远信电子科技有限公司 A kind of block chain storage system
CN107341660A (en) * 2017-05-27 2017-11-10 唐盛(北京)物联技术有限公司 A kind of block chain bottom common recognition mechanism and the block catenary system based on the common recognition mechanism

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106850536B (en) * 2016-11-30 2020-01-07 北京瑞卓喜投科技发展有限公司 Block chain consensus method and system
CN107424066B (en) * 2017-07-19 2020-11-10 武汉凤链科技有限公司 Method and system for establishing consensus mechanism based on value quantity

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106354994A (en) * 2016-08-22 2017-01-25 布比(北京)网络技术有限公司 Method and system for processing medical data
CN106603698A (en) * 2016-12-28 2017-04-26 北京果仁宝科技有限公司 Block chain consensus method based on DPOS and nodes
CN106878000A (en) * 2017-03-06 2017-06-20 中钞信用卡产业发展有限公司北京智能卡技术研究院 A kind of alliance's chain common recognition method and system
CN107122477A (en) * 2017-05-02 2017-09-01 成都中远信电子科技有限公司 A kind of block chain storage system
CN107341660A (en) * 2017-05-27 2017-11-10 唐盛(北京)物联技术有限公司 A kind of block chain bottom common recognition mechanism and the block catenary system based on the common recognition mechanism

Cited By (13)

* Cited by examiner, † Cited by third party
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
CN110891050A (en) * 2019-10-24 2020-03-17 中国科学技术大学 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
CN111241069A (en) * 2020-01-19 2020-06-05 上海墨珩网络科技有限公司 Data flattening method and system based on block chain
CN111625594A (en) * 2020-04-22 2020-09-04 东南大学 Countless health data bank carrier method based on block chain technology
CN111741067A (en) * 2020-05-20 2020-10-02 广州市格利网络技术有限公司 Block chain-based tableware circulation information management method and device and block chain system
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
CN114139184A (en) * 2021-12-01 2022-03-04 医贝云服(杭州)科技有限公司 Medical data processing method and device based on near-end processing technology
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

Also Published As

Publication number Publication date
CN109194702B (en) 2021-06-29
WO2019232946A1 (en) 2019-12-12

Similar Documents

Publication Publication Date Title
CN109194702A (en) Medical data recording method, system, computer equipment and storage medium
Ullah et al. Secure healthcare data aggregation and transmission in IoT—A survey
Ferrag et al. Blockchain technologies for the internet of things: Research issues and challenges
Shi et al. Blockchain‐based trusted data sharing among trusted stakeholders in IoT
CN107222478B (en) Software defined network control layer security mechanism construction method based on block chain
CN110245183A (en) A kind of encrypted electronic voting system and method based on alliance's block chain technology
CN102077545B (en) Personal security manager for ubiquitous patient monitoring
CN108235805A (en) Account unifying method and device and storage medium
CN109376528A (en) A kind of trusted identity management system and method based on block chain
Wei et al. The convergence of IoE and blockchain: security challenges
Chai et al. CyberChain: Cybertwin empowered blockchain for lightweight and privacy-preserving authentication in Internet of Vehicles
DE112019001441T5 (en) FORGETTABLE PSEUDO ACCIDENT FUNCTION IN A KEY MANAGEMENT SYSTEM
CN103684798B (en) Authentication method used in distributed user service
CN112532389B (en) Smart power grid lightweight privacy protection data aggregation method based on block chain
Lu et al. Accelerating at the edge: A storage-elastic blockchain for latency-sensitive vehicular edge computing
Du et al. A medical information service platform based on distributed cloud and blockchain
Mohanta et al. A novel approach to solve security and privacy issues for iot applications using blockchain
CN112085504A (en) Data processing method and device, computer equipment and storage medium
He et al. ROAchain: Securing route origin authorization with blockchain for inter-domain routing
CN106886722A (en) Big data information processing method and device
Tian et al. Robust and privacy-preserving decentralized deep federated learning training: Focusing on digital healthcare applications
GB2551954A (en) End-to-end verifiable E-voting system without tallying authorities
CN112749812A (en) Joint learning system, training result aggregation method and equipment
Carcia et al. Blockchain-based system for e-voting using blind signature protocol
Javed et al. Secure message handling in vehicular energy networks using blockchain and artificially intelligent IPFS

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant