A management method for desensitized data of test reports based on blockchain content uniqueness
By adopting blockchain technology in desensitized data management, a unique ID and data tag correspondence relationship is generated, and the problem of data correspondence relationship loss in the prior art is solved, thereby achieving more efficient and secure data management.
Patent Information
- Application Number
- CN202110919834.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-08-11
- Publication Date
- 2025-03-14
- Estimated Expiration
- 2041-08-11
AI Technical Summary
When the ID of the desensitized data is changed, the existing desensitized data will lose the correspondence between the original data and the desensitized data, resulting in data loss.
The blockchain-based content uniqueness management method is adopted, and by generating the correspondence between unique ID and data tags, the blockchain consensus mechanism and timing data structure are used to ensure that the data is not tampered with, and the blockchain records are updated when the ID or tag changes.
It effectively avoids the loss of data correspondence caused by ID changes, ensures the one-to-one mapping relationship between desensitized data and original data, and improves the security and reliability of data management.
Smart Images

Figure CN113836574B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of medical test report desensitization, and in particular to a management method for test report desensitized data based on blockchain content uniqueness. Background Art
[0002] With the digital development of the medical field, medical test reports are digitally communicated and transmitted. In clinical research and scientific research activities, the medical test report data will be desensitized first, and the data labels related to patients and ethics will be untied or deleted from the test report before being provided to scientific researchers. Conversely, in special cases, there is also a need to retrieve the corresponding original data from the desensitized data used in scientific research to query sensitive information such as patients.
[0003] The existing desensitized data management method is based on various desensitized data IDs, and achieves the mapping relationship between reports and desensitized data through the binding combination of test reports. The disadvantage is that if the desensitized data ID is changed, the information of the source data of these IDs will be lost, thereby losing the corresponding relationship between the original data and the desensitized data.
[0004] In order to overcome the above shortcomings, we invented a management method for desensitized data of test reports based on the uniqueness of blockchain content. Summary of the invention
[0005] The purpose of the present invention is to solve the problem in the existing desensitized data management method that if the ID of the desensitized data is changed, the information of the source data of these IDs will be lost, thereby losing the corresponding relationship between the original data and the desensitized data. The specific solution is as follows:
[0006] A method for managing desensitized data of test reports based on the uniqueness of blockchain content is carried out in the following steps:
[0007] Step 1, obtain the source data a of the medical test report and the multiple data tags attached thereto, bind the source data a and the data tag relationship to generate the t1 table, and store it in the database;
[0008] Step 2: Generate a unique ID for each data tag, i.e. multiple tag_ids. The corresponding relationship between tag_id and t1_id data in t1 table is used to generate t2 table and stored in the database.
[0009] Step 3, obtaining the desensitized data A corresponding to the desensitized source data a of the medical test report;
[0010] Step 4: Bind the t2_id data in the t2 table with the desensitized data A to generate the t3 table and store it in the database;
[0011] Step 5, obtain the corresponding relationship of all records in the t1 and t2 tables in the database and upload them to the blockchain;
[0012] Step 6, delete all records in the t1 table in the database;
[0013] Step 7, when the data in the t2 or t3 table in the database is modified or changed, a modification record β is obtained;
[0014] Step 8: Calculate and generate a new unique hash value for the modification record β and upload it to the blockchain;
[0015] Step 9: When the source data a needs to be obtained, the corresponding block is searched in the blockchain according to the unique hash value.
[0016] Furthermore, the number of data labels in step 1 is n, and the corresponding relationship between the data labels and the source data a is: n:1.
[0017] Furthermore, the t1 table lists n t1_id data.
[0018] Furthermore, in step 2, there are n tag_ids, and the corresponding relationship between tag_id and t1_id is 1:1.
[0019] Furthermore, the t2 table lists n t2_id data.
[0020] Furthermore, the correspondence between t2_id and the desensitized data A is n:1.
[0021] Furthermore, the method for obtaining the corresponding relationship between all records in the t1 and t2 tables in the database in step 5 is as follows:
[0022] Step 5-1: Associate tables t1 and t2 to obtain the corresponding relationship
[0023] α=source data a:data label:t1_id:tag_id:t2_id,
[0024] Multiple data labels correspond to multiple α, and each data label corresponds to one α;
[0025] Step 5-2, calculate the hash value of each α and upload it to the blockchain as its initial block.
[0026] Furthermore, the method for obtaining source data a in step 9 is as follows:
[0027] Step 9-1, when the unique hash value found is the initial block, directly obtain the corresponding relationship α in the initial block to obtain the data label and source data a;
[0028] Step 9-2, when the unique hash value found is not the initial block, the modification record β in the block is traced back until the corresponding relationship α in the initial block is found to obtain the data label and source data a.
[0029] Furthermore, the hash value is a SHA256 hash value.
[0030] Furthermore, the n is a natural number greater than 1.
[0031] In summary, the technical solution of the present invention has the following beneficial effects:
[0032] This solution solves the problem of existing desensitized data management methods. If the ID of the desensitized data is changed, the information of the source data of these IDs will be lost, thereby losing the corresponding relationship between the original data and the desensitized data. This solution uses blockchain technology and the characteristics of the time series data structure to store the original data and desensitized data labels or IDs on the chain to ensure that the data is not tampered with. Its consensus trust mechanism and multi-node data storage method also avoid the problem of easy loss.
[0033] By utilizing the mapping uniqueness between the original data and the desensitized data content and the content uniqueness of the blockchain time-series data structure to manage the desensitized data, it can be ensured that unless the data content is modified under all consensus conditions, the correspondence between the desensitized data and the original data can be guaranteed regardless of the label modification of any node or the ID modification in the local database, thereby ensuring the one-to-one mapping relationship more efficiently and securely. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments of the present invention. Obviously, the drawings described below are only part of the embodiments of the present invention, and those skilled in the art can obtain other drawings based on these drawings without creative labor.
[0035] Figure 1 This is a step diagram of a method for managing desensitized data of a test report based on the uniqueness of blockchain content in the present invention;
[0036] Figure 2 It is a corresponding relationship diagram of the source data a, data label, ID, and desensitized data A of the present invention;
[0037] Figure 3 Schematic diagram of the blockchain of the present invention. DETAILED DESCRIPTION
[0038] The technical scheme in the embodiment of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiment of the present invention. Obviously, the described embodiment is only a part of the embodiment of the present invention, not all of the embodiments. Based on the embodiment of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0039] like Figure 1 , 2 As shown in 3, a method for managing desensitized data of a detection report based on the uniqueness of blockchain content is performed in the following steps:
[0040] S1, obtain the source data a of the medical test report and the multiple data tags attached thereto, bind the source data a and the data tag relationship to generate table t1, and store it in the database;
[0041] S2, for each data tag, generates a unique and corresponding ID, i.e., multiple tag_ids (that is, data tag IDs). The corresponding relationship between tag_id and the t1_id data in the t1 table generates the t2 table and stores it in the database;
[0042] S3, obtaining the desensitized data A corresponding to the source data a after desensitization of the medical test report;
[0043] S4, bind the t2_id data of the t2 table with the desensitized data A to generate the t3 table and store it in the database;
[0044] S5, obtain the corresponding relationship of all records in the t1 and t2 tables in the database and upload them to the blockchain;
[0045] S6, delete all records in the t1 table in the database;
[0046] S7, when the data in the t2 or t3 table in the database is modified or changed, a modification record β is obtained;
[0047] S8, calculate and generate a new unique hash value for the modification record β (a hash value is a set of binary values obtained by encrypting the file content, and is mainly used for file verification, signing or encryption), and upload it to the blockchain;
[0048] S9, when the source data a needs to be obtained, the corresponding block is searched in the blockchain according to the unique hash value.
[0049] Furthermore, there are n data labels in S1, and the corresponding relationship between the data labels and the source data a is: n:1.
[0050] Furthermore, the t1 table lists n t1_id data.
[0051] Furthermore, there are n tag_ids in S2, and the correspondence between tag_id and t1_id is 1:1.
[0052] Furthermore, the t2 table lists n t2_id data.
[0053] Furthermore, the corresponding relationship between t2_id and the desensitized data A is n:1.
[0054] Furthermore, the method for obtaining the corresponding relationship between all records in the t1 and t2 tables in the database in S5 is as follows:
[0055] S5-1, associate t1 and t2 tables to obtain corresponding relationships
[0056] α=source data a:data label:t1_id:tag_id:t2_id,
[0057] Multiple (i.e., n) data labels correspond to multiple α (e.g., α1, α2…αn), and each data label corresponds to one α;
[0058] S5-2, calculate the hash value of each α and upload it to the blockchain as its initial block.
[0059] Furthermore, the method for obtaining source data a in S9 is as follows:
[0060] S9-1, when the unique hash value found is the initial block, the corresponding relationship α in the initial block is directly obtained to obtain the data label and source data a;
[0061] S9-2, when the unique hash value found is not the initial block, the modification record β in the block is traced back until the corresponding relationship α in the initial block is found to obtain the data label and source data a.
[0062] Furthermore, the hash value is a SHA256 hash value. (SHA256 is one of the Secure Hash Algorithm (SHA) series of algorithms. SHA256 is just a method of hash encryption.)
[0063] Furthermore, n is a natural number greater than 1.
[0064] t1 table
[0065] id meta_data tag_data t101 Source dataa Data Label 1 t102 Source dataa Data Label 2 ...... ...... ...... t10n Source dataa Data Label
[0066] t2 table
[0067]
[0068]
[0069] t3 table
[0070] id t2_id mask_data t301 t201 Desensitized data A t302 t202 Desensitized data A ...... ...... ...... t30n t20n Desensitized data A
[0071] from Figure 2 In the figure, it can be seen that the data tag ID, such as ID-001, ID-002, ... ID-00n, can also be understood as the ID of the desensitized data. The present invention is explained below with an example:
[0072] Embodiment 1:
[0073] cDNA-L1 detection data analysis report-L000001 (source data)
[0074]
[0075]
[0076] Desensitized data labeling Data Labels ID-001 (Name: Zhang San) ID-002 (Gender: Female) ID-003 (Age: 37) ID-004 (Native Place: Sichuan) ID-005 (Submission number: 755268) ID-006 (Inspection unit: People's Hospital) ID-007 (Tester: Jiang Moumou) ID-008 (Reviewer: Shen)
[0077] cDNA-L1 test data analysis report-TDA75536 (desensitized data)
[0078]
[0079] In the t1 table in the database, the following data is stored
[0080]
[0081] In the t2 table in the database, the following data is stored
[0082] ID T1_ID TAG_ID t201 t101 ID-001 t202 t102 ID-002 t203 t103 ID-003 t204 t104 ID-004 t205 t105 ID-005 t206 t106 ID-006 t207 t107 ID-007 t208 t108 ID-008
[0083] In the t3 table in the database, the following data is stored
[0084]
[0085]
[0086] According to the corresponding relationship between the t1 and t2 tables, the data relationship can be obtained
[0087] α1=L000001:(Name: Zhang San):t101:ID-001:t201
[0088] α2=L000001:(Gender: Female):t102:ID-002:t202
[0089] α3=L000001:(age: 37):t103:ID-003:t203
[0090] α4=L000001:(Place of Origin: Sichuan):t104:ID-004:t204
[0091] α5=L000001:(Inspection number: 755268):t105:ID-005:t205
[0092] α6=L000001:(Submitted by: People's Hospital):t106:ID-006:t206
[0093] α7=L000001:(Tester: Jiang):t107:ID-007:t207
[0094] α8=L000001:(Reviewer: Shen):t108:ID-008:t208
[0095] α1 gets the hash value after SHA256 calculation: 7fd12b5b0f9741 cb0bf9ef40f019b472e855e5ea8fefca0d82e9dcc74be28047α2 gets the hash value after SHA256 calculation:
[0096] After SHA256 calculation, the hash value of d8af3c37a489776f59223a7cc853b923df79213bfefc19b005de99012e0a003bα3 is: 1982327ed96a94883123653f32ca57b851609809858cfa4d875fac061801d72d……
[0097] After SHA256 calculation, α8 obtains the hash value: 5ff2b599b7bec63cbd2ed4f60675e447a8af71774e62d46142e669fd93279ecc. The data relationship and hash value of α1 to α8 are all linked to the blockchain as its initial block. Delete the t1 table in the database. When the data label (age: 37) is modified to (age: 38), obtain the data relationship β3 = L000001: (age: 38): t103: ID-003: t203
[0098] After SHA256 calculation, β3 gets the hash value: 1ad7a250c41251 a16c6fadf6c9c74317479ac06e8474e9b9d0fea91 f9585fbc5. The data relationship and hash value of β3 are uploaded to the last block of the blockchain corresponding to α3. When scientific research needs to be carried out and the desensitized data (that is, desensitized data A) needs to be restored to the source data (that is, source data a), according to the hash value
[0099] 7fd12b5b0f9741 cb0bf9ef40f019b472e855e5ea8fefca0d82e9dcc74be28047 Find the α1 initial block in the blockchain and obtain its data relationship
[0100] α1=L000001:(Name: Zhang San):t101:ID-001:t201
[0101] When scientific research needs to restore the desensitized data to the original data, the β3 block is found according to the hash value 1ad7a250c41251a16c6fadf6c9c74317479ac06e8474e9b9d0fea91 f9585fbc5, and the blockchain is traced back according to the current block to obtain the α3 initial block and obtain its data relationship
[0102] α3=L000001:(age: 37):t103:ID-003:t203
[0103] According to this method, all data tags are retrieved, and then the corresponding data tags in the data relationship are found according to TAG-ID
[0104] For example, TAG-ID = ID-001
[0105] According to ID-001 in α1, we get (name: Zhang San) and t203
[0106] After that, according to t203, the desensitized data TDA75536 is obtained in the t3 table. According to the location of the desensitized label, the data in the desensitized report is replaced, that is, ID-001 is replaced with (name: Zhang San), and the final desensitized data report TDA75536 is displayed as follows:
[0107] cDNA-L1 test data analysis report-TDA75536 (desensitized data)
[0108]
[0109] In summary, the technical solution of the present invention has the following beneficial effects:
[0110] This solution solves the existing desensitized data management method. If the ID (ID is the abbreviation of Identity document, which is the ID card identification number, account number, unique code, and exclusive number) of the desensitized data is changed, the information of these ID source data (i.e. source data a) will be lost, thereby losing the corresponding relationship between the original data (i.e. initial data) and the desensitized data. This solution uses blockchain technology and the characteristics of the time series data structure to store the original data and desensitized data labels or IDs on the chain to ensure that the data is not tampered with. Its consensus trust mechanism and multi-node data storage method also avoid the problem of easy loss.
[0111] By utilizing the mapping uniqueness between the original data and the desensitized data content and the content uniqueness of the blockchain time-series data structure to manage the desensitized data, it can be ensured that unless the data content is modified under all consensus conditions, the correspondence between the desensitized data and the original data can be guaranteed regardless of whether the label (i.e., data label) of any node is modified or the ID in the local database is modified, thereby ensuring the one-to-one mapping relationship more efficiently and securely.
[0112] The above-described implementation methods do not constitute a limitation on the protection scope of the technical solution. Any modification, equivalent replacement and improvement made within the spirit and principle of the above-described implementation methods shall be included in the protection scope of the technical solution.
Claims
1. A method for managing desensitized data of test reports based on the uniqueness of blockchain content, characterized in that: Follow the steps below: Step 1, obtain the source data a of the medical test report and the multiple data tags attached thereto, bind the source data a and the data tag relationship to generate the t1 table, and store it in the database; Step 2: Generate a unique and corresponding ID for each data tag, that is, multiple tag_ids. The corresponding relationship between tag_id and t1_id data in t1 table generates t2 table and stores it in the database. Step 3, obtaining the desensitized data A corresponding to the desensitized source data a of the medical test report; Step 4: Bind the t2_id data in the t2 table with the desensitized data A to generate the t3 table and store it in the database; Step 5, obtain the corresponding relationship of all records in the t1 and t2 tables in the database and upload them to the blockchain; Step 6, delete all records in the t1 table in the database; Step 7, when the data in the t2 or t3 table in the database is modified or changed, a modification record β is obtained; Step 8: Calculate and generate a new unique hash value for the modification record β and upload it to the blockchain; Step 9: When the source data a needs to be obtained, the corresponding block is searched in the blockchain according to the unique hash value; The method for obtaining the corresponding relationship between all records in the t1 and t2 tables in the database described in step 5 is as follows: Step 5-1: Associate tables t1 and t2 to obtain the corresponding relationship α=source data a:data tag:t1_id:tag_id:t2_id, Multiple data labels correspond to multiple α, and each data label corresponds to one α; Step 5-2, calculate the hash value of each α and upload it to the blockchain as its initial block; The method for obtaining source data a in step 9 is as follows: Step 9-1, when the unique hash value found is the initial block, directly obtain the corresponding relationship α in the initial block to obtain the data label and source data a; Step 9-2, when the unique hash value found is not the initial block, the modification record β in the block is traced back until the corresponding relationship α in the initial block is found to obtain the data label and source data a.
2. According to claim 1, a method for managing desensitized data of detection reports based on the uniqueness of blockchain content, characterized in that: The number of data labels in step 1 is n, and the corresponding relationship between the data labels and the source data a is: n:
1.
3. According to claim 2, a method for managing desensitized data of detection reports based on the uniqueness of blockchain content, characterized in that: The t1 table lists n t1_id data.
4. According to claim 3, a method for managing desensitized data of detection reports based on the uniqueness of blockchain content, characterized in that: In step 2, there are n tag_ids, and the corresponding relationship between tag_id and t1_id is 1:
1.
5. According to claim 4, a method for managing desensitized data of detection reports based on the uniqueness of blockchain content, characterized in that: The t2 table lists n t2_id data.
6. According to claim 5, a method for managing desensitized data of detection reports based on the uniqueness of blockchain content, characterized in that: The corresponding relationship between the t2_id and the desensitized data A is n:
1.
7. According to claim 6, a method for managing desensitized data of detection reports based on the uniqueness of blockchain content, characterized in that: The hash value is a SHA256 hash value.
8. According to claim 7, a method for managing desensitized data of detection reports based on the uniqueness of blockchain content, characterized in that: The n is a natural number greater than 1.
Citation Information
Patent Citations
Management method and system for medical image desensitization data based on content uniqueness
CN109243584A
Large text storage, indexing and retrieval method based on block chain and distributed storage
CN109918375A
Government integrity file certificate management method based on block chain
CN110704864A