A blockchain-based image data storage and sharing method

By constructing a method for image data storage and sharing using blockchain technology, the issues of credibility and security in medical image storage systems have been resolved. This has enabled credible storage, tamper-proof protection, and secure sharing of image data, thereby improving data security and traceability.

CN120832694BActive Publication Date: 2026-01-09FUJIAN ZHIKANGYUN MEDICAL TECH CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202511315880.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-09-16
Publication Date
2026-01-09
Estimated Expiration
2045-09-16

AI Technical Summary

Technical Problem

Existing medical image storage and transmission systems suffer from low reliability and poor security, especially in cross-institutional collaboration and information sharing, where data tampering is highly risky and difficult to trace, access control is inadequate, and privacy is insufficient.

Method used

A blockchain-based method for storing and sharing image data is adopted. By constructing a consortium blockchain architecture and combining hash encryption, timestamps, smart contracts, and access control mechanisms, the method achieves trusted storage, tamper-proof, traceability, and secure sharing of image data.

Benefits of technology

It improves the credibility and security of image data, enables timely detection and prevention of data tampering, rationally allocates inspection resources, ensures data privacy and reliability, and enhances data security and traceability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120832694B_ABST
    Figure CN120832694B_ABST
Patent Text Reader

Abstract

The application discloses a kind of based on blockchain's image data storage and sharing method, applied to image data management system, comprising: hospital end generates the hash value of medical image and uniform resource locator and is uploaded to blockchain service background, and blockchain service background is used to manage the key corresponding to medical image and is signed to medical image chain.The patrol end is inquired after data chain, obtains uniform resource locator, and applies temporary access token to hospital end, obtains image data and calculates verification hash according to this token, and compares with on-chain hash to verify data integrity.The risk score of the image generated by the patrol end is based on the risk score to formulate differentiated inspection cycle, and the hash value of this inspection record is signed to chain, to form a complete audit closed loop.The present application improves the data credibility and flow efficiency through blockchain, and at the same time, through the inspection, it can timely find out the case that the original data is tampered with, and improve the data security.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of medical data processing technology, and in particular to a blockchain-based method for storing and sharing image data. Background Technology

[0002] With the rapid development of medical informatization, digital medical images such as computed tomography (CT) and magnetic resonance imaging (MRI) have become the core basis for modern clinical diagnosis. The authenticity, integrity, and immutability of these image data during their generation, storage, transmission, and retrieval are crucial.

[0003] Currently, mainstream medical image storage and transmission systems (PACS) generally adopt a centralized storage architecture. This architecture has inherent flaws: First, internal personnel (such as administrators) have single-point modification permissions, posing a risk of malicious data tampering or accidental manipulation, with difficulty in subsequent traceability and auditing. Second, in scenarios involving cross-institutional collaboration, scientific research, or medical supervision, third parties (such as medical insurance bureaus and third-party testing centers) struggle to efficiently and reliably verify the authenticity of acquired image data, often relying on the source institution's credibility endorsement, a cumbersome process lacking technical safeguards. Finally, when sharing information among multiple users, information access should be enhanced, medical data privacy should be prioritized, information ownership is insufficient, report signatures lack authority, post-event accountability and evidence collection are difficult, and regulatory authorities cannot conduct credible supervision.

[0004] In summary, mainstream medical image storage technologies suffer from low reliability and poor security. Summary of the Invention

[0005] In view of the aforementioned deficiencies of the prior art, the technical problem to be solved by the present invention is to provide a blockchain-based method for storing and sharing image data, which aims to improve the credibility and security of medical image data and prevent medical image data from being tampered with.

[0006] To achieve the above objectives, this invention discloses a blockchain-based method for image data storage and sharing, applied to an image data management system. The image data management system includes at least a hospital terminal, a blockchain service backend, and an inspection terminal. The method includes:

[0007] Step S1: The hospital obtains and stores the first medical image generated by the first medical device, and generates a Uniform Resource Locator and a first hash value corresponding to the first medical image.

