WO2022062399A1 - Blockchain network-based diagnosis method and apparatus, and blockchain network system - Google Patents

Blockchain network-based diagnosis method and apparatus, and blockchain network system Download PDF

Info

Publication number
WO2022062399A1
WO2022062399A1 PCT/CN2021/090899 CN2021090899W WO2022062399A1 WO 2022062399 A1 WO2022062399 A1 WO 2022062399A1 CN 2021090899 W CN2021090899 W CN 2021090899W WO 2022062399 A1 WO2022062399 A1 WO 2022062399A1
Authority
WO
WIPO (PCT)
Prior art keywords
information
blockchain
patient
terminal
medical record
Prior art date
Application number
PCT/CN2021/090899
Other languages
French (fr)
Chinese (zh)
Inventor
苟喜霞
Original Assignee
京东科技信息技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 京东科技信息技术有限公司 filed Critical 京东科技信息技术有限公司
Publication of WO2022062399A1 publication Critical patent/WO2022062399A1/en

Links

Images

Classifications

    • GPHYSICS
    • G16INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR SPECIFIC APPLICATION FIELDS
    • G16HHEALTHCARE INFORMATICS, i.e. INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR THE HANDLING OR PROCESSING OF MEDICAL OR HEALTHCARE DATA
    • G16H10/00ICT specially adapted for the handling or processing of patient-related medical or healthcare data
    • G16H10/60ICT specially adapted for the handling or processing of patient-related medical or healthcare data for patient-specific data, e.g. for electronic patient records
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/22Indexing; Data structures therefor; Storage structures
    • G06F16/2228Indexing structures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/245Query processing
    • G06F16/2455Query execution
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/27Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/602Providing cryptographic facilities or services
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/64Protecting data integrity, e.g. using checksums, certificates or signatures

