A medical data flow tracing method and system, and a storage medium

By using the BFKD-SM signature encryption algorithm and a fake key distribution mechanism, the problem of insufficient dynamic data flow capability in medical data traceability schemes is solved, enabling secure and rapid data traceability and flow, preventing the leakage of sensitive information, and improving the encryption efficiency of large-volume medical data.

CN116543864BActive Publication Date: 2026-11-27GUIZHOU UNIV
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202310531209.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-05-11
Publication Date
2026-11-27
Estimated Expiration
2043-05-11

AI Technical Summary

Technical Problem

Existing technologies lack the ability to dynamically transfer data, making it impossible to quickly upload and trace medical data to the blockchain. They are also vulnerable to attacks that could lead to the leakage of sensitive information, and the encryption efficiency for large volumes of medical data is low.

Method used

The BFKD-SM signature encryption algorithm is used to achieve identity registration and public/private key distribution for patients, hospital doctors, and health administration departments through a blockchain network and IPFS caching unit. Combined with a signature encryption mechanism that disguises key distribution, the security and efficiency of data transmission are ensured.

Benefits of technology

It enables secure, rapid traceability and dynamic flow of medical data, prevents leakage of sensitive information, improves the efficiency of encryption of large volumes of medical data, and ensures the security and real-time nature of data transmission.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116543864B_ABST
    Figure CN116543864B_ABST
Patent Text Reader

Abstract

The application discloses a medical data flow tracing method and system and a storage medium. A buffer unit combined with a blockchain is used as a transfer agency of medical data to realize the process of tracing, dynamic flow and updating tracing of medical data. A secure signcryption algorithm BFKD-SM is used to realize the security of the flow process of doctors tracing patient medical records, checking patient treatment needs and patients checking response reports, prevent patient medical data from being attacked and leaked, and improve the security and efficiency of the key based on the pseudo-key distribution signcryption algorithm, which is superior to the traditional encryption and signature separation algorithm. The technical problem of the traditional medical data tracing scheme lacking the ability of dynamic data flow, being unable to realize the rapid on-chain and tracing in the data flow process, being vulnerable to various attacks to cause the leakage of sensitive information of patients, and being low in the efficiency of encrypting large amounts of medical data is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of blockchain technology, and in particular to a method, system and storage medium for tracing medical data flow. Background Technology

[0002] With improved living standards and economic levels, people's nutritional intake has significantly improved. However, the number of people worldwide suffering from various chronic and acute diseases due to lifestyle factors and overnutrition is surging. The number of patients with chronic and acute diseases in my country and worldwide will continue to expand. On the one hand, patients with chronic diseases lack ways to diagnose their condition promptly. Based on traditional self-testing methods, patients cannot clearly judge the development trend of their condition, and hospital diagnosis consumes a significant amount of time. Moreover, for chronic diseases, medical history and records are crucial for diagnosis. Traditional treatment plans cannot trace past treatment processes and results, which is not conducive to doctors' diagnosis of patients' conditions. On the other hand, for various acute diseases, real-time and rapid diagnosis and prediction by doctors can also achieve preventive effects. Therefore, based on these two reasons, the on-chaining and traceability of medical data for chronic and acute diseases is of great significance for disease diagnosis and treatment.

[0003] Medical records and other medical data from each patient's visit are indispensable for the diagnosis of the patient's condition. The doctor's reputation determines whether the medical information obtained by the patient is credible. Therefore, ensuring the security and real-time availability of patient medical records and doctor reputation data during the dynamic flow and traceability of data is a basic requirement for achieving reliable and efficient traceability.

[0004] Existing technologies lack the ability to dynamically transfer data in traditional medical data traceability schemes, failing to achieve rapid on-chain data transfer and traceability. Some solutions also cannot guarantee the confidentiality of medical data on-chain and traceability processes, meaning that patient data transmission is vulnerable to various attacks leading to the leakage of sensitive patient information. Other solutions can provide data protection during the traceability process, but they inherently introduce the deficiencies of their corresponding privacy protection algorithms into the traceability system, and asymmetric encryption cannot encrypt large volumes of medical data. While encryption and signature algorithms provide security and privacy protection for data during traceability, they ignore the time overhead incurred in this process; high-latency solutions are unsuitable for medical data traceability and dynamic transfer. Summary of the Invention

[0005] This application provides a method, system, and storage medium for medical data flow and traceability, which solves the technical problems of traditional medical data traceability schemes, such as lack of dynamic data flow capability, inability to achieve rapid on-chain and traceability during data flow, vulnerability to various attacks leading to leakage of sensitive patient information, and low efficiency in encrypting large amounts of medical data.