[0008] Step S2: The hospital calls the image uplink interface to upload the Uniform Resource Locator, the first hash value, and the image manager to the blockchain service backend, so that the blockchain service backend can call the blockchain data interface to upload them to the blockchain.

[0009] Step S3, the inspection terminal responds to the first medical image corresponding data complete uplink, based on the uniform resource locator disclosed in the blockchain, sends a first query request to the hospital terminal, so that the hospital terminal generates a corresponding first temporary access token and sends it to the inspection terminal;

[0010] Step S4, the inspection terminal queries the first medical image according to the first temporary access token, generates the verification hash value of the first medical image, and matches the verification hash value with the first hash value to verify whether the first medical image is tampered; the inspection terminal obtains the risk score corresponding to the first medical image according to the first medical image, and formulates the inspection cycle of the first medical image based on the risk score; in response to the completion of the current inspection, the inspection terminal generates an inspection hash value and uploads the inspection hash value and the inspection person in charge to the blockchain service background, so that the blockchain service background calls the blockchain data interface to perform uplink.

[0011] Optionally, the step S1 comprises:

[0012] The hospital terminal obtains the first medical image generated by the first medical equipment, stores the first medical image in the local database, and generates a corresponding uniform resource locator; according to the metadata and pixel data corresponding to the first medical image, a first hash value corresponding to the first medical image is generated; wherein the metadata at least includes patient ID, device serial number, scanning parameter.

[0013] Optionally, the blockchain service background at least stores a first account and a first key pair corresponding to the image person in charge and a second account and a second key pair corresponding to the inspection person in charge, or the blockchain service background generates the first account and the first key pair corresponding to the image person in charge, and generates the second account and the second key pair corresponding to the inspection person in charge; wherein the first key pair and the second key pair are respectively used for corresponding signature of uplink data.

[0014] Optionally, in the step S4, the inspection terminal obtains the risk score corresponding to the first medical image based on the risk score, and formulates the inspection cycle of the first medical image, comprising:

[0015] The inspection terminal obtains the data value factor according to the data content corresponding to the first medical image;

[0016] The inspection terminal obtains the behavior anomaly factor according to the access frequency in the preset time period corresponding to the first medical image; wherein the access times in the access frequency do not include the access of the inspection terminal;

[0017] The inspection terminal obtains a time attenuation factor according to the generation time of the first medical image;

[0018] The inspection terminal obtains a risk score of the first medical image according to the data value factor, the behavior anomaly factor, and the time attenuation factor, and formulates an inspection cycle of the first medical image based on the risk score; the greater the risk score, the shorter the inspection cycle.

[0019] Optionally, the inspection terminal obtains a risk score of the first medical image according to the data value factor, the behavior anomaly factor, and the time attenuation factor, and formulates an inspection cycle of the first medical image based on the risk score, including:

[0020] The inspection terminal obtains a weight corresponding to each factor according to the influence degree of the data value factor, the behavior anomaly factor, and the time attenuation factor on the first medical image;

[0021] The inspection terminal calculates the risk score of the first medical image according to the numerical value of each factor and the corresponding weight;

[0022] The inspection terminal formulates an inspection cycle of the first medical image based on the risk score; the greater the risk score, the shorter the inspection cycle.

[0023] Optionally, the image data management system further comprises a patient user terminal, and the method further comprises:

[0024] The hospital terminal associates the identity of the patient corresponding to the first medical image with the first medical image;

[0025] The patient user terminal sends the identity to the hospital terminal; the patient user terminal is pre-logged in by the patient corresponding to the first medical image;

[0026] The hospital terminal generates a patient access token according to the identity; the hospital terminal generates a secure preview link according to the patient access token and the uniform resource locator and sends it to the patient user terminal; the secure preview link has timeliness;

[0027] In response to the completion of the query by the patient user terminal, the patient user terminal generates a query hash value corresponding to the patient query record; the patient user terminal calls a query interface to upload the query hash value and the patient to the blockchain service background;

[0028] The blockchain service background queries the third account and the third key pair corresponding to the patient according to the patient; the blockchain service background signs the query hash value and the patient with the third key pair, and calls a blockchain data interface for on-chain.