Definitions

  • the present disclosure relates to the field of computer technology, and in particular, to a blockchain network-based diagnostic method, device, and blockchain network system.
  • the embodiments of the present disclosure provide a blockchain network-based diagnosis method, device, and blockchain network system, which can realize a decentralized diagnosis process and ensure medical information in the diagnosis process through blockchain technology. Immutable.
  • a method for diagnosis based on a blockchain network includes a patient terminal and a doctor terminal as network nodes.
  • the blockchain network-based diagnosis method of the embodiment of the present disclosure is applied to a patient terminal, including: storing the patient's medical record information, writing the medical record information into the blockchain maintained by each node of the blockchain network, and sending the information to the target
  • the doctor terminal sends a medical treatment message; receives a diagnosis completion message sent by the target doctor terminal; wherein, the diagnosis completion message is sent by the target doctor terminal after writing the diagnosis result made by the doctor based on the medical record information into the blockchain, so the The medical record information is obtained from the blockchain after the target doctor terminal receives the medical treatment message.
  • the writing the medical record information into the blockchain maintained by each node of the blockchain network includes: writing the encrypted data and the first index data of the medical record information into the blockchain; Wherein, the first index data is used to query the encrypted data; and, the medical treatment message carries the first index data and the first key used to decrypt the encrypted data; the medical record information is the target doctor terminal in the Obtained from the blockchain after receiving the medical treatment message, including: the target doctor terminal queries the encrypted data from the blockchain according to the first index data in the medical treatment message, and uses the The first key in the medical treatment message decrypts the encrypted data to obtain the medical record information.
  • the encrypted data of the medical record information includes: the medical record information and encrypted data of the image detection result.
  • the patient's medical record information before storing the patient's medical record information, store the patient's identification information and payment route information; after verifying the identification information and the payment route information, encrypt the identification information and the payment route information.
  • the data and the third index data are written into the blockchain, and the third index data and the third key used to decrypt the encrypted data are stored locally; after the patient's medical record information is stored, according to the locally stored third key
  • the encrypted data is queried from the block chain by the index data, the encrypted data is decrypted using the locally stored third key to obtain the identification information, and the identification information and the medical record information are verified.
  • the diagnosis completion message is sent after the target doctor terminal writes the diagnosis result made by the doctor based on the medical record information into the blockchain, including: the target doctor terminal writes the encrypted data of the diagnosis result and the first The second index data is written into the blockchain; wherein the second index data is used to query the encrypted data of the diagnosis result, and the diagnosis completion message carries the second index data and the encryption used to decrypt the diagnosis result and the method further includes: after receiving the diagnosis completion message sent by the target doctor terminal, querying the block chain according to the second index data in the diagnosis completion message The encrypted data of the diagnosis result is obtained by decrypting the encrypted data with the second key in the diagnosis completion message to obtain the diagnosis result; and the patient's acceptance information for the diagnosis result is stored, and the encrypted data of the acceptance information is encrypted.
  • the data and the fifth index data are written into the blockchain, and a response message is sent to the target doctor terminal; wherein, the fifth index data is used to query the encrypted data of the acceptance information, and the response message carries the fifth index data and a fifth key for decrypting the encrypted data of the acceptance information; in response to the acceptance information indicating that the patient accepts a diagnosis result, payment is made based on the patient's payment route information, and the payment result is written into the block chain, and send a payment completion message to the target doctor terminal.
  • the method further includes: storing the evaluation information of the patient on the doctor, adjusting the doctor's score and/or level according to the evaluation information and a third smart contract pre-deployed in the blockchain, and adjusting the doctor's score and/or level. Post scores and/or levels are written to the blockchain.
  • the patient's medical record information further includes symptom information and/or historical medical treatment information;
  • the identification information includes at least one of the following: name, ID number, mobile phone number, and facial features;
  • the payment channel information includes: bank Account information and/or electronic account information; if the acceptance information indicates that the patient refuses to receive the diagnosis result, the acceptance information further includes refusal reason information.
  • a diagnostic method based on a blockchain network is provided.
  • the blockchain network-based diagnosis method of the embodiment of the present disclosure is applied to a doctor terminal, including: receiving a medical treatment message sent by a patient terminal; acquiring the patient's medical record information from the blockchain maintained by each node of the blockchain network, storing Based on the diagnosis result made by the medical record information, the doctor writes the diagnosis result into the blockchain, and sends a diagnosis completion message to the patient terminal; wherein, the medical visit message is that the patient terminal is storing the medical record information and storing the medical record information. Sent after the medical record information is written into the blockchain.
  • the medical visit message is sent by the patient terminal after storing the medical record information and writing the medical record information into the blockchain, including: the patient terminal sends the encrypted data of the medical record information and the first Index data is written into the blockchain; wherein, the first index data is used to query the encrypted data, and the medical treatment message carries the first index data and a first key for decrypting the encrypted data; and , the method further includes: querying the encrypted data from the blockchain according to the first index data in the medical treatment message, and decrypting the encrypted data by using the first key in the medical treatment message to obtain the encrypted data. medical record information.
  • the writing of the diagnosis result into the blockchain includes: writing encrypted data of the diagnosis result and second index data into the blockchain; wherein the second index data is used for query the encrypted data of the diagnosis result; and, the diagnosis completion message carries second index data and a second key for decrypting the encrypted data of the diagnosis result.
  • the diagnosis result is in a text format; and the storing of the diagnosis result made by the doctor based on the medical record information includes: invoking a second smart contract deployed in the blockchain to convert the doctor's voice into the Diagnose results and store.
  • the method further includes: before receiving the medical treatment message, storing the identification information, payment route information and authentication information of the doctor, and after verifying the identification information, the payment route information and the authentication information, storing the identification information, the payment route information and the authentication information.
  • the encrypted data and fourth index data of the identification information, the payment method information and the authentication information are written into the blockchain; wherein, the authentication information of the doctor includes the information of the doctor's practice hospital, and the practice hospital information is based on the pre-written information
  • the verified hospital information entered into the blockchain is verified.
  • the method further includes: receiving a response message sent by the patient terminal; querying the blockchain according to the fifth index data in the response message to obtain the encryption of the patient's acceptance information for the diagnosis result. data, decrypt the encrypted data with the fifth key in the response message to obtain the acceptance information; wherein, the response message is that the patient terminal is storing the acceptance information and encrypting the acceptance information
  • the data and the fifth index data for querying the encrypted data are sent after being written into the blockchain.
  • the method further includes: receiving a payment completion message sent by the patient terminal; obtaining a payment result of the patient terminal from the blockchain; wherein, the payment completion message is the result of the patient terminal judging the acceptance of the payment.
  • Situation information instructs the patient to make a payment when receiving the diagnosis result, and is sent after the payment result is written into the blockchain.
  • the patient's medical record information further includes image examination data, symptom information and/or historical medical treatment data;
  • the identification information includes at least one of the following: name, ID number, mobile phone number, and facial features;
  • the payment method includes: bank account information and/or electronic account information;
  • the doctor's certification information further includes: the doctor's practice certificate information; if the acceptance information indicates that the patient refuses to accept the diagnosis result, the acceptance information further includes the reason for the refusal information.
  • a diagnostic device based on a blockchain network is provided.
  • the diagnostic apparatus based on the blockchain network is set on the patient terminal, and may include: a medical treatment unit, configured to store the patient's medical record information, and write the medical record information into the area maintained by each node of the blockchain network. block chain, and send the medical treatment message to the target doctor terminal; the first receiving unit is used to receive the diagnosis completion message sent by the target doctor terminal; wherein, the diagnosis completion message is the diagnosis made by the target doctor terminal based on the medical record information.
  • the result is sent after being written into the blockchain, and the medical record information is obtained from the blockchain after the target doctor terminal receives the medical treatment message.
  • a diagnostic device based on a blockchain network is provided.
  • the diagnostic apparatus based on the blockchain network in the embodiment of the present disclosure is set on the doctor's terminal, and may include: a second receiving unit, configured to receive a medical treatment message sent by the patient terminal; a diagnosis unit, configured to receive information from each node of the blockchain network Obtain the patient's medical record information in the maintained blockchain, store the diagnosis result made by the doctor based on the medical record information, write the diagnosis result into the blockchain, and send a diagnosis completion message to the patient terminal; wherein, the The consultation message is sent by the patient terminal after storing the medical record information and writing the medical record information into the blockchain.
  • a blockchain network system for diagnosis is provided.
  • the blockchain network system for diagnosis includes a patient terminal and a doctor terminal as network nodes; wherein, the patient terminal stores the patient's medical record information, and writes the medical record information into each node of the blockchain network maintain the blockchain, and send the medical treatment message to the target doctor terminal; after receiving the medical treatment message sent by the patient terminal, the target doctor terminal obtains the medical record information from the blockchain, and stores the medical record information based on the medical record information.
  • the diagnosis result is made, the diagnosis result is written into the blockchain, and a diagnosis completion message is sent to the patient terminal.
  • the patient terminal after storing the patient's medical record information, the patient terminal writes the encrypted data of the medical record information and the first index data into the blockchain; wherein, the first index data is used to query the encrypted data; and , the medical treatment message carries the first index data and the first key used to decrypt the encrypted data; after receiving the medical treatment message, the target doctor terminal, according to the first index data in the medical treatment message The encrypted data is queried in the blockchain, and the encrypted data is decrypted by using the first key in the medical treatment message to obtain the medical record information.
  • the target doctor terminal after storing the diagnosis result, writes the encrypted data of the diagnosis result and the second index data into the blockchain; wherein the second index data is used to query the information of the diagnosis result. encrypted data; and, the diagnosis completion message carries second index data and a second key for decrypting the encrypted data of the diagnosis result.
  • the medical record information includes the patient's image examination data; after storing the patient's medical record information, the patient terminal invokes the first smart contract deployed in the blockchain to detect the image examination data to obtain an image detection result, and write the medical record information, the encrypted data of the image detection result and the first index data into the blockchain.
  • the diagnosis result is in a text format; and the target doctor terminal invokes a second smart contract deployed on the blockchain to convert the doctor's voice into the diagnosis result and store it.
  • any patient terminal before storing the patient's medical record information, any patient terminal stores the patient's identification information and payment route information; after verifying the identification information and the payment route information, the identification information and the payment route information are stored.
  • the encrypted data of the pathway information and the third index data are written into the blockchain, and the third index data and the third key used to decrypt the encrypted data are stored locally; after the patient terminal stores the patient's medical record information, The encrypted data is queried from the blockchain according to the third index data stored locally, the encrypted data is decrypted using the third key stored locally to obtain the identification information, and the identification information and the medical record information are analyzed. Check it out.
  • the target doctor terminal before receiving the medical treatment message, stores the doctor's identification information, payment method information and authentication information, and after verifying the identification information, the payment method information and the authentication information, the identification information. , the payment method information and the encrypted data and fourth index data of the authentication information are written into the blockchain; wherein, the doctor's authentication information includes the doctor's practice hospital information; the target doctor's terminal is pre-written into the blockchain The verified hospital information of the doctor verifies the doctor's practice hospital information.
  • the patient terminal after receiving the diagnosis completion message sent by the target doctor terminal, the patient terminal queries the encrypted data of the diagnosis result from the blockchain according to the second index data in the diagnosis completion message, and uses the The second key in the diagnosis completion message decrypts the encrypted data to obtain the diagnosis result; and stores the patient's acceptance information for the diagnosis result, and writes the encrypted data of the acceptance information and the fifth index data into all the data.
  • the block chain is used to send a response message to the target doctor terminal; wherein, the fifth index data is used to query the encrypted data of the acceptance information, and the response message carries the fifth index data and is used to decrypt the acceptance information.
  • the fifth key of the encrypted data of the information in response to the acceptance information indicating that the patient accepts the diagnosis result, the patient terminal makes a payment based on the payment route information of the patient after storing the acceptance information, and writes the payment result into the area block chain, and send a payment completion message to the target doctor terminal; after receiving the response message, the target doctor terminal queries the encrypted data of the acceptance information from the block chain according to the fifth index data, and uses the first The five-key decrypts the encrypted data to obtain the acceptance information; after receiving the payment completion message, the payment result is obtained from the blockchain.
  • the patient terminal stores the patient's evaluation information on the doctor, adjusts the doctor's score and/or level according to the evaluation information and the third smart contract pre-deployed in the blockchain, and compares the adjusted score and the doctor's grade. / or level written to said blockchain.
  • the patient's medical record information further includes symptom information and/or historical medical treatment information;
  • the identification information includes at least one of the following: name, ID number, mobile phone number, and facial features;
  • the payment channel information includes: bank Account information and/or electronic account information;
  • the doctor's certification information further includes: the doctor's practice certificate information; if the acceptance information indicates that the patient refuses to accept the diagnosis result, the acceptance information further includes rejection reason information.
  • an electronic device is provided.
  • An electronic device of the present disclosure includes: one or more processors; a storage device for storing one or more programs, when the one or more programs are executed by the one or more processors, the one or more programs cause the One or more processors implement the blockchain network-based diagnostic method provided by the present disclosure.
  • a computer-readable storage medium is provided.
  • a computer-readable storage medium of the present disclosure stores a computer program thereon, and when the program is executed by a processor, the blockchain network-based diagnostic method provided by the present disclosure is implemented.
  • a decentralized blockchain network is formed by the patient terminal and the doctor terminal, and when the patient needs to see a doctor, the patient terminal writes the patient's medical record information Enter the blockchain and send a message to the target doctor terminal.
  • the target doctor terminal obtains the medical record information from the blockchain, makes a diagnosis result, writes the diagnosis result to the blockchain and sends a message to the patient terminal, and the patient terminal receives the message.
  • the diagnostic results can be viewed from the blockchain. In this way, patients and doctors can realize a complete disease diagnosis and treatment process based on the blockchain stored in their respective terminals.
  • the decentralization feature can ensure the high availability of the system, and at the same time, based on the immutability and openness of the data in the blockchain It can ensure the safety and traceability of medical information such as patient medical records and diagnosis results.
  • the embodiment of the present disclosure deploys a smart contract capable of automatically detecting image inspection data and a smart contract capable of converting a doctor's voice into text in the blockchain. The former can reduce the time and energy consumption of doctors in viewing image inspection data, and the latter can Rapid generation of diagnostic results.
  • FIG. 1 is a schematic diagram of the main steps of a diagnosis method based on a blockchain network performed on a patient terminal in an embodiment of the present disclosure
  • FIG. 2 is a schematic structural diagram of a blockchain network in an embodiment of the present disclosure
  • FIG. 3 is a schematic flowchart of a patient terminal entering a blockchain network in an embodiment of the present disclosure
  • FIG. 4 is a schematic flowchart of a doctor terminal entering a blockchain network in an embodiment of the present disclosure
  • FIG. 5 is a schematic flowchart of a hospital terminal entering a blockchain network in an embodiment of the present disclosure
  • FIG. 6 is a schematic diagram of a patient’s medical treatment process in an embodiment of the present disclosure.
  • Fig. 7 is a schematic diagram of a doctor's diagnosis flow in an embodiment of the present disclosure.
  • FIG. 8 is a schematic diagram of a patient feedback process in an embodiment of the present disclosure.
  • FIG. 9 is a schematic diagram of main steps of a diagnosis method based on a blockchain network executed on a doctor terminal in an embodiment of the present disclosure.
  • FIG. 10 is a schematic diagram of a main part of a diagnostic device based on a blockchain network provided in a patient terminal in an embodiment of the present disclosure
  • FIG. 11 is a schematic diagram of the main part of the block chain network-based diagnostic device installed in the doctor's terminal in the embodiment of the present disclosure
  • FIG. 12 is a schematic structural diagram of an electronic device used to implement the diagnostic method based on a blockchain network in an embodiment of the present disclosure.
  • Blockchain is an integrated innovative application model that integrates distributed storage, point-to-point data transmission, consensus mechanism, encryption algorithm and other computer technologies.
  • blockchain is an organizational structure of information resources, which is logically a linked list formed by one or more blocks. Blocks are used to store one or more information resources such as transaction records and smart contracts.
  • Each node in a distributed network of blockchain (hereinafter referred to as a blockchain network) holds the same blockchain, and a blockchain network consists of the aforementioned nodes that hold the blockchain.
  • blockchain can be divided into public chain, private chain and alliance chain.
  • the public chain is open to everyone on the Internet, such as Bitcoin and Ethereum.
  • Private chains are generally used within organizations and are not open to others.
  • the consortium chain is open to specific organizations and institutions.
  • Consensus Blockchain proper noun. There is no single accounting center on the blockchain, and the ledger is jointly recorded by the entire network. This presents a problem, that is, how to determine whether a transaction is legal. The process of determining whether a transaction is legal and whether a packaged block recommended by a node is recognized by everyone is called consensus, and only blocks that pass consensus will be recognized by the entire network.
  • Smart contract A piece of program code on the blockchain that specifies the rights and obligations of the parties involved in the contract and the terms of action. Contract stakeholders confirm smart contracts by sending blockchain transactions, pay for digital currency that may be required by the contract, and invoke functions specified in the smart contract.
  • FIG. 1 is a schematic diagram of the main steps of the diagnosis method based on the blockchain network in the embodiment of the present disclosure. As shown in FIG. 1 , the diagnosis method based on the blockchain network in the embodiment of the present disclosure may specifically perform the following steps:
  • Step S101 The patient terminal stores the patient's medical record information, writes the medical record information into the blockchain maintained by each node of the blockchain network, and sends a medical treatment message to the target doctor terminal.
  • the blockchain network is a computer network composed of multiple network nodes, and these network nodes include patient terminals and doctor terminals.
  • the network nodes may also include hospital terminals.
  • the patient terminal is the terminal used by the patient
  • the doctor terminal is the terminal used by the doctor
  • the hospital terminal is the terminal used by the hospital.
  • These terminals can be various computing devices such as smart phones, tablet computers, laptop computers, and desktop computers.
  • the above terminal generally needs to execute the diagnostic method of the embodiment of the present disclosure through a corresponding application program (eg, an application program on a desktop computer, an APP on a smart phone) set on the terminal.
  • a corresponding application program eg, an application program on a desktop computer, an APP on a smart phone
  • FIG. 2 is a schematic structural diagram of a blockchain network in an embodiment of the present disclosure. As shown in Fig. 2, multiple patient terminals and doctor terminals can be connected to each other based on any network connection type to form a blockchain network. The same blockchain is stored in a doctor's terminal. In practical applications, the above blockchain network can be a public chain network.
  • FIG. 3 is a schematic flowchart of a patient terminal entering a blockchain network in an embodiment of the present disclosure.
  • the patient terminal first stores identification information and payment method information provided by the patient.
  • the patient's identification information may include at least one of the following: name, ID number, mobile phone number, facial features extracted by a preset algorithm or model, and in some embodiments, may also include age, gender, and the like.
  • the patient's payment channel information may include the patient's bank account information (such as a bank card number) or electronic account information such as Alipay and WeChat.
  • step S301 the patient terminal calls the corresponding interface of the identity verification system (for example, the national resident identity information system) to verify the patient's name, ID number, facial features and other identification information, and if the verification is passed, the subsequent steps are performed, Otherwise end the process.
  • the patient terminal calls the payment verification system (for example, the bank card center) to verify the payment method information such as the patient's bank card number. If the payment verification system can determine the binding relationship between the payment method information such as the bank card number and the patient, Then execute the subsequent process, otherwise end the process.
  • the identity verification system for example, the national resident identity information system
  • the payment verification system for example, the bank card center
  • step S303 the patient terminal encrypts the patient's identification information and payment channel information, and the encryption type may be symmetric encryption or asymmetric encryption.
  • the encryption type may be symmetric encryption or asymmetric encryption.
  • the patient terminal can randomly generate the paired public key and private key according to the smart contract pre-deployed in the blockchain, and use the private key to encrypt the patient's identification information and payment method information.
  • step S304 the patient terminal calculates the third index data for querying the encrypted data based on the encrypted data of the patient identification information and the payment route information, for example, the hash value corresponding to the encrypted data is used as the third index data.
  • step S305 the patient terminal writes the encrypted data and the third index data into the blockchain.
  • PoW Proof of Work, workload
  • PoS Proof of Stake, Proof of Stake
  • step S306 the patient terminal locally stores the third index and the third key for decrypting the above-mentioned encrypted data (ie, the above-mentioned public key paired with the private key used for encrypting the identification information and the payment method information). It can be understood that the patient terminal can subsequently obtain the above encrypted data from the blockchain through the third index data, and obtain the patient's identification information and payment method information from the encrypted data by using the third key.
  • the third index and the third key for decrypting the above-mentioned encrypted data ie, the above-mentioned public key paired with the private key used for encrypting the identification information and the payment method information.
  • FIG. 4 is a schematic flowchart of a doctor terminal entering a blockchain network in an embodiment of the present disclosure.
  • the doctor terminal first stores the identification information, payment method information and authentication information provided by the doctor.
  • the doctor's identification information may include at least one of the following: name, ID number, mobile phone number, facial features extracted by a preset algorithm or model, and in some embodiments, may also include the doctor's age, gender Wait.
  • the doctor's payment method information may include the doctor's bank account information (such as bank card number) or electronic account information such as Alipay and WeChat, and the doctor's certification information may include the doctor's practice hospital information (such as the hospital name) and the doctor's practice certificate information ( Can include certificate number, scope of practice, etc.).
  • the doctor's bank account information such as bank card number
  • electronic account information such as Alipay and WeChat
  • the doctor's certification information may include the doctor's practice hospital information (such as the hospital name) and the doctor's practice certificate information ( Can include certificate number, scope of practice, etc.).
  • step S401 the doctor terminal calls the corresponding interface of the identity verification system (for example, the national resident identity information system) to verify the identification information such as the doctor's name, ID number, and facial features. If the verification is passed, the subsequent steps are performed. Otherwise end the process.
  • the doctor terminal calls the corresponding interface of the qualification verification system (for example, the official website of the National Health Commission) to verify the doctor's certification information.
  • the doctor's terminal can verify the practicing hospital information in the doctor's certification information according to the verified hospital information pre-written into the blockchain. The content of writing the hospital information into the blockchain will be described below.
  • step S403 the doctor terminal calls the payment verification system (for example, the bank card center) to verify the payment channel information such as the doctor's bank card number. If the payment verification system can determine the binding relationship between the payment channel information such as the bank card number and the doctor, Then execute the subsequent process, otherwise end the process.
  • the payment verification system for example, the bank card center
  • step S404 the doctor terminal encrypts the doctor's identification information, payment method information and authentication information, and the encryption type may be symmetric encryption or asymmetric encryption. In specific applications, it is generally necessary to combine the doctor's identification information, payment method information and authentication information with the current timestamp for encryption during encryption.
  • step S405 the doctor terminal calculates fourth index data for querying the encrypted data based on the encrypted data of the doctor identification information, payment method information and authentication information, for example, the hash value corresponding to the encrypted data is used as the fourth index data.
  • step S406 the doctor terminal writes the encrypted data and the fourth index data into the blockchain.
  • the doctor terminal stores the fourth index and the fourth key for decrypting the above encrypted data (eg, the public key paired with the private key used for encrypting identification information, payment route information and authentication information) locally. It can be understood that the doctor terminal can subsequently obtain the above encrypted data from the blockchain through the fourth index data, and obtain the doctor's identification information, payment method information and authentication information from the encrypted data by using the fourth key.
  • the fourth index and the fourth key for decrypting the above encrypted data eg, the public key paired with the private key used for encrypting identification information, payment route information and authentication information
  • FIG. 5 is a schematic flowchart of a hospital terminal entering a blockchain network in an embodiment of the present disclosure.
  • the hospital terminal first stores the qualification information and payment method information provided by the doctor.
  • the qualification information of the hospital may include at least one of the following: hospital name, business license information, hospital grade, legal representative, contact phone number, and the hospital's payment method information may include the hospital's bank account information (such as bank card number) or Alipay, WeChat and other electronic account information.
  • step S501 the hospital terminal calls the corresponding interface of the qualification verification system (for example, the official website of the National Health Commission) to verify the qualification information of the hospital.
  • the hospital terminal calls the payment verification system (for example, the bank card center) to verify the payment method information such as the bank card number of the hospital. If the payment verification system can determine the binding relationship between the payment method information such as the bank card number and the hospital, Then execute the subsequent process, otherwise end the process.
  • the hospital terminal encrypts the hospital's qualification information and payment channel information, and the encryption type may be symmetric encryption or asymmetric encryption. In specific applications, it is generally necessary to combine the hospital's qualification information and payment method information with the current timestamp for encryption.
  • step S504 the hospital terminal calculates sixth index data for querying the encrypted data based on the encrypted data of the hospital qualification information and payment route information, for example, the hash value corresponding to the encrypted data is used as the sixth index data.
  • step S505 the hospital terminal writes the encrypted data and the sixth index data into the blockchain.
  • step S506 the hospital terminal locally stores the sixth index and the sixth key for decrypting the above-mentioned encrypted data (eg, the public key paired with the private key used for encrypting qualification information and payment method information). It can be understood that the hospital terminal can subsequently obtain the above encrypted data from the blockchain through the sixth index data, and obtain the hospital's qualification information and payment method information from the encrypted data by using the sixth key.
  • the hospital that has performed steps S501 to S505 is a verified hospital, and the verified hospital information written in the blockchain can be used to verify the practicing hospital information in the certification information provided by the doctor.
  • the patient terminal stores the medical record information provided by the patient, writes the medical record information into the blockchain, and sends a medical treatment message to the target doctor terminal.
  • the above-mentioned medical record information may include one or more of the following: patient's symptom information, historical medical treatment data (such as the diagnosis process and diagnosis results in a physical hospital, these data can also be directly obtained from the corresponding interface provided by the hospital), image Inspection data (such as color Doppler ultrasound, CT image data, various laboratory tests such as blood routine, biochemical items, etc. CT stands for computed tomography).
  • the target doctor terminal can be the terminal used by the doctor designated by the patient, or the terminal used by the doctor automatically recommended for the patient based on the medical record information according to the smart contract pre-deployed in the blockchain.
  • the patient terminal can use the locally pre-stored third index data to query the encrypted data of the patient identification information and payment method information from the blockchain, and use the locally pre-stored third index data to query the encrypted data of the patient identification information and payment method information.
  • the patient's identification information and payment method information can be obtained.
  • the patient terminal can compare whether the patient identification information is consistent with the corresponding data of the medical record information to verify the medical record information, such as comparing the identification information with the medical record information. Whether the data such as name, gender, age, etc. are consistent.
  • the subsequent process can be executed, otherwise the process ends.
  • the patient terminal may write the encrypted data of the medical record information and the first index data for querying the encrypted data into the blockchain.
  • the first index data may be the hash value of the encrypted data.
  • the medical visit message sent by the patient terminal to the target doctor terminal may carry the first index data and the first key used to decrypt the encrypted data (for example, the public key paired with the private key used to encrypt the medical record information) . It can be understood that the target doctor terminal can subsequently acquire the patient's medical record information according to the first index data and the first key.
  • the patient terminal can call the first smart contract pre-deployed in the blockchain to detect the above-mentioned image inspection data to obtain the image inspection result.
  • the first smart contract contains corresponding algorithms for image processing and target recognition, which can detect targets such as nodules and provide relevant information such as target size and location. The time and energy spent by doctors in reviewing imaging examination data is conducive to improving the efficiency of diagnosis and treatment.
  • the patient terminal can package and encrypt the medical record information and the above-mentioned image detection results (in practical applications, the current timestamp can also be combined), and write the encrypted data and the first index data for querying the encrypted data into the blockchain.
  • the data encrypted and written into the blockchain may include the patient's identification information and payment method information in addition to the medical record information, image detection results, and current time stamp, and the patient's identification information may be used by doctors
  • the terminal performs further identity verification, and the payment route information can be used to support subsequent payment processes.
  • the patient terminal after the patient terminal completes the above-mentioned medical treatment process, the patient terminal can pay the service fee according to the payment rules stipulated by the corresponding smart contract. After the payment is completed, the payment result can be written into the blockchain, and the related service fee The transfer can be made according to the payment route information of the corresponding doctor.
  • Fig. 6 is a schematic diagram of a patient's medical consultation process in an embodiment of the present disclosure.
  • the patient terminal obtains the encrypted data of the patient identification information and the payment method information from the blockchain according to the third index data, and uses The third key is decrypted to obtain the patient's identification information and payment method information.
  • the patient terminal compares the patient identification information with the relevant data in the medical record information to verify the medical record information.
  • the patient terminal invokes the first smart contract to detect the image inspection data in the medical record information, and obtains the image inspection result.
  • the patient terminal encrypts the medical record information and the image detection result.
  • step S605 the patient terminal uses the hash value of the encrypted data as the first index data.
  • step S606 the patient terminal writes the encrypted data and the first index data into the blockchain.
  • step S607 the patient terminal sends the medical treatment message carrying the first index data and the first key to the target doctor terminal.
  • Step S102 The patient terminal receives the diagnosis completion message sent by the target doctor terminal.
  • the diagnosis completion message is sent by the target doctor terminal after writing the diagnosis result made by the doctor based on the patient's medical record information into the above-mentioned blockchain, and the medical record information is obtained from the above-mentioned blockchain after the target doctor's terminal receives the medical treatment message .
  • the target doctor terminal can query the encrypted data of the medical record information from the blockchain according to the first index data in the medical visit message (in some embodiments, the encrypted data may also be medical records) information and encrypted data of image detection results, and may also be encrypted data of medical record information, image detection results, patient identity information, and payment method information), and decrypt the encrypted data with the first key in the medical treatment message to obtain medical record information, or Medical record information and imaging test results, or medical record information, imaging test results, patient identity information, and payment method information.
  • the target doctor terminal obtains the patient's identity information, it can further verify the patient's identity information and related data such as name, age, and gender in the medical record information to ensure that the medical treatment information is correct.
  • the target doctor terminal may store the diagnosis result made by the doctor based on the medical record information, or the medical record information and the aforementioned image detection result.
  • the doctor does not need to write the diagnosis result but only makes a speech during diagnosis, and the target doctor terminal can call the second smart contract pre-deployed in the blockchain to convert the doctor's speech into the diagnosis result in text format and store it.
  • the second smart contract contains a corresponding algorithm for converting speech into text.
  • the target doctor terminal may write the encrypted data of the diagnosis result and the second index data for querying the encrypted data into the blockchain.
  • the diagnosis completion message sent by the target doctor terminal to the patient terminal may carry the second index data and the second key for decrypting the encrypted data (for example, the public key paired with the private key used to encrypt the diagnosis result) ).
  • the patient terminal can obtain the diagnosis result according to the second index data and the second key, thereby completing the diagnosis process.
  • the patient terminal may query the encrypted data of the diagnosis result from the blockchain according to the second index data in the diagnosis completion message, and use the first index data in the diagnosis completion message to query the encrypted data of the diagnosis result.
  • the second key decrypts the encrypted data to obtain a diagnosis result.
  • the patient terminal can store the acceptance information.
  • the acceptance condition information may indicate whether the patient accepts the diagnosis result. If the patient refuses to accept the diagnosis result, the reception condition information may further include rejection reason information.
  • the patient terminal can write the encrypted data of the acceptance information and the fifth index data (which can be the hash value of the encrypted data) for querying the encrypted data into the blockchain, and send a response message to the target doctor terminal,
  • the response message may carry fifth index data and a fifth key (eg, a public key paired with a private key used for encrypting the acceptance information) for decrypting the encrypted data of the acceptance information.
  • the patient terminal can make payment according to the corresponding smart contract pre-deployed in the blockchain, that is, use the payment method information to interact with the corresponding institution (such as a bank) and Processes such as identity authentication are performed to realize the transfer of funds.
  • the patient terminal can first freeze the deposit in the patient's bank card, and then deduct the money according to the rules defined by the smart contract (the recipient's identity authentication can also be performed during the deduction).
  • the deducted amount can include service fees, medicines Fees and follow-up inspection fees, etc.
  • the patient terminal can encrypt the payment result and write it into the blockchain, and send a payment completion message to the target doctor terminal.
  • the patient After the patient performs the payment process based on his terminal, he can perform subsequent actions such as drug collection and further inspection. It should be noted that the above payment process can be executed in parallel with the process of writing the acceptance information into the blockchain, or can be executed in any order, which is not limited in this disclosure.
  • the target doctor terminal After receiving the response message, the target doctor terminal queries the encrypted data of the acceptance information from the blockchain according to the fifth index data carried therein, and decrypts the encrypted data with the fifth key in the response message to obtain the patient's acceptance. situation information. If the acceptance information indicates that the patient accepts the diagnosis result, the target doctor terminal can receive the payment completion message sent by the patient terminal. After receiving the message, the target doctor terminal can collect the corresponding payment (such as service fee) based on the corresponding smart contract. It can be understood that the drug fee, the follow-up examination fee, etc. may be collected by the hospital terminal through the interaction between the patient terminal and the hospital terminal. In a specific application, when a doctor diagnoses multiple patients, the doctor terminal may preferably process the medical record information of historical patients, or may process the medical record information of each patient in chronological order. During the diagnosis process, doctors can choose whether to enable video consultation with patients.
  • FIG. 7 is a schematic diagram of a doctor's diagnosis flow in an embodiment of the present disclosure.
  • the target doctor terminal obtains the patient's medical record information, or medical record information and image detection results from the blockchain.
  • the target doctor terminal stores the diagnosis result obtained by the doctor according to the medical record information, or the medical record information and the image detection result.
  • the diagnosis result may be the text generated by the doctor's voice by calling the second smart contract by the target doctor's terminal.
  • the target doctor terminal encrypts the diagnosis result.
  • the target doctor terminal takes the hash value of the encrypted data as the second index data.
  • step S705 the target doctor terminal writes the encrypted data and the second index data into the blockchain.
  • step S706 the target doctor terminal sends a diagnosis completion message to the corresponding patient terminal.
  • step S707 the patient terminal stores the reception situation information provided by the patient.
  • step S708, the patient terminal encrypts the reception situation information.
  • step S709 the patient terminal uses the hash value of the encrypted data as the fifth index data.
  • step S710 the patient terminal writes the encrypted data and the fifth index data into the blockchain.
  • step S711 the patient terminal sends a response message to the target doctor terminal.
  • step S712 if the acceptance information indicates that the patient accepts the diagnosis result, the patient terminal automatically executes payment according to the corresponding smart contract.
  • step S713 the patient terminal writes the payment result into the blockchain.
  • step S714 the patient terminal sends a payment completion message to the target doctor terminal.
  • step S715 the target doctor terminal obtains the acceptance information from the blockchain.
  • step S716 the target doctor terminal obtains the payment result from the blockchain, and executes the payment action.
  • the patient terminal can store the patient's evaluation information on the doctor, and adjust the doctor's score and/or level according to the evaluation information and the third smart contract pre-deployed in the blockchain, and finally adjust the adjusted score and/or level. Levels are written to the blockchain. It is understood that the above data can be written to the blockchain after encryption. Through the above settings, it is possible to realize the dynamic consideration of the doctor's diagnosis level based on the patient evaluation. In actual scenarios, the patient terminal can also propose a follow-up visit to the same doctor or change other doctors according to the corresponding smart contract and the above evaluation information.
  • FIG. 8 is a schematic diagram of a patient feedback flow in an embodiment of the present disclosure.
  • the patient terminal stores the evaluation information provided by the patient.
  • the patient terminal invokes the third smart contract to adjust the doctor's score or level.
  • the patient terminal writes the adjusted doctor score or level into the blockchain.
  • FIG. 9 is a schematic diagram of the main steps of a diagnosis method based on a blockchain network performed on a doctor terminal in an embodiment of the present disclosure.
  • the above-mentioned diagnosis method may perform the following specific steps: Step S901 , the doctor terminal receives the data sent by the patient terminal.
  • step S902 the doctor terminal obtains the patient's medical record information from the blockchain maintained by each node of the blockchain network, stores the diagnosis result made by the doctor based on the medical record information, and writes the diagnosis result into all the medical records.
  • the block chain is used, and a diagnosis completion message is sent to the patient terminal; wherein, the medical treatment message is sent by the patient terminal after storing the medical record information and writing the medical record information into the block chain. Since the specific processes of medical treatment, diagnosis, payment, and evaluation have been introduced in the previous section, they will not be repeated here.
  • a decentralized blockchain network is formed by the patient terminal and the doctor terminal.
  • the patient terminal writes the patient's medical record information into the blockchain and sends it to the target doctor terminal
  • the target doctor terminal obtains the medical record information from the blockchain, makes the diagnosis result, writes the diagnosis result to the blockchain and sends the message to the patient terminal. to view the diagnostic results.
  • patients and doctors can realize a complete disease diagnosis and treatment process based on the blockchain stored in their respective terminals.
  • the decentralization feature can ensure the high availability of the system, and at the same time, based on the immutability and openness of the data in the blockchain Security can ensure the safety and traceability of medical information such as patient medical records and diagnosis results.
  • the embodiment of the present disclosure deploys a smart contract capable of automatically detecting image inspection data and a smart contract capable of converting a doctor's voice into text in the blockchain. The former can reduce the time and energy consumption of doctors in viewing image inspection data, and the latter can Rapid generation of diagnostic results.
  • the blockchain network system for diagnosis may include a patient terminal and a doctor terminal as network nodes; wherein, the patient terminal stores the patient's medical record information, and writes the medical record information to the patient terminal. Enter the blockchain maintained by each node of the blockchain network, and send the medical treatment message to the target doctor terminal; after receiving the medical treatment message sent by the patient terminal, the target doctor terminal obtains the medical record from the blockchain information, store the diagnosis result made by the doctor based on the medical record information, write the diagnosis result into the blockchain, and send a diagnosis completion message to the patient terminal.
  • the patient terminal after storing the patient's medical record information, the patient terminal writes the encrypted data of the medical record information and the first index data into the blockchain; wherein, the first index data is used to query the encrypted data data; and, the medical treatment message carries first index data and a first key for decrypting the encrypted data; after receiving the medical treatment message, the target doctor terminal, after receiving the medical treatment message, The encrypted data is obtained by querying the index data from the blockchain, and the encrypted data is decrypted by using the first key in the medical treatment message to obtain the medical record information.
  • the target doctor terminal after storing the diagnosis result, writes the encrypted data of the diagnosis result and the second index data into the blockchain; wherein, the second index data is used to query the information of the diagnosis result. encrypted data; and, the diagnosis completion message carries second index data and a second key for decrypting the encrypted data of the diagnosis result.
  • the medical record information includes the patient's image examination data; after storing the patient's medical record information, the patient terminal invokes the first smart contract deployed in the blockchain to detect the image examination data to obtain the image detection result, and write the medical record information, the encrypted data of the image detection result and the first index data into the blockchain.
  • the diagnosis result is in a text format; and the target doctor terminal invokes a second smart contract deployed in the blockchain to convert the doctor's voice into the diagnosis result and store it.
  • any patient terminal stores the patient's identification information and payment method information before storing the patient's medical record information; after verifying the identification information and the payment method information, the identification information and the payment method
  • the encrypted data of the pathway information and the third index data are written into the blockchain, and the third index data and the third key used to decrypt the encrypted data are stored locally; after the patient terminal stores the patient's medical record information,
  • the encrypted data is queried from the blockchain according to the third index data stored locally, the encrypted data is decrypted using the third key stored locally to obtain the identification information, and the identification information and the medical record information are analyzed. Check it out.
  • the target doctor terminal before receiving the medical visit message, stores the doctor's identification information, payment method information and authentication information, and after verifying the identification information, the payment method information and the authentication information, Write the encrypted data and fourth index data of the identification information, the payment method information and the authentication information into the blockchain; wherein, the doctor's authentication information includes the doctor's practice hospital information; the target doctor's terminal is based on the pre-written data
  • the verified hospital information of the blockchain is used to verify the doctor's practice hospital information.
  • the patient terminal after receiving the diagnosis completion message sent by the target doctor terminal, the patient terminal queries the encrypted data of the diagnosis result from the blockchain according to the second index data in the diagnosis completion message, Use the second key in the diagnosis completion message to decrypt the encrypted data to obtain the diagnosis result; and store the patient's acceptance information for the diagnosis result, and write the encrypted data of the acceptance information and the fifth index data into enter the blockchain, and send a response message to the target doctor terminal; wherein, the fifth index data is used to query the encrypted data of the acceptance information, and the response message carries the fifth index data and is used to decrypt the The fifth key of the encrypted data of the acceptance information; in response to the acceptance information indicating that the patient accepts the diagnosis result, the patient terminal makes payment based on the patient's payment route information after storing the acceptance information, and writes the payment result into all
  • the target doctor terminal queries the encrypted data of the acceptance information from the blockchain according to the fifth index data, Decrypt the encrypted data with the fifth key to obtain the acceptance information; after receiving the payment completion message, obtain the
  • the patient terminal stores the patient's evaluation information on the doctor, adjusts the doctor's score and/or level according to the evaluation information and the third smart contract pre-deployed in the blockchain, and compares the adjusted score to the doctor's score. / or level written to said blockchain.
  • the patient's medical record information further includes symptom information and/or historical medical treatment information;
  • the identification information includes at least one of the following: name, ID number, mobile phone number, and facial features;
  • the payment The access information includes: bank account information and/or electronic account information;
  • the doctor's certification information further includes: the doctor's practice certificate information; if the acceptance information indicates that the patient refuses to accept the diagnosis result, the acceptance information further includes the refusal Reason information.
  • a decentralized blockchain network is formed by the patient terminal and the doctor terminal.
  • the patient terminal writes the patient's medical record information into the blockchain and sends it to the target doctor terminal
  • the target doctor terminal obtains the medical record information from the blockchain, makes the diagnosis result, writes the diagnosis result to the blockchain and sends the message to the patient terminal. to view the diagnostic results.
  • patients and doctors can realize a complete disease diagnosis and treatment process based on the blockchain stored in their respective terminals.
  • the decentralization feature can ensure the high availability of the system, and at the same time, based on the immutability and openness of the data in the blockchain Security can ensure the safety and traceability of medical information such as patient medical records and diagnosis results.
  • the embodiment of the present disclosure deploys a smart contract capable of automatically detecting image inspection data and a smart contract capable of converting a doctor's voice into text in the blockchain. The former can reduce the time and energy consumption of doctors in viewing image inspection data, and the latter can Rapid generation of diagnostic results.
  • FIG. 10 is a schematic diagram of the main part of the block chain network-based diagnostic apparatus provided in the patient terminal in the embodiment of the present disclosure.
  • the apparatus 1000 may include a medical treatment unit 1001 and a first receiving unit 1002 .
  • the medical treatment unit 1001 can be used to store the medical record information of the patient, write the medical record information into the blockchain maintained by each node of the blockchain network, and send the medical treatment message to the target doctor terminal;
  • the first receiving unit 1002 can be used After receiving the diagnosis completion message sent by the target doctor terminal; wherein, the diagnosis completion message is sent by the target doctor terminal after writing the diagnosis result made by the doctor based on the medical record information into the blockchain, and the medical record information is the target doctor terminal.
  • the doctor terminal obtains from the blockchain after receiving the medical consultation message.
  • the medical treatment unit 1001 is further configured to: write the encrypted data of the medical record information and the first index data into the blockchain; wherein, the first index data is used to query the encrypted data; and , the medical treatment message carries first index data and a first key for decrypting the encrypted data; the medical record information is obtained by the target doctor terminal from the blockchain after receiving the medical treatment message It includes: the target doctor terminal inquires the encrypted data from the blockchain according to the first index data in the medical treatment message, and decrypts the encrypted data by using the first key in the medical treatment message to obtain the encrypted data. medical record information.
  • the medical record information includes the image examination data of the patient; the device 1000 further includes a first processing unit, which is used for: after storing the medical record information of the patient, call the first intelligent intelligence deployed in the blockchain.
  • the contract detects the image inspection data to obtain an image inspection result; and the encrypted data of the medical record information includes: the encrypted data of the medical record information and the image inspection result.
  • the device 1000 may further include a patient information storage and verification unit, which is used for: before storing the patient's medical record information, store the patient's identification information and payment method information; After the payment route information, write the identification information and the encrypted data of the payment route information and the third index data into the blockchain, and write the third index data and the third index data for decrypting the encrypted data.
  • the key is stored locally; after the patient's medical record information is stored, the encrypted data is queried from the blockchain according to the third index data stored locally, and the encrypted data is decrypted using the third key stored locally to obtain the identification information, and verifying the identification information and the medical record information.
  • the diagnosis completion message is sent by the target doctor terminal after writing the diagnosis result made by the doctor based on the medical record information into the blockchain, including: the target doctor terminal writes the encrypted data of the diagnosis result and the first The second index data is written into the blockchain; wherein the second index data is used to query the encrypted data of the diagnosis result, and the diagnosis completion message carries the second index data and the encryption used to decrypt the diagnosis result the second key of the data; and, the apparatus 1000 may further include a feedback and payment unit, which is used for: after receiving the diagnosis completion message sent by the target doctor terminal, according to the second index data in the diagnosis completion message Query the encrypted data of the diagnosis result from the blockchain, decrypt the encrypted data with the second key in the diagnosis completion message to obtain the diagnosis result; and store the patient's acceptance of the diagnosis result information, write the encrypted data of the acceptance information and the fifth index data into the blockchain, and send a response message to the target doctor terminal; wherein, the fifth index data is used to query the encrypted data of the acceptance information, The response message carries fifth index
  • the device 1000 may further include an evaluation unit, which is used to: store the evaluation information of the patient on the doctor, and adjust the doctor's score according to the evaluation information and the third smart contract pre-deployed in the blockchain. and/or level, and write the adjusted score and/or level to said blockchain.
  • an evaluation unit which is used to: store the evaluation information of the patient on the doctor, and adjust the doctor's score according to the evaluation information and the third smart contract pre-deployed in the blockchain. and/or level, and write the adjusted score and/or level to said blockchain.
  • the patient's medical record information further includes symptom information and/or historical medical treatment information;
  • the identification information includes at least one of the following: name, ID number, mobile phone number, and facial features;
  • the payment The route information includes: bank account information and/or electronic account information; if the acceptance information indicates that the patient refuses to receive the diagnosis result, the acceptance information further includes reason for rejection information.
  • FIG. 11 is a schematic diagram of the main part of the block chain network-based diagnostic apparatus provided in the doctor terminal in the embodiment of the present disclosure.
  • the apparatus 1100 may include a second receiving unit 1101 and a diagnosis unit 1102 .
  • the second receiving unit 1101 can be used to receive the medical treatment message sent by the patient terminal
  • the diagnosis unit 1102 can be used to obtain the patient's medical record information from the blockchain maintained by each node of the blockchain network, and store the doctor's medical record information based on the medical record information.
  • the diagnosis result is made, the diagnosis result is written into the blockchain, and a diagnosis completion message is sent to the patient terminal; wherein, the medical treatment message is that the patient terminal is storing the medical record information and writing the medical record information. Sent after entering the blockchain.
  • the medical visit message is sent by the patient terminal after storing the medical record information and writing the medical record information into the blockchain, including: the patient terminal writes the encrypted data of the medical record information and the first index data are written into the blockchain; wherein, the first index data is used to query the encrypted data, and the medical treatment message carries the first index data and the first password used to decrypt the encrypted data.
  • the diagnosis unit 1102 may be further configured to: query the encrypted data from the blockchain according to the first index data in the medical visit message, and decrypt the encrypted data by using the first key in the medical visit message The encrypted data is used to obtain the medical record information.
  • the diagnosis unit 1102 may be further configured to: write the encrypted data of the diagnosis result and the second index data into the blockchain; wherein the second index data is used to query the encrypted data of the diagnosis result; And, the diagnosis completion message carries second index data and a second key for decrypting the encrypted data of the diagnosis result.
  • diagnosis result is in a text format; and the diagnosis unit 1102 may be further configured to: call a second smart contract deployed in the blockchain to convert the doctor's voice into the diagnosis result and store it.
  • the device 1100 may further include a doctor information storage and verification unit, which is configured to: before receiving the medical consultation message, store the doctor's identification information, payment method information and authentication information, and verify the doctor's information. After the identification information, the payment method information and the authentication information, the encrypted data and fourth index data of the identification information, the payment method information and the authentication information are written into the blockchain; wherein the doctor's authentication information includes the doctor's The practicing hospital information, the practicing hospital information is verified based on the verified hospital information written in the blockchain in advance.
  • a doctor information storage and verification unit which is configured to: before receiving the medical consultation message, store the doctor's identification information, payment method information and authentication information, and verify the doctor's information. After the identification information, the payment method information and the authentication information, the encrypted data and fourth index data of the identification information, the payment method information and the authentication information are written into the blockchain; wherein the doctor's authentication information includes the doctor's The practicing hospital information, the practicing hospital information is verified based on the verified hospital information written in the blockchain in advance.
  • the device 1100 may further include a feedback receiving unit, which is used for: receiving a response message sent by the patient terminal; querying the blockchain according to the fifth index data in the response message The encrypted data of the acceptance information of the diagnosis result is decrypted by using the fifth key in the response message to obtain the acceptance information; wherein, the response message is that the patient terminal is storing the acceptance information, The encrypted data of the acceptance information and the fifth index data for querying the encrypted data are written into the blockchain and sent.
  • a feedback receiving unit which is used for: receiving a response message sent by the patient terminal; querying the blockchain according to the fifth index data in the response message
  • the encrypted data of the acceptance information of the diagnosis result is decrypted by using the fifth key in the response message to obtain the acceptance information; wherein, the response message is that the patient terminal is storing the acceptance information,
  • the encrypted data of the acceptance information and the fifth index data for querying the encrypted data are written into the blockchain and sent.
  • the apparatus 1100 may further include a payment result receiving unit, which is configured to: receive a payment completion message sent by the patient terminal; obtain the payment result of the patient terminal from the blockchain; wherein, the The payment completion message is sent by the patient terminal after judging that the acceptance information indicates that the patient accepts the diagnosis result, and the payment result is written into the blockchain.
  • a payment result receiving unit configured to: receive a payment completion message sent by the patient terminal; obtain the payment result of the patient terminal from the blockchain; wherein, the The payment completion message is sent by the patient terminal after judging that the acceptance information indicates that the patient accepts the diagnosis result, and the payment result is written into the blockchain.
  • the patient's medical record information further includes image examination data, symptom information and/or historical medical treatment data;
  • the identification information includes at least one of the following: name, ID number, mobile phone number, facial features ;
  • the payment method information includes: bank account information and/or electronic account information;
  • the doctor's certification information further includes: the doctor's practice certificate information; if the acceptance information indicates that the patient refuses to accept the diagnosis result, the acceptance information Include further information on the reason for rejection.
  • An electronic device includes: one or more processors; and a storage device for storing one or more programs, and when the one or more programs are executed by the one or more processors, the one or more programs cause the One or more processors implement the blockchain network-based diagnostic method provided by the present disclosure.
  • FIG. 12 shows a schematic structural diagram of a computer system 1200 suitable for implementing an electronic device of an embodiment of the present disclosure.
  • the electronic device shown in FIG. 12 is only an example, and should not impose any limitation on the function and scope of use of the embodiments of the present disclosure.
  • a computer system 1200 includes a central processing unit (CPU) 1201, which can be loaded into a random access memory (RAM) 1203 according to a program stored in a read only memory (ROM) 1202 or a program from a storage section 1208 Instead, various appropriate actions and processes are performed.
  • RAM random access memory
  • ROM read only memory
  • RAM random access memory
  • various programs and data necessary for the operation of the computer system 1200 are also stored.
  • the CPU 1201, ROM 1202, and RAM 1203 are connected to each other through a bus 1204.
  • An input/output (I/O) interface 1205 is also connected to bus 1204 .
  • the following components are connected to the I/O interface 1205: an input section 1206 including a keyboard, a mouse, etc.; an output section 1207 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 1208 including a hard disk, etc. ; and a communication section 1209 including a network interface card such as a LAN card, a modem, and the like.
  • the communication section 1209 performs communication processing via a network such as the Internet.
  • Drivers 1210 are also connected to I/O interface 1205 as needed.
  • a removable medium 1211 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is mounted on the drive 1210 as needed, so that a computer program read therefrom is installed into the storage section 1208 as needed.
  • the processes described in the main step diagrams above may be implemented as computer software programs.
  • embodiments of the present disclosure include a computer program product comprising a computer program carried on a computer-readable medium, the computer program containing program code for performing the method shown in the main step diagram.
  • the computer program can be downloaded and installed from the network through the communication section 1209, and/or installed from the removable medium 1211.
  • the central processing unit 1201 the above-described functions defined in the system of the present disclosure are executed.
  • the computer-readable medium shown in the present disclosure may be a computer-readable signal medium or a computer-readable storage medium, or any combination of the above two.
  • the computer-readable storage medium can be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus or device, or a combination of any of the above. More specific examples of computer readable storage media may include, but are not limited to, electrical connections with one or more wires, portable computer disks, hard disks, random access memory (RAM), read only memory (ROM), erasable Programmable read only memory (EPROM or flash memory), fiber optics, portable compact disk read only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.
  • a computer-readable storage medium may be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, apparatus, or device.
  • a computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave with computer-readable program code embodied thereon. Such propagated data signals may take a variety of forms including, but not limited to, electromagnetic signals, optical signals, or any suitable combination of the foregoing.
  • a computer-readable signal medium can also be any computer-readable medium, other than a computer-readable storage medium, that can transmit, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device.
  • Program code embodied on a computer readable medium may be transmitted using any suitable medium including, but not limited to, wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
  • each block in the flowchart or block diagrams may represent a module, segment, or portion of code that contains one or more logical functions for implementing the specified functions executable instructions.
  • the functions noted in the blocks may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved.
  • the units involved in the embodiments of the present disclosure may be implemented in a software manner, and may also be implemented in a hardware manner.
  • the described unit can also be provided in the processor, for example, it can be described as: a processor includes a medical treatment unit and a first receiving unit. Wherein, the names of these units do not constitute a limitation of the unit itself under certain circumstances, for example, the medical treatment unit may also be described as "a unit that helps the first receiving unit to receive a diagnosis completion message".
  • the present disclosure also provides a computer-readable medium.
  • the computer-readable medium may be included in the device described in the above embodiments; it may also exist independently without being assembled into the device. .
  • the above-mentioned computer-readable medium carries one or more programs, and when the above-mentioned one or more programs are executed by the device, the steps performed by the device include: storing the patient's medical record information, and writing the medical record information into the area.
  • the block chain maintained by each node of the block chain network, and send a medical treatment message to the target doctor terminal; receive a diagnosis completion message sent by the target doctor terminal; wherein, the diagnosis completion message is the target doctor terminal.
  • the doctor made based on the medical record information.
  • the diagnosis result is sent after being written into the blockchain, and the medical record information is obtained from the blockchain after the target doctor terminal receives the medical treatment message.
  • a decentralized blockchain network is formed by the patient terminal and the doctor terminal.
  • the patient terminal writes the patient's medical record information into the blockchain and sends it to the target doctor terminal
  • the target doctor terminal obtains the medical record information from the blockchain, makes the diagnosis result, writes the diagnosis result to the blockchain and sends the message to the patient terminal. to view the diagnostic results.
  • patients and doctors can realize a complete disease diagnosis and treatment process based on the blockchain stored in their respective terminals.
  • the decentralization feature can ensure the high availability of the system, and at the same time, based on the immutability and openness of the data in the blockchain Security can ensure the safety and traceability of medical information such as patient medical records and diagnosis results.
  • the embodiment of the present disclosure deploys a smart contract capable of automatically detecting image inspection data and a smart contract capable of converting a doctor's voice into text in the blockchain. The former can reduce the time and energy consumption of doctors in viewing image inspection data, and the latter can Rapid generation of diagnostic results.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Physics & Mathematics (AREA)
  • Databases & Information Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Computer Security & Cryptography (AREA)
  • Health & Medical Sciences (AREA)
  • Software Systems (AREA)
  • General Health & Medical Sciences (AREA)
  • Bioethics (AREA)
  • Computer Hardware Design (AREA)
  • Epidemiology (AREA)
  • Public Health (AREA)
  • Computational Linguistics (AREA)
  • Primary Health Care (AREA)
  • Medical Informatics (AREA)
  • Computing Systems (AREA)
  • Medical Treatment And Welfare Office Work (AREA)