[0006] In view of this, the first aspect of this application provides a method for tracing the flow of medical data, the method comprising:

[0007] S1, Patient ID p Hospital Doctor ID m,n (m∈|HOSP|, n∈|doctors|), Health Administration Department ID admin Registering blockchain network nodes based on identity information generates participating nodes in the blockchain network. Public and private keys are distributed based on the BFKD-SM signature encryption algorithm, where |HOSP| represents the number of hospitals in the blockchain network and |doctors| represents the number of doctors in the m-th hospital in the blockchain network.

[0008] S2, Hospital Doctor ID m,n public key Broadcast to the blockchain network;

[0009] S3, Patient ID p Sending a consultation request to the blockchain network, controlled by the health administration department's ID. admin The consultation request is stored in the IPFS cache unit;

[0010] S4, Hospital Doctor ID m,n Based on patient ID p The consultation request generates a response report, which is then processed by the health administration department (ID). admin Store the response report in the IPFS cache unit.

[0011] S5, Patient ID p ID of the health administration department admin Send a request to retrieve diagnostic results, via the health administration department ID. admin Assign patient ID p After gaining access to the IPFS cache unit, the patient ID p Access the IPFS cache unit to obtain the hospital doctor ID. m,n Uploaded response report.

[0012] Optionally, step S1 specifically includes:

[0013] Patient ID p Hospital Doctor ID m,n (m∈|HOSP|, n∈|doctors|), Health Administration Department ID admin Pack the identity information Info and the corresponding ID as mapping pairs into P. ID ={ID,Info};

[0014] P is detected using the BFKD-SM signature encryption algorithm.ID Perform a signature calculation to obtain the signature information;

[0015] Upload the signed information to the health administration department's ID. admin The process involves review and approval, after which a corresponding public / private key pair is generated.

[0016] Optionally, step S3 specifically includes:

[0017] Patient ID p Package consultation information into consultation transaction transactions in, For the patient's symptoms, These are the patient's basic values. For the patient's blood glucose level, The patient's blood pressure value;

[0018] Patient ID p The BFKD-SM signature encryption algorithm is used to process medical consultation transactions. Sign-to-cipher block generation

[0019] Patient ID p ciphertext block Transmitted to the corresponding health administration department ID admin ID of the health administration department admin ciphertext block Stored in the IPFS cache unit.

[0020] Optionally, step S4 specifically includes:

[0021] Hospital Doctor ID m,n ID of the health administration department admin Send a request to obtain consultation information, via the health administration department ID. admin Verify hospital doctor ID m,n Does it have access permissions to the IPFS cache unit?

[0022] After verification, the hospital doctor's ID m,n Access the IPFS cache unit to retrieve the target consultation transaction. ciphertext block

[0023] Hospital Doctor ID m,n The ciphertext block is processed using the BFKD-SM signature algorithm. Decrypt the signature;

[0024] Hospital Doctor ID m,n Patient ID obtained through traceability blockchain network p Medical records And verify the legitimacy of the source;

[0025] If the source is legitimate, hospital doctor ID m,n Based on the ciphertext block The consultation information and medical records obtained after decryption Generate a diagnostic report (DiagReport) and a treatment report (TreatReport);

[0026] Hospital Doctor ID m,n Package the Diagnostic Report (DiagReport) and the Treatment Report (TreatReport) into a diagnostic transaction.

[0027] Hospital Doctor ID m,n Diagnostic methods for transactional data using the BFKD-SM signature encryption algorithm. Sign-to-cipher block generation

[0028] Hospital Doctor ID m,n ciphertext block Transmitted to the corresponding health administration department ID admin ID of the health administration department admin ciphertext block Stored in the IPFS cache unit.

[0029] Optionally, step S5 specifically includes:

[0030] Patient ID p ID of the health administration department admin Send a request to obtain diagnostic information, via the health administration department ID. admin Verify Patient ID p Does it have access permissions to the IPFS cache unit?

[0031] After successful verification, patient ID p Access the IPFS cache unit to retrieve all diagnostic transaction transactions. All ciphertext blocks

[0032] Patient ID p To transmit ciphertext blocks via the BFKD-SM signature encryption algorithm Deseal the transaction to obtain a diagnostic record. It includes the DiagReport (diagnostic report) and the TreatmentReport (treatment report).