[0029] Optionally, the method further comprises:

[0030] The inspection terminal sends an indirect query request to the patient terminal; wherein the indirect query request at least includes the inspection terminal information;

[0031] The patient terminal authenticates the inspection terminal; in response to successful authentication, the patient terminal generates a second temporary access token corresponding to the patient terminal in which the patient has logged in; and the patient terminal sends the second temporary access token and the identity to the inspection terminal;

[0032] The inspection terminal enters the patient terminal according to the second temporary access token, and accesses the first medical image of the hospital terminal through the identity; the inspection terminal compares the first medical image obtained by direct access and the first medical image obtained by indirect access, and if they are the same, the first medical image is not tampered with; if they are different, the first medical image is tampered with.

[0033] Optionally, the hospital terminal generates a corresponding uniform resource locator in the step S1, which comprises:

[0034] The hospital terminal generates the uniform resource locator according to the first hash value; wherein the path name corresponding to the uniform resource locator includes the first hash value, and the path name of the uniform resource locator matches the first medical image, avoiding the first medical image from being tampered with.

[0035] Optionally, after the step S2 and the step S4, the method further comprises:

[0036] The blockchain service background listens to on-chain events, and in response to successful on-chain, updates the corresponding local database; and in response to failed on-chain, re-performs on-chain operation.

[0037] The beneficial effects of the present application are: 1. Based on the blockchain technology, the present application realizes the trusted storage, tamper-proofing, traceability, secure sharing and permission management of image data by constructing a consortium chain architecture, combining hash encryption, timestamp, smart contract and access control mechanism. 2. The present application can timely find out whether the medical image stored in the local database is tampered with by increasing the inspection mechanism (inspection end) to inspect the medical image stored in the local database and compare the corresponding hash value stored in the blockchain, and actively detects the tampering of the medical image, thereby improving the security of the medical image data. 3. The inspection mechanism of the present application obtains the risk score of the medical image through the data value factor, the behavior abnormality factor and the time decay factor, and formulates the inspection cycle of the medical image based on the risk score, which can effectively ensure that the medical image with high data value and high tampering risk gets more inspection resources, thereby achieving reasonable allocation of inspection resources, reducing missed inspection and saving inspection resources. 4. The inspection end of the present application can also request temporary access permission from the patient user end to indirectly access the medical image from the patient user end; in combination with directly accessing the medical image from the hospital end, the inspection results of the two are compared to determine whether the medical image is tampered with. In this way, the behavior of the hospital end tampering with the medical image to deceive the patient end can be effectively avoided, and the situation of the medical image before tampering can be provided, thereby increasing the reliability of the inspection and improving the data security. 5. The path name corresponding to the uniform resource locator includes the first hash value, so that the first medical image stored in the local database can be verified twice through the uniform resource locator, so as to further ensure that the first medical image is not tampered with.

[0038] In summary, the present application improves the data credibility and flow efficiency through the blockchain, and at the same time, through inspection and in combination with other technical means, it can timely find out the situation that the original data is tampered with, thereby improving the data security. BRIEF DESCRIPTION OF DRAWINGS

[0039] Figure 1 is a flow diagram of an image data storage and sharing method based on a blockchain provided by an embodiment of the present application;

[0040] Figure 2 is a signaling diagram of an image data management system provided by an embodiment of the present application;

[0041] Figure 3 is a whole architecture diagram of medical image on-chain management provided by an embodiment of the present application;

[0042] Figure 4 is an interface diagram of a hospital end provided by an embodiment of the present application;

[0043] Figure 5is an interface diagram of a blockchain service background provided by an embodiment of the present application;

[0044] Figure 6 is an interface diagram of a public end viewing blockchain verification provided by an embodiment of the present application;

[0045] Figure 7 is an interface diagram of a blockchain specific content provided by an embodiment of the present application. DETAILED DESCRIPTION