Abstract

A blockchain network-based diagnosis method and apparatus, and a blockchain network system, relating to the technical field of computers. The method comprises: storing medical record information of a patient, writing the medical record information into a blockchain maintained by nodes of a blockchain network, and sending a visit message to a target doctor terminal (S101); and receiving a diagnosis completion message sent by the target doctor terminal (S102). The diagnosis completion message is sent after the target doctor terminal writes into the blockchain a diagnosis result made by a doctor on the basis of the medical record information, and the medical record information is acquired from the blockchain after the target doctor terminal receives the visit message. The method can achieve a decentralized diagnosis process, and ensures, by means of blockchain technology, that medical information in the diagnosis process will not be tampered.

Description

基于区块链网络的诊断方法、装置和区块链网络***Diagnosis method, device and blockchain network system based on blockchain network
本申请要求于2020年9月28日提交的中国申请号202011043354.6、发明名称为“基于区块链网络的诊断方法、装置和区块链网络***”的申请的优先权,其全部内容通过引用的方式并入本文中。This application claims the priority of the Chinese application No. 202011043354.6 filed on September 28, 2020 with the invention titled "Blockchain Network-Based Diagnostic Method, Device and Blockchain Network System", the entire contents of which are hereby incorporated by reference manner is incorporated herein.
技术领域technical field
本公开涉及计算机技术领域,尤其涉及一种基于区块链网络的诊断方法、装置和区块链网络***。The present disclosure relates to the field of computer technology, and in particular, to a blockchain network-based diagnostic method, device, and blockchain network system.
背景技术Background technique
在现有的实体医院和互联网医院中,无法确保患者病历等信息不被篡改,特别是出现医疗纠纷的情况下,如何实现医疗信息的不可篡改和公开可查具有重要意义。另外,现有技术中医生需要耗费相当的时间和精力来查看患者的影像检查资料以及书写诊断结果(包括疾病类型和治疗方法),这会影响诊断效率。In the existing physical hospitals and Internet hospitals, it is impossible to ensure that information such as patient medical records is not tampered with, especially in the case of medical disputes, how to realize the non-tampering and openness of medical information is of great significance. In addition, in the prior art, a doctor needs to spend considerable time and energy to check the patient's imaging examination data and write the diagnosis result (including the disease type and treatment method), which will affect the diagnosis efficiency.
发明内容SUMMARY OF THE INVENTION
有鉴于此,本公开实施例提供一种基于区块链网络的诊断方法、装置和区块链网络***,能够实现去中心化的诊断流程,并通过区块链技术确保诊断过程中的医疗信息不可篡改。In view of this, the embodiments of the present disclosure provide a blockchain network-based diagnosis method, device, and blockchain network system, which can realize a decentralized diagnosis process and ensure medical information in the diagnosis process through blockchain technology. Immutable.
为实现上述目的,根据本公开的一个方面,提供了一种基于区块链网络的诊断方法,所述区块链网络包括作为网络节点的患者终端和医生终端。In order to achieve the above object, according to one aspect of the present disclosure, a method for diagnosis based on a blockchain network is provided, and the blockchain network includes a patient terminal and a doctor terminal as network nodes.
本公开实施例的基于区块链网络的诊断方法应用在患者终端,包括:存储患者的病历信息,将所述病历信息写入所述区块链网络各节 点维护的区块链,并向目标医生终端发送就诊消息;接收目标医生终端发送的诊断完成消息;其中,所述诊断完成消息是目标医生终端将医生基于所述病历信息作出的诊断结果写入所述区块链之后发送的,所述病历信息是目标医生终端在接收到所述就诊消息之后从所述区块链中获取的。The blockchain network-based diagnosis method of the embodiment of the present disclosure is applied to a patient terminal, including: storing the patient's medical record information, writing the medical record information into the blockchain maintained by each node of the blockchain network, and sending the information to the target The doctor terminal sends a medical treatment message; receives a diagnosis completion message sent by the target doctor terminal; wherein, the diagnosis completion message is sent by the target doctor terminal after writing the diagnosis result made by the doctor based on the medical record information into the blockchain, so the The medical record information is obtained from the blockchain after the target doctor terminal receives the medical treatment message.
可选地,所述将所述病历信息写入所述区块链网络各节点维护的区块链,包括:将所述病历信息的加密数据和第一索引数据写入所述区块链;其中,第一索引数据用于查询所述加密数据;以及,所述就诊消息中携带有第一索引数据和用于解密所述加密数据的第一密钥;所述病历信息是目标医生终端在接收到所述就诊消息之后从所述区块链中获取的,包括:目标医生终端根据所述就诊消息中的第一索引数据从所述区块链中查询到所述加密数据,利用所述就诊消息中的第一密钥解密所述加密数据得到所述病历信息。Optionally, the writing the medical record information into the blockchain maintained by each node of the blockchain network includes: writing the encrypted data and the first index data of the medical record information into the blockchain; Wherein, the first index data is used to query the encrypted data; and, the medical treatment message carries the first index data and the first key used to decrypt the encrypted data; the medical record information is the target doctor terminal in the Obtained from the blockchain after receiving the medical treatment message, including: the target doctor terminal queries the encrypted data from the blockchain according to the first index data in the medical treatment message, and uses the The first key in the medical treatment message decrypts the encrypted data to obtain the medical record information.
可选地,在存储患者的病历信息之后,调用部署在所述区块链的第一智能合约检测所述影像检查资料以得到影像检测结果;所述病历信息的加密数据包括:所述病历信息和所述影像检测结果的加密数据。Optionally, after storing the patient's medical record information, call the first smart contract deployed in the blockchain to detect the image inspection data to obtain an image inspection result; the encrypted data of the medical record information includes: the medical record information and encrypted data of the image detection result.
可选地,在存储患者的病历信息之前,存储患者的标识信息和支付途径信息;在校验所述标识信息和所述支付途径信息之后,将所述标识信息和所述支付途径信息的加密数据以及第三索引数据写入所述区块链,并将第三索引数据和用于解密该加密数据的第三密钥存储在本地;在存储患者的病历信息之后,根据本地存储的第三索引数据从所述区块链中查询到该加密数据,利用本地存储的第三密钥解密该加密数据得到所述标识信息,并对所述标识信息与所述病历信息进行校验。Optionally, before storing the patient's medical record information, store the patient's identification information and payment route information; after verifying the identification information and the payment route information, encrypt the identification information and the payment route information. The data and the third index data are written into the blockchain, and the third index data and the third key used to decrypt the encrypted data are stored locally; after the patient's medical record information is stored, according to the locally stored third key The encrypted data is queried from the block chain by the index data, the encrypted data is decrypted using the locally stored third key to obtain the identification information, and the identification information and the medical record information are verified.
可选地,所述诊断完成消息是目标医生终端将医生基于所述病历信息作出的诊断结果写入所述区块链之后发送的,包括:目标医生终 端将所述诊断结果的加密数据和第二索引数据写入所述区块链;其中,第二索引数据用于查询所述诊断结果的加密数据,所述诊断完成消息中携带有第二索引数据和用于解密所述诊断结果的加密数据的第二密钥;以及,所述方法进一步包括:在接收到目标医生终端发送的诊断完成消息之后,根据所述诊断完成消息中的第二索引数据从所述区块链中查询到所述诊断结果的加密数据,利用所述诊断完成消息中的第二密钥解密该加密数据得到所述诊断结果;并存储患者针对所述诊断结果的接受情况信息,将所述接受情况信息的加密数据以及第五索引数据写入所述区块链,向目标医生终端发送响应消息;其中,第五索引数据用于查询所述接受情况信息的加密数据,所述响应消息中携带有第五索引数据和用于解密所述接受情况信息的加密数据的第五密钥;响应于所述接受情况信息指示患者接受诊断结果,基于患者的支付途径信息进行支付,将支付结果写入所述区块链,并向目标医生终端发送支付完成消息。Optionally, the diagnosis completion message is sent after the target doctor terminal writes the diagnosis result made by the doctor based on the medical record information into the blockchain, including: the target doctor terminal writes the encrypted data of the diagnosis result and the first The second index data is written into the blockchain; wherein the second index data is used to query the encrypted data of the diagnosis result, and the diagnosis completion message carries the second index data and the encryption used to decrypt the diagnosis result and the method further includes: after receiving the diagnosis completion message sent by the target doctor terminal, querying the block chain according to the second index data in the diagnosis completion message The encrypted data of the diagnosis result is obtained by decrypting the encrypted data with the second key in the diagnosis completion message to obtain the diagnosis result; and the patient's acceptance information for the diagnosis result is stored, and the encrypted data of the acceptance information is encrypted. The data and the fifth index data are written into the blockchain, and a response message is sent to the target doctor terminal; wherein, the fifth index data is used to query the encrypted data of the acceptance information, and the response message carries the fifth index data and a fifth key for decrypting the encrypted data of the acceptance information; in response to the acceptance information indicating that the patient accepts a diagnosis result, payment is made based on the patient's payment route information, and the payment result is written into the block chain, and send a payment completion message to the target doctor terminal.
可选地,所述方法进一步包括:存储患者对医生的评价信息,依据所述评价信息以及预先部署在所述区块链的第三智能合约调整该医生的分数和/或级别,并将调整后的分数和/或级别写入所述区块链。Optionally, the method further includes: storing the evaluation information of the patient on the doctor, adjusting the doctor's score and/or level according to the evaluation information and a third smart contract pre-deployed in the blockchain, and adjusting the doctor's score and/or level. Post scores and/or levels are written to the blockchain.
可选地,患者的病历信息进一步包括症状信息和/或历史就诊资料;所述标识信息包括以下至少一种:姓名、身份证号、手机号、人脸特征;所述支付途径信息包括:银行账户信息和/或电子账户信息;如果所述接受情况信息指示患者拒绝接受诊断结果,则所述接收情况信息中进一步包括拒绝原因信息。Optionally, the patient's medical record information further includes symptom information and/or historical medical treatment information; the identification information includes at least one of the following: name, ID number, mobile phone number, and facial features; the payment channel information includes: bank Account information and/or electronic account information; if the acceptance information indicates that the patient refuses to receive the diagnosis result, the acceptance information further includes refusal reason information.
为实现上述目的,根据本公开的再一方面,提供了一种基于区块链网络的诊断方法。To achieve the above object, according to yet another aspect of the present disclosure, a diagnostic method based on a blockchain network is provided.
本公开实施例的基于区块链网络的诊断方法应用在医生终端,包括:接收患者终端发送的就诊消息;从所述区块链网络各节点维护的 区块链中获取患者的病历信息,存储医生基于所述病历信息作出的诊断结果,将所述诊断结果写入所述区块链,并向患者终端发送诊断完成消息;其中,所述就诊消息是患者终端在存储所述病历信息、并将所述病历信息写入所述区块链之后发送的。The blockchain network-based diagnosis method of the embodiment of the present disclosure is applied to a doctor terminal, including: receiving a medical treatment message sent by a patient terminal; acquiring the patient's medical record information from the blockchain maintained by each node of the blockchain network, storing Based on the diagnosis result made by the medical record information, the doctor writes the diagnosis result into the blockchain, and sends a diagnosis completion message to the patient terminal; wherein, the medical visit message is that the patient terminal is storing the medical record information and storing the medical record information. Sent after the medical record information is written into the blockchain.
可选地,所述就诊消息是患者终端在存储所述病历信息、并将所述病历信息写入所述区块链之后发送的,包括:患者终端将所述病历信息的加密数据和第一索引数据写入所述区块链;其中,第一索引数据用于查询所述加密数据,所述就诊消息中携带有第一索引数据和用于解密所述加密数据的第一密钥;以及,所述方法进一步包括:根据所述就诊消息中的第一索引数据从所述区块链中查询到所述加密数据,利用所述就诊消息中的第一密钥解密所述加密数据得到所述病历信息。Optionally, the medical visit message is sent by the patient terminal after storing the medical record information and writing the medical record information into the blockchain, including: the patient terminal sends the encrypted data of the medical record information and the first Index data is written into the blockchain; wherein, the first index data is used to query the encrypted data, and the medical treatment message carries the first index data and a first key for decrypting the encrypted data; and , the method further includes: querying the encrypted data from the blockchain according to the first index data in the medical treatment message, and decrypting the encrypted data by using the first key in the medical treatment message to obtain the encrypted data. medical record information.
可选地,所述将所述诊断结果写入所述区块链,包括:将所述诊断结果的加密数据和第二索引数据写入所述区块链;其中,第二索引数据用于查询所述诊断结果的加密数据;以及,所述诊断完成消息中携带有第二索引数据和用于解密所述诊断结果的加密数据的第二密钥。Optionally, the writing of the diagnosis result into the blockchain includes: writing encrypted data of the diagnosis result and second index data into the blockchain; wherein the second index data is used for query the encrypted data of the diagnosis result; and, the diagnosis completion message carries second index data and a second key for decrypting the encrypted data of the diagnosis result.
可选地,所述诊断结果为文本格式;以及,所述存储医生基于所述病历信息作出的诊断结果,包括:调用部署在所述区块链的第二智能合约将医生语音转换为所述诊断结果并存储。Optionally, the diagnosis result is in a text format; and the storing of the diagnosis result made by the doctor based on the medical record information includes: invoking a second smart contract deployed in the blockchain to convert the doctor's voice into the Diagnose results and store.
可选地,所述方法进一步包括:在接收所述就诊消息之前,存储医生的标识信息、支付途径信息和认证信息,并在校验该标识信息、该支付途径信息和该认证信息之后,将该标识信息、该支付途径信息和该认证信息的加密数据和第四索引数据写入所述区块链;其中,医生的认证信息包括医生的执业医院信息,所述执业医院信息是基于预先写入所述区块链的已验证医院信息进行校验的。Optionally, the method further includes: before receiving the medical treatment message, storing the identification information, payment route information and authentication information of the doctor, and after verifying the identification information, the payment route information and the authentication information, storing the identification information, the payment route information and the authentication information. The encrypted data and fourth index data of the identification information, the payment method information and the authentication information are written into the blockchain; wherein, the authentication information of the doctor includes the information of the doctor's practice hospital, and the practice hospital information is based on the pre-written information The verified hospital information entered into the blockchain is verified.
可选地,所述方法进一步包括:接收患者终端发送的响应消息;根据所述响应消息中的第五索引数据从所述区块链中查询到患者针对所述诊断结果的接受情况信息的加密数据,利用所述响应消息中的第五密钥解密该加密数据得到所述接受情况信息;其中,所述响应消息是患者终端在存储所述接受情况信息、并将所述接受情况信息的加密数据以及用于查询该加密数据的第五索引数据写入所述区块链之后发送的。Optionally, the method further includes: receiving a response message sent by the patient terminal; querying the blockchain according to the fifth index data in the response message to obtain the encryption of the patient's acceptance information for the diagnosis result. data, decrypt the encrypted data with the fifth key in the response message to obtain the acceptance information; wherein, the response message is that the patient terminal is storing the acceptance information and encrypting the acceptance information The data and the fifth index data for querying the encrypted data are sent after being written into the blockchain.
可选地,所述方法进一步包括:接收患者终端发送的支付完成消息;从所述区块链中获取患者终端进行支付的支付结果;其中,所述支付完成消息是患者终端在判断所述接受情况信息指示患者接受诊断结果时进行支付、并将所述支付结果写入所述区块链之后发送的。Optionally, the method further includes: receiving a payment completion message sent by the patient terminal; obtaining a payment result of the patient terminal from the blockchain; wherein, the payment completion message is the result of the patient terminal judging the acceptance of the payment. Situation information instructs the patient to make a payment when receiving the diagnosis result, and is sent after the payment result is written into the blockchain.
可选地,患者的病历信息进一步包括影像检查资料、症状信息和/或历史就诊资料;所述标识信息包括以下至少一种:姓名、身份证号、手机号、人脸特征;所述支付途径信息包括:银行账户信息和/或电子账户信息;医生的认证信息进一步包括:医生的执业证书信息;如果所述接受情况信息指示患者拒绝接受诊断结果,则所述接收情况信息中进一步包括拒绝原因信息。Optionally, the patient's medical record information further includes image examination data, symptom information and/or historical medical treatment data; the identification information includes at least one of the following: name, ID number, mobile phone number, and facial features; the payment method The information includes: bank account information and/or electronic account information; the doctor's certification information further includes: the doctor's practice certificate information; if the acceptance information indicates that the patient refuses to accept the diagnosis result, the acceptance information further includes the reason for the refusal information.
为实现上述目的,根据本公开的再一方面,提供了一种基于区块链网络的诊断装置。To achieve the above object, according to yet another aspect of the present disclosure, a diagnostic device based on a blockchain network is provided.
本公开实施例的基于区块链网络的诊断装置设置在患者终端,可以包括:就诊单元,用于存储患者的病历信息,将所述病历信息写入所述区块链网络各节点维护的区块链,并向目标医生终端发送就诊消息;第一接收单元,用于接收目标医生终端发送的诊断完成消息;其中,所述诊断完成消息是目标医生终端将医生基于所述病历信息作出的诊断结果写入所述区块链之后发送的,所述病历信息是目标医生终 端在接收到所述就诊消息之后从所述区块链中获取的。The diagnostic apparatus based on the blockchain network according to the embodiment of the present disclosure is set on the patient terminal, and may include: a medical treatment unit, configured to store the patient's medical record information, and write the medical record information into the area maintained by each node of the blockchain network. block chain, and send the medical treatment message to the target doctor terminal; the first receiving unit is used to receive the diagnosis completion message sent by the target doctor terminal; wherein, the diagnosis completion message is the diagnosis made by the target doctor terminal based on the medical record information. The result is sent after being written into the blockchain, and the medical record information is obtained from the blockchain after the target doctor terminal receives the medical treatment message.
为实现上述目的,根据本公开的再一方面,提供了一种基于区块链网络的诊断装置。To achieve the above object, according to yet another aspect of the present disclosure, a diagnostic device based on a blockchain network is provided.
本公开实施例的基于区块链网络的诊断装置设置在医生终端,可以包括:第二接收单元,用于接收患者终端发送的就诊消息;诊断单元,用于从所述区块链网络各节点维护的区块链中获取患者的病历信息,存储医生基于所述病历信息作出的诊断结果,将所述诊断结果写入所述区块链,并向患者终端发送诊断完成消息;其中,所述就诊消息是患者终端在存储所述病历信息、并将所述病历信息写入所述区块链之后发送的。The diagnostic apparatus based on the blockchain network in the embodiment of the present disclosure is set on the doctor's terminal, and may include: a second receiving unit, configured to receive a medical treatment message sent by the patient terminal; a diagnosis unit, configured to receive information from each node of the blockchain network Obtain the patient's medical record information in the maintained blockchain, store the diagnosis result made by the doctor based on the medical record information, write the diagnosis result into the blockchain, and send a diagnosis completion message to the patient terminal; wherein, the The consultation message is sent by the patient terminal after storing the medical record information and writing the medical record information into the blockchain.
为实现上述目的,根据本公开的再一方面,提供了一种用于诊断的区块链网络***。To achieve the above object, according to yet another aspect of the present disclosure, a blockchain network system for diagnosis is provided.
本公开实施例的用于诊断的区块链网络***包括作为网络节点的患者终端和医生终端;其中,患者终端存储患者的病历信息,将所述病历信息写入所述区块链网络各节点维护的区块链,并向目标医生终端发送就诊消息;目标医生终端接收到患者终端发送的所述就诊消息之后,从所述区块链中获取所述病历信息,存储医生基于所述病历信息作出的诊断结果,将所述诊断结果写入所述区块链,并向该患者终端发送诊断完成消息。The blockchain network system for diagnosis according to the embodiment of the present disclosure includes a patient terminal and a doctor terminal as network nodes; wherein, the patient terminal stores the patient's medical record information, and writes the medical record information into each node of the blockchain network maintain the blockchain, and send the medical treatment message to the target doctor terminal; after receiving the medical treatment message sent by the patient terminal, the target doctor terminal obtains the medical record information from the blockchain, and stores the medical record information based on the medical record information. The diagnosis result is made, the diagnosis result is written into the blockchain, and a diagnosis completion message is sent to the patient terminal.
可选地,患者终端在存储患者的病历信息之后,将所述病历信息的加密数据和第一索引数据写入所述区块链;其中,第一索引数据用于查询所述加密数据;以及,所述就诊消息中携带有第一索引数据和用于解密所述加密数据的第一密钥;目标医生终端在接收到所述就诊消息之后,根据所述就诊消息中的第一索引数据从所述区块链中查询到所述加密数据,利用所述就诊消息中的第一密钥解密所述加密数据 得到所述病历信息。Optionally, after storing the patient's medical record information, the patient terminal writes the encrypted data of the medical record information and the first index data into the blockchain; wherein, the first index data is used to query the encrypted data; and , the medical treatment message carries the first index data and the first key used to decrypt the encrypted data; after receiving the medical treatment message, the target doctor terminal, according to the first index data in the medical treatment message The encrypted data is queried in the blockchain, and the encrypted data is decrypted by using the first key in the medical treatment message to obtain the medical record information.
可选地,目标医生终端在存储所述诊断结果之后,将所述诊断结果的加密数据和第二索引数据写入所述区块链;其中,第二索引数据用于查询所述诊断结果的加密数据;以及,所述诊断完成消息中携带有第二索引数据和用于解密所述诊断结果的加密数据的第二密钥。Optionally, after storing the diagnosis result, the target doctor terminal writes the encrypted data of the diagnosis result and the second index data into the blockchain; wherein the second index data is used to query the information of the diagnosis result. encrypted data; and, the diagnosis completion message carries second index data and a second key for decrypting the encrypted data of the diagnosis result.
可选地,所述病历信息包括患者的影像检查资料;患者终端在存储患者的病历信息之后,调用部署在所述区块链的第一智能合约检测所述影像检查资料以得到影像检测结果,并将所述病历信息和所述影像检测结果的加密数据以及第一索引数据写入所述区块链。Optionally, the medical record information includes the patient's image examination data; after storing the patient's medical record information, the patient terminal invokes the first smart contract deployed in the blockchain to detect the image examination data to obtain an image detection result, and write the medical record information, the encrypted data of the image detection result and the first index data into the blockchain.
可选地,所述诊断结果为文本格式;以及,目标医生终端调用部署在所述区块链的第二智能合约将医生语音转换为所述诊断结果并存储。Optionally, the diagnosis result is in a text format; and the target doctor terminal invokes a second smart contract deployed on the blockchain to convert the doctor's voice into the diagnosis result and store it.
可选地,任一患者终端在存储患者的病历信息之前,存储患者的标识信息和支付途径信息;在校验所述标识信息和所述支付途径信息之后,将所述标识信息和所述支付途径信息的加密数据和第三索引数据写入所述区块链,并将第三索引数据和用于解密该加密数据的第三密钥存储在本地;患者终端在存储患者的病历信息之后,根据本地存储的第三索引数据从所述区块链中查询到该加密数据,利用本地存储的第三密钥解密该加密数据得到所述标识信息,并对所述标识信息与所述病历信息进行校验。Optionally, before storing the patient's medical record information, any patient terminal stores the patient's identification information and payment route information; after verifying the identification information and the payment route information, the identification information and the payment route information are stored. The encrypted data of the pathway information and the third index data are written into the blockchain, and the third index data and the third key used to decrypt the encrypted data are stored locally; after the patient terminal stores the patient's medical record information, The encrypted data is queried from the blockchain according to the third index data stored locally, the encrypted data is decrypted using the third key stored locally to obtain the identification information, and the identification information and the medical record information are analyzed. Check it out.
可选地,目标医生终端在接收所述就诊消息之前,存储医生的标识信息、支付途径信息和认证信息,并在校验该标识信息、该支付途径信息和该认证信息之后,将该标识信息、该支付途径信息和该认证信息的加密数据和第四索引数据写入所述区块链;其中,医生的认证信息包括医生的执业医院信息;目标医生终端根据预先写入所述区块 链的已验证医院信息对医生的执业医院信息进行校验。Optionally, before receiving the medical treatment message, the target doctor terminal stores the doctor's identification information, payment method information and authentication information, and after verifying the identification information, the payment method information and the authentication information, the identification information. , the payment method information and the encrypted data and fourth index data of the authentication information are written into the blockchain; wherein, the doctor's authentication information includes the doctor's practice hospital information; the target doctor's terminal is pre-written into the blockchain The verified hospital information of the doctor verifies the doctor's practice hospital information.
可选地,患者终端在接收到目标医生终端发送的诊断完成消息之后,根据所述诊断完成消息中的第二索引数据从所述区块链中查询到所述诊断结果的加密数据,利用所述诊断完成消息中的第二密钥解密该加密数据得到所述诊断结果;并存储患者针对所述诊断结果的接受情况信息,将所述接受情况信息的加密数据以及第五索引数据写入所述区块链,向目标医生终端发送响应消息;其中,第五索引数据用于查询所述接受情况信息的加密数据,所述响应消息中携带有第五索引数据和用于解密所述接受情况信息的加密数据的第五密钥;响应于所述接受情况信息指示患者接受诊断结果,患者终端在存储所述接受情况信息之后基于患者的支付途径信息进行支付,将支付结果写入所述区块链,并向目标医生终端发送支付完成消息;目标医生终端在接收到所述响应消息之后,根据第五索引数据从所述区块链中查询到所述接受情况信息的加密数据,利用第五密钥解密该加密数据得到所述接受情况信息;在接收到所述支付完成消息之后,从所述区块链中获取所述支付结果。Optionally, after receiving the diagnosis completion message sent by the target doctor terminal, the patient terminal queries the encrypted data of the diagnosis result from the blockchain according to the second index data in the diagnosis completion message, and uses the The second key in the diagnosis completion message decrypts the encrypted data to obtain the diagnosis result; and stores the patient's acceptance information for the diagnosis result, and writes the encrypted data of the acceptance information and the fifth index data into all the data. The block chain is used to send a response message to the target doctor terminal; wherein, the fifth index data is used to query the encrypted data of the acceptance information, and the response message carries the fifth index data and is used to decrypt the acceptance information. The fifth key of the encrypted data of the information; in response to the acceptance information indicating that the patient accepts the diagnosis result, the patient terminal makes a payment based on the payment route information of the patient after storing the acceptance information, and writes the payment result into the area block chain, and send a payment completion message to the target doctor terminal; after receiving the response message, the target doctor terminal queries the encrypted data of the acceptance information from the block chain according to the fifth index data, and uses the first The five-key decrypts the encrypted data to obtain the acceptance information; after receiving the payment completion message, the payment result is obtained from the blockchain.
可选地,患者终端存储患者对医生的评价信息,依据所述评价信息以及预先部署在所述区块链的第三智能合约调整该医生的分数和/或级别,并将调整后的分数和/或级别写入所述区块链。Optionally, the patient terminal stores the patient's evaluation information on the doctor, adjusts the doctor's score and/or level according to the evaluation information and the third smart contract pre-deployed in the blockchain, and compares the adjusted score and the doctor's grade. / or level written to said blockchain.
可选地,患者的病历信息进一步包括症状信息和/或历史就诊资料;所述标识信息包括以下至少一种:姓名、身份证号、手机号、人脸特征;所述支付途径信息包括:银行账户信息和/或电子账户信息;医生的认证信息进一步包括:医生的执业证书信息;如果所述接受情况信息指示患者拒绝接受诊断结果,则所述接收情况信息中进一步包括拒绝原因信息。Optionally, the patient's medical record information further includes symptom information and/or historical medical treatment information; the identification information includes at least one of the following: name, ID number, mobile phone number, and facial features; the payment channel information includes: bank Account information and/or electronic account information; the doctor's certification information further includes: the doctor's practice certificate information; if the acceptance information indicates that the patient refuses to accept the diagnosis result, the acceptance information further includes rejection reason information.
为实现上述目的,根据本公开的又一方面,提供了一种电子设备。To achieve the above object, according to yet another aspect of the present disclosure, an electronic device is provided.
本公开的一种电子设备包括:一个或多个处理器;存储装置,用于存储一个或多个程序,当所述一个或多个程序被所述一个或多个处理器执行,使得所述一个或多个处理器实现本公开所提供的基于区块链网络的诊断方法。An electronic device of the present disclosure includes: one or more processors; a storage device for storing one or more programs, when the one or more programs are executed by the one or more processors, the one or more programs cause the One or more processors implement the blockchain network-based diagnostic method provided by the present disclosure.
为实现上述目的,根据本公开的再一方面,提供了一种计算机可读存储介质。To achieve the above object, according to yet another aspect of the present disclosure, a computer-readable storage medium is provided.
本公开的一种计算机可读存储介质,其上存储有计算机程序,所述程序被处理器执行时实现本公开所提供的基于区块链网络的诊断方法。A computer-readable storage medium of the present disclosure stores a computer program thereon, and when the program is executed by a processor, the blockchain network-based diagnostic method provided by the present disclosure is implemented.
根据本公开的技术方案,上述公开中的实施例具有如下优点或有益效果:由患者终端和医生终端组成去中心化的区块链网络,当患者需要就诊时,患者终端将患者的病历信息写入区块链并向目标医生终端发送消息,目标医生终端接收到消息之后从区块链中获取病历信息、作出诊断结果、将诊断结果写入区块链并向患者终端发送消息,患者终端接收到该消息之后即可从区块链中查看诊断结果。这样,患者和医生能够基于各自终端存放的区块链实现完整的疾病诊断以及治疗流程,去中心化的特点能够保证***的高可用性,同时基于区块链中数据的不可篡改性和公开可查性(实现查询需要相应权限,例如需要相应的索引数据和密钥)能够保证患者病历、诊断结果等医疗信息的安全可追溯。此外,本公开实施例在区块链中部署能够自动检测影像检查资料的智能合约以及能够将医生语音转换为文本的智能合约,前者可以降低医生查看影像检查资料的时间精力耗费,后者能够实现诊断结果的快速生成。According to the technical solution of the present disclosure, the embodiments in the above disclosure have the following advantages or beneficial effects: a decentralized blockchain network is formed by the patient terminal and the doctor terminal, and when the patient needs to see a doctor, the patient terminal writes the patient's medical record information Enter the blockchain and send a message to the target doctor terminal. After receiving the message, the target doctor terminal obtains the medical record information from the blockchain, makes a diagnosis result, writes the diagnosis result to the blockchain and sends a message to the patient terminal, and the patient terminal receives the message. Once the message is reached, the diagnostic results can be viewed from the blockchain. In this way, patients and doctors can realize a complete disease diagnosis and treatment process based on the blockchain stored in their respective terminals. The decentralization feature can ensure the high availability of the system, and at the same time, based on the immutability and openness of the data in the blockchain It can ensure the safety and traceability of medical information such as patient medical records and diagnosis results. In addition, the embodiment of the present disclosure deploys a smart contract capable of automatically detecting image inspection data and a smart contract capable of converting a doctor's voice into text in the blockchain. The former can reduce the time and energy consumption of doctors in viewing image inspection data, and the latter can Rapid generation of diagnostic results.
上述的非惯用的可选方式所具有的进一步效果将在下文中结合具体实施方式加以说明。Further effects of the above non-conventional alternatives will be described below in conjunction with specific embodiments.
附图说明Description of drawings
附图用于更好地理解本公开,不构成对本公开的不当限定。其中:The accompanying drawings are used for a better understanding of the present disclosure, and do not constitute an improper limitation of the present disclosure. in:
图1是本公开实施例中执行于患者终端的基于区块链网络的诊断方法的主要步骤示意图;FIG. 1 is a schematic diagram of the main steps of a diagnosis method based on a blockchain network performed on a patient terminal in an embodiment of the present disclosure;
图2是本公开实施例中区块链网络的结构示意图;2 is a schematic structural diagram of a blockchain network in an embodiment of the present disclosure;
图3是本公开实施例中患者终端入驻区块链网络的流程示意图;3 is a schematic flowchart of a patient terminal entering a blockchain network in an embodiment of the present disclosure;
图4是本公开实施例中医生终端入驻区块链网络的流程示意图;4 is a schematic flowchart of a doctor terminal entering a blockchain network in an embodiment of the present disclosure;
图5是本公开实施例中医院终端入驻区块链网络的流程示意图;5 is a schematic flowchart of a hospital terminal entering a blockchain network in an embodiment of the present disclosure;
图6是本公开实施例中患者就诊流程示意图;FIG. 6 is a schematic diagram of a patient’s medical treatment process in an embodiment of the present disclosure;
图7是本公开实施例中医生诊断流程示意图;Fig. 7 is a schematic diagram of a doctor's diagnosis flow in an embodiment of the present disclosure;
图8是本公开实施例中患者反馈流程示意图;8 is a schematic diagram of a patient feedback process in an embodiment of the present disclosure;
图9是本公开实施例中执行于医生终端的基于区块链网络的诊断方法的主要步骤示意图;FIG. 9 is a schematic diagram of main steps of a diagnosis method based on a blockchain network executed on a doctor terminal in an embodiment of the present disclosure;
图10是本公开实施例中设置于患者终端的基于区块链网络的诊断装置的主要部分示意图;10 is a schematic diagram of a main part of a diagnostic device based on a blockchain network provided in a patient terminal in an embodiment of the present disclosure;
图11是本公开实施例中设置于医生终端的基于区块链网络的诊断装置的主要部分示意图;FIG. 11 is a schematic diagram of the main part of the block chain network-based diagnostic device installed in the doctor's terminal in the embodiment of the present disclosure;
图12是用来实现本公开实施例中基于区块链网络的诊断方法的电子设备结构示意图。FIG. 12 is a schematic structural diagram of an electronic device used to implement the diagnostic method based on a blockchain network in an embodiment of the present disclosure.
具体实施方式detailed description
以下结合附图对本公开的示范性实施例做出说明,其中包括本公开实施例的各种细节以助于理解,应当将它们认为仅仅是示范性的。因此,本领域普通技术人员应当认识到,可以对这里描述的实施例做出各种改变和修改,而不会背离本公开的范围和精神。同样,为了清楚和简明,以下的描述中省略了对公知功能和结构的描述。需要指出的是,在不冲突的情况下,本公开的实施例以及实施例中的技术特征可以相互结合。Exemplary embodiments of the present disclosure are described below with reference to the accompanying drawings, which include various details of the embodiments of the present disclosure to facilitate understanding and should be considered as exemplary only. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the present disclosure. Also, descriptions of well-known functions and constructions are omitted from the following description for clarity and conciseness. It should be pointed out that the embodiments of the present disclosure and the technical features in the embodiments may be combined with each other without conflict.
在本公开实施例中,可以基于区块链技术实现医生对患者的病情诊断。区块链是融合分布式存储、点对点数据传输、共识机制、加密算法等计算机技术的集成创新应用模式。通俗来说,区块链是一种信息资源的组织结构,逻辑上为一个或一个以上区块形成的链表,区块用于存储一个或一个以上的信息资源如交易记录、智能合约,基于区块链的分布式网络(以下称为区块链网络)中的每个节点都保存有相同的区块链,而区块链网络由保存有区块链的上述节点组成。In the embodiments of the present disclosure, a doctor's diagnosis of a patient's condition can be implemented based on the blockchain technology. Blockchain is an integrated innovative application model that integrates distributed storage, point-to-point data transmission, consensus mechanism, encryption algorithm and other computer technologies. Generally speaking, blockchain is an organizational structure of information resources, which is logically a linked list formed by one or more blocks. Blocks are used to store one or more information resources such as transaction records and smart contracts. Each node in a distributed network of blockchain (hereinafter referred to as a blockchain network) holds the same blockchain, and a blockchain network consists of the aforementioned nodes that hold the blockchain.
按照应用范围和节点准入对象的不同,区块链可分为公有链、私有链及联盟链。其中:公有链对互联网上的所有人开放,例如比特币、以太坊。私有链一般用于组织内部,不对其他人开放。联盟链对特定的组织和机构开放。以下对本公开实施例中出现的部分名词进行说明:According to the different application scope and node access objects, blockchain can be divided into public chain, private chain and alliance chain. Among them: The public chain is open to everyone on the Internet, such as Bitcoin and Ethereum. Private chains are generally used within organizations and are not open to others. The consortium chain is open to specific organizations and institutions. Some terms appearing in the embodiments of the present disclosure are described below:
共识:区块链专有名词。区块链上不存在单一的记账中心,账本是由全网共同记录的,这就出现一个问题,即如何确定一个交易是否合法。确定某交易是否合法以及某节点推荐的一个打包区块是否被大家认可的过程叫做共识,只有通过共识的区块才会被全网认可。Consensus: Blockchain proper noun. There is no single accounting center on the blockchain, and the ledger is jointly recorded by the entire network. This presents a problem, that is, how to determine whether a transaction is legal. The process of determining whether a transaction is legal and whether a packaged block recommended by a node is recognized by everyone is called consensus, and only blocks that pass consensus will be recognized by the entire network.
智能合约:区块链上的一段程序代码,规定了合约相关人的权利与义务以及动作条款。合约相关人通过发送区块链交易来确认智能合约、支付合约可能需要的数字货币、调用智能合约规定的功能等。Smart contract: A piece of program code on the blockchain that specifies the rights and obligations of the parties involved in the contract and the terms of action. Contract stakeholders confirm smart contracts by sending blockchain transactions, pay for digital currency that may be required by the contract, and invoke functions specified in the smart contract.
图1是本公开实施例中基于区块链网络的诊断方法的主要步骤示意图,如图1所示,本公开实施例的基于区块链网络的诊断方法可以具体执行以下步骤:FIG. 1 is a schematic diagram of the main steps of the diagnosis method based on the blockchain network in the embodiment of the present disclosure. As shown in FIG. 1 , the diagnosis method based on the blockchain network in the embodiment of the present disclosure may specifically perform the following steps:
步骤S101:患者终端存储患者的病历信息,将病历信息写入所述区块链网络各节点维护的区块链,并向目标医生终端发送就诊消息。Step S101: The patient terminal stores the patient's medical record information, writes the medical record information into the blockchain maintained by each node of the blockchain network, and sends a medical treatment message to the target doctor terminal.
在本公开实施例中,区块链网络是由多个网络节点组成的计算机网络,这些网络节点中包括患者终端和医生终端。在一些实施例中,网络节点还可以包括医院终端。可以理解,患者终端即患者使用的终 端,医生终端即医生使用的终端,医院终端即医院使用的终端,这些终端可以是智能手机、平板电脑、膝上型便携计算机、台式计算机等各种计算设备。具体应用中,以上终端一般需要通过设置在终端的相应应用程序(如台式计算机上的应用程序、智能手机上的APP)执行本公开实施例的诊断方法。图2是本公开实施例中区块链网络的结构示意图,如图2所示,多个患者终端和医生终端可以基于任何网络连接类型相互连接从而组成区块链网络,每一患者终端和每一医生终端中存放相同的区块链。实际应用中,以上区块链网络可以是公有链网络。In the embodiment of the present disclosure, the blockchain network is a computer network composed of multiple network nodes, and these network nodes include patient terminals and doctor terminals. In some embodiments, the network nodes may also include hospital terminals. It can be understood that the patient terminal is the terminal used by the patient, the doctor terminal is the terminal used by the doctor, and the hospital terminal is the terminal used by the hospital. These terminals can be various computing devices such as smart phones, tablet computers, laptop computers, and desktop computers. . In a specific application, the above terminal generally needs to execute the diagnostic method of the embodiment of the present disclosure through a corresponding application program (eg, an application program on a desktop computer, an APP on a smart phone) set on the terminal. Fig. 2 is a schematic structural diagram of a blockchain network in an embodiment of the present disclosure. As shown in Fig. 2, multiple patient terminals and doctor terminals can be connected to each other based on any network connection type to form a blockchain network. The same blockchain is stored in a doctor's terminal. In practical applications, the above blockchain network can be a public chain network.
作为一个优选方案,执行步骤S101之前,患者终端、医生终端和医院终端可以首先通过入驻流程入驻区块链网络。图3是本公开实施例中患者终端入驻区块链网络的流程示意图,如图3所示,患者终端首先存储患者提供的标识信息和支付途径信息。示例性地,患者的标识信息可以包括以下至少一种:姓名、身份证号、手机号、通过预设算法或模型提取的人脸特征,在一些实施例中,也可以包括年龄、性别等。患者的支付途径信息可以包括患者的银行账户信息(如银行***)或者支付宝、微信等电子账户信息。在步骤S301中,患者终端调用身份验证***(例如全国居民身份信息***)的相应接口对患者的姓名、身份证号、人脸特征等标识信息进行校验,若校验通过则执行后续步骤,否则结束流程。在步骤S302中,患者终端调用支付验证***(例如银行卡中心)对患者的银行***等支付途径信息进行校验,若基于支付验证***能够确定银行***等支付途径信息与患者的绑定关系,则执行后续流程,否则结束流程。As a preferred solution, before step S101 is performed, the patient terminal, the doctor terminal and the hospital terminal may first enter the blockchain network through the entry process. FIG. 3 is a schematic flowchart of a patient terminal entering a blockchain network in an embodiment of the present disclosure. As shown in FIG. 3 , the patient terminal first stores identification information and payment method information provided by the patient. Exemplarily, the patient's identification information may include at least one of the following: name, ID number, mobile phone number, facial features extracted by a preset algorithm or model, and in some embodiments, may also include age, gender, and the like. The patient's payment channel information may include the patient's bank account information (such as a bank card number) or electronic account information such as Alipay and WeChat. In step S301, the patient terminal calls the corresponding interface of the identity verification system (for example, the national resident identity information system) to verify the patient's name, ID number, facial features and other identification information, and if the verification is passed, the subsequent steps are performed, Otherwise end the process. In step S302, the patient terminal calls the payment verification system (for example, the bank card center) to verify the payment method information such as the patient's bank card number. If the payment verification system can determine the binding relationship between the payment method information such as the bank card number and the patient, Then execute the subsequent process, otherwise end the process.
在步骤S303中,患者终端对患者的标识信息和支付途径信息进行加密,加密类型可以是对称加密或非对称加密,以下将以非对称加密为例进行说明。在本步骤中,患者终端可以根据预先部署在区块链的智能合约随机生成配对的公钥和私钥,并利用私钥加密患者的标识信息和支付途径信息。具体应用中,加密时一般需要将患者的标识信息和支付途径信息与当前时间戳结合起来进行加密。在步骤S304中,患 者终端基于患者标识信息和支付途径信息的加密数据计算用于查询该加密数据的第三索引数据,例如将该加密数据对应的哈希值作为第三索引数据。在步骤S305中,患者终端将该加密数据和第三索引数据写入区块链。需要说明的是,将相关数据写入区块链的过程包括该数据在整个区块链网络中达成共识并被同步到区块链网络的每一节点,可以采用PoW(Proof of Work,工作量证明)、PoS(Proof of Stake,权益证明)等任一种共识机制。在步骤S306中,患者终端将第三索引和用于解密上述加密数据的第三密钥(即与加密标识信息和支付途径信息使用的私钥配对的上述公钥)存储在本地。可以理解,患者终端后续可以通过第三索引数据从区块链中获取上述加密数据,并利用第三密钥从加密数据中得到患者的标识信息和支付途径信息。In step S303, the patient terminal encrypts the patient's identification information and payment channel information, and the encryption type may be symmetric encryption or asymmetric encryption. The following will take asymmetric encryption as an example for description. In this step, the patient terminal can randomly generate the paired public key and private key according to the smart contract pre-deployed in the blockchain, and use the private key to encrypt the patient's identification information and payment method information. In specific applications, it is generally necessary to combine the patient's identification information and payment method information with the current timestamp for encryption during encryption. In step S304, the patient terminal calculates the third index data for querying the encrypted data based on the encrypted data of the patient identification information and the payment route information, for example, the hash value corresponding to the encrypted data is used as the third index data. In step S305, the patient terminal writes the encrypted data and the third index data into the blockchain. It should be noted that the process of writing relevant data to the blockchain includes that the data reaches a consensus in the entire blockchain network and is synchronized to each node of the blockchain network. PoW (Proof of Work, workload) can be used. Proof), PoS (Proof of Stake, Proof of Stake) and any other consensus mechanism. In step S306, the patient terminal locally stores the third index and the third key for decrypting the above-mentioned encrypted data (ie, the above-mentioned public key paired with the private key used for encrypting the identification information and the payment method information). It can be understood that the patient terminal can subsequently obtain the above encrypted data from the blockchain through the third index data, and obtain the patient's identification information and payment method information from the encrypted data by using the third key.
图4是本公开实施例中医生终端入驻区块链网络的流程示意图,如图4所示,医生终端首先存储医生提供的标识信息、支付途径信息和认证信息。示例性地,医生的标识信息可以包括以下至少一种:姓名、身份证号、手机号、通过预设算法或模型提取的人脸特征,在一些实施例中,也可以包括医生的年龄、性别等。医生的支付途径信息可以包括医生的银行账户信息(如银行***)或者支付宝、微信等电子账户信息,医生的认证信息可以包括医生所在的执业医院信息(例如医院名称)和医生的执业证书信息(可以包括证书编号、执业范围等)。FIG. 4 is a schematic flowchart of a doctor terminal entering a blockchain network in an embodiment of the present disclosure. As shown in FIG. 4 , the doctor terminal first stores the identification information, payment method information and authentication information provided by the doctor. Exemplarily, the doctor's identification information may include at least one of the following: name, ID number, mobile phone number, facial features extracted by a preset algorithm or model, and in some embodiments, may also include the doctor's age, gender Wait. The doctor's payment method information may include the doctor's bank account information (such as bank card number) or electronic account information such as Alipay and WeChat, and the doctor's certification information may include the doctor's practice hospital information (such as the hospital name) and the doctor's practice certificate information ( Can include certificate number, scope of practice, etc.).
在步骤S401中,医生终端调用身份验证***(例如全国居民身份信息***)的相应接口对医生的姓名、身份证号、人脸特征等标识信息进行校验,若校验通过则执行后续步骤,否则结束流程。在步骤S402中,医生终端调用资格验证***(例如国家卫健委官方网站)的相应接口对医生的认证信息进行校验。实际应用中,医生终端可以根据预先写入区块链的已验证医院信息对医生认证信息中的执业医院信息进行校验,将医院信息写入区块链的内容将在下文说明。在步骤S403中,医生终端调用支付验证***(例如银行卡中心)对医生的银行***等支付途径信息进行校验,若基于支付验证***能够确定银行***等支 付途径信息与医生的绑定关系,则执行后续流程,否则结束流程。In step S401, the doctor terminal calls the corresponding interface of the identity verification system (for example, the national resident identity information system) to verify the identification information such as the doctor's name, ID number, and facial features. If the verification is passed, the subsequent steps are performed. Otherwise end the process. In step S402, the doctor terminal calls the corresponding interface of the qualification verification system (for example, the official website of the National Health Commission) to verify the doctor's certification information. In practical applications, the doctor's terminal can verify the practicing hospital information in the doctor's certification information according to the verified hospital information pre-written into the blockchain. The content of writing the hospital information into the blockchain will be described below. In step S403, the doctor terminal calls the payment verification system (for example, the bank card center) to verify the payment channel information such as the doctor's bank card number. If the payment verification system can determine the binding relationship between the payment channel information such as the bank card number and the doctor, Then execute the subsequent process, otherwise end the process.
在步骤S404中,医生终端对医生的标识信息、支付途径信息和认证信息进行加密,加密类型可以是对称加密或非对称加密。具体应用中,加密时一般需要将医生的标识信息、支付途径信息和认证信息与当前时间戳结合起来进行加密。在步骤S405中,医生终端基于医生标识信息、支付途径信息和认证信息的加密数据计算用于查询该加密数据的第四索引数据,例如将该加密数据对应的哈希值作为第四索引数据。在步骤S406中,医生终端将该加密数据和第四索引数据写入区块链。在步骤S407中,医生终端将第四索引和用于解密上述加密数据的第四密钥(例如与加密标识信息、支付途径信息和认证信息使用的私钥配对的公钥)存储在本地。可以理解,医生终端后续可以通过第四索引数据从区块链中获取上述加密数据,并利用第四密钥从加密数据中得到医生的标识信息、支付途径信息和认证信息。In step S404, the doctor terminal encrypts the doctor's identification information, payment method information and authentication information, and the encryption type may be symmetric encryption or asymmetric encryption. In specific applications, it is generally necessary to combine the doctor's identification information, payment method information and authentication information with the current timestamp for encryption during encryption. In step S405, the doctor terminal calculates fourth index data for querying the encrypted data based on the encrypted data of the doctor identification information, payment method information and authentication information, for example, the hash value corresponding to the encrypted data is used as the fourth index data. In step S406, the doctor terminal writes the encrypted data and the fourth index data into the blockchain. In step S407, the doctor terminal stores the fourth index and the fourth key for decrypting the above encrypted data (eg, the public key paired with the private key used for encrypting identification information, payment route information and authentication information) locally. It can be understood that the doctor terminal can subsequently obtain the above encrypted data from the blockchain through the fourth index data, and obtain the doctor's identification information, payment method information and authentication information from the encrypted data by using the fourth key.
图5是本公开实施例中医院终端入驻区块链网络的流程示意图,如图5所示,医院终端首先存储医生提供的资格信息和支付途径信息。示例性地,医院的资格信息可以包括以下至少一种:医院名称、营业执照信息、医院等级、法人代表、联系人电话,医院的支付途径信息可以包括医院的银行账户信息(如银行***)或者支付宝、微信等电子账户信息。FIG. 5 is a schematic flowchart of a hospital terminal entering a blockchain network in an embodiment of the present disclosure. As shown in FIG. 5 , the hospital terminal first stores the qualification information and payment method information provided by the doctor. Exemplarily, the qualification information of the hospital may include at least one of the following: hospital name, business license information, hospital grade, legal representative, contact phone number, and the hospital's payment method information may include the hospital's bank account information (such as bank card number) or Alipay, WeChat and other electronic account information.
在步骤S501中,医院终端调用资格验证***(例如国家卫健委官方网站)的相应接口对医院的资格信息进行校验。在步骤S502中,医院终端调用支付验证***(例如银行卡中心)对医院的银行***等支付途径信息进行校验,若基于支付验证***能够确定银行***等支付途径信息与医院的绑定关系,则执行后续流程,否则结束流程。在步骤S503中,医院终端对医院的资格信息和支付途径信息进行加密,加密类型可以是对称加密或非对称加密。具体应用中,加密时一般需要将医院的资格信息和支付途径信息与当前时间戳结合起来进行加密。 在步骤S504中,医院终端基于医院资格信息和支付途径信息的加密数据计算用于查询该加密数据的第六索引数据,例如将该加密数据对应的哈希值作为第六索引数据。在步骤S505中,医院终端将该加密数据和第六索引数据写入区块链。在步骤S506中,医院终端将第六索引和用于解密上述加密数据的第六密钥(例如与加密资格信息和支付途径信息使用的私钥配对的公钥)存储在本地。可以理解,医院终端后续可以通过第六索引数据从区块链中获取上述加密数据,并利用第六密钥从加密数据中得到医院的资格信息和支付途径信息。已执行步骤S501到步骤S505的医院为已验证医院,写入区块链的已验证医院信息可以用于校验医生提供的认证信息中的执业医院信息。In step S501, the hospital terminal calls the corresponding interface of the qualification verification system (for example, the official website of the National Health Commission) to verify the qualification information of the hospital. In step S502, the hospital terminal calls the payment verification system (for example, the bank card center) to verify the payment method information such as the bank card number of the hospital. If the payment verification system can determine the binding relationship between the payment method information such as the bank card number and the hospital, Then execute the subsequent process, otherwise end the process. In step S503, the hospital terminal encrypts the hospital's qualification information and payment channel information, and the encryption type may be symmetric encryption or asymmetric encryption. In specific applications, it is generally necessary to combine the hospital's qualification information and payment method information with the current timestamp for encryption. In step S504, the hospital terminal calculates sixth index data for querying the encrypted data based on the encrypted data of the hospital qualification information and payment route information, for example, the hash value corresponding to the encrypted data is used as the sixth index data. In step S505, the hospital terminal writes the encrypted data and the sixth index data into the blockchain. In step S506, the hospital terminal locally stores the sixth index and the sixth key for decrypting the above-mentioned encrypted data (eg, the public key paired with the private key used for encrypting qualification information and payment method information). It can be understood that the hospital terminal can subsequently obtain the above encrypted data from the blockchain through the sixth index data, and obtain the hospital's qualification information and payment method information from the encrypted data by using the sixth key. The hospital that has performed steps S501 to S505 is a verified hospital, and the verified hospital information written in the blockchain can be used to verify the practicing hospital information in the certification information provided by the doctor.
在步骤S101中,患者终端存储患者提供的病历信息,将病历信息写入区块链,并向目标医生终端发送就诊消息。其中,上述病历信息可以包括以下的一种或多种:患者的症状信息、历史就诊资料(例如在实体医院的诊断过程和诊断结果,这些资料也可以从医院提供的相应接口直接获取)、影像检查资料(例如彩超,CT图像资料,各种化验单如血常规、生化全项等,CT表示计算机断层扫描)。目标医生终端可以是患者所指定医生使用的终端,也可以是根据区块链中预先部署的智能合约基于病历信息自动为患者推荐的医生所使用的终端。In step S101, the patient terminal stores the medical record information provided by the patient, writes the medical record information into the blockchain, and sends a medical treatment message to the target doctor terminal. The above-mentioned medical record information may include one or more of the following: patient's symptom information, historical medical treatment data (such as the diagnosis process and diagnosis results in a physical hospital, these data can also be directly obtained from the corresponding interface provided by the hospital), image Inspection data (such as color Doppler ultrasound, CT image data, various laboratory tests such as blood routine, biochemical items, etc. CT stands for computed tomography). The target doctor terminal can be the terminal used by the doctor designated by the patient, or the terminal used by the doctor automatically recommended for the patient based on the medical record information according to the smart contract pre-deployed in the blockchain.
作为一个优选方案,患者终端在存储患者提供的病历信息之后,可以利用本地预先存储的第三索引数据从区块链中查询到患者标识信息和支付途径信息的加密数据,并利用本地预先存储的第三密钥解密该加密数据即可得到患者的标识信息和支付途径信息,此后患者终端即可比较患者标识信息与病历信息的相应数据是否一致从而校验病历信息,例如比较标识信息与病历信息中的姓名、性别、年龄等数据是否一致。当校验通过时可以执行后续流程,否则结束流程。As a preferred solution, after storing the medical record information provided by the patient, the patient terminal can use the locally pre-stored third index data to query the encrypted data of the patient identification information and payment method information from the blockchain, and use the locally pre-stored third index data to query the encrypted data of the patient identification information and payment method information. After decrypting the encrypted data with the third key, the patient's identification information and payment method information can be obtained. After that, the patient terminal can compare whether the patient identification information is consistent with the corresponding data of the medical record information to verify the medical record information, such as comparing the identification information with the medical record information. Whether the data such as name, gender, age, etc. are consistent. When the verification is passed, the subsequent process can be executed, otherwise the process ends.
实际应用中,患者终端在存储上述病历信息之后,可以将病历信息的加密数据和用于查询该加密数据的第一索引数据写入区块链。其 中,第一索引数据可以是该加密数据的哈希值。在这种情况下,患者终端向目标医生终端发送的就诊消息中可以携带第一索引数据和用于解密该加密数据的第一密钥(例如与加密病历信息使用的私钥配对的公钥)。可以理解,目标医生终端后续可以根据第一索引数据和第一密钥获取患者的病历信息。In practical applications, after storing the above-mentioned medical record information, the patient terminal may write the encrypted data of the medical record information and the first index data for querying the encrypted data into the blockchain. Wherein, the first index data may be the hash value of the encrypted data. In this case, the medical visit message sent by the patient terminal to the target doctor terminal may carry the first index data and the first key used to decrypt the encrypted data (for example, the public key paired with the private key used to encrypt the medical record information) . It can be understood that the target doctor terminal can subsequently acquire the patient's medical record information according to the first index data and the first key.
较佳地,如果患者的病历信息中包括患者的影像检查资料,患者终端在存储上述病历信息之后,可以调用预先部署在区块链的第一智能合约检测上述影像检查资料以得到影像检测结果。可以理解,第一智能合约中包含图像处理以及目标识别的相应算法,能够检测到结节等目标并提供目标大小、位置等相关信息,通过这种设置,能够为医生的诊断提供参考意见,减轻医生因查看影像检查资料耗费的时间和精力,有利于提高诊疗效率。此后,患者终端可以对病历信息和上述影像检测结果打包加密(实际应用中还可以结合当前时间戳),并将该加密数据和用于查询该加密数据的第一索引数据写入区块链。在一些实施例中,加密并写入区块链的数据除病历信息、影像检测结果、当前时间戳之外,还可以包括患者的标识信息和支付途径信息,患者的标识信息可以用于由医生终端执行进一步的身份校对,支付途径信息可以用于支持后续的支付流程。在一个实施例中,患者终端在执行完成上述就诊流程之后,可以按照相应智能合约规定的支付规则进行服务费用的支付,在支付完成之后,可以将支付结果写入区块链,相关的服务费用可以根据相应医生的支付途径信息进行转移。Preferably, if the patient's medical record information includes the patient's image inspection data, after storing the above-mentioned medical record information, the patient terminal can call the first smart contract pre-deployed in the blockchain to detect the above-mentioned image inspection data to obtain the image inspection result. It can be understood that the first smart contract contains corresponding algorithms for image processing and target recognition, which can detect targets such as nodules and provide relevant information such as target size and location. The time and energy spent by doctors in reviewing imaging examination data is conducive to improving the efficiency of diagnosis and treatment. Thereafter, the patient terminal can package and encrypt the medical record information and the above-mentioned image detection results (in practical applications, the current timestamp can also be combined), and write the encrypted data and the first index data for querying the encrypted data into the blockchain. In some embodiments, the data encrypted and written into the blockchain may include the patient's identification information and payment method information in addition to the medical record information, image detection results, and current time stamp, and the patient's identification information may be used by doctors The terminal performs further identity verification, and the payment route information can be used to support subsequent payment processes. In one embodiment, after the patient terminal completes the above-mentioned medical treatment process, the patient terminal can pay the service fee according to the payment rules stipulated by the corresponding smart contract. After the payment is completed, the payment result can be written into the blockchain, and the related service fee The transfer can be made according to the payment route information of the corresponding doctor.
图6是本公开实施例中患者就诊流程示意图,如图6所示,在步骤S601中,患者终端根据第三索引数据从区块链中获取患者标识信息和支付途径信息的加密数据,并利用第三密钥进行解密得到患者的标识信息和支付途径信息。在步骤S602中,患者终端比较患者标识信息与病历信息中的相关数据从而对病历信息进行校验。在步骤S603中,患者终端调用第一智能合约检测病历信息中的影像检查资料,得到影像检测结果。在步骤S604中,患者终端将病历信息和影像检测结果加密。 在步骤S605中,患者终端将加密数据的哈希值作为第一索引数据。在步骤S606中,患者终端将加密数据和第一索引数据写入区块链。在步骤S607中,患者终端将携带有第一索引数据和第一密钥的就诊消息向目标医生终端发送。Fig. 6 is a schematic diagram of a patient's medical consultation process in an embodiment of the present disclosure. As shown in Fig. 6, in step S601, the patient terminal obtains the encrypted data of the patient identification information and the payment method information from the blockchain according to the third index data, and uses The third key is decrypted to obtain the patient's identification information and payment method information. In step S602, the patient terminal compares the patient identification information with the relevant data in the medical record information to verify the medical record information. In step S603, the patient terminal invokes the first smart contract to detect the image inspection data in the medical record information, and obtains the image inspection result. In step S604, the patient terminal encrypts the medical record information and the image detection result. In step S605, the patient terminal uses the hash value of the encrypted data as the first index data. In step S606, the patient terminal writes the encrypted data and the first index data into the blockchain. In step S607, the patient terminal sends the medical treatment message carrying the first index data and the first key to the target doctor terminal.
步骤S102:患者终端接收目标医生终端发送的诊断完成消息。其中,诊断完成消息是目标医生终端将医生基于患者的病历信息作出的诊断结果写入上述区块链之后发送的,病历信息是目标医生终端在接收到就诊消息之后从上述区块链中获取的。Step S102: The patient terminal receives the diagnosis completion message sent by the target doctor terminal. The diagnosis completion message is sent by the target doctor terminal after writing the diagnosis result made by the doctor based on the patient's medical record information into the above-mentioned blockchain, and the medical record information is obtained from the above-mentioned blockchain after the target doctor's terminal receives the medical treatment message .
在本步骤中,目标医生终端接收到就诊消息之后,可以根据就诊消息中的第一索引数据从区块链中查询到病历信息的加密数据(在一些实施例中,该加密数据也可以是病历信息与影像检测结果的加密数据,还可以是病历信息、影像检测结果、患者身份信息、支付途径信息的加密数据),并利用就诊消息中的第一密钥解密该加密数据得到病历信息、或者病历信息和影像检测结果、或者病历信息、影像检测结果、患者身份信息和支付途径信息。当目标医生终端获取到患者身份信息之后,可以对患者身份信息和病历信息中的姓名、年龄、性别等相关数据进行进一步校验,以确保就诊信息无误。In this step, after receiving the medical visit message, the target doctor terminal can query the encrypted data of the medical record information from the blockchain according to the first index data in the medical visit message (in some embodiments, the encrypted data may also be medical records) information and encrypted data of image detection results, and may also be encrypted data of medical record information, image detection results, patient identity information, and payment method information), and decrypt the encrypted data with the first key in the medical treatment message to obtain medical record information, or Medical record information and imaging test results, or medical record information, imaging test results, patient identity information, and payment method information. After the target doctor terminal obtains the patient's identity information, it can further verify the patient's identity information and related data such as name, age, and gender in the medical record information to ensure that the medical treatment information is correct.
此后,目标医生终端可以存储医生基于病历信息、或者病历信息以及前述影像检测结果作出的诊断结果。特别地,医生在诊断时可不需书写诊断结果而仅发出语音,目标医生终端可以调用预先部署在区块链的第二智能合约将医生语音转换为文本格式的诊断结果并存储。可以理解,第二智能合约中包含将语音转换为文本的相应算法。通过以上设置,能够进一步提高诊疗效率。Thereafter, the target doctor terminal may store the diagnosis result made by the doctor based on the medical record information, or the medical record information and the aforementioned image detection result. In particular, the doctor does not need to write the diagnosis result but only makes a speech during diagnosis, and the target doctor terminal can call the second smart contract pre-deployed in the blockchain to convert the doctor's speech into the diagnosis result in text format and store it. It can be understood that the second smart contract contains a corresponding algorithm for converting speech into text. With the above arrangement, the efficiency of diagnosis and treatment can be further improved.
在本公开实施例中,目标医生终端在存储诊断结果之后,可以将诊断结果的加密数据和用于查询该加密数据的第二索引数据写入区块链。在这种情况下,目标医生终端向患者终端发送的诊断完成消息中 可以携带第二索引数据和用于解密该加密数据的第二密钥(例如与加密诊断结果使用的私钥配对的公钥)。患者终端在接收到诊断完成消息之后,即可根据第二索引数据和第二密钥获取到诊断结果,从而完成诊断过程。In the embodiment of the present disclosure, after storing the diagnosis result, the target doctor terminal may write the encrypted data of the diagnosis result and the second index data for querying the encrypted data into the blockchain. In this case, the diagnosis completion message sent by the target doctor terminal to the patient terminal may carry the second index data and the second key for decrypting the encrypted data (for example, the public key paired with the private key used to encrypt the diagnosis result) ). After receiving the diagnosis completion message, the patient terminal can obtain the diagnosis result according to the second index data and the second key, thereby completing the diagnosis process.
在一个可选的方案中,患者终端在接收到诊断完成消息之后,可以根据诊断完成消息中的第二索引数据从区块链中查询到诊断结果的加密数据,并利用诊断完成消息中的第二密钥解密该加密数据得到诊断结果。此后,当患者作出是否接受的决定之后,患者终端可以存储接受情况信息。一般地,接受情况信息中可以指示患者是否接受诊断结果,如果患者拒绝接受诊断结果,接收情况信息中还可以包括拒绝原因信息。此后,患者终端可以将接受情况信息的加密数据以及用于查询该加密数据的第五索引数据(可以是该加密数据的哈希值)写入区块链,并向目标医生终端发送响应消息,该响应消息中可以携带第五索引数据和用于解密接受情况信息的加密数据的第五密钥(例如与加密接受情况信息使用的私钥配对的公钥)。In an optional solution, after receiving the diagnosis completion message, the patient terminal may query the encrypted data of the diagnosis result from the blockchain according to the second index data in the diagnosis completion message, and use the first index data in the diagnosis completion message to query the encrypted data of the diagnosis result. The second key decrypts the encrypted data to obtain a diagnosis result. Thereafter, after the patient makes a decision whether to accept or not, the patient terminal can store the acceptance information. Generally, the acceptance condition information may indicate whether the patient accepts the diagnosis result. If the patient refuses to accept the diagnosis result, the reception condition information may further include rejection reason information. After that, the patient terminal can write the encrypted data of the acceptance information and the fifth index data (which can be the hash value of the encrypted data) for querying the encrypted data into the blockchain, and send a response message to the target doctor terminal, The response message may carry fifth index data and a fifth key (eg, a public key paired with a private key used for encrypting the acceptance information) for decrypting the encrypted data of the acceptance information.
作为一个可选方案,当上述接受情况信息中指示患者接受诊断结果时,患者终端可以根据预先部署在区块链的相应智能合约进行支付,即利用支付途径信息与相应机构(例如银行)交互并执行身份认证等流程从而实现金额转移。例如,患者终端可以首先将患者银行卡中的押金冻结,之后按照智能合约限定的规则进行扣款(扣款时还可以进行收款方的身份认证),扣款的金额可以包括服务费用、药品费用以及后续的检查费用等。支付完成之后,患者终端可以将支付结果加密写入区块链,并向目标医生终端发送支付完成消息。患者基于其终端执行支付流程之后,可以进行后续的药品收取、进一步检查等动作。需要说明,以上支付流程可以与将接受情况信息写入区块链的流程并行执行,也可以根据任何先后顺序执行,本公开并不对此进行限制。As an optional solution, when the above-mentioned acceptance information indicates that the patient accepts the diagnosis result, the patient terminal can make payment according to the corresponding smart contract pre-deployed in the blockchain, that is, use the payment method information to interact with the corresponding institution (such as a bank) and Processes such as identity authentication are performed to realize the transfer of funds. For example, the patient terminal can first freeze the deposit in the patient's bank card, and then deduct the money according to the rules defined by the smart contract (the recipient's identity authentication can also be performed during the deduction). The deducted amount can include service fees, medicines Fees and follow-up inspection fees, etc. After the payment is completed, the patient terminal can encrypt the payment result and write it into the blockchain, and send a payment completion message to the target doctor terminal. After the patient performs the payment process based on his terminal, he can perform subsequent actions such as drug collection and further inspection. It should be noted that the above payment process can be executed in parallel with the process of writing the acceptance information into the blockchain, or can be executed in any order, which is not limited in this disclosure.
目标医生终端在接收到响应消息之后,根据其中携带的第五索引 数据从区块链中查询到接受情况信息的加密数据,利用响应消息中的第五密钥解密该加密数据从而得到患者的接受情况信息。如果接受情况信息指示患者接受诊断结果,目标医生终端可以接收到患者终端发送的支付完成消息,接收到该消息之后,目标医生终端可以基于相应的智能合约收取相应款项(如服务费用)。可以理解,药品费用、后续检查费用等可以通过患者终端与医院终端的交互由医院终端收取。具体应用中,医生针对多个患者诊断时,医生终端可以优选处理历史患者的病历信息,也可以按照时间顺序处理每一患者的病历信息。诊断过程中,医生可以选择是否开通与患者的视频就诊。After receiving the response message, the target doctor terminal queries the encrypted data of the acceptance information from the blockchain according to the fifth index data carried therein, and decrypts the encrypted data with the fifth key in the response message to obtain the patient's acceptance. situation information. If the acceptance information indicates that the patient accepts the diagnosis result, the target doctor terminal can receive the payment completion message sent by the patient terminal. After receiving the message, the target doctor terminal can collect the corresponding payment (such as service fee) based on the corresponding smart contract. It can be understood that the drug fee, the follow-up examination fee, etc. may be collected by the hospital terminal through the interaction between the patient terminal and the hospital terminal. In a specific application, when a doctor diagnoses multiple patients, the doctor terminal may preferably process the medical record information of historical patients, or may process the medical record information of each patient in chronological order. During the diagnosis process, doctors can choose whether to enable video consultation with patients.
图7是本公开实施例中医生诊断流程示意图,如图7所示,在步骤S701中,目标医生终端从区块链中获取患者的病历信息、或者病历信息以及影像检测结果。在步骤S702中,目标医生终端存储医生根据病历信息、或者病历信息以及影像检测结果得出的诊断结果。特别地,该诊断结果可以是目标医生终端调用第二智能合约由医生语音生成的文本。在步骤S703中,目标医生终端将诊断结果加密。在步骤S704中,目标医生终端将加密数据的哈希值作为第二索引数据。在步骤S705中,目标医生终端将加密数据和第二索引数据写入区块链。在步骤S706中,目标医生终端向相应的患者终端发送诊断完成消息。在步骤S707中,患者终端存储患者提供的接收情况信息。在步骤S708中,患者终端加密接收情况信息。在步骤S709中,患者终端将加密数据的哈希值作为第五索引数据。在步骤S710中,患者终端将加密数据和第五索引数据写入区块链。在步骤S711中,患者终端向目标医生终端发送响应消息。在步骤S712中,如果接受情况信息指示患者接受诊断结果,患者终端根据相应的智能合约自动执行支付。在步骤S713中,患者终端将支付结果写入区块链。在步骤S714中,患者终端向目标医生终端发送支付完成消息。在步骤S715中,目标医生终端从区块链中获取接受情况信息。在步骤S716中,目标医生终端从区块链中获取支付结果,并执行收款动作。FIG. 7 is a schematic diagram of a doctor's diagnosis flow in an embodiment of the present disclosure. As shown in FIG. 7 , in step S701 , the target doctor terminal obtains the patient's medical record information, or medical record information and image detection results from the blockchain. In step S702, the target doctor terminal stores the diagnosis result obtained by the doctor according to the medical record information, or the medical record information and the image detection result. In particular, the diagnosis result may be the text generated by the doctor's voice by calling the second smart contract by the target doctor's terminal. In step S703, the target doctor terminal encrypts the diagnosis result. In step S704, the target doctor terminal takes the hash value of the encrypted data as the second index data. In step S705, the target doctor terminal writes the encrypted data and the second index data into the blockchain. In step S706, the target doctor terminal sends a diagnosis completion message to the corresponding patient terminal. In step S707, the patient terminal stores the reception situation information provided by the patient. In step S708, the patient terminal encrypts the reception situation information. In step S709, the patient terminal uses the hash value of the encrypted data as the fifth index data. In step S710, the patient terminal writes the encrypted data and the fifth index data into the blockchain. In step S711, the patient terminal sends a response message to the target doctor terminal. In step S712, if the acceptance information indicates that the patient accepts the diagnosis result, the patient terminal automatically executes payment according to the corresponding smart contract. In step S713, the patient terminal writes the payment result into the blockchain. In step S714, the patient terminal sends a payment completion message to the target doctor terminal. In step S715, the target doctor terminal obtains the acceptance information from the blockchain. In step S716, the target doctor terminal obtains the payment result from the blockchain, and executes the payment action.
实际应用中,当患者根据医生作出的诊断结果治疗一段时间之后,患者可以针对医生进行反馈。具体地,患者终端可以存储患者对医生的评价信息,并依据该评价信息以及预先部署在区块链的第三智能合约调整该医生的分数和/或级别,最后将调整后的分数和/或级别写入区块链。可以理解,以上数据可以在加密后写入区块链。通过以上设置,能够基于患者评价实现医生诊断水平的动态考量。实际场景中,患者终端也可以根据相应智能合约以及上述评价信息提出针对同一医生的复诊或者更换其他医生。为了避免个别患者的恶意评价,智能合约中可以设置相应规则,例如将差评频次或比例大于阈值的患者加入黑名单。图8是本公开实施例中患者反馈流程示意图,如图8所示,在步骤S801中,患者终端存储患者提供的评价信息。在步骤S802中,患者终端调用第三智能合约调整医生的分数或级别。在步骤S803中,患者终端将调整后的医生分数或级别写入区块链。In practical applications, after the patient has been treated for a period of time according to the diagnosis result made by the doctor, the patient can give feedback to the doctor. Specifically, the patient terminal can store the patient's evaluation information on the doctor, and adjust the doctor's score and/or level according to the evaluation information and the third smart contract pre-deployed in the blockchain, and finally adjust the adjusted score and/or level. Levels are written to the blockchain. It is understood that the above data can be written to the blockchain after encryption. Through the above settings, it is possible to realize the dynamic consideration of the doctor's diagnosis level based on the patient evaluation. In actual scenarios, the patient terminal can also propose a follow-up visit to the same doctor or change other doctors according to the corresponding smart contract and the above evaluation information. In order to avoid malicious evaluation of individual patients, corresponding rules can be set in the smart contract, such as adding patients whose frequency or proportion of bad evaluations is greater than the threshold to the blacklist. FIG. 8 is a schematic diagram of a patient feedback flow in an embodiment of the present disclosure. As shown in FIG. 8 , in step S801 , the patient terminal stores the evaluation information provided by the patient. In step S802, the patient terminal invokes the third smart contract to adjust the doctor's score or level. In step S803, the patient terminal writes the adjusted doctor score or level into the blockchain.
图9是本公开实施例中执行于医生终端的基于区块链网络的诊断方法的主要步骤示意图,如图9所示,上述诊断方法可以执行以下具体步骤:步骤S901,医生终端接收患者终端发送的就诊消息;步骤S902,医生终端从所述区块链网络各节点维护的区块链中获取患者的病历信息,存储医生基于所述病历信息作出的诊断结果,将所述诊断结果写入所述区块链,并向患者终端发送诊断完成消息;其中,所述就诊消息是患者终端在存储所述病历信息、并将所述病历信息写入所述区块链之后发送的。由于相关的就诊、诊断、支付、评价等具体流程已在前文介绍,此处不再重复。FIG. 9 is a schematic diagram of the main steps of a diagnosis method based on a blockchain network performed on a doctor terminal in an embodiment of the present disclosure. As shown in FIG. 9 , the above-mentioned diagnosis method may perform the following specific steps: Step S901 , the doctor terminal receives the data sent by the patient terminal. In step S902, the doctor terminal obtains the patient's medical record information from the blockchain maintained by each node of the blockchain network, stores the diagnosis result made by the doctor based on the medical record information, and writes the diagnosis result into all the medical records. The block chain is used, and a diagnosis completion message is sent to the patient terminal; wherein, the medical treatment message is sent by the patient terminal after storing the medical record information and writing the medical record information into the block chain. Since the specific processes of medical treatment, diagnosis, payment, and evaluation have been introduced in the previous section, they will not be repeated here.
在本公开实施例的技术方案中,由患者终端和医生终端组成去中心化的区块链网络,当患者需要就诊时,患者终端将患者的病历信息写入区块链并向目标医生终端发送消息,目标医生终端接收到消息之后从区块链中获取病历信息、作出诊断结果、将诊断结果写入区块链并向患者终端发送消息,患者终端接收到该消息之后即可从区块链中查看诊断结果。这样,患者和医生能够基于各自终端存放的区块链实 现完整的疾病诊断以及治疗流程,去中心化的特点能够保证***的高可用性,同时基于区块链中数据的不可篡改性和公开可查性能够保证患者病历、诊断结果等医疗信息的安全可追溯。此外,本公开实施例在区块链中部署能够自动检测影像检查资料的智能合约以及能够将医生语音转换为文本的智能合约,前者可以降低医生查看影像检查资料的时间精力耗费,后者能够实现诊断结果的快速生成。In the technical solution of the embodiment of the present disclosure, a decentralized blockchain network is formed by the patient terminal and the doctor terminal. When the patient needs to see a doctor, the patient terminal writes the patient's medical record information into the blockchain and sends it to the target doctor terminal After receiving the message, the target doctor terminal obtains the medical record information from the blockchain, makes the diagnosis result, writes the diagnosis result to the blockchain and sends the message to the patient terminal. to view the diagnostic results. In this way, patients and doctors can realize a complete disease diagnosis and treatment process based on the blockchain stored in their respective terminals. The decentralization feature can ensure the high availability of the system, and at the same time, based on the immutability and openness of the data in the blockchain Security can ensure the safety and traceability of medical information such as patient medical records and diagnosis results. In addition, the embodiment of the present disclosure deploys a smart contract capable of automatically detecting image inspection data and a smart contract capable of converting a doctor's voice into text in the blockchain. The former can reduce the time and energy consumption of doctors in viewing image inspection data, and the latter can Rapid generation of diagnostic results.
需要说明的是,对于前述的各方法实施例,为了便于描述,将其表述为一系列的动作组合,但是本领域技术人员应该知悉,本公开并不受所描述的动作顺序的限制,某些步骤事实上可以采用其它顺序进行或者同时进行。此外,本领域技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作和模块并不一定是实现本公开所必须的。It should be noted that, for the convenience of description, the foregoing method embodiments are expressed as a series of action combinations, but those skilled in the art should know that the present disclosure is not limited by the described action sequence, some The steps may in fact be performed in other orders or simultaneously. In addition, those skilled in the art should also know that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily necessary to realize the present disclosure.
为便于更好的实施本公开实施例的上述方案,下面还提供用于实施上述方案的相关***。In order to better implement the above solutions of the embodiments of the present disclosure, a related system for implementing the above solutions is also provided below.
请参阅图2所示,本公开实施例提供的用于诊断的区块链网络***可以包括作为网络节点的患者终端和医生终端;其中,患者终端存储患者的病历信息,将所述病历信息写入所述区块链网络各节点维护的区块链,并向目标医生终端发送就诊消息;目标医生终端接收到患者终端发送的所述就诊消息之后,从所述区块链中获取所述病历信息,存储医生基于所述病历信息作出的诊断结果,将所述诊断结果写入所述区块链,并向该患者终端发送诊断完成消息。Referring to FIG. 2 , the blockchain network system for diagnosis provided by the embodiment of the present disclosure may include a patient terminal and a doctor terminal as network nodes; wherein, the patient terminal stores the patient's medical record information, and writes the medical record information to the patient terminal. Enter the blockchain maintained by each node of the blockchain network, and send the medical treatment message to the target doctor terminal; after receiving the medical treatment message sent by the patient terminal, the target doctor terminal obtains the medical record from the blockchain information, store the diagnosis result made by the doctor based on the medical record information, write the diagnosis result into the blockchain, and send a diagnosis completion message to the patient terminal.
在本公开实施例中,患者终端在存储患者的病历信息之后,将所述病历信息的加密数据和第一索引数据写入所述区块链;其中,第一索引数据用于查询所述加密数据;以及,所述就诊消息中携带有第一索引数据和用于解密所述加密数据的第一密钥;目标医生终端在接收到所述就诊消息之后,根据所述就诊消息中的第一索引数据从所述区 块链中查询到所述加密数据,利用所述就诊消息中的第一密钥解密所述加密数据得到所述病历信息。In the embodiment of the present disclosure, after storing the patient's medical record information, the patient terminal writes the encrypted data of the medical record information and the first index data into the blockchain; wherein, the first index data is used to query the encrypted data data; and, the medical treatment message carries first index data and a first key for decrypting the encrypted data; after receiving the medical treatment message, the target doctor terminal, after receiving the medical treatment message, The encrypted data is obtained by querying the index data from the blockchain, and the encrypted data is decrypted by using the first key in the medical treatment message to obtain the medical record information.
具体应用中,目标医生终端在存储所述诊断结果之后,将所述诊断结果的加密数据和第二索引数据写入所述区块链;其中,第二索引数据用于查询所述诊断结果的加密数据;以及,所述诊断完成消息中携带有第二索引数据和用于解密所述诊断结果的加密数据的第二密钥。In a specific application, after storing the diagnosis result, the target doctor terminal writes the encrypted data of the diagnosis result and the second index data into the blockchain; wherein, the second index data is used to query the information of the diagnosis result. encrypted data; and, the diagnosis completion message carries second index data and a second key for decrypting the encrypted data of the diagnosis result.
实际应用中,所述病历信息包括患者的影像检查资料;患者终端在存储患者的病历信息之后,调用部署在所述区块链的第一智能合约检测所述影像检查资料以得到影像检测结果,并将所述病历信息和所述影像检测结果的加密数据以及第一索引数据写入所述区块链。In practical applications, the medical record information includes the patient's image examination data; after storing the patient's medical record information, the patient terminal invokes the first smart contract deployed in the blockchain to detect the image examination data to obtain the image detection result, and write the medical record information, the encrypted data of the image detection result and the first index data into the blockchain.
作为一个优选方案,所述诊断结果为文本格式;以及,目标医生终端调用部署在所述区块链的第二智能合约将医生语音转换为所述诊断结果并存储。As a preferred solution, the diagnosis result is in a text format; and the target doctor terminal invokes a second smart contract deployed in the blockchain to convert the doctor's voice into the diagnosis result and store it.
较佳地,任一患者终端在存储患者的病历信息之前,存储患者的标识信息和支付途径信息;在校验所述标识信息和所述支付途径信息之后,将所述标识信息和所述支付途径信息的加密数据和第三索引数据写入所述区块链,并将第三索引数据和用于解密该加密数据的第三密钥存储在本地;患者终端在存储患者的病历信息之后,根据本地存储的第三索引数据从所述区块链中查询到该加密数据,利用本地存储的第三密钥解密该加密数据得到所述标识信息,并对所述标识信息与所述病历信息进行校验。Preferably, any patient terminal stores the patient's identification information and payment method information before storing the patient's medical record information; after verifying the identification information and the payment method information, the identification information and the payment method The encrypted data of the pathway information and the third index data are written into the blockchain, and the third index data and the third key used to decrypt the encrypted data are stored locally; after the patient terminal stores the patient's medical record information, The encrypted data is queried from the blockchain according to the third index data stored locally, the encrypted data is decrypted using the third key stored locally to obtain the identification information, and the identification information and the medical record information are analyzed. Check it out.
在一个可选的方案中,目标医生终端在接收所述就诊消息之前,存储医生的标识信息、支付途径信息和认证信息,并在校验该标识信息、该支付途径信息和该认证信息之后,将该标识信息、该支付途径 信息和该认证信息的加密数据和第四索引数据写入所述区块链;其中,医生的认证信息包括医生的执业医院信息;目标医生终端根据预先写入所述区块链的已验证医院信息对医生的执业医院信息进行校验。In an optional solution, before receiving the medical visit message, the target doctor terminal stores the doctor's identification information, payment method information and authentication information, and after verifying the identification information, the payment method information and the authentication information, Write the encrypted data and fourth index data of the identification information, the payment method information and the authentication information into the blockchain; wherein, the doctor's authentication information includes the doctor's practice hospital information; the target doctor's terminal is based on the pre-written data The verified hospital information of the blockchain is used to verify the doctor's practice hospital information.
在一些实施例中,患者终端在接收到目标医生终端发送的诊断完成消息之后,根据所述诊断完成消息中的第二索引数据从所述区块链中查询到所述诊断结果的加密数据,利用所述诊断完成消息中的第二密钥解密该加密数据得到所述诊断结果;并存储患者针对所述诊断结果的接受情况信息,将所述接受情况信息的加密数据以及第五索引数据写入所述区块链,向目标医生终端发送响应消息;其中,第五索引数据用于查询所述接受情况信息的加密数据,所述响应消息中携带有第五索引数据和用于解密所述接受情况信息的加密数据的第五密钥;响应于所述接受情况信息指示患者接受诊断结果,患者终端在存储所述接受情况信息之后基于患者的支付途径信息进行支付,将支付结果写入所述区块链,并向目标医生终端发送支付完成消息;目标医生终端在接收到所述响应消息之后,根据第五索引数据从所述区块链中查询到所述接受情况信息的加密数据,利用第五密钥解密该加密数据得到所述接受情况信息;在接收到所述支付完成消息之后,从所述区块链中获取所述支付结果。In some embodiments, after receiving the diagnosis completion message sent by the target doctor terminal, the patient terminal queries the encrypted data of the diagnosis result from the blockchain according to the second index data in the diagnosis completion message, Use the second key in the diagnosis completion message to decrypt the encrypted data to obtain the diagnosis result; and store the patient's acceptance information for the diagnosis result, and write the encrypted data of the acceptance information and the fifth index data into enter the blockchain, and send a response message to the target doctor terminal; wherein, the fifth index data is used to query the encrypted data of the acceptance information, and the response message carries the fifth index data and is used to decrypt the The fifth key of the encrypted data of the acceptance information; in response to the acceptance information indicating that the patient accepts the diagnosis result, the patient terminal makes payment based on the patient's payment route information after storing the acceptance information, and writes the payment result into all After receiving the response message, the target doctor terminal queries the encrypted data of the acceptance information from the blockchain according to the fifth index data, Decrypt the encrypted data with the fifth key to obtain the acceptance information; after receiving the payment completion message, obtain the payment result from the blockchain.
实际场景中,患者终端存储患者对医生的评价信息,依据所述评价信息以及预先部署在所述区块链的第三智能合约调整该医生的分数和/或级别,并将调整后的分数和/或级别写入所述区块链。In the actual scenario, the patient terminal stores the patient's evaluation information on the doctor, adjusts the doctor's score and/or level according to the evaluation information and the third smart contract pre-deployed in the blockchain, and compares the adjusted score to the doctor's score. / or level written to said blockchain.
此外,在本公开实施例中,患者的病历信息进一步包括症状信息和/或历史就诊资料;所述标识信息包括以下至少一种:姓名、身份证号、手机号、人脸特征;所述支付途径信息包括:银行账户信息和/或电子账户信息;医生的认证信息进一步包括:医生的执业证书信息;如果所述接受情况信息指示患者拒绝接受诊断结果,则所述接收情况信息中进一步包括拒绝原因信息。In addition, in the embodiment of the present disclosure, the patient's medical record information further includes symptom information and/or historical medical treatment information; the identification information includes at least one of the following: name, ID number, mobile phone number, and facial features; the payment The access information includes: bank account information and/or electronic account information; the doctor's certification information further includes: the doctor's practice certificate information; if the acceptance information indicates that the patient refuses to accept the diagnosis result, the acceptance information further includes the refusal Reason information.
在本公开实施例的技术方案中,由患者终端和医生终端组成去中心化的区块链网络,当患者需要就诊时,患者终端将患者的病历信息写入区块链并向目标医生终端发送消息,目标医生终端接收到消息之后从区块链中获取病历信息、作出诊断结果、将诊断结果写入区块链并向患者终端发送消息,患者终端接收到该消息之后即可从区块链中查看诊断结果。这样,患者和医生能够基于各自终端存放的区块链实现完整的疾病诊断以及治疗流程,去中心化的特点能够保证***的高可用性,同时基于区块链中数据的不可篡改性和公开可查性能够保证患者病历、诊断结果等医疗信息的安全可追溯。此外,本公开实施例在区块链中部署能够自动检测影像检查资料的智能合约以及能够将医生语音转换为文本的智能合约,前者可以降低医生查看影像检查资料的时间精力耗费,后者能够实现诊断结果的快速生成。In the technical solution of the embodiment of the present disclosure, a decentralized blockchain network is formed by the patient terminal and the doctor terminal. When the patient needs to see a doctor, the patient terminal writes the patient's medical record information into the blockchain and sends it to the target doctor terminal After receiving the message, the target doctor terminal obtains the medical record information from the blockchain, makes the diagnosis result, writes the diagnosis result to the blockchain and sends the message to the patient terminal. to view the diagnostic results. In this way, patients and doctors can realize a complete disease diagnosis and treatment process based on the blockchain stored in their respective terminals. The decentralization feature can ensure the high availability of the system, and at the same time, based on the immutability and openness of the data in the blockchain Security can ensure the safety and traceability of medical information such as patient medical records and diagnosis results. In addition, the embodiment of the present disclosure deploys a smart contract capable of automatically detecting image inspection data and a smart contract capable of converting a doctor's voice into text in the blockchain. The former can reduce the time and energy consumption of doctors in viewing image inspection data, and the latter can Rapid generation of diagnostic results.
图10是本公开实施例中设置于患者终端的基于区块链网络的诊断装置的主要部分示意图,如图10所示,所述装置1000可以包括就诊单元1001和第一接收单元1002。FIG. 10 is a schematic diagram of the main part of the block chain network-based diagnostic apparatus provided in the patient terminal in the embodiment of the present disclosure. As shown in FIG. 10 , the apparatus 1000 may include a medical treatment unit 1001 and a first receiving unit 1002 .
其中,就诊单元,1001可用于存储患者的病历信息,将所述病历信息写入所述区块链网络各节点维护的区块链,并向目标医生终端发送就诊消息;第一接收单元1002可用于接收目标医生终端发送的诊断完成消息;其中,所述诊断完成消息是目标医生终端将医生基于所述病历信息作出的诊断结果写入所述区块链之后发送的,所述病历信息是目标医生终端在接收到所述就诊消息之后从所述区块链中获取的。Among them, the medical treatment unit 1001 can be used to store the medical record information of the patient, write the medical record information into the blockchain maintained by each node of the blockchain network, and send the medical treatment message to the target doctor terminal; the first receiving unit 1002 can be used After receiving the diagnosis completion message sent by the target doctor terminal; wherein, the diagnosis completion message is sent by the target doctor terminal after writing the diagnosis result made by the doctor based on the medical record information into the blockchain, and the medical record information is the target doctor terminal. The doctor terminal obtains from the blockchain after receiving the medical consultation message.
在本公开实施例中,就诊单元1001进一步用于:将所述病历信息的加密数据和第一索引数据写入所述区块链;其中,第一索引数据用于查询所述加密数据;以及,所述就诊消息中携带有第一索引数据和用于解密所述加密数据的第一密钥;所述病历信息是目标医生终端在接收到所述就诊消息之后从所述区块链中获取的,包括:目标医生终 端根据所述就诊消息中的第一索引数据从所述区块链中查询到所述加密数据,利用所述就诊消息中的第一密钥解密所述加密数据得到所述病历信息。In the embodiment of the present disclosure, the medical treatment unit 1001 is further configured to: write the encrypted data of the medical record information and the first index data into the blockchain; wherein, the first index data is used to query the encrypted data; and , the medical treatment message carries first index data and a first key for decrypting the encrypted data; the medical record information is obtained by the target doctor terminal from the blockchain after receiving the medical treatment message It includes: the target doctor terminal inquires the encrypted data from the blockchain according to the first index data in the medical treatment message, and decrypts the encrypted data by using the first key in the medical treatment message to obtain the encrypted data. medical record information.
较佳地,所述病历信息包括患者的影像检查资料;所述装置1000进一步包括第一处理单元,其用于:在存储患者的病历信息之后,调用部署在所述区块链的第一智能合约检测所述影像检查资料以得到影像检测结果;以及,所述病历信息的加密数据包括:所述病历信息和所述影像检测结果的加密数据。Preferably, the medical record information includes the image examination data of the patient; the device 1000 further includes a first processing unit, which is used for: after storing the medical record information of the patient, call the first intelligent intelligence deployed in the blockchain. The contract detects the image inspection data to obtain an image inspection result; and the encrypted data of the medical record information includes: the encrypted data of the medical record information and the image inspection result.
作为一个优选方案,所述装置1000可进一步包括患者信息存储及校验单元,其用于:在存储患者的病历信息之前,存储患者的标识信息和支付途径信息;在校验所述标识信息和所述支付途径信息之后,将所述标识信息和所述支付途径信息的加密数据以及第三索引数据写入所述区块链,并将第三索引数据和用于解密该加密数据的第三密钥存储在本地;在存储患者的病历信息之后,根据本地存储的第三索引数据从所述区块链中查询到该加密数据,利用本地存储的第三密钥解密该加密数据得到所述标识信息,并对所述标识信息与所述病历信息进行校验。As a preferred solution, the device 1000 may further include a patient information storage and verification unit, which is used for: before storing the patient's medical record information, store the patient's identification information and payment method information; After the payment route information, write the identification information and the encrypted data of the payment route information and the third index data into the blockchain, and write the third index data and the third index data for decrypting the encrypted data. The key is stored locally; after the patient's medical record information is stored, the encrypted data is queried from the blockchain according to the third index data stored locally, and the encrypted data is decrypted using the third key stored locally to obtain the identification information, and verifying the identification information and the medical record information.
具体应用中,所述诊断完成消息是目标医生终端将医生基于所述病历信息作出的诊断结果写入所述区块链之后发送的,包括:目标医生终端将所述诊断结果的加密数据和第二索引数据写入所述区块链;其中,第二索引数据用于查询所述诊断结果的加密数据,所述诊断完成消息中携带有第二索引数据和用于解密所述诊断结果的加密数据的第二密钥;以及,所述装置1000可进一步包括反馈及支付单元,其用于:在接收到目标医生终端发送的诊断完成消息之后,根据所述诊断完成消息中的第二索引数据从所述区块链中查询到所述诊断结果的加密数据,利用所述诊断完成消息中的第二密钥解密该加密数据得到所述诊断结果;并存储患者针对所述诊断结果的接受情况信息,将所述 接受情况信息的加密数据以及第五索引数据写入所述区块链,向目标医生终端发送响应消息;其中,第五索引数据用于查询所述接受情况信息的加密数据,所述响应消息中携带有第五索引数据和用于解密所述接受情况信息的加密数据的第五密钥;响应于所述接受情况信息指示患者接受诊断结果,基于患者的支付途径信息进行支付,将支付结果写入所述区块链,并向目标医生终端发送支付完成消息。In a specific application, the diagnosis completion message is sent by the target doctor terminal after writing the diagnosis result made by the doctor based on the medical record information into the blockchain, including: the target doctor terminal writes the encrypted data of the diagnosis result and the first The second index data is written into the blockchain; wherein the second index data is used to query the encrypted data of the diagnosis result, and the diagnosis completion message carries the second index data and the encryption used to decrypt the diagnosis result the second key of the data; and, the apparatus 1000 may further include a feedback and payment unit, which is used for: after receiving the diagnosis completion message sent by the target doctor terminal, according to the second index data in the diagnosis completion message Query the encrypted data of the diagnosis result from the blockchain, decrypt the encrypted data with the second key in the diagnosis completion message to obtain the diagnosis result; and store the patient's acceptance of the diagnosis result information, write the encrypted data of the acceptance information and the fifth index data into the blockchain, and send a response message to the target doctor terminal; wherein, the fifth index data is used to query the encrypted data of the acceptance information, The response message carries fifth index data and a fifth key for decrypting the encrypted data of the acceptance information; in response to the acceptance information indicating that the patient accepts the diagnosis result, payment is made based on the patient's payment route information , write the payment result into the blockchain, and send a payment completion message to the target doctor terminal.
实际应用中,所述装置1000可进一步包括评价单元,其用于:存储患者对医生的评价信息,依据所述评价信息以及预先部署在所述区块链的第三智能合约调整该医生的分数和/或级别,并将调整后的分数和/或级别写入所述区块链。In practical applications, the device 1000 may further include an evaluation unit, which is used to: store the evaluation information of the patient on the doctor, and adjust the doctor's score according to the evaluation information and the third smart contract pre-deployed in the blockchain. and/or level, and write the adjusted score and/or level to said blockchain.
此外,在本公开实施例中,患者的病历信息进一步包括症状信息和/或历史就诊资料;所述标识信息包括以下至少一种:姓名、身份证号、手机号、人脸特征;所述支付途径信息包括:银行账户信息和/或电子账户信息;如果所述接受情况信息指示患者拒绝接受诊断结果,则所述接收情况信息中进一步包括拒绝原因信息。In addition, in the embodiment of the present disclosure, the patient's medical record information further includes symptom information and/or historical medical treatment information; the identification information includes at least one of the following: name, ID number, mobile phone number, and facial features; the payment The route information includes: bank account information and/or electronic account information; if the acceptance information indicates that the patient refuses to receive the diagnosis result, the acceptance information further includes reason for rejection information.
图11是本公开实施例中设置于医生终端的基于区块链网络的诊断装置的主要部分示意图,如图11所示,所述装置1100可以包括第二接收单元1101和诊断单元1102。FIG. 11 is a schematic diagram of the main part of the block chain network-based diagnostic apparatus provided in the doctor terminal in the embodiment of the present disclosure. As shown in FIG. 11 , the apparatus 1100 may include a second receiving unit 1101 and a diagnosis unit 1102 .
其中,第二接收单元1101可用于接收患者终端发送的就诊消息,诊断单元1102可用于从所述区块链网络各节点维护的区块链中获取患者的病历信息,存储医生基于所述病历信息作出的诊断结果,将所述诊断结果写入所述区块链,并向患者终端发送诊断完成消息;其中,所述就诊消息是患者终端在存储所述病历信息、并将所述病历信息写入所述区块链之后发送的。Among them, the second receiving unit 1101 can be used to receive the medical treatment message sent by the patient terminal, and the diagnosis unit 1102 can be used to obtain the patient's medical record information from the blockchain maintained by each node of the blockchain network, and store the doctor's medical record information based on the medical record information. The diagnosis result is made, the diagnosis result is written into the blockchain, and a diagnosis completion message is sent to the patient terminal; wherein, the medical treatment message is that the patient terminal is storing the medical record information and writing the medical record information. Sent after entering the blockchain.
在本公开实施例中,所述就诊消息是患者终端在存储所述病历信 息、并将所述病历信息写入所述区块链之后发送的,包括:患者终端将所述病历信息的加密数据和第一索引数据写入所述区块链;其中,第一索引数据用于查询所述加密数据,所述就诊消息中携带有第一索引数据和用于解密所述加密数据的第一密钥;以及,诊断单元1102可进一步用于:根据所述就诊消息中的第一索引数据从所述区块链中查询到所述加密数据,利用所述就诊消息中的第一密钥解密所述加密数据得到所述病历信息。In the embodiment of the present disclosure, the medical visit message is sent by the patient terminal after storing the medical record information and writing the medical record information into the blockchain, including: the patient terminal writes the encrypted data of the medical record information and the first index data are written into the blockchain; wherein, the first index data is used to query the encrypted data, and the medical treatment message carries the first index data and the first password used to decrypt the encrypted data. and the diagnosis unit 1102 may be further configured to: query the encrypted data from the blockchain according to the first index data in the medical visit message, and decrypt the encrypted data by using the first key in the medical visit message The encrypted data is used to obtain the medical record information.
具体应用中,诊断单元1102可进一步用于:将所述诊断结果的加密数据和第二索引数据写入所述区块链;其中,第二索引数据用于查询所述诊断结果的加密数据;以及,所述诊断完成消息中携带有第二索引数据和用于解密所述诊断结果的加密数据的第二密钥。In a specific application, the diagnosis unit 1102 may be further configured to: write the encrypted data of the diagnosis result and the second index data into the blockchain; wherein the second index data is used to query the encrypted data of the diagnosis result; And, the diagnosis completion message carries second index data and a second key for decrypting the encrypted data of the diagnosis result.
实际应用中,所述诊断结果为文本格式;以及,诊断单元1102可进一步用于:调用部署在所述区块链的第二智能合约将医生语音转换为所述诊断结果并存储。In practical applications, the diagnosis result is in a text format; and the diagnosis unit 1102 may be further configured to: call a second smart contract deployed in the blockchain to convert the doctor's voice into the diagnosis result and store it.
作为一个优选方案,所述装置1100可进一步包括医生信息存储及校验单元,其用于:在接收所述就诊消息之前,存储医生的标识信息、支付途径信息和认证信息,并在校验该标识信息、该支付途径信息和该认证信息之后,将该标识信息、该支付途径信息和该认证信息的加密数据和第四索引数据写入所述区块链;其中,医生的认证信息包括医生的执业医院信息,所述执业医院信息是基于预先写入所述区块链的已验证医院信息进行校验的。As a preferred solution, the device 1100 may further include a doctor information storage and verification unit, which is configured to: before receiving the medical consultation message, store the doctor's identification information, payment method information and authentication information, and verify the doctor's information. After the identification information, the payment method information and the authentication information, the encrypted data and fourth index data of the identification information, the payment method information and the authentication information are written into the blockchain; wherein the doctor's authentication information includes the doctor's The practicing hospital information, the practicing hospital information is verified based on the verified hospital information written in the blockchain in advance.
较佳地,所述装置1100可进一步包括反馈接收单元,其用于:接收患者终端发送的响应消息;根据所述响应消息中的第五索引数据从所述区块链中查询到患者针对所述诊断结果的接受情况信息的加密数据,利用所述响应消息中的第五密钥解密该加密数据得到所述接受情况信息;其中,所述响应消息是患者终端在存储所述接受情况信息、 并将所述接受情况信息的加密数据以及用于查询该加密数据的第五索引数据写入所述区块链之后发送的。Preferably, the device 1100 may further include a feedback receiving unit, which is used for: receiving a response message sent by the patient terminal; querying the blockchain according to the fifth index data in the response message The encrypted data of the acceptance information of the diagnosis result is decrypted by using the fifth key in the response message to obtain the acceptance information; wherein, the response message is that the patient terminal is storing the acceptance information, The encrypted data of the acceptance information and the fifth index data for querying the encrypted data are written into the blockchain and sent.
在一些实施例中,所述装置1100可进一步包括支付结果接收单元,其用于:接收患者终端发送的支付完成消息;从所述区块链中获取患者终端进行支付的支付结果;其中,所述支付完成消息是患者终端在判断所述接受情况信息指示患者接受诊断结果时进行支付、并将所述支付结果写入所述区块链之后发送的。In some embodiments, the apparatus 1100 may further include a payment result receiving unit, which is configured to: receive a payment completion message sent by the patient terminal; obtain the payment result of the patient terminal from the blockchain; wherein, the The payment completion message is sent by the patient terminal after judging that the acceptance information indicates that the patient accepts the diagnosis result, and the payment result is written into the blockchain.
此外,在本公开实施例中,患者的病历信息进一步包括影像检查资料、症状信息和/或历史就诊资料;所述标识信息包括以下至少一种:姓名、身份证号、手机号、人脸特征;所述支付途径信息包括:银行账户信息和/或电子账户信息;医生的认证信息进一步包括:医生的执业证书信息;如果所述接受情况信息指示患者拒绝接受诊断结果,则所述接收情况信息中进一步包括拒绝原因信息。In addition, in the embodiment of the present disclosure, the patient's medical record information further includes image examination data, symptom information and/or historical medical treatment data; the identification information includes at least one of the following: name, ID number, mobile phone number, facial features ; the payment method information includes: bank account information and/or electronic account information; the doctor's certification information further includes: the doctor's practice certificate information; if the acceptance information indicates that the patient refuses to accept the diagnosis result, the acceptance information Include further information on the reason for rejection.
本公开还提供了一种电子设备。本公开实施例的电子设备包括:一个或多个处理器;存储装置,用于存储一个或多个程序,当所述一个或多个程序被所述一个或多个处理器执行,使得所述一个或多个处理器实现本公开所提供的基于区块链网络的诊断方法。The present disclosure also provides an electronic device. An electronic device according to an embodiment of the present disclosure includes: one or more processors; and a storage device for storing one or more programs, and when the one or more programs are executed by the one or more processors, the one or more programs cause the One or more processors implement the blockchain network-based diagnostic method provided by the present disclosure.
下面参考图12,其示出了适于用来实现本公开实施例的电子设备的计算机***1200的结构示意图。图12示出的电子设备仅仅是一个示例,不应对本公开实施例的功能和使用范围带来任何限制。Referring next to FIG. 12, it shows a schematic structural diagram of a computer system 1200 suitable for implementing an electronic device of an embodiment of the present disclosure. The electronic device shown in FIG. 12 is only an example, and should not impose any limitation on the function and scope of use of the embodiments of the present disclosure.
如图12所示,计算机***1200包括中央处理单元(CPU)1201,其可以根据存储在只读存储器(ROM)1202中的程序或者从存储部分1208加载到随机访问存储器(RAM)1203中的程序而执行各种适当的动作和处理。在RAM1203中,还存储有计算机***1200操作所需的各种程序和数据。CPU1201、ROM 1202以及RAM 1203通过总线1204彼此 相连。输入/输出(I/O)接口1205也连接至总线1204。As shown in FIG. 12, a computer system 1200 includes a central processing unit (CPU) 1201, which can be loaded into a random access memory (RAM) 1203 according to a program stored in a read only memory (ROM) 1202 or a program from a storage section 1208 Instead, various appropriate actions and processes are performed. In the RAM 1203, various programs and data necessary for the operation of the computer system 1200 are also stored. The CPU 1201, ROM 1202, and RAM 1203 are connected to each other through a bus 1204. An input/output (I/O) interface 1205 is also connected to bus 1204 .
以下部件连接至I/O接口1205:包括键盘、鼠标等的输入部分1206;包括诸如阴极射线管(CRT)、液晶显示器(LCD)等以及扬声器等的输出部分1207;包括硬盘等的存储部分1208;以及包括诸如LAN卡、调制解调器等的网络接口卡的通信部分1209。通信部分1209经由诸如因特网的网络执行通信处理。驱动器1210也根据需要连接至I/O接口1205。可拆卸介质1211,诸如磁盘、光盘、磁光盘、半导体存储器等等,根据需要安装在驱动器1210上,以便从其上读出的计算机程序根据需要被安装入存储部分1208。The following components are connected to the I/O interface 1205: an input section 1206 including a keyboard, a mouse, etc.; an output section 1207 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 1208 including a hard disk, etc. ; and a communication section 1209 including a network interface card such as a LAN card, a modem, and the like. The communication section 1209 performs communication processing via a network such as the Internet. Drivers 1210 are also connected to I/O interface 1205 as needed. A removable medium 1211, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is mounted on the drive 1210 as needed, so that a computer program read therefrom is installed into the storage section 1208 as needed.
特别地,根据本公开公开的实施例,上文的主要步骤图描述的过程可以被实现为计算机软件程序。例如,本公开实施例包括一种计算机程序产品,其包括承载在计算机可读介质上的计算机程序,该计算机程序包含用于执行主要步骤图所示的方法的程序代码。在上述实施例中,该计算机程序可以通过通信部分1209从网络上被下载和安装,和/或从可拆卸介质1211被安装。在该计算机程序被中央处理单元1201执行时,执行本公开的***中限定的上述功能。In particular, according to embodiments of the present disclosure, the processes described in the main step diagrams above may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program carried on a computer-readable medium, the computer program containing program code for performing the method shown in the main step diagram. In the above-described embodiment, the computer program can be downloaded and installed from the network through the communication section 1209, and/or installed from the removable medium 1211. When the computer program is executed by the central processing unit 1201, the above-described functions defined in the system of the present disclosure are executed.
需要说明的是,本公开所示的计算机可读介质可以是计算机可读信号介质或者计算机可读存储介质或者是上述两者的任意组合。计算机可读存储介质例如可以是——但不限于——电、磁、光、电磁、红外线、或半导体的***、装置或器件,或者任意以上的组合。计算机可读存储介质的更具体的例子可以包括但不限于:具有一个或多个导线的电连接、便携式计算机磁盘、硬盘、随机访问存储器(RAM)、只读存储器(ROM)、可擦式可编程只读存储器(EPROM或闪存)、光纤、便携式紧凑磁盘只读存储器(CD-ROM)、光存储器件、磁存储器件、或者上述的任意合适的组合。在本公开中,计算机可读存储介质可以是任何包含或存储程序的有形介质,该程序可以被指令执行***、装置或者器件使用或者与其结合使用。在本公开中,计算机可 读信号介质可以包括在基带中或者作为载波一部分传播的数据信号,其中承载了计算机可读的程序代码。这种传播的数据信号可以采用多种形式,包括但不限于电磁信号、光信号或上述任意合适的组合。计算机可读信号介质还可以是计算机可读存储介质以外的任何计算机可读介质,该计算机可读介质可以发送、传播或者传输用于由指令执行***、装置或者器件使用或者与其结合使用的程序。计算机可读介质上包含的程序代码可以用任何适当的介质传输,包括但不限于:无线、电线、光缆、RF等等,或者上述的任意合适的组合。It should be noted that the computer-readable medium shown in the present disclosure may be a computer-readable signal medium or a computer-readable storage medium, or any combination of the above two. The computer-readable storage medium can be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus or device, or a combination of any of the above. More specific examples of computer readable storage media may include, but are not limited to, electrical connections with one or more wires, portable computer disks, hard disks, random access memory (RAM), read only memory (ROM), erasable Programmable read only memory (EPROM or flash memory), fiber optics, portable compact disk read only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing. In this disclosure, a computer-readable storage medium may be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, apparatus, or device. In the present disclosure, a computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave with computer-readable program code embodied thereon. Such propagated data signals may take a variety of forms including, but not limited to, electromagnetic signals, optical signals, or any suitable combination of the foregoing. A computer-readable signal medium can also be any computer-readable medium, other than a computer-readable storage medium, that can transmit, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any suitable medium including, but not limited to, wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
附图中的流程图和框图,图示了按照本公开各种实施例的***、方法和计算机程序产品的可能实现的体系架构、功能和操作。在这点上,流程图或框图中的每个方框可以代表一个模块、程序段、或代码的一部分,上述模块、程序段、或代码的一部分包含一个或多个用于实现规定的逻辑功能的可执行指令。也应当注意,在有些作为替换的实现中,方框中所标注的功能也可以以不同于附图中所标注的顺序发生。例如,两个接连地表示的方框实际上可以基本并行地执行,它们有时也可以按相反的顺序执行,这根据所涉及的功能而定。也要注意的是,框图或流程图中的每个方框、以及框图或流程图中的方框的组合,可以用执行规定的功能或操作的专用的基于硬件的***来实现,或者可以用专用硬件与计算机指令的组合来实现。The flowchart and block diagrams in the Figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code that contains one or more logical functions for implementing the specified functions executable instructions. It should also be noted that, in some alternative implementations, the functions noted in the blocks may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It is also noted that each block of the block diagrams or flowchart illustrations, and combinations of blocks in the block diagrams or flowchart illustrations, can be implemented in special purpose hardware-based systems that perform the specified functions or operations, or can be implemented using A combination of dedicated hardware and computer instructions is implemented.
描述于本公开实施例中所涉及到的单元可以通过软件的方式实现,也可以通过硬件的方式来实现。所描述的单元也可以设置在处理器中,例如,可以描述为:一种处理器包括就诊单元和第一接收单元。其中,这些单元的名称在某种情况下并不构成对该单元本身的限定,例如,就诊单元还可以被描述为“帮助第一接收单元接收诊断完成消息的单元”。The units involved in the embodiments of the present disclosure may be implemented in a software manner, and may also be implemented in a hardware manner. The described unit can also be provided in the processor, for example, it can be described as: a processor includes a medical treatment unit and a first receiving unit. Wherein, the names of these units do not constitute a limitation of the unit itself under certain circumstances, for example, the medical treatment unit may also be described as "a unit that helps the first receiving unit to receive a diagnosis completion message".
作为另一方面,本公开还提供了一种计算机可读介质,该计算机可读介质可以是上述实施例中描述的设备中所包含的;也可以是单独 存在,而未装配入该设备中的。上述计算机可读介质承载有一个或者多个程序,当上述一个或者多个程序被该设备执行时,使得该设备执行的步骤包括:存储患者的病历信息,将所述病历信息写入所述区块链网络各节点维护的区块链,并向目标医生终端发送就诊消息;接收目标医生终端发送的诊断完成消息;其中,所述诊断完成消息是目标医生终端将医生基于所述病历信息作出的诊断结果写入所述区块链之后发送的,所述病历信息是目标医生终端在接收到所述就诊消息之后从所述区块链中获取的。As another aspect, the present disclosure also provides a computer-readable medium. The computer-readable medium may be included in the device described in the above embodiments; it may also exist independently without being assembled into the device. . The above-mentioned computer-readable medium carries one or more programs, and when the above-mentioned one or more programs are executed by the device, the steps performed by the device include: storing the patient's medical record information, and writing the medical record information into the area. The block chain maintained by each node of the block chain network, and send a medical treatment message to the target doctor terminal; receive a diagnosis completion message sent by the target doctor terminal; wherein, the diagnosis completion message is the target doctor terminal. The doctor made based on the medical record information. The diagnosis result is sent after being written into the blockchain, and the medical record information is obtained from the blockchain after the target doctor terminal receives the medical treatment message.
在本公开实施例的技术方案中,由患者终端和医生终端组成去中心化的区块链网络,当患者需要就诊时,患者终端将患者的病历信息写入区块链并向目标医生终端发送消息,目标医生终端接收到消息之后从区块链中获取病历信息、作出诊断结果、将诊断结果写入区块链并向患者终端发送消息,患者终端接收到该消息之后即可从区块链中查看诊断结果。这样,患者和医生能够基于各自终端存放的区块链实现完整的疾病诊断以及治疗流程,去中心化的特点能够保证***的高可用性,同时基于区块链中数据的不可篡改性和公开可查性能够保证患者病历、诊断结果等医疗信息的安全可追溯。此外,本公开实施例在区块链中部署能够自动检测影像检查资料的智能合约以及能够将医生语音转换为文本的智能合约,前者可以降低医生查看影像检查资料的时间精力耗费,后者能够实现诊断结果的快速生成。In the technical solution of the embodiment of the present disclosure, a decentralized blockchain network is formed by the patient terminal and the doctor terminal. When the patient needs to see a doctor, the patient terminal writes the patient's medical record information into the blockchain and sends it to the target doctor terminal After receiving the message, the target doctor terminal obtains the medical record information from the blockchain, makes the diagnosis result, writes the diagnosis result to the blockchain and sends the message to the patient terminal. to view the diagnostic results. In this way, patients and doctors can realize a complete disease diagnosis and treatment process based on the blockchain stored in their respective terminals. The decentralization feature can ensure the high availability of the system, and at the same time, based on the immutability and openness of the data in the blockchain Security can ensure the safety and traceability of medical information such as patient medical records and diagnosis results. In addition, the embodiment of the present disclosure deploys a smart contract capable of automatically detecting image inspection data and a smart contract capable of converting a doctor's voice into text in the blockchain. The former can reduce the time and energy consumption of doctors in viewing image inspection data, and the latter can Rapid generation of diagnostic results.
上述具体实施方式,并不构成对本公开保护范围的限制。本领域技术人员应该明白的是,取决于设计要求和其他因素,可以发生各种各样的修改、组合、子组合和替代。任何在本公开的精神和原则之内所作的修改、等同替换和改进等,均应包含在本公开保护范围之内。The above-mentioned specific embodiments do not constitute a limitation on the protection scope of the present disclosure. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may occur depending on design requirements and other factors. Any modifications, equivalent replacements, and improvements made within the spirit and principles of the present disclosure should be included within the protection scope of the present disclosure.

