Blockchain-based remote medical data security sharing method and system
By using a blockchain-based approach to perform specialist view segmentation and field-level consistency verification on telemedicine data, the problem of data inconsistency in multi-specialty collaboration is solved, and logical conflicts are automatically identified and resolved, thereby improving the reliability and efficiency of the telemedicine data sharing system.
Patent Information
- Application Number
- CN202611611764.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-10-19
- Publication Date
- 2026-11-27
AI Technical Summary
Existing telemedicine data sharing systems fail to automatically identify logical conflicts between different specialties regarding the same medical record field when collaborating with multiple specialties, resulting in data inconsistency, affecting data availability and reliability, and the investigation and correction of conflicting data relies on manual processing, which is inefficient.
By using a blockchain-based approach, patient medical record data is segmented into independent view slices according to specialty type, generating on-chain view segmentation rules, binding slice association keys, issuing temporary and emergency credentials, performing diagnosis and treatment opinion hash commitments and field-level consistency checks, identifying conflicting data items, and performing targeted reslicing and a second round of consultation to generate the final diagnosis and treatment plan.
It enables structured verification of cross-specialty opinions, automatically identifies and resolves logical conflicts, improves consultation efficiency, ensures data reliability and availability, reduces manual intervention, and enhances the system's fault tolerance.
Smart Images