[0046] The present application discloses a kind of based on blockchain's image data storage and sharing method, and those skilled in the art can learn from the content of this paper, and appropriately improve technical details to realize.It is particularly pointed out that all similar substitutions and changes are obvious to those skilled in the art, and they are regarded as being included in the present application.The method and application of the present application have been described by preferred embodiments, and relevant personnel can obviously modify or appropriately change and combine the method and application described in this paper without departing from the content, spirit and scope of the present application, to realize and apply the present application technology.

[0047] The applicant found that through blockchain storage technology can effectively improve the credibility of medical image data, when medical image data is used, it needs to be verified in combination with its corresponding hash value, to ensure the credibility of medical image data.However, blockchain technology only verifies medical image data when corresponding hospital image data is used, which leads to some medical image original data stored in local database is difficult to find even if it is tampered because it has not been used for a long time, thereby reducing data security.

[0048] Therefore, the embodiment of the present application provides a kind of based on blockchain's image data storage and sharing method, applied to image data management system, image data management system at least includes hospital end, blockchain service background and inspection end;The method comprises:

[0049] Step S1, hospital end obtains and stores the first medical image generated by the first medical equipment, and generates the uniform resource locator corresponding to the first medical image and the first hash value.

[0050] In the specific embodiment, step S1 includes:

[0051] The hospital end obtains the first medical image generated by the first medical equipment, stores the first medical image in the local database, and generates the corresponding uniform resource locator;According to the metadata and pixel data corresponding to the first medical image, the first hash value corresponding to the first medical image is generated;Wherein, metadata at least includes patient ID, device serial number, scanning parameter.

[0052] It should be noted that the URL (Uniform Resource Locator) is a string used to identify and locate the location of resources on the Internet, and its structure is composed of multiple parts separated by specific symbols. Through the URL, users and programs can accurately locate and interact with various resources on the Internet, and it is one of the core components of the Web architecture. The hash value corresponding to each different medical image is unique, so there is a corresponding relationship between the hash value and the medical image.

[0053] In this specific embodiment, the hospital end generates a corresponding uniform resource locator in step S1, which includes:

[0054] The hospital end generates a uniform resource locator according to the first hash value; wherein the path name corresponding to the uniform resource locator includes the first hash value, and the path name of the uniform resource locator matches the first medical image, avoiding the first medical image being tampered with.

[0055] It should be noted that integrating the hash value into the path name corresponding to the uniform resource locator can double-check whether the medical image stored on the blockchain is tampered with in the subsequent process.

[0056] Step S2, the hospital end calls the image on-link interface to upload the uniform resource locator, the first hash value and the image responsible person to the blockchain service background, so that the blockchain service background calls the blockchain data interface to chain it.

[0057] In this specific embodiment, it should be noted that on-chain (Blockchain On-chain) refers to the process of writing data or transaction records into the blockchain network through a specific technical process. Its core is to give data the characteristics of non-tamperability, traceability and decentralization through the distributed ledger technology of the blockchain, to ensure the authenticity and security of the data. In the embodiment of the application, the uniform resource locator, the first hash value and the image responsible person are written into the blockchain network.

[0058] In this specific embodiment, the blockchain service background queries or generates the first account and first key pair corresponding to the image responsible person according to the image responsible person, which includes:

[0059] The blockchain service background queries the service database according to the image responsible person, if the service database has the first account and the first key pair corresponding to the image responsible person, the first account and the first key pair are directly obtained; if the service database does not have the first account and the first key pair corresponding to the image responsible person, a new first account and first key pair are generated.

[0060] It should be noted that some image responsible persons are new users of the hospital end, so a new account and key pair need to be generated to ensure normal use. The new account and key pair are sent to the image responsible person.

[0061] In this specific embodiment, after step S2, the method further comprises:

[0062] The blockchain service background listens to the on-chain event, and in response to successful on-chain, updates the corresponding local database; in response to on-chain failure, re-performs the on-chain operation.

[0063] It should be noted that this step can handle on-chain failure in a timely manner, avoiding mismatches between blockchain storage and local database storage.

[0064] Step S3, in response to the completion of the on-chain of the first medical image corresponding data by the inspection end, a first query request is sent to the hospital end based on the uniform resource locator disclosed in the blockchain, so that the hospital end generates a corresponding first temporary access token and sends it to the inspection end.