Claims (28)

  1. 一种基于区块链网络的诊断方法,所述区块链网络包括作为网络节点的患者终端和医生终端;所述方法应用在患者终端,包括:A diagnosis method based on a blockchain network, the blockchain network includes a patient terminal and a doctor terminal as network nodes; the method is applied to the patient terminal, including:
    存储患者的病历信息,将所述病历信息写入所述区块链网络各节点维护的区块链,并向目标医生终端发送就诊消息;Store the patient's medical record information, write the medical record information into the blockchain maintained by each node of the blockchain network, and send a medical treatment message to the target doctor's terminal;
    接收目标医生终端发送的诊断完成消息;其中,所述诊断完成消息是目标医生终端将医生基于所述病历信息作出的诊断结果写入所述区块链之后发送的,所述病历信息是目标医生终端在接收到所述就诊消息之后从所述区块链中获取的。Receive a diagnosis completion message sent by the target doctor terminal; wherein the diagnosis completion message is sent by the target doctor terminal after writing the diagnosis result made by the doctor based on the medical record information into the blockchain, and the medical record information is sent by the target doctor The terminal obtains from the blockchain after receiving the medical treatment message.
  2. 根据权利要求1所述的方法,其中,The method of claim 1, wherein,
    所述将所述病历信息写入所述区块链网络各节点维护的区块链,包括:将所述病历信息的加密数据和第一索引数据写入所述区块链;其中,第一索引数据用于查询所述加密数据;以及,所述就诊消息中携带有第一索引数据和用于解密所述加密数据的第一密钥;The writing of the medical record information into the blockchain maintained by each node of the blockchain network includes: writing the encrypted data and first index data of the medical record information into the blockchain; wherein the first The index data is used to query the encrypted data; and, the medical treatment message carries first index data and a first key for decrypting the encrypted data;
    所述病历信息是目标医生终端在接收到所述就诊消息之后从所述区块链中获取的,包括:目标医生终端根据所述就诊消息中的第一索引数据从所述区块链中查询到所述加密数据,利用所述就诊消息中的第一密钥解密所述加密数据得到所述病历信息。The medical record information is obtained by the target doctor terminal from the blockchain after receiving the medical visit message, including: the target doctor terminal inquires from the blockchain according to the first index data in the medical visit message. To the encrypted data, use the first key in the medical treatment message to decrypt the encrypted data to obtain the medical record information.
  3. 根据权利要求2所述的方法,其中,所述病历信息包括患者的影像检查资料;所述方法进一步包括:The method according to claim 2, wherein the medical record information includes imaging examination data of the patient; the method further comprises:
    在存储患者的病历信息之后,调用部署在所述区块链的第一智能合约检测所述影像检查资料以得到影像检测结果;以及After storing the patient's medical record information, invoking the first smart contract deployed in the blockchain to detect the image inspection data to obtain an image inspection result; and
    所述病历信息的加密数据包括:所述病历信息和所述影像检测结果的加密数据。The encrypted data of the medical record information includes: the encrypted data of the medical record information and the image detection result.
  4. 根据权利要求2所述的方法,其中,所述方法进一步包括:The method of claim 2, wherein the method further comprises:
    在存储患者的病历信息之前,存储患者的标识信息和支付途径信息;在校验所述标识信息和所述支付途径信息之后,将所述标识信息和所述支付途径信息的加密数据以及第三索引数据写入所述区块链,并将第三索引数据和用于解密该加密数据的第三密钥存储在本地;Before storing the patient's medical record information, store the patient's identification information and payment route information; after verifying the identification information and the payment route information, encrypt the identification information and the payment route information and the third The index data is written into the blockchain, and the third index data and the third key used to decrypt the encrypted data are stored locally;
    在存储患者的病历信息之后,根据本地存储的第三索引数据从所述区块链中查询到该加密数据,利用本地存储的第三密钥解密该加密数据得到所述标识信息,并对所述标识信息与所述病历信息进行校验。After storing the patient's medical record information, the encrypted data is queried from the blockchain according to the locally stored third index data, and the encrypted data is decrypted using the locally stored third key to obtain the identification information. The identification information is checked against the medical record information.
  5. 根据权利要求4所述的方法,其中,所述诊断完成消息是目标医生终端将医生基于所述病历信息作出的诊断结果写入所述区块链之后发送的,包括:The method according to claim 4, wherein the diagnosis completion message is sent by the target doctor terminal after writing the diagnosis result made by the doctor based on the medical record information into the blockchain, comprising:
    目标医生终端将所述诊断结果的加密数据和第二索引数据写入所述区块链;其中,第二索引数据用于查询所述诊断结果的加密数据,所述诊断完成消息中携带有第二索引数据和用于解密所述诊断结果的加密数据的第二密钥;以及,所述方法进一步包括:The target doctor terminal writes the encrypted data of the diagnosis result and the second index data into the blockchain; wherein the second index data is used to query the encrypted data of the diagnosis result, and the diagnosis completion message carries the first index data. Two index data and a second key for decrypting the encrypted data of the diagnostic result; and, the method further comprising:
    在接收到目标医生终端发送的诊断完成消息之后,根据所述诊断完成消息中的第二索引数据从所述区块链中查询到所述诊断结果的加密数据,利用所述诊断完成消息中的第二密钥解密该加密数据得到所述诊断结果;并存储患者针对所述诊断结果的接受情况信息,将所述接受情况信息的加密数据以及第五索引数据写入所述区块链,向目标医生终端发送响应消息;其中,第五索引数据用于查询所述接受情况信息的加密数据,所述响应消息中携带有第五索引数据和用于解密所述接受情况信息的加密数据的第五密钥;After receiving the diagnosis completion message sent by the target doctor's terminal, the encrypted data of the diagnosis result is queried from the blockchain according to the second index data in the diagnosis completion message, and the encrypted data of the diagnosis result is queried from the blockchain. The second key decrypts the encrypted data to obtain the diagnosis result; and stores the patient's acceptance information for the diagnosis result, writes the encrypted data of the acceptance information and the fifth index data into the blockchain, and sends the data to the blockchain. The target doctor terminal sends a response message; wherein, the fifth index data is used to query the encrypted data of the acceptance information, and the response message carries the fifth index data and the first index used to decrypt the encrypted data of the acceptance information. five keys;
    响应于所述接受情况信息指示患者接受诊断结果,基于患者的支付途径信息进行支付,将支付结果写入所述区块链,并向目标医生终端发送支付完成消息。In response to the acceptance information indicating that the patient accepts the diagnosis result, payment is made based on the patient's payment route information, the payment result is written into the blockchain, and a payment completion message is sent to the target doctor terminal.
  6. 根据权利要求2所述的方法,所述方法进一步包括:The method of claim 2, further comprising:
    存储患者对医生的评价信息,依据所述评价信息以及预先部署在所述区块链的第三智能合约调整该医生的分数和/或级别,并将调整后 的分数和/或级别写入所述区块链。Store the patient's evaluation information on the doctor, adjust the doctor's score and/or level according to the evaluation information and the third smart contract pre-deployed in the blockchain, and write the adjusted score and/or level into all the blockchain.
  7. 根据权利要求5所述的方法,其中,The method of claim 5, wherein,
    患者的病历信息进一步包括症状信息和/或历史就诊资料;The patient's medical record information further includes symptom information and/or historical medical visit information;
    所述标识信息包括以下至少一种:姓名、身份证号、手机号、人脸特征;The identification information includes at least one of the following: name, ID number, mobile phone number, and facial features;
    所述支付途径信息包括:银行账户信息和/或电子账户信息;The payment method information includes: bank account information and/or electronic account information;
    如果所述接受情况信息指示患者拒绝接受诊断结果,则所述接收情况信息中进一步包括拒绝原因信息。If the acceptance condition information indicates that the patient refuses to receive the diagnosis result, the acceptance condition information further includes refusal reason information.
  8. 一种基于区块链网络的诊断方法,所述区块链网络包括作为网络节点的患者终端和医生终端;所述方法应用在医生终端,包括:A diagnosis method based on a blockchain network, the blockchain network includes a patient terminal and a doctor terminal as network nodes; the method is applied to the doctor terminal, including:
    接收患者终端发送的就诊消息;Receive the medical treatment message sent by the patient terminal;
    从所述区块链网络各节点维护的区块链中获取患者的病历信息,存储医生基于所述病历信息作出的诊断结果,将所述诊断结果写入所述区块链,并向患者终端发送诊断完成消息;其中,Obtain the patient's medical record information from the blockchain maintained by each node of the blockchain network, store the diagnosis result made by the doctor based on the medical record information, write the diagnosis result into the blockchain, and send the diagnosis result to the patient terminal. Send a diagnostic complete message; where,
    所述就诊消息是患者终端在存储所述病历信息、并将所述病历信息写入所述区块链之后发送的。The medical treatment message is sent by the patient terminal after storing the medical record information and writing the medical record information into the blockchain.
  9. 根据权利要求8所述的方法,其中,所述就诊消息是患者终端在存储所述病历信息、并将所述病历信息写入所述区块链之后发送的,包括:The method according to claim 8, wherein the medical visit message is sent by the patient terminal after storing the medical record information and writing the medical record information into the blockchain, comprising:
    患者终端将所述病历信息的加密数据和第一索引数据写入所述区块链;其中,第一索引数据用于查询所述加密数据,所述就诊消息中携带有第一索引数据和用于解密所述加密数据的第一密钥;以及,所述方法进一步包括:The patient terminal writes the encrypted data of the medical record information and the first index data into the blockchain; wherein, the first index data is used to query the encrypted data, and the medical treatment message carries the first index data and the first index data. a first key for decrypting the encrypted data; and, the method further comprising:
    根据所述就诊消息中的第一索引数据从所述区块链中查询到所述加密数据,利用所述就诊消息中的第一密钥解密所述加密数据得到所述病历信息。The encrypted data is queried from the blockchain according to the first index data in the medical treatment message, and the medical record information is obtained by decrypting the encrypted data using the first key in the medical treatment message.
  10. 根据权利要求8所述的方法,其中,所述将所述诊断结果写入所述区块链,包括:The method of claim 8, wherein the writing the diagnostic result to the blockchain comprises:
    将所述诊断结果的加密数据和第二索引数据写入所述区块链;其中,第二索引数据用于查询所述诊断结果的加密数据;以及,所述诊断完成消息中携带有第二索引数据和用于解密所述诊断结果的加密数据的第二密钥。Write the encrypted data of the diagnosis result and the second index data into the blockchain; wherein, the second index data is used to query the encrypted data of the diagnosis result; and, the diagnosis completion message carries the second index data. Index data and a second key for decrypting the encrypted data of the diagnosis.
  11. 根据权利要求8所述的方法,其中,所述诊断结果为文本格式;以及,所述存储医生基于所述病历信息作出的诊断结果,包括:The method according to claim 8, wherein the diagnosis result is in a text format; and the storing of the diagnosis result made by a doctor based on the medical record information comprises:
    调用部署在所述区块链的第二智能合约将医生语音转换为所述诊断结果并存储。Invoke the second smart contract deployed in the blockchain to convert the doctor's voice into the diagnosis result and store it.
  12. 根据权利要求10所述的方法,所述方法进一步包括:The method of claim 10, further comprising:
    在接收所述就诊消息之前,存储医生的标识信息、支付途径信息和认证信息,并在校验该标识信息、该支付途径信息和该认证信息之后,将该标识信息、该支付途径信息和该认证信息的加密数据和第四索引数据写入所述区块链;其中,Before receiving the medical treatment message, store the identification information, payment method information and authentication information of the doctor, and after verifying the identification information, payment method information and authentication information, store the identification information, payment method information and the authentication information. The encrypted data of the authentication information and the fourth index data are written into the blockchain; wherein,
    医生的认证信息包括医生的执业医院信息,所述执业医院信息是基于预先写入所述区块链的已验证医院信息进行校验的。The doctor's certification information includes the doctor's practice hospital information, and the practice hospital information is verified based on the verified hospital information written in the blockchain in advance.
  13. 根据权利要求12所述的方法,所述方法进一步包括:The method of claim 12, further comprising:
    接收患者终端发送的响应消息;Receive the response message sent by the patient terminal;
    根据所述响应消息中的第五索引数据从所述区块链中查询到患者针对所述诊断结果的接受情况信息的加密数据,利用所述响应消息中的第五密钥解密该加密数据得到所述接受情况信息;其中,According to the fifth index data in the response message, the encrypted data of the patient's acceptance information about the diagnosis result is queried from the blockchain, and the encrypted data is decrypted using the fifth key in the response message to obtain the acceptance information; wherein,
    所述响应消息是患者终端在存储所述接受情况信息、并将所述接受情况信息的加密数据以及用于查询该加密数据的第五索引数据写入所述区块链之后发送的。The response message is sent by the patient terminal after storing the acceptance information, and writing the encrypted data of the acceptance information and the fifth index data for querying the encrypted data into the blockchain.
  14. 根据权利要求13所述的方法,所述方法进一步包括:The method of claim 13, further comprising:
    接收患者终端发送的支付完成消息;Receive the payment completion message sent by the patient terminal;
    从所述区块链中获取患者终端进行支付的支付结果;其中,Obtain the payment result of the patient terminal for payment from the blockchain; wherein,
    所述支付完成消息是患者终端在判断所述接受情况信息指示患者接受诊断结果时进行支付、并将所述支付结果写入所述区块链之后发送的。The payment completion message is sent by the patient terminal after judging that the acceptance information indicates that the patient accepts the diagnosis result, and the payment result is written into the blockchain.
  15. 根据权利要求13或14所述的方法,其中,A method according to claim 13 or 14, wherein,
    患者的病历信息进一步包括影像检查资料、症状信息和/或历史就诊资料;The patient's medical record information further includes imaging examination data, symptom information and/or historical visit data;
    所述标识信息包括以下至少一种:姓名、身份证号、手机号、人脸特征;The identification information includes at least one of the following: name, ID number, mobile phone number, and facial features;
    所述支付途径信息包括:银行账户信息和/或电子账户信息;The payment method information includes: bank account information and/or electronic account information;
    医生的认证信息进一步包括:医生的执业证书信息;The doctor's certification information further includes: the doctor's practice certificate information;
    如果所述接受情况信息指示患者拒绝接受诊断结果,则所述接收情况信息中进一步包括拒绝原因信息。If the acceptance condition information indicates that the patient refuses to receive the diagnosis result, the acceptance condition information further includes refusal reason information.
  16. 一种基于区块链网络的诊断装置,所述区块链网络包括作为网络节点的患者终端和医生终端;所述装置设置在患者终端,包括:A diagnostic device based on a blockchain network, the blockchain network includes a patient terminal and a doctor terminal as network nodes; the device is set on the patient terminal, including:
    就诊单元,用于存储患者的病历信息,将所述病历信息写入所述区块链网络各节点维护的区块链,并向目标医生终端发送就诊消息;a medical treatment unit, used to store the patient's medical record information, write the medical record information into the blockchain maintained by each node of the blockchain network, and send a medical treatment message to the target doctor terminal;
    第一接收单元,用于接收目标医生终端发送的诊断完成消息;其中,所述诊断完成消息是目标医生终端将医生基于所述病历信息作出的诊断结果写入所述区块链之后发送的,所述病历信息是目标医生终端在接收到所述就诊消息之后从所述区块链中获取的。a first receiving unit, configured to receive a diagnosis completion message sent by the target doctor terminal; wherein the diagnosis completion message is sent after the target doctor terminal writes the diagnosis result made by the doctor based on the medical record information into the blockchain, The medical record information is obtained from the blockchain after the target doctor terminal receives the medical treatment message.
  17. 一种基于区块链网络的诊断装置,所述区块链网络包括作为网络节点的患者终端和医生终端;所述装置设置在医生终端,包括:A diagnostic device based on a blockchain network, the blockchain network includes a patient terminal and a doctor terminal as network nodes; the device is set on the doctor terminal, including:
    第二接收单元,用于接收患者终端发送的就诊消息;a second receiving unit, configured to receive a medical treatment message sent by the patient terminal;
    诊断单元,用于从所述区块链网络各节点维护的区块链中获取患者的病历信息,存储医生基于所述病历信息作出的诊断结果,将所述 诊断结果写入所述区块链,并向患者终端发送诊断完成消息;其中,所述就诊消息是患者终端在存储所述病历信息、并将所述病历信息写入所述区块链之后发送的。The diagnosis unit is used to obtain the patient's medical record information from the blockchain maintained by each node of the blockchain network, store the diagnosis result made by the doctor based on the medical record information, and write the diagnosis result into the blockchain , and send a diagnosis completion message to the patient terminal; wherein, the medical treatment message is sent by the patient terminal after storing the medical record information and writing the medical record information into the blockchain.
  18. 一种用于诊断的区块链网络***,所述***包括作为网络节点的患者终端和医生终端;其中,A blockchain network system for diagnosis, the system includes a patient terminal and a doctor terminal as network nodes; wherein,
    患者终端存储患者的病历信息,将所述病历信息写入所述区块链网络各节点维护的区块链,并向目标医生终端发送就诊消息;The patient terminal stores the patient's medical record information, writes the medical record information into the blockchain maintained by each node of the blockchain network, and sends a medical treatment message to the target doctor's terminal;
    目标医生终端接收到患者终端发送的所述就诊消息之后,从所述区块链中获取所述病历信息,存储医生基于所述病历信息作出的诊断结果,将所述诊断结果写入所述区块链,并向该患者终端发送诊断完成消息。After receiving the medical treatment message sent by the patient terminal, the target doctor terminal obtains the medical record information from the blockchain, stores the diagnosis result made by the doctor based on the medical record information, and writes the diagnosis result into the area. block chain and send a diagnosis complete message to the patient terminal.
  19. 根据权利要求18所述的***,其中,The system of claim 18, wherein,
    患者终端在存储患者的病历信息之后,将所述病历信息的加密数据和第一索引数据写入所述区块链;其中,第一索引数据用于查询所述加密数据;以及,所述就诊消息中携带有第一索引数据和用于解密所述加密数据的第一密钥;After storing the patient's medical record information, the patient terminal writes the encrypted data of the medical record information and the first index data into the blockchain; wherein, the first index data is used to query the encrypted data; The message carries first index data and a first key for decrypting the encrypted data;
    目标医生终端在接收到所述就诊消息之后,根据所述就诊消息中的第一索引数据从所述区块链中查询到所述加密数据,利用所述就诊消息中的第一密钥解密所述加密数据得到所述病历信息。After receiving the medical visit message, the target doctor terminal queries the encrypted data from the blockchain according to the first index data in the medical visit message, and uses the first key in the medical visit message to decrypt the encrypted data. The encrypted data is used to obtain the medical record information.
  20. 根据权利要求19所述的***,其中,目标医生终端在存储所述诊断结果之后,将所述诊断结果的加密数据和第二索引数据写入所述区块链;其中,The system according to claim 19, wherein after storing the diagnosis result, the target doctor terminal writes the encrypted data of the diagnosis result and the second index data into the blockchain; wherein,
    第二索引数据用于查询所述诊断结果的加密数据;以及,所述诊断完成消息中携带有第二索引数据和用于解密所述诊断结果的加密数据的第二密钥。The second index data is used to query the encrypted data of the diagnosis result; and the diagnosis completion message carries the second index data and a second key used to decrypt the encrypted data of the diagnosis result.
  21. 根据权利要求20所述的***,其中,The system of claim 20, wherein,
    所述病历信息包括患者的影像检查资料;The medical record information includes the patient's imaging examination data;
    患者终端在存储患者的病历信息之后,调用部署在所述区块链的第一智能合约检测所述影像检查资料以得到影像检测结果,并将所述病历信息和所述影像检测结果的加密数据以及第一索引数据写入所述区块链。After storing the patient's medical record information, the patient terminal invokes the first smart contract deployed in the blockchain to detect the image inspection data to obtain the image inspection result, and converts the medical record information and the encrypted data of the image inspection result. and the first index data is written into the blockchain.
  22. 根据权利要求20所述的***,其中,所述诊断结果为文本格式;以及,目标医生终端调用部署在所述区块链的第二智能合约将医生语音转换为所述诊断结果并存储。The system according to claim 20, wherein the diagnosis result is in a text format; and the target doctor terminal invokes a second smart contract deployed on the blockchain to convert the doctor's voice into the diagnosis result and store it.
  23. 根据权利要求20所述的***,其中,The system of claim 20, wherein,
    任一患者终端在存储患者的病历信息之前,存储患者的标识信息和支付途径信息;在校验所述标识信息和所述支付途径信息之后,将所述标识信息和所述支付途径信息的加密数据和第三索引数据写入所述区块链,并将第三索引数据和用于解密该加密数据的第三密钥存储在本地;Before storing the patient's medical record information, any patient terminal stores the patient's identification information and payment route information; after verifying the identification information and the payment route information, encrypts the identification information and the payment route information. data and the third index data are written into the blockchain, and the third index data and the third key used to decrypt the encrypted data are stored locally;
    患者终端在存储患者的病历信息之后,根据本地存储的第三索引数据从所述区块链中查询到该加密数据,利用本地存储的第三密钥解密该加密数据得到所述标识信息,并对所述标识信息与所述病历信息进行校验。After storing the patient's medical record information, the patient terminal queries the encrypted data from the blockchain according to the locally stored third index data, decrypts the encrypted data with the locally stored third key to obtain the identification information, and obtains the identification information. The identification information and the medical record information are checked.
  24. 根据权利要求23所述的***,其中,The system of claim 23, wherein,
    目标医生终端在接收所述就诊消息之前,存储医生的标识信息、支付途径信息和认证信息,并在校验该标识信息、该支付途径信息和该认证信息之后,将该标识信息、该支付途径信息和该认证信息的加密数据和第四索引数据写入所述区块链;其中,Before receiving the medical treatment message, the target doctor terminal stores the doctor's identification information, payment method information and authentication information, and after verifying the identification information, the payment method information and the authentication information, the identification information, the payment method information and the encrypted data and fourth index data of the authentication information are written into the blockchain; wherein,
    医生的认证信息包括医生的执业医院信息;The doctor's certification information includes the doctor's practice hospital information;
    目标医生终端根据预先写入所述区块链的已验证医院信息对医生的执业医院信息进行校验。The target doctor terminal verifies the doctor's practice hospital information according to the verified hospital information written in the blockchain in advance.
  25. 根据权利要求23所述的***,其中,The system of claim 23, wherein,
    患者终端在接收到目标医生终端发送的诊断完成消息之后,根据所述诊断完成消息中的第二索引数据从所述区块链中查询到所述诊断结果的加密数据,利用所述诊断完成消息中的第二密钥解密该加密数据得到所述诊断结果;并存储患者针对所述诊断结果的接受情况信息,将所述接受情况信息的加密数据以及第五索引数据写入所述区块链,向目标医生终端发送响应消息;其中,第五索引数据用于查询所述接受情况信息的加密数据,所述响应消息中携带有第五索引数据和用于解密所述接受情况信息的加密数据的第五密钥;After receiving the diagnosis completion message sent by the target doctor terminal, the patient terminal queries the encrypted data of the diagnosis result from the blockchain according to the second index data in the diagnosis completion message, and uses the diagnosis completion message. The second key in decrypts the encrypted data to obtain the diagnosis result; and stores the patient's acceptance information for the diagnosis result, and writes the encrypted data of the acceptance information and the fifth index data into the blockchain , send a response message to the target doctor terminal; wherein, the fifth index data is used to query the encrypted data of the acceptance information, and the response message carries the fifth index data and the encrypted data used to decrypt the acceptance information the fifth key of ;
    响应于所述接受情况信息指示患者接受诊断结果,患者终端在存储所述接受情况信息之后基于患者的支付途径信息进行支付,将支付结果写入所述区块链,并向目标医生终端发送支付完成消息;In response to the acceptance information indicating that the patient accepts the diagnosis result, the patient terminal makes payment based on the patient's payment route information after storing the acceptance information, writes the payment result to the blockchain, and sends the payment to the target doctor terminal completion message;
    目标医生终端在接收到所述响应消息之后,根据第五索引数据从所述区块链中查询到所述接受情况信息的加密数据,利用第五密钥解密该加密数据得到所述接受情况信息;在接收到所述支付完成消息之后,从所述区块链中获取所述支付结果。After receiving the response message, the target doctor terminal queries the encrypted data of the acceptance information from the blockchain according to the fifth index data, and decrypts the encrypted data with the fifth key to obtain the acceptance information. ; After receiving the payment completion message, obtain the payment result from the blockchain.
  26. 根据权利要求25所述的***,其中,患者终端存储患者对医生的评价信息,依据所述评价信息以及预先部署在所述区块链的第三智能合约调整该医生的分数和/或级别,并将调整后的分数和/或级别写入所述区块链。The system according to claim 25, wherein the patient terminal stores evaluation information of the doctor by the patient, and adjusts the doctor's score and/or level according to the evaluation information and a third smart contract pre-deployed in the blockchain, and write the adjusted score and/or level to the blockchain.
  27. 根据权利要求25或26所述的***,其中,The system of claim 25 or 26, wherein,
    患者的病历信息进一步包括症状信息和/或历史就诊资料;The patient's medical record information further includes symptom information and/or historical medical visit information;
    所述标识信息包括以下至少一种:姓名、身份证号、手机号、人脸特征;The identification information includes at least one of the following: name, ID number, mobile phone number, and facial features;
    所述支付途径信息包括:银行账户信息和/或电子账户信息;The payment method information includes: bank account information and/or electronic account information;
    医生的认证信息进一步包括:医生的执业证书信息;The doctor's certification information further includes: the doctor's practice certificate information;
    如果所述接受情况信息指示患者拒绝接受诊断结果,则所述接收情况信息中进一步包括拒绝原因信息。If the acceptance condition information indicates that the patient refuses to receive the diagnosis result, the acceptance condition information further includes refusal reason information.
  28. 一种计算机可读存储介质,其上存储有计算机程序,所述程序被处理器执行时实现如权利要求1-15中任一所述的方法。A computer-readable storage medium having a computer program stored thereon, the program implementing the method according to any one of claims 1-15 when executed by a processor.
