CN112750514A - Medical record management method and system based on block chain technology - Google Patents
Medical record management method and system based on block chain technology Download PDFInfo
- Publication number
- CN112750514A CN112750514A CN202110132051.XA CN202110132051A CN112750514A CN 112750514 A CN112750514 A CN 112750514A CN 202110132051 A CN202110132051 A CN 202110132051A CN 112750514 A CN112750514 A CN 112750514A
- Authority
- CN
- China
- Prior art keywords
- data
- user
- block
- module
- identity
- 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.)
- Pending
Links
Images
Classifications
-
- G—PHYSICS
- G16—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR SPECIFIC APPLICATION FIELDS
- G16H—HEALTHCARE INFORMATICS, i.e. INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR THE HANDLING OR PROCESSING OF MEDICAL OR HEALTHCARE DATA
- G16H10/00—ICT specially adapted for the handling or processing of patient-related medical or healthcare data
- G16H10/60—ICT specially adapted for the handling or processing of patient-related medical or healthcare data for patient-specific data, e.g. for electronic patient records
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/60—Protecting data
- G06F21/62—Protecting access to data via a platform, e.g. using keys or access control rules
- G06F21/6218—Protecting access to data via a platform, e.g. using keys or access control rules to a system of files or objects, e.g. local or distributed file system or database
- G06F21/6245—Protecting personal data, e.g. for financial or medical purposes
Abstract
The invention relates to a medical record management method and a medical record management system based on a block chain technology, wherein the method comprises the steps of establishing a user identity; establishing an intelligent contract; the third party agency is authorized by the user to update or access the user's case data upon a relevant request. The invention adopts the block chain technology to ensure the safety of the case data, and any access to the case data needs to be authorized by the user, and the user has the data control right of the medical record. In addition, only index information is stored in the block chain, and the blocks are stored in the cloud by establishing indexes in a cloud storage mode, so that the problem of resource waste is solved.
Description
Technical Field
The invention relates to the technical field of block chains, in particular to a medical record management method and system based on a block chain technology.
Background
At present, with the development of internet and cloud computing, the research on a data security storage sharing technology is deeper, medical records of patients serve as a precious data asset, and a medical record data sharing system is rapidly developed. The electronic medical record sharing system is very helpful to the convenience of patients and research in the medical field, but the traditional electronic medical record sharing system has the problems of privacy and storage safety.
In view of the above problems, the prior art utilizes the characteristics of the blockchain that are different from the characteristics of the traditional system that the trusted third party is trusted and the information cannot be tampered, so that the problem of medical privacy can be solved by using the blockchain to store the information. However, the existing electronic medical record management system based on the block chain only stays at the stage of an application scene, and only theoretical research has no specific technical details; meanwhile, in the blockchain system, the storage of information with a large data size on the blockchain may cause an excessive memory occupation, and especially, when the blocks are synchronized, the information may be synchronized in each node, which may cause a problem of resource waste and heavy burden to a certain extent.
Disclosure of Invention
The invention provides a medical record management method and system based on a block chain technology, which solve the problems of difficult sharing, poor safety and the like of electronic medical records, enable patients to have the control right of accessing data, and ensure the privacy and the safety of the data; the problem of large data volume during block chain data synchronization is solved, the data storage idleness is saved, and the data reading and writing efficiency is improved, so that the working efficiency of the whole system is improved.
The technical scheme for solving the technical problems is as follows:
in one aspect, the present invention provides a medical record management method based on a block chain, where the method includes:
s1, establishing a user identity;
s2, establishing an intelligent contract;
and S3, according to the related request, the user authorizes the third-party agency to update or access the case data of the user.
In one aspect, the present invention further provides a medical record management system based on the block chain technology, including:
the identity establishing module is used for establishing the identity of the user;
the contract establishing module is used for establishing an intelligent contract;
and the third-party agency updates or accesses the case data of the user according to the authorization of the user.
The invention has the beneficial effects that: the block chain technology is adopted to ensure the safety of case data, and any access to the case data needs to be authorized by a user, so that the user has the data control right of the medical record. In addition, only index information is stored in the block chain, and the block is stored on the cloud by establishing the index in a cloud storage mode, so that the problem of resource waste is reduced to a certain extent.
Drawings
Fig. 1 is a schematic flowchart of a medical record management method based on a block chain technique according to an embodiment of the present invention;
fig. 2 is a schematic flowchart of a medical record management method based on a block chain technique according to an embodiment of the present invention during data updating;
fig. 3 is a schematic flowchart of a medical record management method based on a block chain technology according to an embodiment of the present invention during data access;
fig. 4 is a schematic structural diagram of a medical record storage system based on a block chain technique according to an embodiment of the present invention;
fig. 5 is a schematic diagram of an operating environment of a system in which an application is installed according to an embodiment of the present invention.
Detailed Description
The principles and features of this invention are described below in conjunction with the following drawings, which are set forth by way of illustration only and are not intended to limit the scope of the invention.
The technical solutions provided by the embodiments of the present description are described in detail below with reference to the accompanying drawings.
Example one
As shown in fig. 1, the present invention provides a medical record management method based on block chain technology, which comprises the following steps:
s1, establishing a user identity;
s2, establishing an intelligent contract;
and S3, according to the related request, the user authorizes the third-party agency to update or access the case data of the user.
Preferably, the establishing the user identity further includes the following steps:
s101, generating a random number as a private key;
s102, processing the private key through an elliptic curve algorithm to generate a public key;
preferably, the hash value of the public key represents the address of the user in the blockchain.
Further, as shown in fig. 2, the step of authorizing the third-party agency to update the case data of the user further includes the following steps:
s301, a third-party agent mechanism initiates a data updating request to a user;
s302, the user authorizes the third-party agency mechanism by using the created private key;
s303, detecting the identity of the user by a third-party agent mechanism;
s304, after the detection is passed, data classification and labeling are carried out on the data;
s305, carrying out encryption storage on the processed data, and adding a storage record to a block;
s306, updating intelligent contracts of the user and a third-party agency mechanism;
and S307, finishing data updating.
Further, as shown in fig. 3, the step of the user authorizing the third-party agency to access the case data of the user further comprises the following steps:
s401, a data accessor sends an access request to a third party agency;
s402, a third-party agency mechanism detects the identity of a data visitor;
s403, if the identity detection is successful, the third-party agency inquires whether the user agrees with the access request of the data visitor;
s404, if the user agrees, obtaining a private key sent by the user, and approving the access of a data visitor;
s405, adding an access record to the block;
s406, the contracts of the user, the third-party agency and the data visitor are updated.
And S407, ending the access.
The medical record management method based on the block chain technology not only provides a system for controlling data access by a user, ensures privacy and safety of user data, but also provides a practical and practical specific technical scheme, and innovatively designs the data structure of each block. In the medical record management method based on the block chain technology, the block needs to record the information of the current block and the data operation record stored in one block period. After a user establishes a personal contract, for the user, the medical data and operation records of the life of the user are limited and can be stored locally or at a client; for third-party medical institutions such as hospitals and the like, corresponding databases are used for storing data operations related to the third-party medical institutions, but as each blockchain node in the network needs to be updated and downloaded frequently, if the memory of the blockchain is too large, transmission and local storage are affected, and the operation efficiency of the whole system is reduced.
The invention designs the intelligent contract based on the block chain technology, and can facilitate various users to master own information, so that the requirement for verifying the content on the block is far less than that under other block chain application scenes. Based on the scene, in order to reduce the bandwidth pressure of the blockchain nodes in the updating process and the storage pressure of downloading blockchain data to the local, the method keeps the block heads of blockchain blocks in the local and stores the block bodies on the cloud by establishing indexes. Wherein the content of the first and second substances,
the block header of each block includes:
index: the number of the block, used for the index of the block;
parent _ hash: the hash value of a block above the block;
minerAddress: generating a node of a block;
digest: producing signatures for the block nodes;
close _ address: the address of the storage;
timing and map: the time of block creation;
merkle _ root: merkle root of a block;
version: version number of blockchain;
size: the number of operation records generated by the Merkle root of the block.
The block body of each block records operation records of case data, and the operation records of all case data are added to the block body no matter the storage operation or the access operation, and specifically include:
patient _ identity: storing the identity of the party patient;
agent _ organization: a data proxy stores the organization identity;
visit _ organization: the identity of the visitor;
a purpurose: a data manipulation purpose;
timing and map: data operation time;
hash: a hash value of the data;
index: the index of the current operation record.
Through the design of the storage mode of the block, the design structure of the local block is greatly simplified, and meanwhile, the storage space of the local block is greatly reduced.
The system simulates an average creation period of one block to be 5 seconds, the average number of stored data operation records of each block is 500, 1200 and 2000 in sequence, and the test time is 5 seconds, 1 hour and 1 day in sequence. The block chain storage space occupation under the block structure is compared with the block chain storage space occupation under the common block structure, and the 1-year storage space comparison is estimated. The 1 st column in each group of data in the table represents the data of the scheme, the 2 nd column represents the common data, and as can be seen from the table 1, the space saved by the scheme is larger and larger as the time increases.
TABLE 1
Example two
As shown in fig. 4, the present invention further provides a medical record management system based on the block chain technology, including:
the identity establishing module is used for establishing the identity of the user;
the contract establishing module is used for establishing an intelligent contract;
and the third-party agency updates or accesses the case data of the user according to the authorization of the user.
Further, the identity creation module comprises:
the private key generation module generates a random number as a private key;
the public key generating module is used for processing the private key through an elliptic curve algorithm to generate a public key;
preferably, the hash value of the public key represents the address of the user in the blockchain.
Further, as shown in fig. 4, the data access module further includes, when updating data:
the data updating request module is used for initiating a data updating request to a user;
the user authorization module is used for authorizing the third-party agency by using the established private key;
the identity detection module is used for detecting the identity of the user;
the data processing module is used for carrying out data classification and labeling on the data;
the data encryption module is used for encrypting and storing the processed data and adding a storage record to the block;
and the data updating module is used for updating the intelligent contracts of the user and the third-party agency mechanism.
Further, as shown in fig. 4, the data access module further includes, when accessing data:
the data access request module is used for sending an access request to a third-party agency mechanism;
the identity detection module is used for detecting the identity of the data visitor;
the user authorization module is used for authorizing the access request of the data visitor;
the key receiving module is used for acquiring a private key sent by a user and approving the access of a data visitor;
the data encryption module encrypts the access records and adds the access records to the blocks;
and the data updating module is used for updating contracts of the user, the third-party agency and the data visitor.
EXAMPLE III
A system with an application installed according to an embodiment of the present invention.
Referring to fig. 5, there is shown a runtime environment of a system in which an application is installed, according to an embodiment of the present invention. In this embodiment, the system for installing the application is installed and operated in the electronic device. The electronic device can be a desktop computer, a notebook, a palm computer, a server and other computing equipment. The electronic device may include, but is not limited to, a memory, a processor, and a display. The figures show only electronic devices having the components described above, but it should be understood that not all of the shown components are required to be implemented, and that more or fewer components may be implemented instead.
The memory may in some embodiments be an internal storage unit of the electronic device, such as a hard disk or a memory of the electronic device. The memory may also be an external storage device of the electronic apparatus in other embodiments, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like, provided on the electronic apparatus. Further, the memory may also include both an internal storage unit and an external storage device of the electronic apparatus. The memory is used for storing application software installed in the electronic device and various types of data, such as program codes of the system for installing the application programs. The memory may also be used to temporarily store data that has been output or is to be output.
The processor may be, in some embodiments, a Central Processing Unit (CPU), a microprocessor, or other data Processing chip, for running program code stored in the memory or Processing data, such as executing the system for installing applications.
The display may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, an OLED (Organic Light-Emitting Diode) touch panel, or the like in some embodiments. The display is used for displaying information processed in the electronic device and for displaying visual customer interfaces, such as application menu interfaces, application icon interfaces, and the like. The components of the electronic device communicate with each other over a system bus.
Through the above description of the embodiments, it is obvious for those skilled in the art that the method in the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can be implemented by hardware, but the former is a better embodiment in many cases. Based on such understanding, the technical solutions of the present invention essentially or contributing to the prior art may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
That is, according to an embodiment of the present invention, there is also provided a computer-readable storage medium having stored thereon a program for executing the method according to an embodiment of the present invention, which when executed by a processor, performs the steps of the method.
The invention has the advantages that:
the storage mode taking the block chain as the core enables the medical records of the user to be stored on the block chain and cannot be tampered, the safety of the medical data is guaranteed, any access to the case data needs to be authorized by the user, the user has the ownership of the medical records, and the data control right of the case history can be possessed.
Meanwhile, the traditional block chain system only depends on the block chain for data storage, so that the memory is excessively occupied, particularly, when the blocks are synchronized, information can be synchronized in each node, and the problems of resource waste and heavy burden can be caused to a certain extent.
While the invention has been described with reference to specific embodiments, it will be understood by those skilled in the art that various changes in form and details may be made therein without departing from the spirit and scope of the invention as defined by the appended claims. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.
Claims (14)
1. A medical record management method based on block chain technology is characterized by comprising the following steps:
s1, establishing a user identity;
s2, establishing an intelligent contract;
and S3, according to the related request, the user authorizes the third-party agency to update or access the case data of the user.
2. The method of claim 1,
the step S1 further includes the steps of:
s101, generating a random number as a private key;
and S102, processing the private key through an elliptic curve algorithm to generate a public key.
3. The method of claim 2,
the hash value of the public key represents the address of the user in the blockchain.
4. The method of claim 1,
the user authorizing the third party agency to update the case data of the user further comprises the following steps:
s301, a third-party agent mechanism initiates a data updating request to a user;
s302, the user authorizes the third-party agency mechanism by using the created private key;
s303, detecting the identity of the user by a third-party agent mechanism;
s304, after the detection is passed, data classification and labeling are carried out on the data;
s305, carrying out encryption storage on the processed data, and adding a storage record to a block;
s306, updating intelligent contracts of the user and a third-party agency mechanism;
and S307, finishing data updating.
5. The method of claim 1,
the user authorizing the third party agent to access the user's case data further comprises the steps of:
s401, a data accessor sends an access request to a third party agency;
s402, a third-party agency mechanism detects the identity of a data visitor;
s403, if the identity detection is successful, the third-party agency inquires whether the user agrees with the access request of the data visitor;
s404, if the user agrees, obtaining a private key sent by the user, and approving the access of a data visitor;
s405, adding an access record to the block;
s406, the contracts of the user, the third-party agency and the data visitor are updated.
And S407, ending the access.
6. The method according to claim 4 or 5,
the block head of the block is kept in the local, and the block body of the block is stored on the cloud by establishing an index.
7. The method of claim 6,
the data mechanism of the block head is as follows:
index: the number of the block, used for the index of the block;
parent _ hash: the hash value of a block above the block;
minerAddress: generating a node of a block;
digest: producing signatures for the block nodes;
close _ address: the address of the storage;
timing and map: the time of block creation;
merkle _ root: merkle root of a block;
version: version number of blockchain;
size: the number of operation records generated by the Merkle root of the block.
8. The method of claim 6,
the data structure of the block body is as follows:
patient _ identity: storing the identity of the party patient;
agent _ organization: a data proxy stores the organization identity;
visit _ organization: the identity of the visitor;
a purpurose: a data manipulation purpose;
timing and map: data operation time;
hash: a hash value of the data;
index: the index of the current operation record.
9. A medical record management system based on block chain technology is characterized by comprising:
the identity establishing module is used for establishing the identity of the user;
the contract establishing module is used for establishing an intelligent contract;
and the third-party agency updates or accesses the case data of the user according to the authorization of the user.
10. The system of claim 9,
the identity creation module comprises:
the private key generation module generates a random number as a private key;
and the public key generating module is used for processing the private key through an elliptic curve algorithm to generate a public key.
11. The system of claim 10,
the hash value of the public key represents the address of the user in the blockchain.
12. The system of claim 9,
the data access module further comprises:
the data updating request module is used for initiating a data updating request to a user;
the authorization module is used for authorizing the third-party agency by the user by using the created private key;
the identity detection module is used for detecting the identity of the user;
the data processing module is used for carrying out data classification and labeling on the data;
the data encryption module is used for encrypting and storing the processed data and adding a storage record to the block;
and the data updating module is used for updating the intelligent contracts of the user and the third-party agency mechanism.
13. The system of claim 9,
the data access module further comprises:
the data access request module is used for sending an access request to a third-party agency mechanism;
the identity detection module is used for detecting the identity of the data visitor;
the user authorization module is used for authorizing the access request of the data visitor;
the key receiving module is used for acquiring a private key sent by a user and approving the access of a data visitor;
the data encryption module encrypts the access records and adds the access records to the blocks;
and the data updating module is used for updating contracts of the user, the third-party agency and the data visitor.
14. A computer-readable storage medium, characterized in that the computer-readable storage medium has stored thereon a program for executing the method according to any one of claims 1 to 8, which program, when being executed by a processor, is adapted to carry out the steps of the method according to any one of claims 1 to 8.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110132051.XA CN112750514A (en) | 2021-01-30 | 2021-01-30 | Medical record management method and system based on block chain technology |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110132051.XA CN112750514A (en) | 2021-01-30 | 2021-01-30 | Medical record management method and system based on block chain technology |
Publications (1)
Publication Number | Publication Date |
---|---|
CN112750514A true CN112750514A (en) | 2021-05-04 |
Family
ID=75653451
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110132051.XA Pending CN112750514A (en) | 2021-01-30 | 2021-01-30 | Medical record management method and system based on block chain technology |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112750514A (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106534317A (en) * | 2016-11-17 | 2017-03-22 | 杭州云象网络技术有限公司 | Disaster recovery cloud storage system construction method based on block chain technology |
US20180060496A1 (en) * | 2016-08-23 | 2018-03-01 | BBM Health LLC | Blockchain-based mechanisms for secure health information resource exchange |
CN108648784A (en) * | 2018-03-15 | 2018-10-12 | 西安电子科技大学 | Medical data storage method, information data processing terminal based on block chain technology |
CN110851448A (en) * | 2019-11-08 | 2020-02-28 | 四川长虹电器股份有限公司 | Local data storage optimization method based on block chain intelligent contract |
CN111555885A (en) * | 2020-03-18 | 2020-08-18 | 西安电子科技大学 | Credible identity authentication method, system, storage medium and cloud computing terminal |
-
2021
- 2021-01-30 CN CN202110132051.XA patent/CN112750514A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20180060496A1 (en) * | 2016-08-23 | 2018-03-01 | BBM Health LLC | Blockchain-based mechanisms for secure health information resource exchange |
CN106534317A (en) * | 2016-11-17 | 2017-03-22 | 杭州云象网络技术有限公司 | Disaster recovery cloud storage system construction method based on block chain technology |
CN108648784A (en) * | 2018-03-15 | 2018-10-12 | 西安电子科技大学 | Medical data storage method, information data processing terminal based on block chain technology |
CN110851448A (en) * | 2019-11-08 | 2020-02-28 | 四川长虹电器股份有限公司 | Local data storage optimization method based on block chain intelligent contract |
CN111555885A (en) * | 2020-03-18 | 2020-08-18 | 西安电子科技大学 | Credible identity authentication method, system, storage medium and cloud computing terminal |
Non-Patent Citations (1)
Title |
---|
李博文: "基于区块链技术的医疗数据存储", 《中国优秀硕士学位论文全文数据库信息科技辑》, no. 2 * |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110515678B (en) | Information processing method, equipment and computer storage medium | |
US20130332575A1 (en) | Efficient data transfer for cloud storage by centralized management of access tokens | |
CN109522751B (en) | Access right control method and device, electronic equipment and computer readable medium | |
CN112818325A (en) | Method for realizing API gateway independent authentication based on application | |
CN101069154A (en) | Non-intrusive trusted user interface | |
CN112163240A (en) | Block chain based distributed government affair architecture unifying method and system | |
TW201901515A (en) | Blocking unauthorized application methods and devices using the method | |
CN112632071A (en) | Database primary key id generation method, device, equipment and storage medium | |
CN113259342A (en) | Login verification method, device, computer equipment and medium | |
US20230104103A1 (en) | Custodial systems for non-fungible tokens | |
CN111311259A (en) | Bill processing method, device, terminal and computer readable storage medium | |
CN112818038A (en) | Data management method based on combination of block chain and IPFS (Internet protocol file system) and related equipment | |
WO2023207529A1 (en) | Data processing method and apparatus, device, medium, and product | |
CN108241732B (en) | Electronic device, information processing method, and storage medium | |
CN115659378A (en) | Case record information evidence storing method and related equipment | |
CN114978649B (en) | Information security protection method, device, equipment and medium based on big data | |
CN112750514A (en) | Medical record management method and system based on block chain technology | |
JP2002287629A (en) | Electronic device, information update system in electronic device, information update method and program therefor | |
CN113434824B (en) | Software service authorization management method, device, equipment and storage medium | |
CN109284622B (en) | Contact information processing method and device and storage medium | |
US20230198760A1 (en) | Verified presentation of non-fungible tokens | |
JP2003345789A (en) | System and device for managing document, authenticating method, computer readable program, and storage medium | |
CN115330396A (en) | Payment state acquisition method and device, computer equipment and storage medium | |
CN115203672A (en) | Information access control method and device, computer equipment and medium | |
CN114978664A (en) | Data sharing method and device and electronic equipment |
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 |