[0033] Optionally, the hospital doctor ID m,n ciphertext block Transmitted to the corresponding health administration department IDadmin ID of the health administration department admin ciphertext block The storage in the IPFS cache unit also includes:

[0034] Hospital Doctor ID m,n ciphertext block and existing contribution points Transmitted to the corresponding health administration department ID admin ID of the health administration department admin Calculate the hospital doctor ID m,n Positive response score And Stored in the IPFS cache unit.

[0035] Optionally, the patient ID p To transmit ciphertext blocks via the BFKD-SM signature encryption algorithm Deseal the transaction to obtain a diagnostic record. The included diagnostic report (DiagReport) and treatment report (TreatReport) specifically include:

[0036] Patient ID p Traceable blockchain network to obtain all diagnostic transaction information One-to-one correspondence with hospital doctor ID m,n Existing contribution points And verify the legitimacy of the source;

[0037] If the source is legitimate, then the patient ID p Calculate all hospital doctor IDs m,n Existing contribution points and positive response score sum;

[0038] Patient ID p Compare all hospital doctor IDs m,n Existing contribution points and positive response score The sum of existing contribution points and positive response score The highest sum of hospital doctor IDs m,n Corresponding ciphertext block Deseal the transaction to obtain a diagnostic record. It includes the DiagReport (diagnostic report) and the TreatmentReport (treatment report).

[0039] Optionally, after step S5, the method further includes:

[0040] Patient IDp Hospital doctor ID m,n The diagnostic quantitative score is transmitted to the health administration department ID. admin ID of the health administration department admin Hospital Doctor ID calculated based on diagnostic quantitative score m,n Diagnosis and treatment points And update the hospital doctor ID m,n Current contribution points Use existing contribution points On-chain storage, among which,

[0041] Health Administration Department ID admin ciphertext block and ciphertext blocks Generate Patient ID p Medical records Then it is stored on the blockchain.

[0042] A second aspect of this application provides a medical data flow traceability system applied in a blockchain network, comprising: a first user terminal, a second user terminal, and a third user terminal, wherein:

[0043] The first, second, and third user terminals will each store the patient ID. p Hospital Doctor ID m,n (m∈|HOSP|, n∈|doctors|), Health Administration Department ID admin Registering blockchain network nodes based on identity information generates participating nodes in the blockchain network. Public and private keys are distributed based on the BFKD-SM signature encryption algorithm, where |HOSP| represents the number of hospitals in the blockchain network and |doctors| represents the number of doctors in the m-th hospital in the blockchain network.

[0044] Through a second user terminal, hospital doctor ID m,n public key Broadcast to the blockchain network;

[0045] Through the first user terminal, patient ID p Sending a consultation request to the blockchain network, controlled by the health administration department's ID. admin The consultation request is stored in the IPFS cache unit through a third-party client;

[0046] Through a second user terminal, hospital doctor ID m,n Based on patient ID p The consultation request generates a response report, which is then processed by the health administration department (ID). admin The response report is stored in the IPFS cache unit via a third-party client.

[0047] Through the first user terminal, patient ID p ID of the health administration department admin Send a request to retrieve diagnostic results, via the health administration department ID. admin Patient ID is assigned via a third-party client. p After gaining access to the IPFS cache unit, the patient ID p Obtain the hospital doctor ID by accessing the IPFS cache unit through the first user client. m,n Uploaded response report.

[0048] A third aspect of this application provides a computer-readable storage medium for storing program code for executing the medical data flow tracing method described in the first aspect above.

[0049] As can be seen from the above technical solutions, the embodiments of this application have the following advantages:

[0050] This application provides a method, system, and storage medium for tracing the flow of medical data. It integrates a blockchain buffer unit as a transit mechanism for medical data to achieve the process of tracing, dynamic flow, and updating of medical data. A secure signature encryption algorithm, BFKD-SM, ensures the security of the flow process, including doctors tracing patient medical records and viewing patient treatment needs, as well as patients viewing response reports. This prevents the leakage of patient medical data due to attacks. Furthermore, the signature encryption algorithm based on disguised key distribution outperforms traditional encryption and signature separation algorithms in both key security and efficiency. This solves the technical problems of traditional medical data tracing schemes, such as lack of dynamic data flow capabilities, inability to quickly upload and trace data during the flow process, vulnerability to various attacks leading to the leakage of sensitive patient information, and low efficiency in encrypting large volumes of medical data. Attached Figure Description

[0051] Figure 1 This is a flowchart of a medical data flow tracing method according to an embodiment of this application;