[0065] The first query request at least includes inspection end information.

[0066] It should be noted that by setting the inspection end to actively detect tampering of medical image data, tampering can be detected in a timely manner and problems can be solved as soon as possible, which can effectively improve data security.

[0067] In this specific embodiment, the hospital end needs to verify the inspection end information in the first query request, and send the first temporary access token after verification.

[0068] It should be noted that all parties in the image data management system trust each other. Therefore, when the identity verification is passed, the temporary access token can be obtained.

[0069] Step S4, the inspection end queries the first medical image according to the first temporary access token, generates a verification hash value of the first medical image, and matches the verification hash value with the first hash value to verify whether the first medical image is tampered with; the inspection end obtains the risk score corresponding to the first medical image according to the first medical image, and formulates the inspection cycle of the first medical image based on the risk score; in response to the completion of the current inspection, the inspection end generates an inspection hash value, and uploads the inspection hash value and the inspection responsible person to the blockchain service background, so that the blockchain service background calls the blockchain data interface to perform on-chain operation.

[0070] In the specific embodiment, the blockchain service background at least stores a first account and a first key pair corresponding to the image person in charge and a second account and a second key pair corresponding to the inspection person in charge, or the blockchain service background generates the corresponding first account and the first key pair according to the image person in charge, and generates the corresponding second account and the second key pair according to the inspection person in charge; wherein the first key pair and the second key pair are respectively used for corresponding signature of the on-chain data.

[0071] In the specific embodiment, the inspection terminal obtains the risk score corresponding to the first medical image according to the first medical image in step S4, and formulates the inspection cycle of the first medical image based on the risk score, including:

[0072] The inspection terminal obtains the data value factor according to the data content corresponding to the first medical image;

[0073] The inspection terminal obtains the behavior anomaly factor according to the access frequency in the preset time period corresponding to the first medical image; wherein the access times in the access frequency do not include the access of the inspection terminal;

[0074] The inspection terminal obtains the time decay factor according to the generation time of the first medical image;

[0075] The inspection terminal obtains the risk score of the first medical image according to the data value factor, the behavior anomaly factor and the time decay factor, and formulates the inspection cycle of the first medical image based on the risk score; wherein the greater the risk score, the shorter the inspection cycle.

[0076] Further, the inspection terminal obtains the risk score of the first medical image according to the data value factor, the behavior anomaly factor and the time decay factor, and formulates the inspection cycle of the first medical image based on the risk score, including:

[0077] The inspection terminal obtains the weight corresponding to each factor according to the influence degree of the data value factor, the behavior anomaly factor and the time decay factor on the first medical image;

[0078] The inspection terminal calculates the risk score of the first medical image according to the numerical value corresponding to each factor and the corresponding weight;

[0079] The inspection terminal formulates the inspection cycle of the first medical image based on the risk score; wherein the greater the risk score, the shorter the inspection cycle.

[0080] It should be noted that the present application not only detects whether the image data is tampered with by inspection, but also formulates a corresponding inspection cycle according to the different values of the image data, so as to achieve the same inspection effect under the premise of ensuring that the inspection resources are not wasted.

[0081] It should be noted that the inspection data can also be tampered with and therefore needs to be chained to ensure credibility and traceability.

[0082] In this specific embodiment, after step S4, the method further comprises:

[0083] The blockchain service background listens to the chaining event, and in response to successful chaining, updates the corresponding local database; in response to failed chaining, re-performs the chaining operation.

[0084] In this specific embodiment, the image data management system further comprises a patient user end, and the method further comprises:

[0085] The hospital end associates the identity of the patient corresponding to the first medical image with the first medical image;

[0086] The patient user end sends the identity to the hospital end; wherein the patient user end is pre-logged in by the patient corresponding to the first medical image;

[0087] The hospital end generates a patient access token according to the identity; the hospital end generates a secure preview link according to the patient access token and a uniform resource locator and sends it to the patient user end; wherein the secure preview link has a time limit;

