Disclosure of Invention
The invention provides a case storage method, device and equipment based on a blockchain, which are used for solving the defect that the case inquiry process is complicated due to single case storage mode in the prior art.
The invention provides a case storage method based on a blockchain, which comprises the following steps:
receiving case storage information of a user, wherein the case storage information comprises an identity mark and current case data;
inquiring whether historical case data matched with the identity is stored in a blockchain system;
if the historical case data matched with the identity identification is stored, fusing the current case data with the historical case data to obtain complete case data;
and identifying all disease types in the complete case data, and respectively storing case data corresponding to different disease types on different nodes of the blockchain system.
According to the case storage method based on the blockchain, the present case data and the historical case data are fused to obtain complete case data, and the case storage method comprises the following steps:
determining the diagnosis time of the historical case data and the current case data respectively;
sequencing the historical case data and the current case data according to the sequence of the treatment time;
and fusing the sequenced historical case data and the current case data to obtain complete case data.
According to the case storage method based on the blockchain, before the ordered historical case data and the current case data are fused, the method further comprises the following steps:
carrying out format standardization processing on the current case data and the historical case data;
encrypting the current case data and the historical case data after the format standardization processing.
According to the case storage method based on the blockchain, the disease types comprise: neurological diseases, digestive diseases, urinary diseases, endocrine diseases, respiratory diseases and circulatory diseases;
the storing the case data corresponding to different disease types on different nodes of the blockchain system respectively includes:
searching the storage node of the nervous system disease, the storage node of the digestive system disease, the storage node of the urinary system disease, the storage node of the endocrine system disease, the storage node of the respiratory system disease and the storage node of the circulatory system disease in the blockchain system;
the method includes storing the nervous system disease in a storage node of the nervous system disease, storing the digestive system disease in a storage node of the digestive system disease, storing the urinary system disease in a storage node of the urinary system disease, storing the endocrine system disease in a storage node of the endocrine system disease, storing the respiratory system disease in a storage node of the respiratory system disease, and storing the circulatory system disease in a storage node of the circulatory system disease.
The case storage method based on the blockchain provided by the invention further comprises the following steps:
determining a request node of the case storage information;
and if the current case data is successfully stored in the blockchain system, issuing incentive benefits for the request node.
According to the case storage method based on the blockchain, after the case data corresponding to different disease types are stored on different nodes of the blockchain system, the case storage method further comprises the following steps:
and distributing a key to the user, wherein the key is used for inquiring the current case data stored by the user on the blockchain.
According to the case storage method based on the blockchain, after inquiring whether the historical case data matched with the identity identifier is stored in the blockchain system, the case storage method based on the blockchain further comprises the following steps:
and if the blockchain system does not store the historical case data matched with the identity identification, taking the current case data as the complete case data.
According to the case storage method based on the blockchain, the identity mark comprises personal identity information and associated identity information, and the associated identity information and the personal identity information are related.
The invention also provides a case storage device based on the blockchain, which comprises:
the receiving module is used for receiving case storage information of a user, wherein the case storage information comprises an identity mark and current case data;
the inquiring module is used for inquiring whether historical case data matched with the identity identification is stored in the blockchain system;
the fusion module is used for fusing the current case data with the history case data if the history case data matched with the identity identification is stored, so as to obtain complete case data;
and the storage module is used for identifying all disease types in the complete case data and respectively storing case data corresponding to different disease types on different nodes of the blockchain system.
The invention also provides an electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing a blockchain-based case storage method as described in any of the above when executing the program.
The present invention also provides a non-transitory computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements a blockchain-based case storage method as described in any of the above.
The invention provides a case storage method, device and equipment based on a blockchain, wherein the method comprises the steps of receiving case storage information of a user, wherein the case storage information comprises an identity mark and current case data; inquiring whether historical case data matched with the identity is stored in a blockchain system; if the historical case data matched with the identity mark is stored, fusing the current case data with the historical case data to obtain complete case data; by adopting the method, if the historical case data is stored in the blockchain system, the current case data and the historical case data are fused to obtain one complete case data, so that when the case is queried again, all the case data of a patient can be known only by one case, and the case data of different disease types on different nodes can be acquired independently, thereby effectively improving the case query efficiency.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the present invention more apparent, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings, and it is apparent that the described embodiments are some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
Fig. 1 is a flowchart of a case storing method based on a blockchain according to an embodiment of the present invention.
As shown in fig. 1, the case storage method based on blockchain provided by the embodiment of the invention mainly includes the following steps:
101. and receiving case storage information of the user, wherein the case storage information comprises an identity mark and current case data.
In a specific implementation, the user may choose to store the case related data to the blockchain system during the recovery of the hospital, and the user may send case storage information, including the identity and the current case data. The identification mark comprises information which can indicate the identity of the user, such as identification card number information, and the current case data comprises relevant records of the whole process of diagnosing and treating the disease of the user.
102. And inquiring whether historical case data matched with the identity is stored in the blockchain system.
After receiving the case storage information sent by the user, firstly, selecting whether the historical case data of the user is contained in the blockchain system according to the identification information, namely, inquiring whether the case information is stored in the blockchain system.
103. If the historical case data matched with the identity is stored, the current case data and the historical case data are fused to obtain complete case data.
If the historical case data matched with the identity mark is queried in the blockchain system, the case data before the user is indicated to be selected and stored in the blockchain system, so that the current case data and the historical case data are fused at the moment to obtain complete case data. The complete case data is formed into complete and comprehensive case data according to time sequence or disease type.
If the user is queried, determining that the blockchain system does not contain the historical case data corresponding to the identification information, wherein the user does not store the case in the blockchain, and the current case data is stored as complete case data.
By inquiring whether the blockchain system contains complete case data or not and then obtaining a complete case data, the data storage mode is further carried out, and compared with the existing storage mode, the case number is reduced. In particular, for performing a case finding again, the case query time is effectively shortened. For the traditional storage mode, for example, 10 cases can be recorded for 10 times of medical treatment of a user, and when a patient or doctor wants to inquire about the past medical history of the patient, 10 cases can be inquired and then read one by one, so that the efficiency is relatively low. By adopting the method of the invention, the current case data and the historical case data are fused, so that 10 times of case data can be fused into one complete case data, and the complete case data does not comprise repeated data and the like, thereby effectively improving the case query efficiency.
104. And identifying all disease types in the complete case data, and respectively storing the case data corresponding to different disease types on different nodes of the blockchain system.
After the complete case data is obtained, the complete case data comprises both current case data and historical case data, and one complete case data comprises all disease treatment records of the patient and the like.
All disease types in the complete case data are then selected for identification, and corresponding case data are stored on different nodes of the blockchain system according to different disease types. The distributed storage mode can ensure the decentralization and the non-tamper property of the data.
The case storage method based on the blockchain comprises the steps of receiving case storage information of a user, wherein the case storage information comprises an identity mark and current case data; inquiring whether historical case data matched with the identity is stored in a blockchain system; if the historical case data matched with the identity mark is stored, fusing the current case data with the historical case data to obtain complete case data; by adopting the method, if the historical case data is stored in the blockchain system, the current case data and the historical case data are fused to obtain one complete case data, so that when the case is queried again, all the case data of a patient can be known only by one case, and the case data of different disease types on different nodes can be acquired independently, thereby effectively improving the case query efficiency.
Further, on the basis of the above embodiment, in this embodiment, the fusing the current case data and the historical case data to obtain the complete case data includes: respectively determining the diagnosis time of the historical case data and the current case data; sequencing the historical case data and the current case data according to the sequence of the treatment time; and fusing the sequenced historical case data with the current case data to obtain complete case data.
Specifically, after determining that the blockchain system includes the current case data and the historical case data, in order to ensure the case query efficiency and reduce the storage space, the current case data and the historical case data are selected to be fused. Firstly, the treatment time of the current case data and the treatment time of the historical case data are respectively determined, the treatment time is the time of the patient in hospital, and the historical case data and the current case data are ordered according to the sequence of the treatment time, so that the treatment data are listed according to a time axis, namely, the treatment data are sequentially arranged backwards from the earliest time. Over time, the change in physical condition development of the user can be clearly understood.
For example, the historical case data includes first case data, second case data and third case data, the second case data includes related data of a part of the first case, and the third case data includes related content of a part of the first case data and the second case data, so that repeated parts but not completely repeated relationships exist among the multiple case data, and therefore when the historical case data and the current case data are fused, the past case data in the current case data is deleted first, and the historical case data is supplemented to the current case data to form complete case data. Therefore, the past medical history data in the current case data of the comparison system is replaced by more accurate historical case data, the block chain system is ensured to only comprise one complete case data, and case inquiry and the like are facilitated.
And then before fusing the sequenced historical case data and the current case data, firstly carrying out format standardization processing on the current case data and the historical case data, for example, uniformly adopting an HL7 standard to carry out format processing, so that all the case data keep a uniform format. And encrypting the current case data and the historical case data after format standardization processing, so that each case data is encrypted, and the safety of the case data of the user is ensured. For example, the user has performed disease diagnosis and treatment for 10 times in 10 hospitals, and the user can select the same or different encryption modes when uploading cases each time, if the encryption modes are the same, all the case data can be known through a unified decryption method during inquiry, if the encryption modes are different, if the user wants to know the case of a certain disease, the decryption method can only know the corresponding case.
Further, on the basis of the above embodiment, the disease types in the present embodiment include: neurological diseases, digestive diseases, urinary diseases, endocrine diseases, respiratory diseases and circulatory diseases.
Therefore, encrypting the current case data and the historical case data after the format normalization processing may include determining disease types of the current case data and the historical case data, and encrypting the cases according to different disease types by adopting different encryption modes. Therefore, the privacy of the patient can be better protected, for example, when a doctor wants to take the case data of the user for comparison, the doctor wants to compare which kind of illness state only needs to acquire the case data of the corresponding part, and does not need to acquire all data, so that the time can be saved, the privacy of the user can be protected, and the safety of the case data can be better ensured.
And respectively storing case data corresponding to different disease types on different nodes of the blockchain system, including: searching a storage node of nervous system diseases, a storage node of digestive system diseases, a storage node of urinary system diseases, a storage node of endocrine system diseases, a storage node of respiratory system diseases and a storage node of circulatory system diseases in a blockchain system; the method includes storing a nervous system disease in a storage node of the nervous system disease, storing a digestive system disease in a storage node of the digestive system disease, storing a urinary system disease in a storage node of the urinary system disease, storing an endocrine system disease in a storage node of the endocrine system disease, storing a respiratory system disease in a storage node of the respiratory system disease, and storing a circulatory system disease in a storage node of the circulatory system disease.
Specifically, different disease types are selected to be stored on different blockchain storage nodes, so that a doctor can inquire all patient data of a certain storage node for different patients with the same disease in the same node, and the patient data are statistically analyzed, so that the data such as recovery processes of different diseases of different patients can be conveniently known. Can better promote the recovery of the illness state of the patient, is also beneficial to improving the research on the illness state, improves the diagnosis and treatment effects of the illness, and the like.
Further, on the basis of the above embodiment, the present embodiment further includes: determining a request node for case storage information; if the current case data is successfully stored in the blockchain system, the incentive benefits are issued for the requesting node.
Specifically, in order to better encourage users to actively store case data in the blockchain system, after determining that complete case data is stored in the blockchain system, the users need to determine request nodes of case storage information, determine the user end, then issue incentive benefits for the request nodes, and promote the enthusiasm of doctors and patients to share the case data to the blockchain. The incentive income can be discounted and can also be used as a condition for a user to inquire other similar cases, and the like, so that the user can actively store the case data into the blockchain system, the sharing of medical resources among different hospitals and the like is improved, and the medical service quality and efficiency are further improved.
Further, on the basis of the above embodiment, in this embodiment, after storing the case data corresponding to the different disease types on the different nodes of the blockchain system, the method further includes: the user is assigned a key that is used to query the user for current case data stored on the blockchain.
Specifically, after different case data are stored in the corresponding storage nodes, the blockchain system automatically allocates a key to the user, and only the key can acquire the case data stored by the user. Therefore, only authorized personnel can access and use the case data, the security and privacy of the case data are improved, and data leakage and tampering can be effectively avoided.
Further, on the basis of the above embodiment, the identity identifier includes personal identity information and associated identity information, and the associated identity information and the personal identity information are related.
Specifically, when the identity information includes associated identity information, the method further includes receiving a case query request, identifying personal identity information and associated identity information in the case query request, and searching whether the current patient has a family genetic history based on the associated identity information, thereby facilitating diagnosis and treatment of the disease by a doctor based on the family genetic history. Can effectively promote the diagnosis and treatment of the doctor on the diseases.
Based on the same general inventive concept, the present invention also protects a case storage device based on a blockchain, and the case storage device based on the blockchain provided by the present invention is described below, and the case storage device based on the blockchain described below and the case storage method based on the blockchain described above can be referred to correspondingly.
Fig. 2 is a schematic structural diagram of a case storage device based on blockchain according to an embodiment of the present invention.
As shown in fig. 2, the case storage device based on blockchain provided by the present invention includes:
a receiving module 201, configured to receive case storage information of a user, where the case storage information includes an identity and current case data;
a query module 202, configured to query a blockchain system for whether historical case data matching the identity is stored;
the fusion module 203 is configured to fuse the current case data with the historical case data if the historical case data matched with the identity is stored, so as to obtain complete case data;
the storage module 204 is configured to identify all disease types in the complete case data, and store case data corresponding to different disease types on different nodes of the blockchain system.
The case storage device based on the blockchain comprises a case storage device, a case storage device and a case storage device, wherein the case storage device receives case storage information of a user, and the case storage information comprises an identity mark and current case data; inquiring whether historical case data matched with the identity is stored in a blockchain system; if the historical case data matched with the identity mark is stored, fusing the current case data with the historical case data to obtain complete case data; by adopting the method, if the historical case data is stored in the blockchain system, the current case data and the historical case data are fused to obtain one complete case data, so that when the case is queried again, all the case data of a patient can be known only by one case, and the case data of different disease types on different nodes can be acquired independently, thereby effectively improving the case query efficiency.
Further, the fusion module 203 in this embodiment is specifically configured to:
determining the diagnosis time of the historical case data and the current case data respectively;
sequencing the historical case data and the current case data according to the sequence of the treatment time;
and fusing the sequenced historical case data and the current case data to obtain complete case data.
Further, the fusion module 203 in this embodiment is specifically configured to:
carrying out format standardization processing on the current case data and the historical case data;
encrypting the current case data and the historical case data after the format standardization processing.
Further, the disease types in the present embodiment include: neurological diseases, digestive diseases, urinary diseases, endocrine diseases, respiratory diseases and circulatory diseases;
the storage module 204 is specifically configured to:
searching the storage node of the nervous system disease, the storage node of the digestive system disease, the storage node of the urinary system disease, the storage node of the endocrine system disease, the storage node of the respiratory system disease and the storage node of the circulatory system disease in the blockchain system;
the method includes storing the nervous system disease in a storage node of the nervous system disease, storing the digestive system disease in a storage node of the digestive system disease, storing the urinary system disease in a storage node of the urinary system disease, storing the endocrine system disease in a storage node of the endocrine system disease, storing the respiratory system disease in a storage node of the respiratory system disease, and storing the circulatory system disease in a storage node of the circulatory system disease.
Further, the embodiment further includes an excitation module, configured to:
determining a request node of the case storage information;
and if the current case data is successfully stored in the blockchain system, issuing incentive benefits for the request node.
Further, the embodiment further includes an allocation module, configured to:
and distributing a key to the user, wherein the key is used for inquiring the current case data stored by the user on the blockchain.
Further, the fusion module 203 in this embodiment is specifically further configured to:
and if the blockchain system does not store the historical case data matched with the identity identification, taking the current case data as the complete case data.
Further, the identity in this embodiment includes personal identity information and associated identity information, where the associated identity information and the personal identity information are related.
Fig. 3 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
As shown in fig. 3, the electronic device may include: processor 310, communication interface (Communications Interface) 320, memory 330 and communication bus 340, wherein processor 310, communication interface 320, memory 330 accomplish communication with each other through communication bus 340. The processor 310 may invoke logic instructions in the memory 330 to perform a blockchain-based case storage method that includes: receiving case storage information of a user, wherein the case storage information comprises an identity mark and current case data; inquiring whether historical case data matched with the identity is stored in a blockchain system; if the historical case data matched with the identity identification is stored, fusing the current case data with the historical case data to obtain complete case data; and identifying all disease types in the complete case data, and respectively storing case data corresponding to different disease types on different nodes of the blockchain system.
Further, the logic instructions in the memory 330 described above may be implemented in the form of software functional units and may be stored in a computer-readable storage medium when sold or used as a stand-alone product. Based on this understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art or in a part of the technical solution, in the form of a software product stored in a storage medium, comprising several instructions for causing a computer device (which may be a personal computer, a server, a network device, etc.) to perform all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
In another aspect, the present invention also provides a computer program product comprising a computer program storable on a non-transitory computer readable storage medium, the computer program, when executed by a processor, is capable of performing the blockchain-based case storage method provided by the methods above, the method comprising: receiving case storage information of a user, wherein the case storage information comprises an identity mark and current case data; inquiring whether historical case data matched with the identity is stored in a blockchain system; if the historical case data matched with the identity identification is stored, fusing the current case data with the historical case data to obtain complete case data; and identifying all disease types in the complete case data, and respectively storing case data corresponding to different disease types on different nodes of the blockchain system.
In yet another aspect, the present invention also provides a non-transitory computer readable storage medium having stored thereon a computer program which, when executed by a processor, is implemented to perform the blockchain-based case storage method provided by the methods above, the method comprising: receiving case storage information of a user, wherein the case storage information comprises an identity mark and current case data; inquiring whether historical case data matched with the identity is stored in a blockchain system; if the historical case data matched with the identity identification is stored, fusing the current case data with the historical case data to obtain complete case data; and identifying all disease types in the complete case data, and respectively storing case data corresponding to different disease types on different nodes of the blockchain system.
The apparatus embodiments described above are merely illustrative, wherein the elements illustrated as separate elements may or may not be physically separate, and the elements shown as elements may or may not be physical elements, may be located in one place, or may be distributed over a plurality of network elements. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment. Those of ordinary skill in the art will understand and implement the present invention without undue burden.
From the above description of the embodiments, it will be apparent to those skilled in the art that the embodiments may be implemented by means of software plus necessary general hardware platforms, or of course may be implemented by means of hardware. Based on this understanding, the foregoing technical solution may be embodied essentially or in a part contributing to the prior art in the form of a software product, which may be stored in a computer readable storage medium, such as ROM/RAM, a magnetic disk, an optical disk, etc., including several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the method described in the respective embodiments or some parts of the embodiments.
Finally, it should be noted that: the above embodiments are only for illustrating the technical solution of the present invention, and are not limiting; although the invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present invention.