Disclosure of Invention
In order to solve the above problems, the present application provides a method, an apparatus, and a medium for sharing a medical diagnosis report based on a blockchain, which can implement information sharing between hospitals, thereby significantly reducing the medical cost of patients.
In a first aspect, an embodiment of the present application provides a method for sharing a medical diagnosis report based on a blockchain, including:
deploying a first intelligent contract on each node corresponding to a blockchain used for sharing a medical diagnosis report, wherein the triggering condition of the first intelligent contract is that hospital change prompt information provided by a user is received;
receiving patient identity information and patient treatment information from the node, the patient treatment information comprising: one or more of patient visit time, patient test data, and patient diagnostic data;
writing the patient identity information and the patient treatment information into the same block;
and when a contract is set in the first intelligent contract to be executed, acquiring the identity information and the treatment information of the patient from the blockchain, and sending the identity information and the treatment information of the patient to a medical institution appointed by the patient.
In one example, a second intelligent contract is deployed on each node corresponding to the blockchain;
receiving a transfer request message from a user and index information corresponding to patient treatment information from a current hospital, wherein the transfer request message comprises: the current hospital information and the received hospital information;
verifying the current hospital information and the received hospital information when a contract execution is set in the second intelligent contract; and when the verification is passed, writing the transfer request message and the index information into a block and sending the block to a receiving hospital.
In one example, the receiving hospital obtains patient treatment information according to the index information; determining medical process information according to the patient medical information; and reserving a corresponding medical project for the patient according to the medical process information.
In one example, the node receives patient identity information, billing information, and medical expense data from a patient;
and generating an electronic invoice according to the patient medical information, and writing the electronic invoice into a block.
In one example, a medical item price query message is received from a user, the medical item price query message comprising: the medical treatment item identification and query condition data are preset, and the query condition data comprise: inquiring time range data and/or hospital identity information;
determining at least one target block according to the medical item identifier and the query condition data, wherein the target block is a block containing medical item prices corresponding to the medical item identifier and/or the query condition data;
and respectively acquiring and returning corresponding medical item prices from each target block according to the medical item identification and the query condition data.
In one example, the query condition data further comprises: user identity information;
verifying the user identity information;
and when the user identity information passes verification, respectively acquiring and returning corresponding medical item cost from each target block according to the medical item identifier and the query condition data.
In one example, a third intelligent contract is deployed on each node corresponding to the blockchain;
receiving a request for association information from the node, the request for association information comprising: associating conditions of patient identity information and patient medical information;
and when a contract is set in the third intelligent contract to be executed, acquiring corresponding patient medical information from the blockchain according to the patient identity information and the patient medical information association condition.
In one example, a patient treatment information query message is received from a user, the patient treatment information query message comprising: the method comprises the following steps of presetting patient identity information and presetting a disease identifier;
determining a target block according to the patient treatment information, wherein the target block is a block for recording the identity information of the patient;
and acquiring patient treatment information corresponding to the disease identification from each target block, and returning the patient treatment information to the user.
In a second aspect, an embodiment of the present application provides a block chain-based medical diagnosis report sharing device, including: a receiver, a processor, and an input device;
the processor is used for deploying a first intelligent contract on each node corresponding to the block chain for sharing the medical diagnosis report, and the triggering condition of the first intelligent contract is that hospital change prompt information provided by a user is received;
the receiver is configured to receive patient identity information and patient treatment information from the node, where the patient treatment information includes: one or more of patient visit time, patient test data, and patient diagnostic data;
the input device is used for writing the patient identity information and the patient treatment information into the same block;
the processor is further configured to acquire the patient identity information and the patient treatment information from the blockchain and send the patient identity information and the patient treatment information to a medical node specified by the patient when a contract execution is set in the first intelligent contract.
In a third aspect, an embodiment of the present application provides a storage medium, where the storage medium includes instructions for implementing the method described in any one of the first aspect.
The embodiment of the application provides a medical diagnosis report sharing method based on a block chain. Then, an intelligent contract is arranged on each node, and when the contract execution is set in the intelligent contract, patient identity information and patient treatment information are acquired from the block chain and are sent to a medical institution appointed by the patient. To sum up, the technical scheme provided by the embodiment of the application can record data generated in the seeing process and realize information sharing among hospitals, so that the medical cost of patients is remarkably reduced.
Detailed Description
In order to more clearly explain the overall concept of the present application, the following detailed description is given by way of example in conjunction with the accompanying drawings.
The embodiment of the application discloses a block chain-based medical diagnosis report sharing method, as shown in fig. 1, comprising the following steps:
step 101, deploying a first intelligent contract on each node corresponding to the blockchain for sharing the medical diagnosis report.
In an embodiment of the present application, each node corresponding to a blockchain for sharing a medical diagnosis report includes: a medical facility. The blockchain has the characteristic of distributed accounting, data generated by each node can be synchronized to other nodes, and data tampering of a single node cannot actually take effect, so that the reliability of the data on the blockchain shared by medical diagnosis reports is guaranteed.
In the embodiment of the present application, the block chain characteristics described above are used to trace the source of the hospital invoices, and specifically, the block chain nodes receive patient identity information, billing information and medical expense data from patients. And generating an electronic invoice according to the medical information of the patient, and writing the electronic invoice into the block.
Step 102, receiving patient identity information and patient treatment information from the node.
In an embodiment of the present application, the patient treatment information includes: patient visit time, patient test data, and patient diagnostic data. The patient detection data refers to data generated when patients participate in various medical tests, and the patient diagnosis data refers to diagnosis results of the hospital on the patient's conditions.
Step 103, writing the patient identification information and the patient treatment information into the same block.
In the embodiment of the application, in the medical process, an uncertain situation sometimes occurs, and a patient is uncertain whether a medicine is allergic or whether similar diseases are obtained, and at the moment, a hospital can search uncertain information by using a block chain shared by medical diagnosis reports. Specifically, a third intelligent contract is deployed on each node corresponding to the block chain; receiving a request for association information from a node, the request for association information comprising: associating conditions of patient identity information and patient medical information; and when a contract is set in the third intelligent contract to be executed, acquiring corresponding patient medical information from the block chain according to the patient identity information and the patient medical information association condition.
When a user fills in a receipt such as a work injury application, detailed patient treatment information is sometimes required. At this time, the user may query corresponding information through the blockchain for sharing the medical diagnosis report, specifically, receive a patient treatment information query message from the user, where the patient treatment information query message includes: the system comprises preset patient identity information and preset disease identification. And determining a target block according to the patient treatment information, wherein the target block is a block for recording the identity information of the patient. And acquiring patient treatment information corresponding to the disease identification from each target block, and returning the patient treatment information to the user.
And step 104, acquiring the identity information and the treatment information of the patient from the blockchain, and sending the identity information and the treatment information of the patient to a medical institution appointed by the patient.
In the embodiment of the present application, the medical institution designated by the patient may be a node in the blockchain or may not be a node in the blockchain. For transfer, a hospital with high patient reliability and relatively easy handling procedures is needed, and the problem can be well solved by using a blockchain shared by medical diagnosis reports, specifically, a second intelligent contract is deployed on each node corresponding to the blockchain, and a transfer request message from a user and index information corresponding to patient treatment information from a current hospital are received, where the transfer request message includes: current hospital information and receiving hospital information. When a contract is set in the second intelligent contract to be executed, verifying the current hospital information and receiving the hospital information; and when the verification is passed, writing the transfer request message and the index information into the block and sending the block to the receiving hospital.
And after the transfer, the receiving hospital acquires the patient treatment information according to the index information so as to treat the patient by referring to the patient treatment information of the previous hospital. The index information is used to indicate the location of all data generated by the patient in the current hospital in the blockchain over a period of time. The index information enables the receiving hospital to quickly find patient treatment information on the blockchain without having to screen out patient treatment information of the previous hospital from all patient treatment information. And then, receiving the medical information of the hospital and determining the medical process information according to the medical information of the patient. And finally, receiving the medical procedure information of the hospital and reserving a corresponding medical item for the patient.
According to the embodiment, hospitals corresponding to the nodes of the block chain are authenticated, so that the receiving hospitals can have high credibility. Meanwhile, the receiving hospital can directly reserve corresponding medical items for the patient according to the treatment information of the patient, so that the queuing and consultation time of the patient is reduced, and convenience is brought to the patient.
In addition, the consumer usually pays attention to the price of the medical item, and in this embodiment, the consumer may send a medical item price query message to the server, where the medical item price query message includes: the medical treatment item identification and query condition data are preset, and the query condition data comprise: the time range data and/or hospital identity information is queried. And then, the server respectively acquires and returns corresponding medical item prices from the target blocks according to the medical item identifiers and the query condition data. Due to the fact that the block chain has the characteristic of being difficult to tamper, the consumer can obtain the real price of the medical item in the mode, and the situation that the consumer is cheated is prevented.
In addition to consumers, relevant government agencies may also focus on the price of medical items to monitor whether there is a phenomenon of price confusion for medical items. In determining whether the medical project is in the form of price disordering, the cost of the medical project is also known, however, the cost of the medical project is related to private data of enterprises, and the private data cannot be freely viewed, so in the embodiment of the application, the query condition data sent by the relevant government department also includes user identity information, so that the server verifies the user identity information. And when the user identity information passes the verification, the server respectively acquires and returns corresponding medical item cost from each target block according to the medical item identifier and the query condition data. Therefore, the price detection of government departments can be realized, and the confidential information of enterprises can not be easily revealed.
As shown in fig. 2, an embodiment of the present application provides a medical item tracing apparatus, including: a receiver 201, a processor 202 and an input device 203;
the processor 202 is configured to deploy a first intelligent contract on each node corresponding to the blockchain for sharing the medical diagnosis report, where a trigger condition of the first intelligent contract is to receive hospital change prompting information provided by a user.
The receiver 201 is configured to receive patient identity information and patient treatment information from a node, where the patient treatment information includes: patient visit time, patient test data, and patient diagnostic data.
The input device 203 is used for writing the patient identification information and the patient treatment information into the same block.
The processor 202 is further configured to obtain patient identity information and patient treatment information from the blockchain and send the patient identity information and the patient treatment information to a medical node designated by the patient when the contract execution is set in the first intelligent contract.
The embodiment of the application provides a storage medium, and the storage medium comprises instructions for implementing the method in any one of the embodiments of the application. The device and the medium provided by the embodiment of the application correspond to the method one by one, so the device and the medium also have the beneficial technical effects corresponding to the method.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
The embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the system embodiment, since it is substantially similar to the method embodiment, the description is simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
The above description is only an example of the present application and is not intended to limit the present application. Various modifications and changes may occur to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.