[0088] In response to the patient user end query completion, the patient user end generates a query hash value corresponding to the patient query record; the patient user end calls the query chaining interface to upload the query hash value and the patient to the blockchain service background;

[0089] The blockchain service background queries the third account and the third key pair corresponding to the patient; the blockchain service background signs the query hash value and the patient using the third key pair, and calls the blockchain data interface for chaining.

[0090] It should be noted that the patient user end is used to provide the patient with the query of his own image. The patient user end also needs to be authorized by the hospital end to ensure the security of the image data.

[0091] Further, the method further comprises:

[0092] The inspection end sends an indirect query request to the patient user end; wherein the indirect query request at least includes inspection end information;

[0093] The patient user end verifies the identity of the inspection end; in response to the identity verification being passed, the patient user end generates a second temporary access token corresponding to the patient user end where the patient has logged in; the patient user end sends the second temporary access token and the identity to the inspection end;

[0094] The inspection terminal enters the patient user terminal according to the second temporary access token, and accesses the first medical image of the hospital terminal through the identity; the inspection terminal compares the first medical image obtained by direct access and the first medical image obtained by indirect access, if the two are the same, the first medical image is not tampered with; if the two are different, the first medical image is tampered with.

[0095] It should be noted that the medical image is obtained by combining direct access and indirect access (through the patient user terminal), which can avoid the behavior of the hospital terminal tampering with the medical image to deceive the inspection terminal and deceive the patient, provide the medical image before tampering, thereby increasing the reliability of the inspection and improving the data security.

[0096] In a specific application, the signaling diagram of the image data management system parties is as shown in Figure 2 .

[0097] In a specific application, the overall architecture diagram of the medical image chain management is as shown in Figure 3 . Figure 3 The content includes:

[0098] I. Stakeholders

[0099] Doctors: use the system for diagnosis, review images.

[0100] Patients: enjoy services, view their image reports.

[0101] Medical institutions: including provincial and municipal, county-level medical image centers and primary medical institutions.

[0102] Government: as a regulatory party, ensure data compliance and security.

[0103] II. Application Platforms

[0104] The system supports multi-terminal access:

[0105] PC, mobile APP, applet, image browser, remote consultation, two-dimensional code text report, data visualization board and blockchain browser (for querying on-chain data).

[0106] III. Blockchain Service Functions

[0107] The following core services are provided:

[0108] Blockchain information: basic chain information query.

[0109] Hash data query: verify data integrity through hash value.

[0110] Plain text verification: Verify the authenticity of raw data.

[0111] Private key decryption: Ensure data privacy and secure access.

[0112] Regulatory agencies: Including government, hospital and platform's own regulatory functions.

[0113] Four, Blockchain Service Platform

[0114] Provide technical components and services:

[0115] SDK component packaging: Facilitate development and integration.

[0116] Image on-chain: Store image data hash value into blockchain.

[0117] Trust nodes: Ensure network consensus and credibility.

[0118] Electronic signature: Identity authentication and data signature.

[0119] Real-time distribution: May be used for medical expense settlement or incentive distribution.

[0120] Business data online footprint: All operations are stored on-chain.

[0121] Storage technology, consensus algorithm, account service, traceability: Core features of blockchain.

[0122] Five, Infrastructure

[0123] Blockchain bottom layer: Blockchain service network based on BSN (Blockchain-based Service Network).

[0124] Hash encryption, distributed account, smart contract, consensus algorithm, encryption technology: Underlying technical support.

[0125] Environment setup: Deployment and operation support.

[0126] Data upload: Support full coverage online, safe and reliable and traceable.

[0127] Six, Image Raw Data Collection and Processing

[0128] Image types: CT, DR, MR, etc.

[0129] Data flow: Blockchain security server, front-end cluster server, image processing server, public cloud / private cloud, business database cluster.

[0130] Service agencies: Covering provincial and municipal medical imaging centers and primary medical institutions.

[0131] In a specific application, the image data storage and sharing method implementation logic includes:

[0132] 1. Create a cloud image chain service and publish, the hospital end interface is as shown in Figure 4 .