[0052] Figure 2 This is a schematic diagram of the structure of a medical data flow traceability system according to an embodiment of this application. Detailed Implementation

[0053] To enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present application, and not all embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative effort are within the scope of protection of the present application.

[0054] This application designs a medical data flow traceability method, system, and storage medium, which solves the technical problems of traditional medical data traceability schemes that lack the ability to dynamically flow data, cannot achieve rapid on-chain and traceability during the data flow process, are susceptible to various attacks leading to leakage of patients' sensitive information, and have low efficiency in encrypting large amounts of medical data.

[0055] For easier understanding, please refer to Figure 1 , Figure 1 This is a flowchart of a medical data flow traceability method according to an embodiment of this application, such as... Figure 1 As shown, specifically:

[0056] S1, Patient ID p Hospital Doctor ID m,n (m∈|HOSP|, n∈|doctors|), Health Administration Department ID admin Registering blockchain network nodes based on identity information generates participating nodes in the blockchain network. Public and private keys are distributed based on the BFKD-SM signature encryption algorithm, where |HOSP| represents the number of hospitals in the blockchain network and |doctors| represents the number of doctors in the m-th hospital in the blockchain network.

[0057] Furthermore, step S1 specifically includes:

[0058] Patient ID p Hospital Doctor ID m,n (m∈|HOSP|, n∈|doctors|), Health Administration Department ID admin Pack the identity information Info and the corresponding ID as mapping pairs into P. ID ={ID,Info};

[0059] P is detected using the BFKD-SM signature encryption algorithm. ID Perform a signature calculation to obtain the signature information;

[0060] Upload the signed information to the health administration department's ID. admin The process involves review and approval, after which a corresponding public / private key pair is generated.

[0061] S2, Hospital Doctor ID m,n public key Broadcast to the blockchain network;

[0062] S3, Patient ID p Sending a consultation request to the blockchain network, controlled by the health administration department's ID. admin The consultation request is stored in the IPFS cache unit;

[0063] Furthermore, step S3 specifically includes:

[0064] Patient ID p Package consultation information into consultation transaction transactions in, For the patient's symptoms, These are the patient's basic values. For the patient's blood glucose level, The patient's blood pressure value;

[0065] Patient ID p The BFKD-SM signature encryption algorithm is used to process medical consultation transactions. Sign-to-cipher block generation

[0066] Patient ID p ciphertext block Transmitted to the corresponding health administration department ID admin ID of the health administration department admin ciphertext block Stored in the IPFS cache unit.

[0067] S4, Hospital Doctor ID m,n Based on patient ID p The consultation request generates a response report, which is then processed by the health administration department (ID). admin Store the response report in the IPFS cache unit.

[0068] Furthermore, step S4 specifically includes:

[0069] Hospital Doctor ID m,n ID of the health administration department admin Send a request to obtain consultation information, via the health administration department ID. admin Verify hospital doctor ID m,n Does it have access permissions to the IPFS cache unit?

[0070] After verification, the hospital doctor's ID m,n Access the IPFS cache unit to retrieve the target consultation transaction. ciphertext block

[0071] Hospital Doctor ID m,n The ciphertext block is processed using the BFKD-SM signature algorithm. Decrypt the signature;

[0072] Hospital Doctor ID m,n Patient ID obtained through traceability blockchain network p Medical records And verify the legitimacy of the source;

[0073] If the source is legitimate, hospital doctor ID m,n Based on the ciphertext block The consultation information and medical records obtained after decryption Generate a diagnostic report (DiagReport) and a treatment report (TreatReport);

[0074] Hospital Doctor ID m,n Package the Diagnostic Report (DiagReport) and the Treatment Report (TreatReport) into a diagnostic transaction.

[0075] Hospital Doctor ID m,n Diagnostic methods for transactional data using the BFKD-SM signature encryption algorithm. Sign-to-cipher block generation

[0076] Hospital Doctor ID m,n ciphertext block Transmitted to the corresponding health administration department ID admin ID of the health administration department admin ciphertext block Stored in the IPFS cache unit.

[0077] Furthermore, hospital doctor ID m,n ciphertext block Transmitted to the corresponding health administration department ID admin ID of the health administration department admin ciphertext block The storage in the IPFS cache unit also includes:

[0078] Hospital Doctor ID m,n ciphertext block and existing contribution points Transmitted to the corresponding health administration department ID admin ID of the health administration department admin Calculate the hospital doctor ID m,n Positive response score And Stored in the IPFS cache unit.