Figure CN123182883A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of medical data security technology, and in particular to a method and system for secure sharing of remote medical data based on blockchain. Background Technology
[0002] Existing telemedicine data sharing systems typically use complete electronic medical records as the sharing unit, with specialists gaining access to all medical record data through role-based access control. Some platforms employ transmission encryption to ensure data link security and introduce blockchain technology for tamper-proof logging of access operations to improve the traceability of the sharing process. Data authorization remains granular at the overall document or preset fixed view level, with a centralized server uniformly managing the storage and distribution of patient medical data.
[0003] However, when multiple specialties collaborate, the system simply merges and stores the interpretation conclusions submitted independently by each specialty, without establishing a structured comparison and automatic consistency verification mechanism for cross-specialty opinions at the field level. This results in contradictory interpretation data coexisting in the same medical record field and failing to be automatically identified by the system.
[0004] The failure to promptly identify and isolate such logical conflicts at the data level resulted in internal inconsistencies in the field values of the integrated diagnostic dataset, directly reducing the availability and reliability of the data. Furthermore, the investigation and correction of conflicting data required manual comparison of each item, which was inefficient and prone to omissions, thus introducing unreliable data sources into downstream clinical decision-making systems. Summary of the Invention
[0005] This invention provides a blockchain-based method and system for secure sharing of telemedicine data. Its main purpose is to solve the problem that logical conflicts in the interpretation conclusions of different specialties on the same medical record field in telemedicine multi-specialty consultations cannot be automatically identified.
[0006] To achieve the above objectives, the present invention provides a blockchain-based method for secure sharing of remote medical data, comprising: S1: Obtain remote consultation request, parse the specialty type of the remote consultation, slice the patient's medical record data according to the specialty type, and generate data view slices corresponding to each specialty. S2: Write the mapping relationship between each data view slice and the specialty type and the slice hash value into the blockchain, generate on-chain view cutting rules, and bind slice association keys to each data view slice according to the disease level in the remote consultation request; S3: After verifying that the specialist identity of the doctor initiating the access matches the on-chain view slicing rules, a temporary access certificate limited to the corresponding slice is issued. When a patient's condition deteriorates, the temporary access certificate is dynamically upgraded to an emergency certificate that expands the view scope. S4: Each specialist doctor submits a diagnosis and treatment opinion through the temporary access certificate and the emergency certificate, makes a hash commitment to the diagnosis and treatment opinion and stores it on the blockchain, and for the overdue disclosure of the specialty, the original data view slice is supplemented and cut according to the disclosed opinion, and targeted temporary certificates are issued to the candidate doctors of the same specialty. S5: Perform field-level consistency verification on the disclosed treatment opinions according to the medical record fields of the patient's medical record data, identify conflicting data items between specialties, perform targeted re-cutting of the data view slices of the conflicting specialties based on the conflicting data items, issue a second round of vouchers to trigger a re-consultation, and generate the final treatment plan. S6: Reclaim all the temporary access credentials, emergency credentials, and second-round credentials, destroy the slice-associated key, and package the on-chain view slicing rules, the actual access scope of each doctor, emergency escalation records, and the final treatment plan into the blockchain to generate a consultation traceability record.
[0007] Preferably, the step of writing the mapping relationship between each data view slice and the specialty type and the slice hash value into the blockchain to generate on-chain view cutting rules includes: Merge the mapping relationship between the data view slices and the specialty types to obtain the specialty entries corresponding to the data view slices; Based on the predetermined order of participating specialties in the remote consultation request, the specialty entries are sorted and their order is fixed to obtain specialty sequence entries; Calculate the content hash value for each data view slice, organize all slice hash values under the same specialty entry into a hash tree, and take its root hash as the slice digest of the specialty entry; All the specialty entries in the specialty sequence, the corresponding slice summary, and the remote consultation request are encapsulated into a write payload and written to the blockchain in one write operation. After consensus confirmation, the on-chain view slicing rules indexed by the remote consultation request are solidified and generated.
[0008] Preferably, the step of binding a slice association key to each data view slice based on the disease level in the remote consultation request includes: Each of the aforementioned data view slices is assigned to its corresponding specialty identity; Based on the severity of the illness in the patient's medical record data, open boundaries are defined for the specialist identity to which each data view slice belongs; The open boundary includes the scope of the unlocking function, and when the disease level is higher than a preset threshold, it is extended to the corresponding slice of the specialist identity. Using the specialist identity and the disease level as attribute parameters, a preset encryption algorithm is used to generate mutually independent slice attribute keys for each of the data view slices; The slice attribute key grants decryption capabilities to the specialist identity that satisfies its attribute parameters; The attribute parameters of the slice attribute key are compared and verified with the on-chain view cutting rules to ensure that the key unlocking range is consistent with the slice mapping relationship in the rules, and then a slice association key that is associated with and consistent with the specialist identity is obtained.
[0009] Preferably, after verifying the specialist identity of the doctor initiating the access and matching it with the on-chain view slicing rules, a temporary access credential limiting the corresponding slice is issued, including: The specialist identity of the doctor initiating the access is matched with each specialist entry in the on-chain view slicing rule, and it is confirmed that the on-chain view slicing rule matches the current remote consultation request and hits the corresponding specialist entry to obtain the verification result. Based on the verification results, along the mapping relationship between the corresponding specialty item and the data view slice, the arrangement order of the specialty item in the on-chain view cutting rules is checked, and the slices with matching order are taken as candidate slices. The slice identifier of the candidate slice is compared one by one with the unlocking slice identifier of the slice associated key. The slice with completely identical identifiers is used as the corresponding slice. Based on a preset non-interactive zero-knowledge proof, it is verified that the current doctor's attribute key is consistent with the attribute key corresponding to the defined slice. Based on the consistency status, the defined corresponding slice is compared with the patient's medical record data for homology, and the slice originating from the patient's medical record data is taken as the target slice. After verification at each level, a temporary access pass is issued to the doctor who initiated the access, granting access only to the target slide.
[0010] Preferably, each specialist doctor submits a diagnosis and treatment opinion using the temporary access credential and the emergency credential, performs a hash commitment on the diagnosis and treatment opinion, and stores it on the blockchain, including: Each specialist doctor submits their medical opinions using the temporary access pass or the emergency pass, and the receiving side collects the medical opinions pending commitment according to the specialist identity. Each specialist physician selects a random blinding factor to blind the proposed treatment opinions, generating blinded treatment opinions. The blinded diagnosis and treatment opinions are hashed, and a commitment value is generated using a preset discrete logarithm commitment scheme; The commitment value, the hash value of the blinding factor, and the specialist identity are registered on the blockchain with timestamps to generate an on-chain commitment stub that indicates the committed but undisclosed state; The on-chain commitment stubs of each specialty within this consultation request are merged and arranged in the predetermined order of the specialties to generate commitment records.
[0011] Preferably, for specialties that have not been disclosed within the specified period, the original data view slices are supplemented and cut according to the disclosed opinions, and targeted temporary certificates are issued to candidate doctors in the same specialty, including: Detect overdue and undisclosed specialties from the commitment records, and designate the corresponding data view slice as a slice to be supplemented; The disclosed diagnostic and treatment opinions are compiled, and the patient's medical record data is used as the common source benchmark. The slice data segments that have been evaluated by other specialties in the slices to be supplemented are extracted as redundant overlay data segments. The slice to be supplemented is cut to remove redundant overlay data segments and retain the remaining slice data segments to obtain a supplementary view slice. The supplementary view slice is bound to the slice attribute key corresponding to the specialist identity, and its unlocking range is limited to the supplementary view slice; After verifying that the identity of the candidate specialist physician matches the supplementary view slice, a directional temporary certificate is issued, limited to the supplementary view slice.
[0012] Preferably, the step of performing field-level consistency checks on the disclosed diagnostic opinions according to the patient's medical record data to identify inter-specialty conflicting data items includes: Extract the opinions expressed in the diagnostic and treatment opinions disclosed by each specialty, and according to the data view slices defined by the identity of the specialty that issued the opinion, assign the opinions to the medical record fields in the corresponding slices to generate field expression entries; Merge entries that point to the same medical record field but originate from different specialties to obtain a group of fields with the same origin; Within the same source field group, entries are divided into comparable representations based on the recording time of the medical record field; For the comparable statements, the interpretation conclusions from different specialties are determined by mutual exclusion logic, and the interpretation conclusions that cannot be held at the same time are regarded as conflict statements. The conflict statements, along with their medical record fields, specialist identity combinations, and record times, are merged to generate conflict data items.
[0013] Preferably, the step of re-slicing the data view slices of conflict-related specialties based on the conflict data items, issuing a second-round certificate to trigger a re-consultation, and generating a final treatment plan includes: Based on the medical record field pointed to by the conflicting data item and the recording time, the data segment of the medical record field at the corresponding recording time is extracted from the patient's medical record data and used as the focus field data segment; Along the recording time of the focal field data segment, extract the data segments of the other fields with the same recording time and the same field of adjacent recording times, as the source-corroborating data segments; Using the focus field data segment and the co-originating evidence data segment as the cutting boundary, the data view slice of the conflict-related specialty is re-cut in a directional manner to obtain a directional re-cut slice. Narrow the unlocking range of the slice attribute key to the directional recut slice, and issue a second round of credentials to the conflict-related specialist; The conflict-related specialist, based on the second-round credentials, reads the targeted re-cut slides, reissues a second-round diagnostic opinion for the medical record fields, and discloses it. The second round of treatment opinions and the first round of treatment opinions from each specialty are merged according to medical record fields, conflicting statements are replaced, and the final treatment plan is generated.
[0014] Preferably, the step of packaging and writing the on-chain view slicing rules, the actual access scope of each doctor, emergency escalation records, and the final treatment plan into the blockchain to generate a consultation traceability record includes: Using the remote consultation request as an index, the actual access range of each doctor and the emergency escalation record are merged according to the time of occurrence to obtain the access trajectory; Based on the on-chain view cutting rules and the emergency upgrade records, the accessibility of each doctor's access trajectory is verified one by one to obtain compliant access records. The compliant access record, the on-chain view slicing rules, and the final treatment plan are written to the blockchain in one overall write operation, and solidified to generate a consultation traceability record after consensus confirmation.
[0015] To address the aforementioned problems, this invention also provides a blockchain-based secure remote medical data sharing system, comprising: Medical record view cutting module: Obtain remote consultation request, parse the specialty type of the remote consultation, cut the patient medical record data according to the specialty type, and generate data view slices corresponding to each specialty; On-chain rule generation module: Writes the mapping relationship between each data view slice and the specialty type and the slice hash value into the blockchain, generates on-chain view cutting rules, and binds slice association keys to each data view slice according to the disease level in the remote consultation request; Dynamic credential issuance module: After verifying that the specialist identity of the doctor initiating the access matches the on-chain view slicing rules, a temporary access credential limited to the corresponding slice is issued. When a patient's condition deteriorates, the temporary access credential is dynamically upgraded to an emergency credential that extends the view scope. Opinion storage and supplementary cutting module: Each specialist doctor submits diagnosis and treatment opinions through the temporary access certificate and the emergency certificate, performs hash commitment on the diagnosis and treatment opinions and stores them on the blockchain, and for specialties that have not been disclosed overdue, the original data view slice is supplemented and cut according to the disclosed opinions, and targeted temporary certificates are issued to the alternative doctors of the same specialty. Conflict Validation and Recutting Module: Performs field-level consistency validation on the revealed treatment opinions according to the medical record fields of the patient's medical record data, identifies conflicting data items between specialties, performs targeted recutting of the data view slices of the conflicting specialties based on the conflicting data items, issues a second round of vouchers to trigger a re-consultation, and generates the final treatment plan; Source tracing record generation module: reclaims all the temporary access credentials, the emergency credentials, and the second round credentials, destroys the slice association key, packages the on-chain view cutting rules, the actual access scope of each doctor, the emergency upgrade record, and the final treatment plan into the blockchain, and generates a consultation traceability record.
[0016] Beneficial effects This solution performs field-level consistency checks on the revealed diagnostic and treatment opinions, assigning each specialty's interpretation to its corresponding medical record field and executing mutual exclusion logic. It automatically identifies conflicting interpretations of the same field from different specialties, and then replaces conflicting statements through targeted re-segmentation and a second round of consultation. This solves the technical problem in existing technologies where contradictory interpretations coexisting in the same field cannot be automatically identified, achieving structured verification of cross-specialty opinions and preventing conflicting data from affecting the reliability of clinical decisions.
[0017] This solution segments medical record data into independent view slices based on specialty type, binds attribute keys to disease severity levels, and issues temporary credentials within a limited scope after verifying the doctor's identity. It also supports dynamic escalation to emergency credentials when the condition worsens. This mechanism achieves fine-grained access control based on field granularity, avoiding excessive data exposure caused by doctors accessing complete medical records. The emergency escalation mechanism ensures that doctors can obtain necessary information in a timely manner to support rapid decision-making when the condition changes.
[0018] This solution writes view segmentation rules, treatment opinion commitment stubs, doctor access scope, emergency escalation records, and the final treatment plan into the blockchain. Hash commitments ensure the confidentiality of the opinion content during the commitment phase and its verifiability during the disclosure phase. The immutability of the blockchain generates a complete consultation traceability record. In this way, all treatment operations and permission changes can be audited and traced, providing a reliable data storage foundation for telemedicine.
[0019] This solution addresses specialties that have not yet received their slides, removing redundant data segments already assessed by other specialties based on the disclosed opinions. Then, it issues a directional certificate to candidate physicians in the same specialty, restricting access to only supplementary slides. This approach reduces the slide reading burden on candidate physicians while ensuring they can only access the necessary data range. It improves consultation efficiency, prevents delays by individual physicians from disrupting the overall process, and enhances the system's fault tolerance. Attached Figure Description
[0020] Figure 1 A schematic flowchart illustrating a blockchain-based method for secure sharing of remote medical data, as provided in an embodiment of the present invention. Figure 2 A functional block diagram of a blockchain-based remote medical data security sharing system provided in an embodiment of the present invention; The realization of the objective, functional features and advantages of the present invention will be further explained in conjunction with the embodiments and with reference to the accompanying drawings. Detailed Implementation
[0021] It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
[0022] This application provides a blockchain-based method and system for secure sharing of remote medical data. The entities implementing the blockchain-based method and system include, but are not limited to, at least one of the following electronic devices that can be configured to perform the method provided in this application: a server, a terminal, etc. In other words, the blockchain-based method and system for secure sharing of remote medical data can be executed by software or hardware installed on a terminal device or a server device. The server includes, but is not limited to, a single server, a server cluster, a cloud server, or a cluster of cloud servers. The server can be an independent server or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, content delivery networks (CDNs), and big data and artificial intelligence platforms.
[0023] Reference Figure 1 The diagram shown is a flowchart illustrating a blockchain-based secure sharing method for remote medical data according to an embodiment of the present invention. In this embodiment, the blockchain-based secure sharing method for remote medical data includes: S1: Obtain remote consultation request, parse the specialty type of the remote consultation, slice the patient's medical record data according to the specialty type, and generate data view slices corresponding to each specialty. Specifically, a remote consultation request is an electronic consultation form submitted by the initiator to the telemedicine collaboration platform. This form contains the patient's identification, chief complaint, vital signs parameters, summary of past medical history, and the scope of the requested specialty, which is used to initiate a multi-specialty collaborative remote diagnosis and treatment process.
[0024] The remote medical collaboration platform is a cloud-based medical data exchange service system, which includes at least an identity authentication submodule, an access control submodule, a data storage submodule, and a blockchain interaction interface. It is used to uniformly receive and process remote consultation requests and perform view-slicing operations on medical record data.
[0025] Specialty type is the identifier of each medical specialty category participating in the remote consultation, including cardiology, respiratory medicine, neurology, endocrinology, orthopedics, etc. This type is obtained by parsing the list of participating specialties specified in the consultation request and is used to determine which specialty dimensions the medical record data needs to be divided into.
[0026] Patient medical record data is a complete set of patient medical records stored in the electronic medical record system of medical institutions. It includes structured and unstructured data such as admission records, progress notes, laboratory reports, imaging examination reports, medication records, surgical records, and nursing records. This data is organized by field, and each field contains a field name, field value, and record time.
[0027] View cutting is a process that splits complete patient medical record data according to the division boundaries of specialty type. Each specialty type only obtains medical record data fragments related to its diagnosis and treatment responsibilities. For example, cardiology obtains electrocardiogram reports and echocardiogram data fragments, and pulmonology obtains chest imaging and pulmonary function test data fragments. The cutting operation is based on medical record fields as the smallest unit, and the same field will not be assigned to two specialties at the same time.
[0028] Data view slices are subsets of medical record data produced by view slicing operations. Each slice corresponds one-to-one with a specialty type. Each slice contains the set of medical record fields that need to be consulted and interpreted in this consultation for that specialty. Slices do not overlap with each other, and the union of all slices covers the entire range of medical record data required for the consultation.
[0029] Furthermore, the telemedicine collaboration platform first receives the remote consultation request submitted by the initiator, parses the request protocol to extract all the declared participating specialty types, and retrieves the patient's complete medical record data from the electronic medical record system. Then, the platform sequentially traverses each specialty according to the parsed specialty type list, and for the clinical diagnosis and treatment responsibilities of the current specialty type, it filters out the medical record fields related to the clinical decision-making of that specialty from the complete medical record data. The filtered field set is assembled into a data view slice corresponding to that specialty. This traversal process is repeated until all participating specialties have obtained their respective data view slices, and finally a slice set indexed by specialty type is generated for use in subsequent consultation processes.
[0030] S2: Write the mapping relationship between each data view slice and the specialty type and the slice hash value into the blockchain, generate on-chain view cutting rules, and bind slice association keys to each data view slice according to the disease level in the remote consultation request; In this embodiment, the step of writing the mapping relationship between each data view slice and the specialty type, as well as the slice hash value, into the blockchain to generate on-chain view cutting rules includes: Merge the mapping relationship between the data view slices and the specialty types to obtain the specialty entries corresponding to the data view slices; Based on the predetermined order of participating specialties in the remote consultation request, the specialty entries are sorted and their order is fixed to obtain specialty sequence entries; Calculate the content hash value for each data view slice, organize all slice hash values under the same specialty entry into a hash tree, and take its root hash as the slice digest of the specialty entry; All the specialty entries in the specialty sequence, the corresponding slice summary, and the remote consultation request are encapsulated into a write payload and written to the blockchain in one write operation. After consensus confirmation, the on-chain view slicing rules indexed by the remote consultation request are solidified and generated.
[0031] Specifically, the mapping relationship between the data view slice and the specialty type is a one-to-one correspondence between the data view slice and the specialty type. Each specialty type uniquely corresponds to one data view slice. This association records the specialty category to which the slice belongs, which is used to determine the range of medical record data that each specialist doctor can access in subsequent consultations.
[0032] Specialty entries are records formed by merging the mapping relationship between data view slices and specialty types. Each specialty entry contains the identification information of a specialty type and its corresponding data view slice. As the basic unit of on-chain storage, it is used to uniquely represent a specialty and its assigned medical record data slice in the blockchain.
[0033] The predetermined order of participating specialties is the pre-specified order of the various specialty types participating in the remote consultation request. This order is determined by the order of the specialty list when the consultation is initiated, and once determined, it remains unchanged in this consultation process to standardize all subsequent operations involving the order of specialties.
[0034] Sorting and fixing the order is an operation that arranges each specialty item in a predetermined order. After the sorting is completed, the order of each specialty item is locked, and no subsequent operation will change the arrangement. This ensures that all participants have a consistent understanding of the specialty order and avoids data association errors caused by disordered order.
[0035] Specialty sequence entries are ordered lists obtained by sorting all specialty entries in a predetermined order and fixing their sequence. Each position in the list corresponds to a specialty entry. The order of the list reflects the sequential relationship of each specialty in the consultation process and serves as the basic data structure for subsequent encapsulation and writing of the payload.
[0036] The content hash value is a fixed-length value obtained by hashing all the medical record data contained in the data view slice. This value can uniquely represent the integrity of the slice content. Any slight change in the content will result in a different hash value, which is used to verify whether the slice data has been tampered with during storage and transmission.
[0037] A hash tree is a tree-like data structure that uses the hash values of all data view slices under the same specialty entry as leaf nodes, and merges them layer by layer according to a binary tree structure. It is used to efficiently verify the integrity of the slice set, and the specific modified slice can be located by comparing the hash values level by level.
[0038] In detail, the hash tree adopts a binary Merkle tree structure and is constructed as follows: all data view slices under the same specialty entry are arranged in ascending lexicographical order according to the slice identifier, and the hash value of each slice is calculated as a leaf node; the hash values of two adjacent leaf nodes are concatenated and hashed again to obtain the parent node; if the number of leaf nodes is odd, the last leaf node is copied and paired with itself; the calculation is iterated upwards layer by layer until a unique root node hash value is obtained, which is the slice digest.
[0039] The root hash is the hash value of the root node at the top level of the hash tree. It is calculated by merging the hash values of all leaf nodes level by level. This value can uniquely represent the overall content of all data view slices under this specialty entry and is used as the basis for verifying the integrity of this specialty entry. Subsequently, the root hash can be recalculated and compared with the stored value to verify whether the slice set has been tampered with.
[0040] A slice digest is a summary identifier that uses the root hash as a summary of all data view slices under a specialty entry. After the digest value is stored on the chain, it can be used to verify whether the slice data has been tampered with by recalculating the root hash and comparing it with the digest. At the same time, the digest value has a fixed length, which facilitates efficient storage and retrieval in the blockchain.
[0041] The write payload is a data block that packages and combines all specialty entries in the specialty sequence entries, the slice summary corresponding to each specialty entry, and the identification information of the current remote consultation request. This data block serves as the basic unit of blockchain write operations and contains all the structured data required for a single write operation.
[0042] A write operation is an operation that submits the write payload as a whole to the blockchain network. This operation is completed in a single transaction, ensuring that the entire contents of the write payload are either completely written or not written at all, without any partial writes, thereby guaranteeing the atomicity of on-chain data.
[0043] A full write operation means that all data items in the write payload are submitted to the distributed ledger of the blockchain at the same time. The data items are atomic and indivisible, which ensures the integrity and consistency of the data stored on the chain and avoids the risk of data inconsistency caused by batch writes.
[0044] Consensus confirmation is the process by which multiple nodes in a blockchain network verify the submitted write payload and reach a consensus. Each node verifies the legality and correctness of the write payload according to a pre-agreed consensus mechanism, including data format verification and hash value verification. Only after reaching a consensus is the data allowed to be solidified, preventing illegal or erroneous data from being uploaded to the chain.
[0045] Solidification involves permanently storing the written payload, which has been confirmed through consensus, in the distributed ledger of the blockchain. Once solidified, any data in the written payload cannot be modified or deleted, forming an immutable record that provides a reliable data source for subsequent consultations, tracing, and auditing.
[0046] Using remote consultation requests as an index means using the unique identifier of the remote consultation request (such as the request number or the initiation timestamp combined with the patient's identifier) as the query key value and establishing a connection with the solidified on-chain view slicing rules. Subsequently, the corresponding slicing rules can be quickly retrieved through this request identifier, realizing the traceability of the rules and efficient querying.
[0047] On-chain view slicing rules are a set of immutable rule records that are solidified after the mapping relationship and slice hash value of the data view slices generated for each specialty in remote consultation are written into the blockchain.
[0048] Specifically, it is generated in the following way: the mapping relationship between each data view slice and the specialty type is merged into specialty entries, sorted according to the established consultation order to obtain specialty sequence entries, the content hash value of each data view slice is calculated and organized into a hash tree, the root hash is taken as the slice digest, and finally all specialty entries, corresponding slice digests and remote consultation requests are encapsulated into a write payload, and submitted to the blockchain in one write action. After consensus confirmation, it is solidified and generated.
[0049] Furthermore, firstly, the mapping relationships between each data view slice and the corresponding specialty type are consolidated and organized item by item, and a separate specialty entry is created for each specialty type. This entry clearly records the identification information of all data view slices corresponding to that specialty.
[0050] Subsequently, the predetermined order of participating specialties specified in the remote consultation request is retrieved, and all established specialty entries are sorted according to this order. The sorted order is then locked and fixed, and the specialty sequence entries are arranged sequentially.
[0051] Next, for the medical record data contained in each data view slice, a hash operation is performed locally to calculate the content hash value that can uniquely represent the integrity of the slice content. The content hash values of all slices under the same specialty entry are used as leaf nodes, and the hashes are merged layer by layer according to the binary tree structure to construct a complete hash tree. The root hash value is extracted from the root node of the hash tree as the slice summary of the specialty entry.
[0052] After completing the above preparations, all specialty entries in the specialty sequence entries and their corresponding slice summaries, along with the identification information of the current remote consultation request, are packaged and encapsulated into an independent write payload. This payload contains all the structured data required for a single write operation.
[0053] The write payload is submitted to the blockchain network as a whole transaction through the blockchain client. This submission action is performed in a single transaction manner to ensure that all data items in the payload are broadcast to all nodes in the network at the same time.
[0054] After receiving the transaction, each node independently verifies the write payload according to the pre-agreed consensus mechanism, including verifying the legality of the specialty entry format, comparing the consistency between the slice digest and the slice content hash, and confirming the validity of the request identifier. After the verification is passed, each node participates in the consensus process and reaches a consensus on the write.
[0055] Once consensus is reached, the blockchain network will persistently store the write payload in consecutive blocks of the distributed ledger, forming an immutable solidified record. This record uses the identifier of the remote consultation request as a unique query index. Subsequently, the complete view cutting rules can be quickly retrieved and obtained through this request identifier. Once the rules are solidified, no node can unilaterally modify or delete them, thus providing a reliable access control benchmark and traceability basis for the entire consultation process.
[0056] In this embodiment, the step of binding a slice association key to each data view slice based on the disease level in the remote consultation request includes: Each of the aforementioned data view slices is assigned to its corresponding specialty identity; Based on the severity of the illness in the patient's medical record data, open boundaries are defined for the specialist identity to which each data view slice belongs; The open boundary includes the scope of the unlocking function, and when the disease level is higher than a preset threshold, it is extended to the corresponding slice of the specialist identity. Using the specialist identity and the disease level as attribute parameters, a preset encryption algorithm is used to generate mutually independent slice attribute keys for each of the data view slices; The slice attribute key grants decryption capabilities to the specialist identity that satisfies its attribute parameters; The attribute parameters of the slice attribute key are compared and verified with the on-chain view cutting rules to ensure that the key unlocking range is consistent with the slice mapping relationship in the rules, and then a slice association key that is associated with and consistent with the specialist identity is obtained.
[0057] Specifically, specialist identity is a unique identifier for the medical specialty category to which a doctor participating in a remote consultation belongs. This identifier is determined by the medical institution based on the doctor's scope of practice during registration and stored in the identity authentication module of the medical collaboration platform. In this solution, specialist identity is used to determine the range of data view slices that the doctor is allowed to access during the consultation process, serving as the basis for all subsequent permission verification and credential issuance operations.
[0058] The severity level of a patient's condition is determined based on vital signs, laboratory test results, and chief complaints from their medical records, according to pre-defined clinical severity grading standards. This level is entered by the requesting physician when submitting the remote consultation request and is used to dynamically adjust the access boundaries of medical record data for each specialist in subsequent steps. When the level reaches a preset threshold, the scope of access is expanded.
[0059] Open boundaries are defined as the range of medical record data that can be read by a specialist physician within a data view slice belonging to a specific specialty. These boundaries are defined at the smallest granularity of medical record fields, clearly defining the specific set of data fields that the specialist can access and interpret during this consultation; data fields outside this boundary are not visible to the specialist.
[0060] The scope of accessibility is a fundamental component of open boundaries, referring to the range of data view slices that a specific specialist identity can unlock and view by default under standard disease levels. This scope directly corresponds to the routine clinical responsibilities of that specialist identity and represents the minimum dataset necessary for a specialist to fulfill their duties during consultations, without containing any collaborative or extended data fields.
[0061] The preset threshold is a pre-defined critical value for the severity of a patient's condition. This value is configured by the medical collaboration platform during system initialization based on clinical treatment guidelines. When the severity of a patient's condition in their medical record data exceeds this preset threshold, a dynamic expansion mechanism for open boundaries is triggered. This allows the current specialist to access additional data view slices that originally belonged to other collaborating specialists, thus meeting the cross-specialty data access needs during emergency treatment.
[0062] Collaboration refers to the process by which, when a patient's condition level exceeds a preset threshold, the defined open boundary expands beyond the original scope of the specialist's access to data view slices corresponding to one or more other specialties. This expansion allows the current specialist to temporarily access medical record data fragments from other specialties to address cross-specialty information access needs when the patient's condition worsens.
[0063] The attribute parameters are the set of input variables used to generate the slice attribute key. This set includes, but is not limited to, the specialist identity identifier corresponding to the current operation and the disease severity value of this consultation. As input factors of the encryption algorithm, the attribute parameters determine which identities and conditions the generated slice attribute key is bound to. Once the attribute parameters are determined, the generated key has unique unlocking attributes.
[0064] The preset encryption algorithm is an attribute encryption mechanism based on a ciphertext policy. Specifically, an access tree is constructed using "specialist identity" and "disease level" as attribute parameters. This access tree is used to encapsulate randomly generated data encryption keys, generating slice attribute keys that correspond one-to-one with each data view slice. The random data encryption keys used by different slices are independent of each other, and the attribute conditions in the access tree only match the corresponding specialist identity, ensuring that the slice ranges decrypted by each key do not overlap.
[0065] The slice attribute key is a decryption credential generated using a preset encryption algorithm with specialist identity and disease severity as attribute parameters. Each data view slice corresponds to an independent slice attribute key. This key itself does not directly contain any medical record data, but rather serves as a carrier of decryption capability. The doctor holding this key can decrypt the encrypted content of the corresponding data view slice. The keys between different slices are orthogonal and not interchangeable.
[0066] Decryption capability refers to the ability of a doctor holding the slice attribute key to successfully decrypt the encrypted ciphertext of the corresponding data view slice and obtain the plaintext medical record data. This capability is determined by the matching relationship between the slice attribute key and the access policy embedded in the ciphertext. The decryption operation can only be successfully executed if the doctor's specialty identity, disease level, and other attributes are completely consistent with the attribute parameters used when generating the key; otherwise, decryption will fail.
[0067] The key unlocking range refers to the set of data view slices that the slice attribute key can actually unlock and decrypt. This range is determined by the attribute parameters used to generate the key and the corresponding on-chain view slicing rules. Logically, the key's unlocking range must be consistent with the slice mapping relationship corresponding to the specialist identity in the on-chain view slicing rules to prevent the key from having unlocking capabilities beyond the scope authorized by the rules.
[0068] The slice association key is obtained by comparing and verifying the attribute parameters of the slice attribute key with the slice mapping relationship in the on-chain view cutting rules. This verifies that the key's unlocking range is completely consistent with the specialist slice affiliation defined in the rules, resulting in a final key that is associated with and consistent with the specialist identity. This key is bound to the data view slice corresponding to that specialist identity. In subsequent steps, the temporary access credentials held by the doctor must use this key to decrypt and access the slice data.
[0069] Furthermore, firstly, the medical collaboration platform assigns each generated data view slice to its corresponding specialty identity, establishing a one-to-one correspondence between slices and specialty identities, and stores this assignment record in the local cache as the basis for subsequent permission allocation.
[0070] Subsequently, the platform reads the disease severity level field from the patient's medical record data and defines open boundaries for the data view slices belonging to each specialty based on the specific value of the severity level, thus determining the range of data that the specialty can access in this consultation.
[0071] In defining open boundaries, the platform first configures the scope of access for each specialist identity under normal conditions, allowing the specialist doctor to only view basic medical record fields directly related to their responsibilities. At this time, the platform compares the disease level with a preset threshold. If the disease level is higher than the preset threshold, the open boundary is expanded outward in collaboration with the original scope of access, extending the scope accessible to the specialist identity to the corresponding slices originally belonging to other collaborating specialist identities, allowing the current specialist doctor to temporarily view field data from other specialties.
[0072] After defining the open boundaries, the platform extracts the current specialist identity and disease level values as attribute parameters, calls the preset encryption algorithm, and generates independent slice attribute keys for each data view slice. Each slice corresponds to an independent key, and the keys of different slices are not interchangeable.
[0073] The generated slice attribute key embeds an access policy for attribute parameters, which ensures that only recipients whose attribute parameters are completely consistent with the specialist identity and disease level used during generation have the ability to decrypt the slice corresponding to the key. In other words, the slice attribute key opens decryption capability to specialist identities that meet its attribute parameters.
[0074] Finally, the platform compares and verifies the attribute parameters carried in the slice attribute key with the mapping relationship between the specialist identity and the data view slice recorded in the on-chain view cutting rules. It confirms that the unlocking range of the key is consistent with the slice belonging to the specialist identity in the rules, ensuring that the key does not have unlocking capabilities beyond the authorization of the rules. After verification, the key that passes the verification is determined as the slice association key for the specialist identity, and the key binding operation is completed.
[0075] S3: After verifying that the specialist identity of the doctor initiating the access matches the on-chain view slicing rules, a temporary access certificate limited to the corresponding slice is issued. When a patient's condition deteriorates, the temporary access certificate is dynamically upgraded to an emergency certificate that expands the view scope. In this embodiment, after verifying the specialist identity of the doctor initiating the access and matching it with the on-chain view slicing rules, a temporary access credential limiting the corresponding slice is issued, including: The specialist identity of the doctor initiating the access is matched with each specialist entry in the on-chain view slicing rule, and it is confirmed that the on-chain view slicing rule matches the current remote consultation request and hits the corresponding specialist entry to obtain the verification result. Based on the verification results, along the mapping relationship between the corresponding specialty item and the data view slice, the arrangement order of the specialty item in the on-chain view cutting rules is checked, and the slices with matching order are taken as candidate slices. The slice identifier of the candidate slice is compared one by one with the unlocking slice identifier of the slice associated key. The slice with completely identical identifiers is used as the corresponding slice. Based on a preset non-interactive zero-knowledge proof, it is verified that the current doctor's attribute key is consistent with the attribute key corresponding to the defined slice. Based on the consistency status, the defined corresponding slice is compared with the patient's medical record data for homology, and the slice originating from the patient's medical record data is taken as the target slice. After verification at each level, a temporary access pass is issued to the doctor who initiated the access, granting access only to the target slide.
[0076] Specifically, the verification result is obtained by comparing the specialist identity of the doctor who initiated the access with the specialist type of each specialist entry in the on-chain view cutting rules one by one, and confirming that the rule read does indeed point to the current remote consultation request and not other historical requests, and then obtaining a positive confirmation status of the corresponding specialist entry.
[0077] The sorting order is a fixed sequence of positions after the on-chain view cutting rules sort each specialty item according to the predetermined order of the participating specialties in the consultation request. Once fixed, this order remains unchanged in this consultation process and is used to verify the compliance of candidate slices in the subsequent verification process.
[0078] Candidate slices are selected based on the verification results by finding the corresponding slices along the mapping relationship between the corresponding specialty entries and the slices in the data view. After verifying the order of the specialty entries in the on-chain view cutting rules, slices whose order matches the predetermined order of the doctor's specialty are extracted as a candidate set.
[0079] A slice identifier is a unique number or mark assigned to a data view slice when it is generated. This identifier is recorded in the slice header information and is used to distinguish and reference different data view slices in subsequent operation stages.
[0080] The unlocking slice identifier is a set of identifiers for data view slices that can be unlocked by the slice associated key, and the number of identifiers in this set is consistent with the number of slices corresponding to this specialist identity in the on-chain view slicing rules.
[0081] The limited corresponding slice is determined by comparing the slice identifier of the candidate slice with the unlocking slice identifier of the slice associated key one by one, and selecting the slices with completely consistent identifiers. This set passes the triple screening of mapping relationship verification, order verification, and key unlocking range verification.
[0082] Non-interactive zero-knowledge proof is a type of cryptographic proof data generated locally on the doctor's terminal. This proof data demonstrates to the verifier that the attribute key held by the doctor is consistent with the attribute key corresponding to the specified slice in terms of attribute parameters, without actually disclosing the specific numerical content of the key during the verification process. Specifically, the non-interactive zero-knowledge proof is implemented based on a non-interactive zero-knowledge proof protocol and is used to prove that the attribute key held by the doctor is consistent with the attribute key corresponding to the specified slice in terms of attribute parameters. The proof generation process is as follows: the prover selects a random number, calculates a first intermediate commitment value and a second intermediate commitment value, performs a hash operation using these two intermediate commitment values and public parameters as input to obtain a challenge value, and then calculates a response value using the prover's private attribute key and the challenge value as input. The two intermediate commitment values and the response value are sent to the verifier as proof data. The verifier recalculates the challenge value using the same public parameters and proof data, and verifies whether both equations are true simultaneously. If both are true, the consistency verification is successful.
[0083] The attribute key is a decryption credential generated by an attribute encryption mechanism based on a ciphertext policy. This key is generated with specialist identity and disease level as attribute parameters. Doctors holding this key can decrypt encrypted data view slices that meet their attribute parameter conditions.
[0084] The consistency state is a state in which the verification is successful after the non-interactive zero-knowledge proof data submitted by the doctor's terminal is verified and the attribute key held by the doctor is completely matched with the attribute key corresponding to the specified slice in terms of attribute parameters.
[0085] Homologous comparison is an operation that compares the content of each medical record field in the corresponding slice with the content of the same medical record field in the patient's medical record data at the same recording time, in order to confirm that the corresponding slice is indeed derived from the patient's medical record data and not from forged data.
[0086] The target slice is a set of slices that are finally approved as being accessible to doctors after the corresponding slice has been confirmed to have all fields consistent with the patient's medical record data through homology comparison.
[0087] A temporary access credential is an electronic permission token issued to the doctor who initiates the access after all layers of verification have passed. This credential restricts the doctor to accessing only the medical record field data contained in the target slide. The credential is valid for the duration of this consultation process and will automatically expire after the expiration date.
[0088] A deterioration event is a change in clinical status detected by the executing side during a remote consultation, based on continuously received vital sign data from bedside monitoring devices, symptom changes recorded on nursing terminals, or critical value reports pushed by the laboratory, according to predefined deterioration criteria. When the detection criteria are met, such as a sudden drop in blood pressure, arrhythmia, or blood oxygen saturation falling below a safe threshold, the executing side records the detected time point and event type as a deterioration event and immediately triggers the credential upgrade process. Specifically, a deterioration event is a change in clinical status detected in real time during the consultation, and it is a different time dimension for judgment than the disease level assessed based on the initial medical record data when the consultation is initiated in step S2. The disease level is used for the permission allocation of the initial slide binding, while the deterioration event is used for the dynamic upgrade of permissions during the consultation process. The two can be triggered independently or sequentially.
[0089] An emergency access credential is a new authorization credential dynamically upgraded by the implementing party after a deterioration event is triggered, based on the original temporary access credential. During the upgrade process, the implementing party, according to the specific clinical direction of the deterioration, includes additional data view slices from one or more other specialties directly related to emergency treatment, beyond the original target slice range. For example, relevant slices from the intensive care unit or emergency department may be included in the access scope. After the emergency access credential is issued, the original temporary access credential is immediately marked as invalid. Physicians use this emergency access credential to obtain expanded data access permissions, enabling them to access more comprehensive medical record information for rapid clinical decision-making in emergency situations.
[0090] Furthermore, when a doctor initiates an access request, the execution side first receives the access request submitted by the doctor's terminal. The request carries the doctor's specialist identity and the current consultation request number. The execution side reads the on-chain view slicing rules indexed by the consultation request number from the blockchain, compares the doctor's specialist identity with the specialist type of each specialist entry in the rules one by one, and confirms that the read rules do indeed point to the current consultation request and not other historical requests. After both verifications are passed, a positive verification result is obtained.
[0091] Based on this verification result, the corresponding slice is found by following the mapping relationship between the specialty entry and the data view slice, and the order of the specialty entry in the rules is checked. Slices that match the predetermined order of the doctor's specialty are extracted as candidate slices.
[0092] Then, the slice association key bound to the specialist identity is retrieved, and the slice identifiers of the candidate slices are compared one by one with the unlocking slice identifiers in the key. The slice with completely identical identifiers is selected as the corresponding restricted slice. Subsequently, the execution side receives the proof data based on non-interactive zero-knowledge proof generated by the doctor's terminal and verifies the proof data to confirm that the attribute key held by the doctor is consistent with the attribute key of the corresponding restricted slice in terms of attribute parameters.
[0093] Once a consensus is reached, the execution side will compare the contents of the medical record fields in the corresponding slice with the data contents of the same field and the same recording time in the patient's medical record data item by item. After confirming that the two are completely consistent, these slices will be determined as target slices.
[0094] After completing all the above verification steps, the execution side issues a temporary access credential to the physician terminal that allows access only to these target slides. During the consultation, the execution side continuously receives reports of the patient's condition from bedside monitoring equipment or nursing terminals. When a change in signs or symptom description that meets the criteria for deterioration is detected in the reported data, the execution side marks the event as a deterioration event.
[0095] This triggers a credential upgrade process. Based on the target slice bound to the original temporary access credential, additional slices related to emergency treatment from other specialty data view slices are included according to the clinical direction involved in the deterioration of the condition. The upgraded access scope is then repackaged and an emergency credential is issued to the doctor's terminal. The original temporary access credential is simultaneously marked as invalid. The doctor can then use the emergency credential to perform data reading operations.
[0096] S4: Each specialist doctor submits a diagnosis and treatment opinion through the temporary access certificate and the emergency certificate, makes a hash commitment to the diagnosis and treatment opinion and stores it on the blockchain, and for the overdue disclosure of the specialty, the original data view slice is supplemented and cut according to the disclosed opinion, and targeted temporary certificates are issued to the candidate doctors of the same specialty. In this embodiment, each specialist doctor submits a medical opinion using the temporary access credential and the emergency credential, performs a hash commitment on the medical opinion, and stores it on the blockchain, including: Each specialist doctor submits their medical opinions using the temporary access pass or the emergency pass, and the receiving side collects the medical opinions pending commitment according to the specialist identity. Each specialist physician selects a random blinding factor to blind the proposed treatment opinions, generating blinded treatment opinions. The blinded diagnosis and treatment opinions are hashed, and a commitment value is generated using a preset discrete logarithm commitment scheme; The commitment value, the hash value of the blinding factor, and the specialist identity are registered on the blockchain with timestamps to generate an on-chain commitment stub that indicates the committed but undisclosed state; The on-chain commitment stubs of each specialty within this consultation request are merged and arranged in the predetermined order of the specialties to generate commitment records.
[0097] Specifically, the treatment opinion is the interpretation conclusion and treatment suggestion issued by each specialist doctor after reviewing the authorized data view slices, based on the medical record fields contained in the slices. This opinion is submitted to the telemedicine collaboration platform in the form of electronic text.
[0098] The receiving side is a service node in the telemedicine collaboration platform responsible for receiving and processing the diagnostic and treatment opinions submitted by various specialist doctors. This node maintains the context state of the current consultation request and performs opinion collection and evidence storage operations.
[0099] The pending treatment opinions are the collection of original treatment opinions submitted by various specialists who have been categorized by specialty on the receiving side but have not yet been processed for commitment.
[0100] The random blinding factor is a random number selected locally by each specialist doctor on their terminal and known only to that doctor. This factor is used to mathematically transform the diagnosis and treatment opinion so that the actual content of the transformed opinion cannot be known to other parties before it is revealed.
[0101] Blinding is a mathematical transformation operation performed locally on the doctor's terminal. This operation combines a random blinding factor with the treatment opinion to be committed to, generating a blinded treatment opinion. This transformation ensures that the content of the original treatment opinion is not disclosed during the commitment stage. The blinding process uses a multiplicative blinding method. The doctor converts the text content of the treatment opinion to be committed to into a numerical code, and performs a multiplication operation on the random blinding factor and this numerical code in a modular prime field to obtain the blinded treatment opinion. The blinded result is uniformly distributed under modular arithmetic, making it impossible for any third party who does not have the random blinding factor to infer the numerical code of the original treatment opinion from the blinded result.
[0102] Blinded medical opinions are the transformed results of a proposed medical opinion after blinding. This result replaces the original opinion when it is stored on the blockchain, making it impossible for anyone to deduce the content of the original medical opinion without knowing the random blinding factor.
[0103] Hash operation is a one-way mathematical transformation operation performed on blinded medical opinions. This operation maps blinded medical opinion data of arbitrary length to a fixed-length numerical value. This numerical value is computationally irreversible, meaning that the original data cannot be derived from the hash value.
[0104] The Discrete Logarithm-based commitment scheme is a cryptographic commitment protocol pre-configured in a telemedicine collaboration platform. This scheme leverages the computational difficulty of the discrete logarithm problem to prevent the committing party from altering the committed content during the subsequent disclosure phase, while the committed value itself does not reveal the original information. Specifically, the Discrete Logarithm-based commitment scheme involves: using secure prime numbers and their primitive roots as public parameters, the committing party selects a random number; for the value to be committed, using two public generators as bases, performing modular exponentiation with the value to be committed and the random number as exponents respectively; multiplying the two exponentiation results and then taking the modulus to obtain the committed value; this commitment scheme satisfies concealment and binding, preventing the committing party from altering the committed content during the disclosure phase.
[0105] The commitment value is a fixed-length value generated by performing a hash operation on the blinded medical opinion using a discrete logarithmic commitment scheme. This value serves as cryptographic evidence that the medical opinion has been submitted and its content has not been tampered with, and is registered and stored on the blockchain.
[0106] The hash value is a fixed-length numerical value generated by performing a hash operation on a random blinding factor as input data. This value is registered and associated with the commitment value, and is used to verify whether the blinding factor revealed in the subsequent disclosure phase is consistent with the factor used in the commitment phase. Specifically, after the hash value of the blinding factor is registered on the blockchain, in the subsequent disclosure phase, the doctor needs to submit the original text of the blinding factor. The verifier performs a hash operation on the blinding factor and compares it with the hash value of the blinding factor in the on-chain stub to confirm that the blinding factor used by the revealer is consistent with that used in the commitment phase.
[0107] An on-chain commitment stub is a record generated by registering the commitment value, the hash value of the blinding factor, and the professional identity of the expert who issued the opinion on the chain in the order of timestamps. The stub records the status of the expert who has submitted a commitment but has not yet revealed the original opinion.
[0108] The "committed but not disclosed" status is a status identifier recorded in the on-chain commitment stub, indicating that the specialist doctor has completed the submission commitment of the diagnosis and treatment opinion, but the actual content of the diagnosis and treatment opinion has not yet been publicly disclosed. This status is set when the commitment value is put on the chain and will not be changed until the doctor performs the disclosure operation.
[0109] The commitment record is an ordered set of records generated by merging and arranging the on-chain commitment stubs of each specialty in this remote consultation request according to the predetermined order of the participating specialties in the consultation request. This record reflects the commitment submission status and respective status of all participating specialties in this consultation.
[0110] Furthermore, after the issuance of the certificate, each specialist doctor can use the temporary access certificate or emergency certificate to view the authorized data view slices through the doctor's terminal, issue interpretation conclusions based on the medical record fields displayed in the slices, form a diagnosis and treatment opinion, and submit it to the receiving side.
[0111] After receiving the treatment opinions submitted by doctors from various specialties, the receiving side classifies and collects these opinions according to the specialty of the doctor who issued the opinion, forming a set of treatment opinions to be committed.
[0112] Subsequently, each doctor selects a random blinding factor on their local terminal, which is only known to themselves. They then use this blinding factor to perform blinding processing on their respective treatment opinions to be committed, transforming the original treatment opinions into blinded treatment opinions, so that the original content cannot be known to other parties during the commitment stage.
[0113] Next, a hash operation is performed on the blinded diagnosis and treatment opinion, and a pre-configured discrete logarithm-based commitment scheme is invoked. This scheme generates a commitment value that uniquely corresponds to the blinded diagnosis and treatment opinion based on the hash operation result.
[0114] After the commitment value is generated, the commitment value, the hash value of the random blinding factor, and the identity of the specialist who issued the opinion are registered on the blockchain in the order of the current timestamp to generate an on-chain commitment stub. This stub records the status of the specialist having submitted a commitment but the content of the diagnosis and treatment opinion has not yet been disclosed to the public.
[0115] Once all participating specialties in this consultation request have completed the aforementioned commitment operations, the on-chain commitment stubs of each specialty will be merged and arranged according to the predetermined order of participating specialties specified in the remote consultation request, ultimately generating the commitment record for this consultation, which will be used in subsequent steps to detect and process any overdue and undisclosed specialties.
[0116] In this embodiment, the step of supplementing the original data view slices based on the disclosed opinions for overdue undisclosed specialties and issuing targeted temporary certificates to candidate doctors in the same specialty includes: Detect overdue and undisclosed specialties from the commitment records, and designate the corresponding data view slice as a slice to be supplemented; The disclosed diagnostic and treatment opinions are compiled, and the patient's medical record data is used as the common source benchmark. The slice data segments that have been evaluated by other specialties in the slices to be supplemented are extracted as redundant overlay data segments. The slice to be supplemented is cut to remove redundant overlay data segments and retain the remaining slice data segments to obtain a supplementary view slice. The supplementary view slice is bound to the slice attribute key corresponding to the specialist identity, and its unlocking range is limited to the supplementary view slice; After verifying that the identity of the candidate specialist physician matches the supplementary view slice, a directional temporary certificate is issued, limited to the supplementary view slice.
[0117] Specifically, "overdue disclosure" refers to the situation where a specialist who has submitted a hash commitment fails to submit the corresponding treatment opinion in plaintext to the network for verification by other participants within the set consultation time window. This time status is determined by comparing the timestamp of the on-chain stub with the current blockchain time, serving as the basis for triggering the supplementary slicing process. Specifically, the overdue time threshold is determined by the consultation time window set when the remote consultation request is initiated. The start time of this time window is the timestamp of the commitment stub registration on the chain, and the end time is the disclosure deadline preset by the initiator. Specialists who fail to complete the disclosure operation after this end time are deemed to have overdue disclosure.
[0118] Detection refers to the process by which the platform traverses each specialty stub from the commitment record, compares the current blockchain time with the timestamp recorded on the stub item by item, identifies the specialty that has not completed the disclosure operation within the preset time window, and marks the specialty's identity as pending. Once the detection operation is completed, the identity of the overdue and undisclosed specialty is obtained.
[0119] The slice to be supplemented is the original data view slice corresponding to the specialty that has been marked as overdue for disclosure. The multiple medical record field data segments contained in this slice were originally intended to be interpreted and a diagnosis and treatment opinion issued by the specialist. Since the original doctor failed to complete the disclosure operation within the specified time, the data segments in this slice need to be reassigned to the alternative doctor for interpretation.
[0120] The common source benchmark refers to using the patient's complete medical record data as a reference standard to verify whether each slice of data comes from the same patient's medical record and to ensure data consistency in subsequent operations. All extraction and comparison operations are based on this common source benchmark.
[0121] Redundant overlay data segments refer to data segments in the medical record fields contained in the slides to be supplemented that have already been evaluated by other specialists in the disclosed diagnostic opinions. The medical record fields corresponding to these data segments have been interpreted by other specialists. If the original specialist fails to disclose them within the time limit, these data segments do not need to be re-evaluated by the alternative doctors.
[0122] Supplementary slicing is a secondary segmentation operation performed on the slice to be supplemented. Using medical record fields as the smallest unit of operation, redundant overlay data segments in the slice to be supplemented are removed from the original slice, retaining only the remaining slice data segments not evaluated by other specialties, generating a new slice with a reduced scope. Supplementary slicing does not modify any data content of the original data view slice, nor does it affect the hash value of the slice already on the blockchain. Supplementary slicing is a logical-level slicing; that is, based on the range of medical record fields covered by the original slice, after excluding the fields corresponding to redundant overlay data segments, the pointers or references of the remaining fields are recombined into a new logical view. The hash value of this view is independent of the hash value of the original slice and can be separately stored on the blockchain.
[0123] Supplementary view slices are new slices obtained by performing supplementary cutting on the original data view slices. These slices only contain medical record field data segments that have not been evaluated by other specialties in the supplementary slices. Their data size is smaller than that of the original data view slices, and they are used for alternative doctors to make targeted interpretations.
[0124] The unlocking range is the set of fields of the data view slice that the slice attribute key can actually decrypt. In this step, the unlocking range is limited to the medical record fields contained in the supplementary view slice. The key holder cannot access any other data beyond the range of the supplementary view slice using this key.
[0125] The alternative physician is another practicing physician belonging to the same specialty type as the overdue undisclosed specialist. This physician has not yet been assigned a reading task in this consultation and has the professional qualifications required to access the medical record field data in the supplementary view slice. This physician is used to replace the original overdue undisclosed specialist physician to complete the reading work.
[0126] "Matching" means that the specialist identity of the candidate doctor is completely consistent with the specialist identity to which the supplementary view slice belongs, and the doctor's status is "assignable". After verification by the platform, it is confirmed that the doctor is qualified to receive the supplementary view slice.
[0127] Issuance is the process by which the platform generates an electronic permission token after completing identity verification. This token contains the identification information and valid access period of the supplementary view slice. The candidate doctor can use this token to access the medical record field data in the supplementary view slice. The validity of the token is strictly limited to the supplementary view slice.
[0128] The targeted temporary credential is an electronic permission token issued to the candidate physician. This credential restricts the holder's access to medical record field data contained in the supplementary view slice. The access scope of the credential corresponds exactly to the field set of the supplementary view slice, and the credential holder cannot access any other data view slices in this consultation through this credential. Specifically, the candidate physician reads the supplementary view slice data and issues a diagnosis opinion using the targeted temporary credential. The diagnosis opinion is then hashed and stored on the blockchain. After the candidate physician discloses their diagnosis opinion, the original overdue specialist physician's commitment stub is marked as "timed out" and will no longer participate in subsequent consistency checks.
[0129] Furthermore, during the consultation opinion collection phase of this telemedicine consultation, the platform continuously monitored the disclosure status of each specialist doctor's hash commitment. When there were overdue disclosures of specialists in the commitment records, the platform marked the original data view slice corresponding to that specialist as a slice to be supplemented.
[0130] At the same time, the platform traverses the records of treatment opinions that have been successfully revealed on the blockchain, gathers all the revealed treatment opinions, uses the patient's complete medical record data as a reference benchmark, and searches for those slice data segments that have been evaluated by other specialists in the medical record fields contained in the slice to be supplemented, extracts these data segments and marks them as redundant overlay data segments.
[0131] The platform then performs a supplementary cutting operation on the supplementary slice, removing redundant overlay data segments from the slice and retaining the remaining slice data segments that have not been evaluated by other specialties. Based on the retained data segments, a supplementary view slice with a narrowed field range is generated.
[0132] The platform binds a slice attribute key to the specialty identity to the supplementary view slice. The unlocking scope of this key is precisely limited to the medical record fields contained in the supplementary view slice, and no additional fields are unlocked.
[0133] The platform selects a candidate doctor from the list of specialist doctors who has not been assigned a reading task and is in normal condition. After receiving the candidate doctor's identity certificate, the platform compares the doctor's specialty type identifier with the specialty identity of the supplementary view slice item by item. After confirming that the two are completely consistent and that the doctor is qualified to receive the task, the platform issues a targeted temporary certificate to the candidate doctor. This certificate only allows the certificate holder to access the medical record field data within the scope of the supplementary view slice. The certificate holder cannot obtain any patient information beyond this scope through this certificate. The candidate doctor reads the supplementary view slice data and issues a diagnosis and treatment opinion based on the targeted temporary certificate.
[0134] S5: Perform field-level consistency verification on the disclosed treatment opinions according to the medical record fields of the patient's medical record data, identify conflicting data items between specialties, perform targeted re-cutting of the data view slices of the conflicting specialties based on the conflicting data items, issue a second round of vouchers to trigger a re-consultation, and generate the final treatment plan. In this embodiment, the step of performing field-level consistency checks on the disclosed diagnostic opinions according to the patient's medical record data to identify inter-specialty conflicting data items includes: Extract the opinions expressed in the diagnostic and treatment opinions disclosed by each specialty, and according to the data view slices defined by the identity of the specialty that issued the opinion, assign the opinions to the medical record fields in the corresponding slices to generate field expression entries; Merge entries that point to the same medical record field but originate from different specialties to obtain a group of fields with the same origin; Within the same source field group, entries are divided into comparable representations based on the recording time of the medical record field; For the comparable statements, the interpretation conclusions from different specialties are determined by mutual exclusion logic, and the interpretation conclusions that cannot be held at the same time are regarded as conflict statements. The conflict statements, along with their medical record fields, specialist identity combinations, and record times, are merged to generate conflict data items.
[0135] Specifically, the field-level consistency check refers to: using the name and recording time of the medical record field as the joint key value, extracting the interpretation conclusions involving the same joint key value from the various specialist diagnosis and treatment opinions, and comparing whether the clinical semantics of each interpretation conclusion points to the same diagnostic direction; if each interpretation conclusion is marked as synonymous or coexisting in the preset clinical thesaurus, it is determined to be consistent; if it is marked as mutually exclusive, it is determined to be inconsistent.
[0136] The opinion statement is the text of the diagnosis and treatment opinion submitted by each specialist doctor during the disclosure phase. This text contains the interpretation conclusions and treatment suggestions for the specified medical record fields.
[0137] Placement is the process of assigning the interpretation of an opinion to a specific medical record field within a slice, based on the specialist affiliation of the doctor issuing the opinion and the data view slices defined by the credentials held by that doctor.
[0138] The field description entry is a record item generated after the opinion description has been put back into place. This record item contains the specific interpretation conclusion of a single specialty on a single medical record field, the specialty's identification, and the slice source information on which the interpretation conclusion is based.
[0139] A common-origin field group is a collection obtained by merging field description entries according to the medical record field they point to. This collection gathers all field description entries from all participating specialties that point to the same medical record field, and each medical record field corresponds to a common-origin field group.
[0140] The recording time is the timestamp corresponding to when each field in the patient's medical record data is collected or entered. This timestamp is recorded in the metadata of each field in the electronic medical record system and is used to determine the chronological order of the data in each field.
[0141] Comparable entries are subsets of entries within the same source field group, grouped by record time. All entries in this subset point to the same medical record field at the same record time and originate from different specialties.
[0142] The interpretation conclusion is the professional judgment result given in the opinion statement for a specific medical record field. This conclusion is a clinical interpretation of the data content contained in the medical record field and is carried in the diagnosis and treatment opinions of various specialties in text form.
[0143] Mutually exclusive logic determination is an operation that detects logical contradictions in comparable statements from different specialties. This operation compares the semantic content of each statement to check for situations where they cannot both be true simultaneously. When two statements cannot coexist clinically in logical terms, they are marked as conflicting. Specifically, the mutually exclusive logic determination is performed based on a pre-built clinical interpretation terminology conflict rule base. This rule base stores the logical mutual exclusion relationships between common interpretations from various specialties in the form of triples: "Interpretation A, Interpretation B, Conflict Type". Using each specialty's interpretation as input, the rule base is searched for matching mutually exclusive rules. If a match is found, the statement is determined to be conflicting. If no match is found, the interpretation is normalized using a pre-defined thesaurus of interpretation terms, and the search is repeated. If no match is found, the statement is determined to be non-conflicting.
[0144] A conflicting statement is a statement that, after being determined by mutually exclusive logic, cannot be simultaneously valid with other specialized interpretations in comparable statements at the same time. This statement corresponds to the specific content of the opinion statement.
[0145] The specialist identity set is a collection of multiple specialist identities that provide opinions related to conflict statements. This set records which specialists each conflicting interpretation comes from, and is used to subsequently locate the specialists involved in the conflict.
[0146] A conflict data item is a data record generated by merging the conflict statement along with the medical record field it points to, the specialty identity combination that caused the conflict, and the record time corresponding to the conflict statement. This record completely identifies all the related information of a field-level logical conflict.
[0147] Furthermore, the text of the opinions is first extracted from the records of medical opinions disclosed by each specialty on the blockchain. For each opinion, the specialty of the doctor who issued the opinion is identified, as well as the range of data view slices that the doctor was allowed to access with credentials when submitting the opinion.
[0148] Based on the slice range, determine which medical record fields in the patient's medical record data correspond to the current opinion statement, and place the interpretation conclusion of the opinion statement under the specific medical record field within the corresponding slice to form a field description entry.
[0149] Next, all field description entries are merged and categorized according to the medical record field they point to, and field description entries that point to the same medical record field but come from different specialists are grouped into a common-origin field group.
[0150] Then, within each homogeneous field group, all field description entries are further grouped according to the recording time of the medical record field in the patient's medical record data, and entries with the same recording time are grouped into comparable descriptions at the same time.
[0151] Then, for each group of comparable statements, the interpretations from different specialties are judged one by one by mutual exclusion logic. The interpretations are checked to see if they can be held simultaneously in clinical logic. The interpretations that cannot be held simultaneously are marked as conflicting statements.
[0152] Finally, the conflict statement, along with its corresponding medical record field name, the specialty identity combination that caused the conflict, and the record time corresponding to the conflict statement, are merged together to generate a complete conflict data item. This data item will be used in subsequent steps to locate the slice range that needs to be recut.
[0153] In this embodiment, the step of re-slicing the data view slices of conflict-related specialties based on the conflict data items, issuing a second-round certificate to trigger a re-consultation, and generating a final treatment plan includes: Based on the medical record field pointed to by the conflicting data item and the recording time, the data segment of the medical record field at the corresponding recording time is extracted from the patient's medical record data and used as the focus field data segment; Along the recording time of the focal field data segment, extract the data segments of the other fields with the same recording time and the same field of adjacent recording times, as the source-corroborating data segments; Using the focus field data segment and the co-originating evidence data segment as the cutting boundary, the data view slice of the conflict-related specialty is re-cut in a directional manner to obtain a directional re-cut slice. Narrow the unlocking range of the slice attribute key to the directional recut slice, and issue a second round of credentials to the conflict-related specialist; The conflict-related specialist, based on the second-round credentials, reads the targeted re-cut slides, reissues a second-round diagnostic opinion for the medical record fields, and discloses it. The second round of treatment opinions and the first round of treatment opinions from each specialty are merged according to medical record fields, conflicting statements are replaced, and the final treatment plan is generated.
[0154] Specifically, the focus field data segment is the specific data content of the medical record field at the record time, extracted from the patient's medical record data based on the medical record field pointed to by the conflicting data item and the record time.
[0155] The co-originating data segment consists of the data content of other medical record fields that are identical to the record time at the record time of the focal field data segment, extracted from the patient's medical record data, as well as the data content of the same medical record field in the previous and next record times adjacent to the record time.
[0156] Targeted recutting is an operation that uses the data range formed by the focus field data segment and the supporting data segment as the cutting boundary to re-segment the data view slices of conflict-related specialties. This operation only retains the medical record fields in the data view slices that correspond to the focus field data segment and the supporting data segment, and removes other irrelevant medical record field data in the data view slices.
[0157] A targeted re-cut slice is an updated data view slice obtained after a targeted re-cutting operation. This slice contains only the medical record field data content corresponding to the focus field data segment and the co-originating supporting data segment.
[0158] Narrowing is the process of reducing the unlocking scope of the slice attribute key from the entire data view slice to the targeted recut slice. This process ensures that the slice attribute key can only decrypt the medical record field data contained in the targeted recut slice, losing the ability to decrypt the remaining medical record field data in the data view slice. Specifically, the original slice attribute key is revoked, and a new slice attribute key is regenerated based on the field range of the targeted recut slice. The list of accessible fields in its attribute parameters is limited to the set of fields contained in the targeted recut slice, and the original slice attribute key is replaced with this new key—a second round of credentials is issued to the conflict-related specialist.
[0159] The second round of credentials is a new access credential issued to the conflict-related specialist. This credential restricts the holder's access to medical record fields contained in the targeted resection slides, and its validity is limited to the duration of the second round of consultations.
[0160] Re-issuance is the process by which conflict-related specialists, after reading the medical record field data contained in a targeted re-cut slide, re-interpret the medical record fields contained in that slide and form a new diagnosis and treatment opinion.
[0161] The second round of treatment opinions are the treatment opinions reissued by the conflict-related specialists during the second round of consultations. These opinions provide interpretations of the medical record fields corresponding to the focal field data segments and the co-originating evidence data segments in the targeted recut slides.
[0162] The disclosure is the process by which conflict-related specialists submit the explicit content of their second round of treatment opinions online for verification and review by other stakeholders, thus making the treatment opinions, which were originally in a state of commitment, public.
[0163] Merging is the process of combining the second round of treatment opinions with the first round of treatment opinions from various specialties according to the medical record fields. Multiple treatment opinions under the same medical record field are placed in the same data set.
[0164] Replacement is the process of removing conflicting statements from the set of medical opinions for the same medical record field after merging, and replacing the removed conflicting statements with the interpretation conclusion of the corresponding medical record field in the second round of medical opinions.
[0165] The final treatment plan is a complete treatment plan formed by merging the non-conflicting parts of the first round of treatment opinions from various specialties with the replaced interpretations in the second round of treatment opinions according to the medical record fields.
[0166] The phrase "using the focus field data segment and the co-originating supporting data segment as the cutting boundary" specifically refers to: determining the start byte offset and end byte offset of the field in the medical record data, as well as the start and end markers of the record time, based on the medical record field name and record time in the conflicting data item; using the start and end offsets as the left and right endpoints of the cutting boundary, separating the data segment containing the field from the data segment that does not contain the field in the original data view slice of the conflict-related specialty, and retaining the data segment containing the field as a component of the directional recut slice.
[0167] Furthermore, based on the generated conflict data items, the medical record field name and record time that the conflict data items point to are extracted from the conflict data items. Using the medical record field name and record time as search conditions, the data storage location of the medical record field at the record time is located in the storage structure of the patient's medical record data. The data content stored at this location is extracted from the patient's medical record data and used as the focus field data segment.
[0168] Then, using the record time as a time reference, locate the data storage location of all other medical record fields at that record time in the patient's medical record data, extract the data content of all other medical record fields, and at the same time locate the data storage location of the same medical record field in the previous record time and the data storage location of the same medical record field in the next record time, extract the data content of the same medical record field in the previous record time and the next record time, and use all the extracted data content together as the same source supporting data segment.
[0169] Then, the focus field data segment and the co-source supporting data segment are used together as the cutting boundary to perform a targeted recutting operation on the original data view slices of the conflict-related specialties. During the targeted recutting process, only the data part in the data view slice that is completely consistent with the medical record fields corresponding to the focus field data segment and the co-source supporting data segment is retained, and all other irrelevant medical record field data in the data view slice are removed. After targeted recutting, the targeted recut slice is obtained.
[0170] Subsequently, the unlocking scope of the original slice attribute key was narrowed from the entire original data view slice to the targeted recut slice. This caused the slice attribute key to lose its ability to decrypt other medical record field data in the data view slice, retaining only the ability to decrypt the targeted recut slice. After the unlocking scope was narrowed, a second-round certificate was issued to the conflict-related specialist. This certificate limited the access scope to the targeted recut slice.
[0171] After obtaining the second round of credentials, the conflict-related specialists use these credentials to read the medical record field data contained in the targeted resection slides. Based on the clinical information reflected in the focus field data segment and the co-existing evidence data segment, they interpret the medical record fields in the slides, form a second round of diagnostic opinions, and submit them to the network for verification by other participants through a disclosure operation.
[0172] Finally, the second round of treatment opinions and the first round of treatment opinions from each specialty are merged according to the medical record field names. The second round of treatment opinions and the first round of treatment opinions under the same medical record field are gathered together. In the merged treatment opinion set, the field position where the conflicting statement is located is located, and the conflicting statement is removed from the set. The interpretation conclusion of the corresponding medical record field in the second round of treatment opinion is placed in the field position, and the original conflicting statement is replaced with the interpretation conclusion of the second round of treatment opinion. After completing the replacement operation of all conflicting statements, the treatment opinions under each medical record field are integrated into a complete final treatment plan.
[0173] S6: Reclaim all the temporary access credentials, emergency credentials, and second-round credentials, destroy the slice-associated key, and package the on-chain view slicing rules, the actual access scope of each doctor, emergency escalation records, and the final treatment plan into the blockchain to generate a consultation traceability record.
[0174] In this embodiment, the step of packaging and writing the on-chain view slicing rules, the actual access scope of each doctor, emergency escalation records, and the final treatment plan into the blockchain to generate a consultation traceability record includes: Using the remote consultation request as an index, the actual access range of each doctor and the emergency escalation record are merged according to the time of occurrence to obtain the access trajectory; Based on the on-chain view cutting rules and the emergency upgrade records, the accessibility of each doctor's access trajectory is verified one by one to obtain compliant access records. The compliant access record, the on-chain view slicing rules, and the final treatment plan are written to the blockchain in one overall write operation, and solidified to generate a consultation traceability record after consensus confirmation.
[0175] Specifically, The actual scope of access for doctors is the set of patient medical record data fields that each specialist doctor actually obtains and reviews through credentials during this consultation. This set is determined by the medical record fields contained in the target slice defined when the credentials are issued. Each access operation records the slice identifier and field list actually touched during that access.
[0176] An emergency escalation record is a record entry generated by a credential escalation operation triggered when a patient's condition deteriorates. This entry includes the detection time of the deterioration event, the specific deterioration indicator type that triggered the escalation, the additional slice identifiers included in the emergency credential expansion after the escalation, and the timestamp of the escalation operation.
[0177] The chronological order is the order in which the timestamps corresponding to the actual access scope of each doctor and the emergency escalation record are arranged according to the actual time of each event, with the blockchain timestamp as the reference benchmark, providing a sorting basis for subsequent merging operations.
[0178] Merging by occurrence sequence is an operation that combines the actual visit scope of each doctor with the emergency escalation record according to the occurrence sequence. This operation uses the timestamp as the sorting key value, interleaving and combining the two types of event records in chronological order into a continuous timeline sequence without changing the original content of each record entry.
[0179] The access trajectory is a time-ordered sequence of records obtained by merging the actual access scope of each doctor with emergency escalation records according to the order of occurrence. Each entry in the sequence records the access behavior or escalation event that occurred at a specific moment. The sequence is arranged linearly in chronological order, fully reflecting the dynamic process of all data access and permission changes during the consultation.
[0180] The sequential verification process involves performing compliance checks on each access record in the access trajectory based on the on-chain view segmentation rules and emergency upgrade records. This process retrieves each record in the access trajectory in sequence and, for the time point when the access occurred, confirms whether the medical record fields touched by the access are consistent with the scope of the valid credentials at that time.
[0181] The accessible scope is the set of data view slices that a doctor is allowed to access at a specific time during a particular visit in the access trajectory, based on the valid credentials they hold. This set is determined by the target slices specified when the temporary or emergency access credentials are issued. During each verification, the actual access scope is compared with the accessible scope to determine whether the visit is compliant.
[0182] A compliant access log is a sequence of access records that has been verified one by one in the access trajectory. It is confirmed that the actual access range of each access does not exceed the accessible range at the corresponding time. The verified access records are arranged in their original chronological order. This sequence contains only the access entries that have been verified and confirmed to be compliant.
[0183] A single write operation is an operation that packages the compliant access record, on-chain view segmentation rules, and final treatment plan into a single data block and submits it to the blockchain network. This operation is completed in a single transaction, ensuring that the entire contents of the data block are broadcast to the blockchain network at the same time.
[0184] Permanent storage is the operation of permanently storing data blocks that have been confirmed through consensus in the distributed ledger of the blockchain. Data blocks are written into a continuous block structure and linked to the previous block. Once the storage is completed, no content in the data block can be modified or deleted.
[0185] The consultation traceability record is a complete record formed by packaging and solidifying all the key information of this remote consultation. The record is indexed by the remote consultation request and includes compliant access records, on-chain view slicing rules, final treatment plan, and all certificate issuance and retrieval records, which are used for subsequent auditing and traceability.
[0186] The voucher retrieval status is a record generated after the consultation process ends and all issued temporary access vouchers, emergency vouchers, and second-round vouchers are retrieved. This status records the retrieval time and retrieval operation result of each voucher, confirming that all vouchers have expired.
[0187] The key destruction status is a record formed after the destruction operation is performed on the slice-associated key after the credential retrieval is completed. This status records the time of key destruction and the result of the destruction operation, confirming that all slice-associated keys have been completely removed and cannot be recovered.
[0188] Furthermore, after obtaining all the diagnostic and treatment opinions submitted by the specialist doctors and generating the final treatment plan, the execution side first reclaims all temporary access vouchers, emergency vouchers and second-round vouchers that have been issued in this consultation process, invalidating all of the above vouchers, and records the result of the reclamation operation as the voucher reclamation status.
[0189] The generated slice association key is then destroyed, preventing it from being used to decrypt any medical record data. The result of the destruction operation is recorded as the key destruction status.
[0190] Next, the execution side uses the unique identifier of the remote consultation request as an index to extract the actual access range of each doctor to the medical record data during the consultation process record. Together with the emergency escalation records corresponding to the monitored deterioration events, they are extracted and arranged according to the chronological order of the events to form a complete access trajectory.
[0191] After the access trajectory is formed, the execution side verifies each access record in the access trajectory one by one based on the mapping relationship between each specialty item and the data view slice recorded in the on-chain view slicing rules, combined with the credential upgrade time point and the expanded access range recorded in the emergency upgrade record, to determine whether the medical record fields actually touched by the access are all within the access range allowed by the doctor's valid credentials at the time the access occurred. The verified records are retained in their original time sequence to obtain the compliant access record.
[0192] The execution side packages the compliant access record, the on-chain view slicing rules read from the blockchain, and the final treatment plan into an independent data block. This data block is submitted to the blockchain network through a single write operation. After receiving the data block, multiple nodes in the blockchain network independently verify it according to the agreed verification rules to confirm the legality of the data block's format, the integrity of the data, and the authenticity of its source.
[0193] After each node verifies and reaches a consensus, the data block is written into the continuous block structure of the blockchain and linked to the previous block after the consensus is confirmed, completing the solidification operation and generating a consultation traceability record indexed by the remote consultation request. This record is solidified for subsequent auditing and traceability.
[0194] Take a remote consultation involving cardiology, respiratory medicine, and neurology as an example. Patient Zhang, male, 65 years old, was admitted to the hospital due to "chest tightness, shortness of breath, and weakness in the right limbs for 3 days." After receiving the consultation request, the telemedicine collaboration platform identified the participating specialties as cardiology, respiratory medicine, and neurology, and then segmented the patient's medical record data into cardiology data view slices, respiratory medicine data view slices, and neurology data view slices according to these specialties.
[0195] The platform writes the mapping relationship between each slice and specialty type, as well as the slice hash value, into the blockchain to generate on-chain view cutting rules, and binds slice association keys to each slice according to the patient's condition level. When a cardiologist initiates access, the platform verifies that their specialty identity matches the on-chain view cutting rules and issues a temporary access certificate limited to cardiology slices; pulmonologists and neurologists also obtain temporary access certificates for their respective slices.
[0196] After reviewing electrocardiogram and echocardiogram slides using temporary access credentials, a cardiologist issues a diagnosis of "possible myocardial ischemia"; a pulmonologist reviews chest CT scans and pulmonary function slides and issues a diagnosis of "pulmonary embolism to be ruled out"; and a neurologist reviews head MRI slides and issues a diagnosis of "acute phase of cerebral infarction". Each doctor makes a hash commitment to their respective diagnosis and records it on the blockchain, which is then revealed sequentially.
[0197] The platform performed field-level consistency checks on the three treatment opinions revealed after the disclosure, based on medical record fields. It found that the "chest tightness" field was classified as "cardiac origin" by the cardiology department and "pulmonary origin" by the respiratory department, indicating a conflicting data item after mutual exclusion logic. Based on this conflicting data item, the platform re-sliced the data view slices from the cardiology and respiratory departments and issued a second round of certificates to both departments. After re-interpreting the second round of certificates, the doctors from both departments issued supplementary opinions of "cardiac chest tightness to be investigated" and "pulmonary chest tightness to be investigated," respectively. After merging and replacing the conflicting statements, the final treatment plan was generated.
[0198] The platform reclaims all temporary access credentials and second-round credentials, destroys the slice-related keys, and packages and writes the compliant access records, on-chain view slicing rules, and final treatment plans into the blockchain to generate a complete consultation traceability record.
[0199] like Figure 2 The diagram shown is a functional block diagram of a blockchain-based remote medical data security sharing system provided in an embodiment of the present invention.
[0200] The blockchain-based remote medical data security sharing system 100 described in this invention can be installed in an electronic device. Depending on the functions implemented, the blockchain-based remote medical data security sharing system 100 may include a medical record view segmentation module 101, an on-chain rule generation module 102, a dynamic voucher issuance module 103, an opinion storage and re-segmentation module 104, a conflict verification and re-segmentation module 105, and a traceability record generation module 106. The modules described in this invention can also be referred to as units, which are a series of computer program segments that can be executed by the processor of an electronic device and can perform a fixed function, stored in the memory of the electronic device.
[0201] In this embodiment, the functions of each module / unit are as follows: Medical record view cutting module 101: Obtains remote consultation request, parses the specialty type of the remote consultation, cuts the patient medical record data according to the specialty type, and generates data view slices corresponding to each specialty. On-chain rule generation module 102: Writes the mapping relationship between each data view slice and the specialty type and the slice hash value into the blockchain, generates on-chain view cutting rules, and binds slice association keys to each data view slice according to the disease level in the remote consultation request; Dynamic credential issuance module 103: After verifying that the specialist identity of the doctor initiating the access matches the on-chain view slicing rules, it issues a temporary access credential that limits the corresponding slice. When a patient's condition deteriorates, the temporary access credential is dynamically upgraded to an emergency credential that extends the view scope. Opinion storage and supplementary cutting module 104: Each specialist doctor submits a diagnosis and treatment opinion through the temporary access certificate and the emergency certificate, performs a hash commitment on the diagnosis and treatment opinion and stores it on the blockchain, and for the overdue disclosure of the specialty, supplements the original data view slice according to the disclosed opinion and issues targeted temporary certificates to the candidate doctors of the same specialty. Conflict verification and recutting module 105: Performs field-level consistency verification on the revealed diagnosis and treatment opinions according to the medical record fields of the patient's medical record data, identifies conflicting data items between specialties, performs targeted recutting of the data view slices of the conflict-related specialties based on the conflicting data items, issues a second round of vouchers to trigger a re-consultation, and generates the final diagnosis and treatment plan. Source tracing record generation module 106: reclaims all the temporary access credentials, the emergency credentials, and the second round credentials, destroys the slice association key, packages the on-chain view cutting rules, the actual access scope of each doctor, the emergency upgrade record, and the final treatment plan into the blockchain, and generates a consultation traceability record.
[0202] In the several embodiments provided by this invention, it should be understood that the disclosed methods and systems can be implemented in other ways. For example, the system embodiments described above are merely illustrative; for instance, the division of modules is only a logical functional division, and other division methods may be used in actual implementation.
[0203] The modules described as separate components may or may not be physically separate. The components shown as modules 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 modules can be selected to achieve the purpose of this embodiment, depending on actual needs.
[0204] Furthermore, the functional modules in the various embodiments of the present invention 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 in the form of hardware plus software functional modules.
[0205] It will be apparent to those skilled in the art that the present invention is not limited to the details of the exemplary embodiments described above, and that the present invention can be implemented in other specific forms without departing from the spirit or essential characteristics of the present invention.
[0206] The embodiments of this application can acquire and process relevant data based on artificial intelligence technology. Artificial intelligence is the theory, method, technology, and application system that uses digital computers or machines controlled by digital computers to simulate, extend, and expand human intelligence, perceive the environment, acquire knowledge, and use that knowledge to obtain optimal results.
[0207] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention and are not intended to limit it. Although the present invention has been described in detail with reference to preferred embodiments, those skilled in the art should understand that modifications or equivalent substitutions can be made to the technical solutions of the present invention without departing from the spirit and scope of the technical solutions of the present invention.
Claims
1. A blockchain-based method for secure sharing of remote medical data, characterized in that: include: S1: Obtain remote consultation request, parse the specialty type of the remote consultation, slice the patient's medical record data according to the specialty type, and generate data view slices corresponding to each specialty. S2: Write the mapping relationship between each data view slice and the specialty type and the slice hash value into the blockchain, generate on-chain view cutting rules, and bind slice association keys to each data view slice according to the disease level in the remote consultation request; S3: After verifying that the specialist identity of the doctor initiating the access matches the on-chain view slicing rules, a temporary access certificate limited to the corresponding slice is issued. When a patient's condition deteriorates, the temporary access certificate is dynamically upgraded to an emergency certificate that expands the view scope. S4: Each specialist doctor submits a diagnosis and treatment opinion through the temporary access certificate and the emergency certificate, makes a hash commitment to the diagnosis and treatment opinion and stores it on the blockchain, and for the overdue disclosure of the specialty, the original data view slice is supplemented and cut according to the disclosed opinion, and targeted temporary certificates are issued to the candidate doctors of the same specialty. S5: Perform field-level consistency verification on the disclosed treatment opinions according to the medical record fields of the patient's medical record data, identify conflicting data items between specialties, perform targeted re-cutting of the data view slices of the conflicting specialties based on the conflicting data items, issue a second round of vouchers to trigger a re-consultation, and generate the final treatment plan. S6: Reclaim all the temporary access credentials, emergency credentials, and second-round credentials, destroy the slice-associated key, and package the on-chain view slicing rules, the actual access scope of each doctor, emergency escalation records, and the final treatment plan into the blockchain to generate a consultation traceability record.
2. The blockchain-based remote medical data secure sharing method according to claim 1, characterized in that, The step of writing the mapping relationship between each data view slice and the specialty type, as well as the slice hash value, into the blockchain to generate on-chain view cutting rules includes: Merge the mapping relationship between the data view slices and the specialty types to obtain the specialty entries corresponding to the data view slices; Based on the predetermined order of participating specialties in the remote consultation request, the specialty entries are sorted and their order is fixed to obtain specialty sequence entries; Calculate the content hash value for each data view slice, organize all slice hash values under the same specialty entry into a hash tree, and take its root hash as the slice digest of the specialty entry; All the specialty entries in the specialty sequence, the corresponding slice summary, and the remote consultation request are encapsulated into a write payload and written to the blockchain in one write operation. After consensus confirmation, the on-chain view slicing rules indexed by the remote consultation request are solidified and generated.
3. The blockchain-based remote medical data secure sharing method according to claim 2, characterized in that, The step of binding slice association keys to each data view slice based on the disease level in the remote consultation request includes: Each of the aforementioned data view slices is assigned to its corresponding specialty identity; Based on the severity of the illness in the patient's medical record data, open boundaries are defined for the specialist identity to which each data view slice belongs; The open boundary includes the scope of the unlocking function, and when the disease level is higher than a preset threshold, it is extended to the corresponding slice of the specialist identity. Using the specialist identity and the disease level as attribute parameters, a preset encryption algorithm is used to generate mutually independent slice attribute keys for each of the data view slices; The slice attribute key grants decryption capabilities to the specialist identity that satisfies its attribute parameters; The attribute parameters of the slice attribute key are compared and verified with the on-chain view cutting rules to ensure that the key unlocking range is consistent with the slice mapping relationship in the rules, and then a slice association key that is associated with and consistent with the specialist identity is obtained.
4. The blockchain-based remote medical data secure sharing method according to claim 3, characterized in that, After verifying that the physician's specialist identity initiating the access matches the on-chain view slicing rules, a temporary access credential limiting the corresponding slice is issued, including: The specialist identity of the doctor initiating the access is matched with each specialist entry in the on-chain view slicing rule, and it is confirmed that the on-chain view slicing rule matches the current remote consultation request and hits the corresponding specialist entry to obtain the verification result. Based on the verification results, along the mapping relationship between the corresponding specialty item and the data view slice, the arrangement order of the specialty item in the on-chain view cutting rules is checked, and the slices with matching order are taken as candidate slices. The slice identifier of the candidate slice is compared one by one with the unlocking slice identifier of the slice associated key. The slice with completely identical identifiers is used as the corresponding slice. Based on a preset non-interactive zero-knowledge proof, it is verified that the current doctor's attribute key is consistent with the attribute key corresponding to the defined slice. Based on the consistency status, the defined corresponding slice is compared with the patient's medical record data for homology, and the slice originating from the patient's medical record data is taken as the target slice. After verification at each level, a temporary access pass is issued to the doctor who initiated the access, granting access only to the target slide.
5. The blockchain-based remote medical data secure sharing method according to claim 4, characterized in that, Each specialist doctor submits their medical opinions using the temporary access credential and the emergency credential, performs a hash commitment on the medical opinions, and stores the evidence on the blockchain, including: Each specialist doctor submits their medical opinions using the temporary access pass or the emergency pass, and the receiving side collects the medical opinions pending commitment according to the specialist identity. Each specialist physician selects a random blinding factor to blind the proposed treatment opinions, generating blinded treatment opinions. The blinded diagnosis and treatment opinions are hashed, and a commitment value is generated using a preset discrete logarithm commitment scheme; The commitment value, the hash value of the blinding factor, and the specialist identity are registered on the blockchain with timestamps to generate an on-chain commitment stub that indicates the committed but undisclosed state; The on-chain commitment stubs of each specialty within this consultation request are merged and arranged in the predetermined order of the specialties to generate commitment records.
6. The blockchain-based remote medical data secure sharing method according to claim 5, characterized in that, For specialties that have not been disclosed by the deadline, the original data view slices will be supplemented and segmented based on the disclosed opinions, and targeted temporary certificates will be issued to candidate doctors in the same specialty, including: Detect overdue and undisclosed specialties from the commitment records, and designate the corresponding data view slice as a slice to be supplemented; The disclosed diagnostic and treatment opinions are compiled, and the patient's medical record data is used as the common source benchmark. The slice data segments that have been evaluated by other specialties in the slices to be supplemented are extracted as redundant overlay data segments. The slice to be supplemented is cut to remove redundant overlay data segments and retain the remaining slice data segments to obtain a supplementary view slice. The supplementary view slice is bound to the slice attribute key corresponding to the specialist identity, and its unlocking range is limited to the supplementary view slice; After verifying that the identity of the candidate specialist physician matches the supplementary view slice, a directional temporary certificate is issued, limited to the supplementary view slice.
7. The blockchain-based remote medical data secure sharing method according to claim 6, characterized in that, The process of performing field-level consistency checks on the disclosed diagnostic opinions according to the patient's medical record data, and identifying conflicting data items between specialties, includes: Extract the opinions expressed in the diagnostic and treatment opinions disclosed by each specialty, and according to the identity of the specialty that issued the opinion, and through data view slices limited by credentials, assign the opinions to the medical record fields in the corresponding slices to generate field expression entries; Merge entries that point to the same medical record field but originate from different specialties to obtain a group of fields with the same origin; Within the same source field group, entries are divided into comparable representations based on the recording time of the medical record field; For the comparable statements, the interpretation conclusions from different specialties are determined by mutual exclusion logic, and the interpretation conclusions that cannot be held at the same time are regarded as conflict statements. The conflict statements, along with their medical record fields, specialist identity combinations, and record times, are merged to generate conflict data items.
8. The blockchain-based remote medical data secure sharing method according to claim 7, characterized in that, The process of re-slicing the data view slices of conflict-related specialties based on the conflict data items, issuing a second-round certificate to trigger a re-consultation, and generating a final treatment plan includes: Based on the medical record field pointed to by the conflicting data item and the recording time, the data segment of the medical record field at the corresponding recording time is extracted from the patient's medical record data and used as the focus field data segment; Along the recording time of the focal field data segment, extract the data segments of the other fields with the same recording time and the same field of adjacent recording times, as the source-corroborating data segments; Using the focus field data segment and the co-originating evidence data segment as the cutting boundary, the data view slice of the conflict-related specialty is re-cut in a directional manner to obtain a directional re-cut slice. Narrow the unlocking range of the slice attribute key to the directional recut slice, and issue a second round of credentials to the conflict-related specialist; The conflict-related specialist, based on the second-round credentials, reads the targeted re-cut slides, reissues a second-round diagnostic opinion for the medical record fields, and discloses it. The second round of treatment opinions and the first round of treatment opinions from each specialty are merged according to medical record fields, conflicting statements are replaced, and the final treatment plan is generated.
9. The blockchain-based remote medical data secure sharing method according to claim 8, characterized in that, The process of packaging and writing the on-chain view slicing rules, the actual access scope of each doctor, emergency escalation records, and the final treatment plan into the blockchain to generate a consultation traceability record includes: Using the remote consultation request as an index, the actual access range of each doctor and the emergency escalation record are merged according to the time of occurrence to obtain the access trajectory; Based on the on-chain view cutting rules and the emergency upgrade records, the accessibility of each doctor's access trajectory is verified one by one to obtain compliant access records. The compliant access record, the on-chain view slicing rules, and the final treatment plan are written to the blockchain in one overall write operation, and solidified to generate a consultation traceability record after consensus confirmation.
10. A blockchain-based remote medical data security sharing system, characterized in that, The system includes: Medical record view cutting module: Obtain remote consultation request, parse the specialty type of the remote consultation, cut the patient medical record data according to the specialty type, and generate data view slices corresponding to each specialty; On-chain rule generation module: Writes the mapping relationship between each data view slice and the specialty type and the slice hash value into the blockchain, generates on-chain view cutting rules, and binds slice association keys to each data view slice according to the disease level in the remote consultation request; Dynamic credential issuance module: After verifying that the specialist identity of the doctor initiating the access matches the on-chain view slicing rules, a temporary access credential limited to the corresponding slice is issued. When a patient's condition deteriorates, the temporary access credential is dynamically upgraded to an emergency credential that extends the view scope. Opinion storage and supplementary cutting module: Each specialist doctor submits diagnosis and treatment opinions through the temporary access certificate and the emergency certificate, performs hash commitment on the diagnosis and treatment opinions and stores them on the blockchain, and for specialties that have not been disclosed overdue, the original data view slice is supplemented and cut according to the disclosed opinions, and targeted temporary certificates are issued to the alternative doctors of the same specialty. Conflict Validation and Recutting Module: Performs field-level consistency validation on the revealed treatment opinions according to the medical record fields of the patient's medical record data, identifies conflicting data items between specialties, performs targeted recutting of the data view slices of the conflicting specialties based on the conflicting data items, issues a second round of vouchers to trigger a re-consultation, and generates the final treatment plan; Source tracing record generation module: reclaims all the temporary access credentials, the emergency credentials, and the second round credentials, destroys the slice association key, packages the on-chain view cutting rules, the actual access scope of each doctor, the emergency upgrade record, and the final treatment plan into the blockchain, and generates a consultation traceability record.