[0133] 2. Image cloud platform-blockchain browser (blockchain service background) confirmation and chaining, the blockchain service background interface is as shown in Figure 5 .

[0134] 3. Public end views blockchain verification, as shown in Figure 6 and Figure 7 .

[0135] The embodiment of the application realizes the trusted storage, tamper-proofing, traceability, secure sharing and permission management of image data by constructing a consortium chain architecture based on blockchain technology, combining hash encryption, timestamp, smart contract and access control mechanism.

[0136] The embodiment of the application can timely find whether the medical image stored in the local database is tampered with by increasing the inspection mechanism (inspection end) to inspect the medical image stored in the local database and compare the corresponding hash value stored in the blockchain, and actively detects the tampering of the medical image, thereby improving the security of the medical image data.

[0137] The inspection mechanism of the embodiment of the application obtains the risk score of the medical image through the data value factor, the behavior anomaly factor and the time decay factor, and formulates the inspection cycle of the medical image based on the risk score, which can effectively ensure that the medical image with high data value and high tampering risk gets more inspection resources, thereby achieving reasonable allocation of inspection resources, reducing missed detection and saving inspection resources.

[0138] The inspection end of the embodiment of the application can also request temporary access permission from the patient user end to indirectly access the medical image from the patient user end; in combination with directly accessing the medical image from the hospital end, the inspection results of the two are compared to determine whether the medical image is tampered with. This can effectively avoid the behavior of the hospital end tampering with the medical image to deceive the patient and not be found by the inspection end, and provide the medical image before tampering, thereby increasing the reliability of the inspection and improving the data security.

[0139] The path name corresponding to the uniform resource locator of the embodiment of the application includes the first hash value, so that the first medical image stored in the local database can be double-verified through the uniform resource locator, to further ensure that the first medical image is not tampered with.

[0140] To sum up, the embodiment of the present application improves data credibility and flow efficiency through the blockchain, and at the same time, through inspection and in combination with other technical means, the original data tampering situation can be found in time, and the data security is improved.

[0141] It should be noted that, in this document, relational terms such as first and second and the like can be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises", "comprising", or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but can include other elements not expressly listed or inherent to such process, method, article, or apparatus. An element proceeded by "comprises a... " does not, without more constraints, exclude the existence of additional identical elements in the process, method, article, or apparatus that comprises the element.

[0142] Each of the embodiments in the present specification is described in a relevant manner, and the same or similar parts between the embodiments can be referred to each other. Each embodiment focuses on the difference from other embodiments. In particular, for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the part of the method embodiment.

[0143] The above only describes the preferred embodiments of the present application and is not intended to limit the protection scope of the present application. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included in the protection scope of the present application.

Claims