PCT/CN2021/090899 2020-09-28 2021-04-29 Blockchain network-based diagnosis method and apparatus, and blockchain network system WO2022062399A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202011043354.6 2020-09-28
CN202011043354.6A CN112259178A (en) 2020-09-28 2020-09-28 Block chain network-based diagnosis method and device and block chain network system

Publications (1)

Publication Number Publication Date
WO2022062399A1 true WO2022062399A1 (en) 2022-03-31

Family

ID=74234562

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/090899 WO2022062399A1 (en) 2020-09-28 2021-04-29 Blockchain network-based diagnosis method and apparatus, and blockchain network system

Country Status (2)

Country Link
CN (1) CN112259178A (en)
WO (1) WO2022062399A1 (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115588490A (en) * 2022-09-06 2023-01-10 郑州蓝博电子技术有限公司 Hospital information management method and system based on block chain
CN115662657A (en) * 2022-10-31 2023-01-31 海南星捷安科技集团股份有限公司 Online inquiry system based on internet hospital
CN115985436A (en) * 2022-12-12 2023-04-18 武汉东方赛思软件股份有限公司 Medical information sharing method based on intelligent medical treatment
CN116646065A (en) * 2023-05-25 2023-08-25 浙江蕙康科技有限公司 Internet hospital data security management method and device
CN118136194A (en) * 2024-05-07 2024-06-04 江苏曼荼罗软件股份有限公司 Patient medical record sealing method and device

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112259178A (en) * 2020-09-28 2021-01-22 北京海益同展信息科技有限公司 Block chain network-based diagnosis method and device and block chain network system
CN112927775B (en) * 2021-03-11 2024-01-16 全链通有限公司 Diagnosis and treatment information processing method and device based on block chain

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109637606A (en) * 2018-12-12 2019-04-16 浪潮电子信息产业股份有限公司 A kind of medical record data management method, system and associated component
CN109741803A (en) * 2019-01-14 2019-05-10 南京大学 Medical data security cooperation system based on block chain
CN110008746A (en) * 2019-04-01 2019-07-12 大连理工大学 Medical records storage, shared and safety Claims Resolution model and method based on block chain
CN110265101A (en) * 2019-06-24 2019-09-20 京东方科技集团股份有限公司 Sharing method, doctor terminal, patient terminal, system, equipment and storage medium
CN111613285A (en) * 2020-05-22 2020-09-01 陕西科技大学 Hospital patient information management system based on block chain technology
CN112259178A (en) * 2020-09-28 2021-01-22 北京海益同展信息科技有限公司 Block chain network-based diagnosis method and device and block chain network system

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101594511A (en) * 2009-06-23 2009-12-02 ***集团宽带业务应用国家工程实验室有限公司 The enhanced remote consultation method and system
CN101763468A (en) * 2010-01-05 2010-06-30 浙江大学 Method for processing clinical auxiliary examination data
CN103402071A (en) * 2013-07-12 2013-11-20 安徽广行通信科技股份有限公司 Television-based doctor and patient information interaction method, system and equipment
CN107247882A (en) * 2017-06-22 2017-10-13 安徽山鼎信息科技有限公司 Distance medical diagnosis service platform based on internet
CN108597620A (en) * 2018-05-02 2018-09-28 聂伟伟 Medical information processing method, system, terminal, server and storage medium
CN111460040A (en) * 2020-04-23 2020-07-28 杜翠 Data management system based on medical block chain
CN111613290B (en) * 2020-05-26 2024-01-23 牛津(海南)区块链研究院有限公司 Medical information management system based on block chain

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109637606A (en) * 2018-12-12 2019-04-16 浪潮电子信息产业股份有限公司 A kind of medical record data management method, system and associated component
CN109741803A (en) * 2019-01-14 2019-05-10 南京大学 Medical data security cooperation system based on block chain
CN110008746A (en) * 2019-04-01 2019-07-12 大连理工大学 Medical records storage, shared and safety Claims Resolution model and method based on block chain
CN110265101A (en) * 2019-06-24 2019-09-20 京东方科技集团股份有限公司 Sharing method, doctor terminal, patient terminal, system, equipment and storage medium
CN111613285A (en) * 2020-05-22 2020-09-01 陕西科技大学 Hospital patient information management system based on block chain technology
CN112259178A (en) * 2020-09-28 2021-01-22 北京海益同展信息科技有限公司 Block chain network-based diagnosis method and device and block chain network system

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115588490A (en) * 2022-09-06 2023-01-10 郑州蓝博电子技术有限公司 Hospital information management method and system based on block chain
CN115588490B (en) * 2022-09-06 2023-08-22 郑州蓝博电子技术有限公司 Hospital information management method and system based on block chain
CN115662657A (en) * 2022-10-31 2023-01-31 海南星捷安科技集团股份有限公司 Online inquiry system based on internet hospital
CN115662657B (en) * 2022-10-31 2024-02-02 海南星捷安科技集团股份有限公司 Online inquiry system based on internet hospital
CN115985436A (en) * 2022-12-12 2023-04-18 武汉东方赛思软件股份有限公司 Medical information sharing method based on intelligent medical treatment
CN115985436B (en) * 2022-12-12 2023-08-04 武汉东方赛思软件股份有限公司 Medical information sharing method based on intelligent medical treatment
CN116646065A (en) * 2023-05-25 2023-08-25 浙江蕙康科技有限公司 Internet hospital data security management method and device
CN116646065B (en) * 2023-05-25 2024-03-19 浙江蕙康科技有限公司 Internet hospital data security management method and device
CN118136194A (en) * 2024-05-07 2024-06-04 江苏曼荼罗软件股份有限公司 Patient medical record sealing method and device

Also Published As

Publication number Publication date
CN112259178A (en) 2021-01-22

Similar Documents

Publication Publication Date Title
WO2022062399A1 (en) Blockchain network-based diagnosis method and apparatus, and blockchain network system
Haleem et al. Blockchain technology applications in healthcare: An overview
US10904239B2 (en) Secure permissioning of access to user accounts, including secure deauthorization of access to user accounts
US10484178B2 (en) Systems and methods for providing a universal decentralized solution for verification of users with cross-verification features
US20150149362A1 (en) Encryption and Distribution of Health-related Data
US20180343120A1 (en) Systems and methods for providing a universal decentralized solution for verification of users with cross-verification features
WO2018176484A1 (en) Method and apparatus for processing medical image transmission data, and electronic device
US10235672B2 (en) Securely receiving from a remote user sensitive information and authorization to perform a transaction using the sensitive information
US20190188704A1 (en) Method and system for trust-based payments via blockchain
US20150161413A1 (en) Encryption and distribution of health-related data
CN106682530A (en) Method and device for medical information sharing privacy protection based on blockchain technology
CN111145850A (en) Medical data query method and device based on block chain
US11810676B2 (en) Verified permissioned blockchains
US20230362003A1 (en) Digital notarization using a biometric identification service
US10102402B2 (en) Mobile device-based keypad for enhanced security
US10482216B2 (en) Protected health information image capture, processing and submission from a client device
KR102171746B1 (en) Bio Electronic Signature Using Block-chain Method and Device Thereof
US11568397B2 (en) Providing a financial/clinical data interchange
US20230368136A1 (en) Distributed ledger system for automated claim adjudication
CN110213251B (en) Method for anonymously reporting reward distribution, method for obtaining reward, equipment and storage medium
CN113052599B (en) Method, device, equipment and system for generating, verifying and storing transaction certificates
WO2019209291A1 (en) Systems and methods for providing a universal decentralized solution for verification of users with cross-verification features
KR102171749B1 (en) Plural Signer Bio Electronic Signature Using Block-chain Method and Device Thereof
Kamal et al. Care4U: Integrated healthcare systems based on blockchain
US11995723B1 (en) Systems and methods for administrating a certificate of deposit

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21870787

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 21870787

Country of ref document: EP

Kind code of ref document: A1