[0079] S5, Patient ID p ID of the health administration department admin Send a request to retrieve diagnostic results, via the health administration department ID. admin Assign patient ID p After gaining access to the IPFS cache unit, the patient ID pAccess the IPFS cache unit to obtain the hospital doctor ID. m,n Uploaded response report.

[0080] Furthermore, step S5 specifically includes:

[0081] Patient ID p ID of the health administration department admin Send a request to obtain diagnostic information, via the health administration department ID. admin Verify Patient ID p Does it have access permissions to the IPFS cache unit?

[0082] After successful verification, patient ID p Access the IPFS cache unit to retrieve all diagnostic transaction transactions. All ciphertext blocks

[0083] Patient ID p To transmit ciphertext blocks via the BFKD-SM signature encryption algorithm Deseal the transaction to obtain a diagnostic record. It includes the DiagReport (diagnostic report) and the TreatmentReport (treatment report).

[0084] Furthermore, patient ID p To transmit ciphertext blocks via the BFKD-SM signature encryption algorithm Deseal the transaction to obtain a diagnostic record. The included diagnostic report (DiagReport) and treatment report (TreatReport) specifically include:

[0085] Patient ID p Traceable blockchain network to obtain all diagnostic transaction information One-to-one correspondence with hospital doctor ID m,n Existing contribution points And verify the legitimacy of the source;

[0086] If the source is legitimate, then the patient ID p Calculate all hospital doctor IDs m,n Existing contribution points and positive response score sum;

[0087] Patient ID p Compare all hospital doctor IDs m,n Existing contribution points and positive response score The sum of existing contribution points and positive response score The highest sum of hospital doctor IDs m,n Corresponding ciphertext block Deseal the transaction to obtain a diagnostic record. It includes the DiagReport (diagnostic report) and the TreatmentReport (treatment report).

[0088] Furthermore, step S5 is followed by:

[0089] Patient ID p Hospital doctor ID m,n The diagnostic quantitative score is transmitted to the health administration department ID. admin ID of the health administration department admin Hospital Doctor ID calculated based on diagnostic quantitative score m,n Diagnosis and treatment points And update the hospital doctor ID m,n Current contribution points Use existing contribution points On-chain storage, among which,

[0090] Health Administration Department ID admin ciphertext block and ciphertext blocks Generate Patient ID p Medical records Then it is stored on the blockchain.

[0091] The specific scheme of the BFKD-SM (a signature mechanism based on disguised key distribution) signature algorithm involved in this application is as follows:

[0092] (1) Set system parameters

[0093] KGC sets a system security parameter γ, generates a large prime number q, selects an elliptic curve additive cyclic group G of order q, selects P as a generator of the additive cyclic group G, and defines the following four hash functions: Randomly select an integer As the system's master key, and kept strictly confidential, P is calculated. pub =sP is the system public key. The system parameters params are publicly disclosed. sys ={q,P,G,P pub ,H1,H2,H3,H4}.

[0094] (2) Set user key value

[0095] Anonymous key distribution based on a spoofed key set involves two interactions between the device and the KGC:

[0096] ① Each device d i Randomly select an integer Using part of one's private key, calculate E i =e i P is used as a portion of one's public key. Calculate... Will Send to KGC. ②KGC receives. Then, select a random integer. Calculate F i =f i P is used as a partial public key to compute... As part of the private key. ③KGC selects a random integer. Calculate ω j =I i,l P, random key I i,l With the real part of the private key I KGC =t i Combined into a fake key set FakeKey = {I i,1 ,I i,2 ,…,I i,m}, where I KGC ∈Key, records the mapping relationship between the real key and its position index in the set of fake keys (L KGC I j And store this mapping relationship secretly, calculate As part of the key encapsulation, calculate As verification information. The value {ω} j H Ii,j ,VI}(j=1,2,…,m) are transmitted to the devices. ④ After receiving the value transmitted by KGC, each device verifies it. If the verification passes, calculate Extract t i As part of the private key, extract F i As a partial public key. Set the full private key sk. i ={e i ,t i}, complete public key PK i ={E i ,F i If the verification fails, the device will not recognize the portion of the public and private keys generated by KGC.

[0097] (3) Role allocation strategy

[0098] Each signature step is limited to only two roles and one signature device. and z verification and signature devices The identity information of the signature device is ID0, and the identity information of the signature verification device is {ID1, ID2, ..., ID}. z The signature device calculates H locally. ID0=H0(ID0), the signature verification device calculates H locally. IDi =H0(ID) i (1≤j≤z), the verification device uploads the identity hash to the signature device.

[0099] (4) Sign-crypt algorithm

[0100] The signature device verifies the plaintext packet P through the following steps. k Signature:

[0101] ① The signature device selects a random integer. Calculate σ key =σ ran P. ② Calculate the random public key sk pub =σ key By calculating the ciphertext calculate Using the values ​​(x1, y1), (x2, y2), (x3, y3), ..., (x z ,y z Construct the Lagrange interpolation polynomial and calculate the Lagrange interpolation polynomial. in, ③Calculation ④ Calculation ⑤ Transmit ciphertext C = (c P H sign ,γ1,γ2,…,γ z ).

[0102] (5) Verify the signature algorithm

[0103] ① The verification device calculates x using identity information. i =H0(ID) i ),

[0104] ② Calculate the random public key

[0105] ③Calculation like Receive the ciphertext and decrypt it. If Then refuse to receive.

[0106] ④ Decrypt the ciphertext to obtain the plaintext packet

[0107] The signature mechanism based on disguised key distribution uses a certificateless multi-recipient anonymous hybrid signature scheme to solve the key escrow problem, reduce computation and communication overhead, and achieve identity security between the signature device and the designification device, thus achieving anonymity.

[0108] Please see Figure 2, Figure 2 This is a schematic diagram of the structure of a medical data flow traceability system according to an embodiment of this application, such as... Figure 2 As shown, specifically:

[0109] First user terminal 201, second user terminal 202, and third user terminal 203, wherein:

[0110] The first user terminal 201, the second user terminal 202, and the third user terminal 203 respectively transmit the patient ID p Hospital Doctor ID m,n (m∈|HOSP|, n∈|doctors|), Health Administration Department ID admin Registering as a node in the blockchain network 204 based on identity information generates participating nodes in the blockchain network 204. Public and private keys are distributed based on the BFKD-SM signature encryption algorithm, where |HOSP| represents the number of hospitals in the blockchain network 204, and |doctors| represents the number of doctors in the m-th hospital in the blockchain network 204.

[0111] Through the second user terminal 202, the hospital doctor's ID m,n public key Broadcast to blockchain network 204;

[0112] Through the first user terminal 201, patient ID p Sending a consultation request to the blockchain network, controlled by the health administration department's ID. admin The consultation request is stored in the IPFS cache unit via the third user terminal 203;

[0113] Through the second user terminal 202, the hospital doctor's ID m,n Based on patient ID p The consultation request generates a response report, which is then processed by the health administration department (ID). admin The response report is stored in the IPFS cache unit via the third-party client 203.

[0114] Through the first user terminal 201, patient ID p ID of the health administration department admin Send a request to retrieve diagnostic results, via the health administration department ID. admin Patient ID is assigned via third-party client 203. p After gaining access to the IPFS cache unit, the patient ID p Obtain the hospital doctor ID by accessing the IPFS cache unit via the first client 201. m,n Uploaded response report.

[0115] This application also provides a computer-readable storage medium for storing program code that executes any one of the implementation methods of the medical data flow traceability method described in the foregoing embodiments.

[0116] This application provides a method, system, and storage medium for tracing medical data flow. It integrates a blockchain buffer unit as a transit mechanism for medical data to achieve the process of tracing, dynamic flow, and updating of medical data. A secure signature encryption algorithm, BFKD-SM, ensures the security of the flow process, including doctors tracing patient medical records and viewing patient treatment needs, as well as patients viewing response reports. This prevents the leakage of patient medical data due to attacks. Furthermore, the signature encryption algorithm based on disguised key distribution outperforms traditional encryption and signature separation algorithms in both key security and efficiency. This solves the technical problems of traditional medical data tracing schemes, such as lack of dynamic data flow capabilities, inability to quickly upload and trace data during the flow process, vulnerability to various attacks leading to leakage of sensitive patient information, and low efficiency in encrypting large volumes of medical data.

[0117] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working processes of the systems, devices, and units described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here.

[0118] The terms “first,” “second,” “third,” “fourth,” etc. (if present) in the specification and accompanying drawings of this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of this application described herein can be implemented, for example, in orders other than those illustrated or described herein. Furthermore, the terms “comprising” and “having,” and any variations thereof, are intended to cover a non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.

[0119] It should be understood that in this application, "at least one (item)" means one or more, and "more than" means two or more. "And / or" is used to describe the relationship between related objects, indicating that three relationships can exist. For example, "A and / or B" can represent three cases: only A exists, only B exists, and both A and B exist simultaneously, where A and B can be singular or plural. The character " / " generally indicates that the preceding and following related objects are in an "or" relationship. "At least one (item) of the following" or similar expressions refer to any combination of these items, including any combination of single or plural items. For example, at least one (item) of a, b, or c can represent: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", where a, b, and c can be single or multiple.

[0120] In the several embodiments provided in this application, it should be understood that the disclosed systems, apparatuses, and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection between apparatuses or units through some interfaces, and may be electrical, mechanical, or other forms.

[0121] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.

[0122] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.

[0123] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this application. The aforementioned storage medium includes: USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, optical disks, and other media capable of storing program code.

[0124] The above-described embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit them. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of this application.

Claims

1. A method for tracing the flow of medical data, characterized in that, include: S1, the patient Hospital doctors Health administrative departments Registering as a blockchain network node based on identity information generates participating nodes in the blockchain network, and distributing public and private keys based on the BFKD-SM signature encryption algorithm. This indicates the number of hospitals in the blockchain network. Indicating the first in the blockchain network The number of doctors in each hospital; S2, Hospital Doctor public key Broadcast to the blockchain network; S3, Patient Sending a consultation request to the blockchain network, by the health administration department The consultation request is stored in the IPFS cache unit; S4, Hospital Doctor According to the patient The consultation request generates a response report, which is then processed by the health administration department. Store the response report in the IPFS cache unit. S5, Patient To the health administration department Sending a request to obtain diagnostic results by the health administration department Give patients After gaining access to the IPFS cache unit, the patient Access the IPFS cache unit to retrieve hospital doctors. Uploaded response report; Step S1 specifically includes: patient Hospital doctors Health administrative departments Separately, identity information With the corresponding Packed as mapping pairs ; Using the BFKD-SM signature encryption algorithm Perform a signature calculation to obtain the signature information; Upload the confidential information to the health administration department. The process involves review, and once approved, a corresponding public / private key pair is generated. Step S3 specifically includes: patient Package consultation information into consultation transaction transactions , ,in, For the patient's symptoms, These are the patient's basic values. For the patient's blood glucose level, The patient's blood pressure value; patient The BFKD-SM signature encryption algorithm is used to process medical consultation transactions. Sign-to-cipher block generation ; patient ciphertext block Transmitted to the corresponding health administration department By the health administration department ciphertext block Stored in the IPFS cache unit; Step S4 specifically includes: Hospital Doctor To the health administration department Sending a request to obtain medical consultation information is handled by the health administration department. Verify hospital doctors Does it have access permissions to the IPFS cache unit? After the verification is passed, the hospital doctor Access the IPFS cache unit to retrieve the target consultation transaction. ciphertext block ; Hospital Doctor The ciphertext block is processed using the BFKD-SM signature algorithm. Decrypt the signature; Hospital Doctor Source tracing blockchain network to obtain patient information Medical records And verify the legitimacy of the source; If the source is legitimate, hospital doctors Based on the ciphertext block The consultation information and medical records obtained after decryption Generate diagnostic report and treatment reports ; Hospital Doctor Diagnostic report and treatment reports Packaged as diagnostic transaction transactions , ; Hospital Doctor Diagnostic methods for transactional data using the BFKD-SM signature encryption algorithm. Sign-to-cipher block generation ; Hospital Doctor ciphertext block Transmitted to the corresponding health administration department By the health administration department ciphertext block Stored in the IPFS cache unit.

2. The medical data flow traceability method according to claim 1, characterized in that, Step S5 specifically includes: patient To the health administration department Sending a request for diagnostic information by the health administration department Verify patient Does it have access permissions to the IPFS cache unit? After the verification is passed, the patient Access the IPFS cache unit to retrieve all diagnostic transaction transactions. All ciphertext blocks ; patient To transmit ciphertext blocks via the BFKD-SM signature encryption algorithm Deseal the transaction to obtain a diagnostic record. and the diagnostic reports it contains and treatment reports .

3. The medical data flow traceability method according to claim 2, characterized in that, The hospital doctor ciphertext block Transmitted to the corresponding health administration department By the health administration department ciphertext block The storage in the IPFS cache unit also includes: Hospital Doctor ciphertext block and existing contribution points Transmitted to the corresponding health administration department By the health administration department Calculation of hospital doctors Positive response score and will Stored in the IPFS cache unit.

4. The medical data flow traceability method according to claim 3, characterized in that, The patient To transmit ciphertext blocks via the BFKD-SM signature encryption algorithm Deseal the transaction to obtain a diagnostic record. and the diagnostic reports it contains and treatment reports Specifically, it includes: patient Traceable blockchain network to obtain all diagnostic transaction information One-to-one correspondence between hospital and doctor Existing contribution points And verify the legitimacy of the source; If the source is legitimate, then the patient Calculate all hospital doctors Existing contribution points and positive response score sum; patient Comparison of doctors in all hospitals Existing contribution points and positive response score The sum of existing contribution points and positive response score The highest sum of hospital doctors Corresponding ciphertext block Deseal the transaction to obtain a diagnostic record. and the diagnostic reports it contains and treatment reports .

5. The medical data flow traceability method according to claim 4, characterized in that, Following step S5, the following is also included: patient Will be for hospital doctors The diagnostic quantitative score is transmitted to the health administration department. By the health administration department Hospital doctors are calculated based on diagnostic quantitative scores. Diagnosis and treatment points and update hospital doctors Current contribution points The existing contribution points On-chain storage, among which, ; Health administration department ciphertext block and ciphertext blocks Generate patients Medical records Then it is stored on the blockchain.

6. A medical data flow traceability system, characterized in that, Applied in blockchain networks, it includes: a first user terminal, a second user terminal, and a third user terminal, wherein: The first, second, and third user terminals will respectively transmit the patient's data. Hospital doctors Health administrative departments Registering as a blockchain network node based on identity information generates participating nodes in the blockchain network, and distributing public and private keys based on the BFKD-SM signature encryption algorithm. This indicates the number of hospitals in the blockchain network. Indicating the first in the blockchain network The number of doctors in each hospital; Through a second user terminal, hospital doctors public key Broadcast to the blockchain network; Through the first user terminal, the patient Sending a consultation request to the blockchain network, by the health administration department The consultation request is stored in the IPFS cache unit through a third-party client; Through a second user terminal, hospital doctors According to the patient The consultation request generates a response report, which is then processed by the health administration department. The response report is stored in the IPFS cache unit via a third-party client. Through the first user terminal, the patient To the health administration department Sending a request to obtain diagnostic results by the health administration department Provided to patients via a third-party user terminal After gaining access to the IPFS cache unit, the patient Access the IPFS cache unit through the first user client to obtain hospital doctors Uploaded response report; in: patient Hospital doctors Health administrative departments Separately, identity information With the corresponding Packed as mapping pairs ; Using the BFKD-SM signature encryption algorithm Perform a signature calculation to obtain the signature information; Upload the confidential information to the health administration department. The process involves review, and once approved, a corresponding public / private key pair is generated. in: patient Package consultation information into consultation transaction transactions , ,in, For the patient's symptoms, These are the patient's basic values. For the patient's blood glucose level, The patient's blood pressure value; patient The BFKD-SM signature encryption algorithm is used to process medical consultation transactions. Sign-to-cipher block generation ; patient ciphertext block Transmitted to the corresponding health administration department By the health administration department ciphertext block Stored in the IPFS cache unit; in: Hospital Doctor To the health administration department Sending a request to obtain medical consultation information is handled by the health administration department. Verify hospital doctors Does it have access permissions to the IPFS cache unit? After the verification is passed, the hospital doctor Access the IPFS cache unit to retrieve the target consultation transaction. ciphertext block ; Hospital Doctor The ciphertext block is processed using the BFKD-SM signature algorithm. Decrypt the signature; Hospital Doctor Source tracing blockchain network to obtain patient information Medical records And verify the legitimacy of the source; If the source is legitimate, hospital doctors Based on the ciphertext block The consultation information and medical records obtained after decryption Generate diagnostic report and treatment reports ; Hospital Doctor Diagnostic report and treatment reports Packaged as diagnostic transaction transactions , ; Hospital Doctor Diagnostic methods for transactional data using the BFKD-SM signature encryption algorithm. Sign-to-cipher block generation ; Hospital Doctor ciphertext block Transmitted to the corresponding health administration department By the health administration department ciphertext block Stored in the IPFS cache unit.

7. A computer-readable storage medium, characterized in that, The computer-readable storage medium is used to store program code for executing the medical data flow traceability method according to any one of claims 1-5.

Citation Information

Patent Citations

  • Encryption protection method

    CN101371480A

  • Communication system and method based on certificateless signcryption in intelligent medical environment

    CN109981290A

  • Medical record storage, sharing and security claim settlement model and method based on a block chain

    CN110008746A

  • Standardized doctor grade authentication examination system based on AI intelligent diagnosis and treatment follow-up visit system

    CN113870985A