1.A blockchain-based image data storage and sharing method, characterized in that, The application is applied to an image data management system, the image data management system at least includes a hospital end, a blockchain service background and an inspection end; the method comprises: Step S1, the hospital end obtains and stores the first medical image generated by the first medical device, and generates a uniform resource locator corresponding to the first medical image and a first hash value; Step S2, the hospital end calls an image upload interface to upload the uniform resource locator, the first hash value and an image responsible person to the blockchain service background, so that the blockchain service background performs chain coding on the calling blockchain data interface; Step S3, the inspection end responds to the completion of the first medical image corresponding data chain coding, based on the uniform resource locator disclosed in the blockchain, sends a first query request to the hospital end, so that the hospital end generates a corresponding first temporary access token and sends it to the inspection end; Step S4, the inspection end queries the first medical image according to the first temporary access token, generates a verification hash value of the first medical image, and matches the verification hash value with the first hash value to verify whether the first medical image is tampered; the inspection end obtains the risk score corresponding to the first medical image according to the first medical image, and formulates the inspection cycle of the first medical image based on the risk score; in response to the completion of the current inspection, the inspection end generates an inspection hash value, and uploads the inspection hash value and an inspection responsible person to the blockchain service background, so that the blockchain service background performs chain coding on the calling blockchain data interface; Wherein, the inspection end obtains the risk score corresponding to the first medical image according to the first medical image, and formulates the inspection cycle of the first medical image based on the risk score, comprising: The inspection end obtains a data value factor according to the data content corresponding to the first medical image; The inspection end obtains a behavior anomaly factor according to the access frequency in the preset time period corresponding to the first medical image; wherein, the access times in the access frequency do not include the access of the inspection end; The inspection end obtains a time attenuation factor according to the generation time of the first medical image; The inspection end obtains the weight corresponding to each factor according to the influence degree of the data value factor, the behavior anomaly factor and the time attenuation factor on the first medical image; the inspection end calculates the risk score of the first medical image according to the numerical value corresponding to each factor and the corresponding weight; the inspection end formulates the inspection cycle of the first medical image based on the risk score; wherein, the greater the risk score is, the shorter the inspection cycle is. 2.The blockchain-based image data archiving and sharing method of claim 1, wherein, The step S1 comprises: The hospital end obtains the first medical image generated by the first medical device, stores the first medical image in the local database, and generates a corresponding uniform resource locator; according to the metadata and pixel data corresponding to the first medical image, a first hash value corresponding to the first medical image is generated; wherein, the metadata at least includes patient ID, device serial number and scanning parameter. 3.The blockchain-based image data archiving and sharing method of claim 1, wherein, The blockchain service background at least stores a first account and a first key pair corresponding to the image person in charge and a second account and a second key pair corresponding to the inspection person in charge, or the blockchain service background generates the first account and the first key pair corresponding to the image person in charge according to the image person in charge, and generates the second account and the second key pair corresponding to the inspection person in charge according to the inspection person in charge; wherein the first key pair and the second key pair are respectively used for corresponding signature of the on-chain data. 4.The blockchain-based image data archiving and sharing method of claim 1, wherein, The image data management system further comprises a patient user end, and the method further comprises: The hospital end associates the identity of the patient corresponding to the first medical image with the first medical image; The patient user end sends the identity to the hospital end; wherein the patient user end is pre-logged in by the patient corresponding to the first medical image; The hospital end generates a patient access token according to the identity; the hospital end generates a secure preview link according to the patient access token and the uniform resource locator and sends it to the patient user end; wherein the secure preview link has timeliness; In response to the patient user end query completion, the patient user end generates a query hash value corresponding to the patient query record; the patient user end calls the query on-chain interface to upload the query hash value and the patient to the blockchain service background; The blockchain service background generates a third account and a third key pair corresponding to the patient according to the patient query; the blockchain service background signs the query hash value and the patient using the third key pair, and calls the blockchain data interface for on-chain. 5.The blockchain-based image data archiving and sharing method of claim 4, wherein, The method further comprises: The inspection end sends an indirect query request to the patient user end; wherein the indirect query request at least includes the inspection end information; The patient user end verifies the identity of the inspection end; in response to the identity verification, the patient user end generates a second temporary access token corresponding to the patient user end in which the patient has logged in; the patient user end sends the second temporary access token and the identity to the inspection end; The inspection end enters the patient user end according to the second temporary access token, and accesses the first medical image of the hospital end through the identity; the inspection end compares the first medical image obtained by direct access and the first medical image obtained by indirect access, if they are the same, the first medical image is not tampered with; if they are different, the first medical image is tampered with. 6.The blockchain-based image data archiving and sharing method of claim 1, wherein, The hospital end generates a corresponding uniform resource locator in step S1, which comprises: The hospital end generates the uniform resource locator according to the first hash value; wherein the path name corresponding to the uniform resource locator includes the first hash value, and the path name of the uniform resource locator matches the first medical image, avoiding the first medical image being tampered with. 7.The blockchain-based image data archiving and sharing method of claim 1, wherein, After the step S2 and the step S4, the method further comprises: The blockchain service background listens to the on-chain event, and in response to successful on-chain, the corresponding local database is updated; in response to on-chain failure, the on-chain operation is performed again.

Citation Information

Patent Citations

  • Medical data encryption method and system and storage medium

    CN113707256A

  • An intelligent database inspection method and system based on risk assessment algorithm

    CN119782113A

  • Data credibility processing method and system based on block chain

    CN119885292A