CN112002436A - Block chain-based medical question answering method, device and medium - Google Patents

Block chain-based medical question answering method, device and medium Download PDF

Info

Publication number
CN112002436A
CN112002436A CN202010740115.XA CN202010740115A CN112002436A CN 112002436 A CN112002436 A CN 112002436A CN 202010740115 A CN202010740115 A CN 202010740115A CN 112002436 A CN112002436 A CN 112002436A
Authority
CN
China
Prior art keywords
medical
block chain
face
encrypted token
doctor
Prior art date
Legal status (The legal status 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 status listed.)
Granted
Application number
CN202010740115.XA
Other languages
Chinese (zh)
Other versions
CN112002436B (en
Inventor
王成祥
蔡俊财
邱俊杰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhuhai Health Cloud Technology Co ltd
Original Assignee
Zhuhai Health Cloud Technology Co ltd
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 Zhuhai Health Cloud Technology Co ltd filed Critical Zhuhai Health Cloud Technology Co ltd
Priority to CN202010740115.XA priority Critical patent/CN112002436B/en
Publication of CN112002436A publication Critical patent/CN112002436A/en
Application granted granted Critical
Publication of CN112002436B publication Critical patent/CN112002436B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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
    • G16H80/00ICT specially adapted for facilitating communication between medical practitioners or patients, e.g. for collaborative diagnosis, therapy or health monitoring
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Theoretical Computer Science (AREA)
  • Medical Informatics (AREA)
  • Computer Security & Cryptography (AREA)
  • Public Health (AREA)
  • Primary Health Care (AREA)
  • Epidemiology (AREA)
  • Pathology (AREA)
  • Bioethics (AREA)
  • Computer Hardware Design (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Biomedical Technology (AREA)
  • Storage Device Security (AREA)

Abstract

The invention relates to a medical question-answering method, a medical question-answering device and a medical question-answering medium based on a block chain, which comprise the following steps: correlating the digital certificate with a corresponding blockchain network identity and an entity identity; calling an intelligent contract of the block chain to record facial features; comparing the face recognition result with the facial features; generating an encrypted token after the face recognition is successful, managing the encrypted token through a block chain, and storing the encrypted token through a doctor client; the doctor client side responds to the request message for replying of the patient user; the intelligent contract records the answering process; and the medical service platform verifies the answer and verifies the validity of the encrypted token, calls the trusted timestamp service to obtain a trusted timestamp, and then records the trusted timestamp by using a block chain intelligent contract. The invention has the beneficial effects that: the medical service generation time and content are proved to be not tampered and forged, so that the result of the medical service process has legal effectiveness.

Description

Block chain-based medical question answering method, device and medium
Technical Field
The invention relates to the field of computer block chains, in particular to a medical question answering method, a medical question answering device and a medical question answering medium based on a block chain.
Background
At present, a plurality of medical service platforms for solving the health problems of patient users on line appear, and when the physical conditions of the patient users have health problems, the medical service platforms on the internet can seek help for professional doctors. The online medical practitioners provide health problem answering services to patients through medical service platforms on the internet, and the following procedures are generally required:
1. the online medical practitioners register on the service platform, and through providing identity information such as medical practitioner materials for the medical service platform, the platform obtains health problem answering qualification provided on the service platform after passing the audit;
2, a doctor logs in a medical service platform according to an account password during registration, and meanwhile, the service platform keeps the login state of the doctor for a period of time, so that frequent login operation is avoided, and user experience is improved;
3, a doctor logs in a medical service platform to carry out professional answer on the problem of the patient, and then submits data to the back end of the service platform;
4. the medical service platform checks the service between the doctors and the patients;
5. after the examination is passed, the patient user receives the professional answer of the doctor, and the service is completed.
After the single health problem answering service is completed, doctors can provide the health problem answering service for more patient users while the medical service platform keeps a login state.
The above online medical question-answering service flow is difficult for each participant to prove the authenticity of the doctor service process in a credible way, firstly, for the patient, the medical service has strong professional, the real and credible professional doctor needs to answer, and the patient user asks about the authenticity of the doctor service in the process of obtaining the health question answering service.
For example: the doctor certificate can be improperly stored, so that the medical practice materials can be falsely used by other people; after the platform audits the qualification of the doctor, the doctor can be handed to other people (such as doctor assistants) to replace the doctor to provide medical consultation services for the patient; after the doctor logs in the terminal equipment, the doctor can still give other people to replace the doctor to provide medical service for the patient within the time that the medical service platform keeps the login state; the doctor may deny the answer to the provided health service, such as losing the mobile phone terminal, losing the certificate, and the like, so as to generate a trust question between doctors and patients. For doctors, the executive qualification materials of doctors also have the need of privacy protection, and sensitive identity information in the executive qualification materials cannot be displayed to patients in a public way. For the medical service platform, the process of the desired service can be recorded in a storage mode with legal effectiveness, and the authenticity, the history and the integrity of the service can be proved.
Disclosure of Invention
The invention aims to solve at least one of the technical problems in the prior art, and provides a block chain-based medical question answering device and a block chain-based medical question answering method, which can guarantee the authenticity of a medical service process, improve the timeliness of the identity verification of a doctor entity in the service process through face identification, trace and verify the medical service process on the block chain, prove that the generation time and the content of the medical service process are not falsified and forged, and enable the result of the medical service process to have legal efficacy.
The technical scheme of the invention comprises a medical question-answering method based on a block chain, which is characterized by comprising the following steps: s101, acquiring a digital certificate of an online medical practitioner, and associating the digital certificate with a corresponding block chain network identity and an entity identity; s102, extracting facial features of the face in the subordinate medical qualification certificate through the subordinate medical qualification certificate submitted by a face recognition doctor, and calling an intelligent contract of a block chain by a medical service platform to record the facial features; s103, recognizing the face of the online medical practitioner through video acquisition equipment, and comparing a face recognition result with the facial features; s104, generating the encrypted token after the face recognition is successful, managing the encrypted token through a block chain, and storing the encrypted token through a doctor client; s105, receiving a question of a user client through a medical service platform, and responding a request message for answering by a doctor client to a patient user; s106, sending the answer content of the doctor client and the encrypted token to a server of a medical platform, and simultaneously calling an intelligent contract of a block chain by the doctor client to record an answer process; and S107, the medical service platform verifies the answer and verifies the validity of the encrypted token, calls the trusted timestamp service to obtain a trusted timestamp, and then records the trusted timestamp by using a block chain intelligent contract.
According to the block chain-based medical question answering method, S101 includes: the digital certificate is used for identifying the entity identity of the online medical practitioner; and the digital certificate and the entity identity are bound and encrypted by adopting an asymmetric encryption technology, wherein a private key of an online medical practitioner is stored through the client, and a public key is disclosed in the block chain.
According to the block chain-based medical question answering method, S102 includes: and when the extracted facial features do not meet the requirements or have a large difference with the real human face of the online medical practitioner, the facial images are collected again through the doctor client, and the collected facial images are used as comparison photos for subsequent human face recognition.
According to the block chain-based medical question answering method, S102 further includes: identifying a face picture acquired by calling video acquisition equipment by the doctor client through the Dlib, specifically, establishing connection with a server of a medical platform, tracking a detected face, extracting a 128-dimensional face feature vector in the face picture, and comparing the face feature vector with the 128-dimensional face feature vector in the face picture to obtain an Euclidean distance of a vector space of the face; and if the Euclidean distance of the vector spaces of the two faces is smaller than a preset threshold value, determining that the online medical practitioner operates by himself.
According to the block chain-based medical question answering method, S104 includes: according to the facial recognition correlation attribute and the public key, generating after digital signature is carried out through a private key of the medical service platform; the digital signature is carried out through a private key of the medical service platform, and the digital signature comprises an RSA digital signature algorithm, a DSA digital signature algorithm and an ECDSA digital signature algorithm.
According to the block chain-based medical question answering method, S105 includes: and storing the user client questioning information by using a centralized database, and receiving a request message for responding to a reply from a patient user by a doctor client through inquiring a database medium.
According to the block chain-based medical question answering method, S106 includes: after the answer is finished, the answer content and the encrypted token are sent to a medical platform server, meanwhile, a doctor client calls an intelligent contract of the block chain to record the answer process, and the question related information and the answer content directly use a block chain identity private key of the online medical practitioner to carry out digital signature.
According to the block chain-based medical question answering method, S107 includes: and the medical service platform verifies the answer and verifies the validity of the encrypted token, then calls the trusted timestamp service to obtain a trusted timestamp, and then records the trusted timestamp by using a block chain intelligent contract.
The technical scheme of the invention also comprises a medical question-answering device based on the block chain, which comprises: a blockchain network identity module, which can be configured to associate digital certificates, blockchain network identities, and entity identities for the blockchain network participants; the face recognition module can be configured for inputting facial features and comparing the similarity of the facial features; the encrypted token module can be configured to generate an encrypted token of a face recognition state, and reliably transmit and verify the encrypted token at a server side and a client side; the intelligent contract module can be configured to record the process of answering questions by the online medical practitioners and manage the facial picture characteristics in the certificates; a digital signature module configurable to digitally sign and verify data generated by the reply recording process; the trusted timestamp module may be configured to certify the exact time, and the presence and integrity of the result of the medical service procedure as it occurs through the trusted timestamp service.
The present invention also includes a computer-readable storage medium, in which a computer program is stored, wherein the computer program, when executed by a processor, implements any of the method steps.
The invention has the beneficial effects that: the identity of the online medical practitioner entity is further strengthened by extracting the facial information of the doctor from the medical qualification certificate and recording the facial information on the intelligent contract of the block chain; the authenticity of the doctor is verified by comparing the facial features of the online medical practitioner in the question and answer process with the facial features of the certificate, the face recognition result is generated into an encrypted token, reliable transmission and verification are carried out at the client and the server, and the timeliness of the entity identity verification of the doctor in the service process is improved; the answering process is recorded on the blockchain through an intelligent contract, the blockchain is an decentralized peer-to-peer network based on the p2p technology, the records on the blockchain are irreversible, the transaction on the blockchain needs a transaction initiator to sign and authorize the transaction, and the transaction cannot be tampered and cannot be repudiated through verification of a p2p node on the blockchain; after the answer is finished, the medical service platform calls the credible timestamp service to prove that the result generation time and the content of the medical service process are not tampered and forged, so that the result of the service process has legal effectiveness.
Drawings
The invention is further described below with reference to the accompanying drawings and examples;
FIG. 1 is a general flow diagram of an embodiment of the present invention;
FIG. 2 is a schematic diagram of an intelligent contract apparatus according to an embodiment of the invention;
FIG. 3 is a schematic diagram of an entity identity device according to an embodiment of the present invention;
FIG. 4 is a flow diagram of an encrypted token apparatus according to an embodiment of the present invention;
FIG. 5 is a schematic diagram of a data processor module according to an embodiment of the present invention;
FIG. 6 is a flow diagram of a digital signature according to an embodiment of the present invention;
FIG. 7 is a trusted timestamp flow of an embodiment of the present invention;
fig. 8 is a block chain diagram.
Detailed Description
Reference will now be made in detail to the present preferred embodiments of the present invention, examples of which are illustrated in the accompanying drawings, wherein like reference numerals refer to like elements throughout.
In the description of the present invention, the meaning of a plurality of means is one or more, the meaning of a plurality of means is two or more, and larger, smaller, larger, etc. are understood as excluding the number, and larger, smaller, inner, etc. are understood as including the number.
In the description of the present invention, the consecutive reference numbers of the method steps are for convenience of examination and understanding, and the implementation order between the steps is adjusted without affecting the technical effect achieved by the technical solution of the present invention by combining the whole technical solution of the present invention and the logical relationship between the steps.
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments.
In order to make the embodiment of the present invention easier to understand, a block chain is first briefly introduced, and the block chain is a chain data structure formed by combining data block chains in a sequential connection manner according to a time sequence, and a distributed ledger with data being not falsifiable and not being counterfeitable is stored in a cryptographic manner. Multiple independent distributed nodes maintain the same record. The block chain technology realizes decentralization and becomes a foundation stone of credible digital economy.
Taking the block chain structure diagram shown in fig. 8 as an example, whenever new data needs to be written into the block chain, the data is gathered into one block and added at the end of the existing block chain, and the block added by each node is ensured to be identical through a consensus algorithm. A plurality of transaction records are recorded in each block, and the transaction records simultaneously comprise the hash (hash) value of the previous block and the hash value of the current block, and all blocks store the hash value of the previous block in the way and are connected in sequence to form a block chain. The hash value of the previous block is stored in the block head of the next block in the block chain, and when the transaction data in the previous block changes, the hash value of the current block changes, so that the block chain with the history record being not tampered and irreversible is formed. Code running on the blockchain, which may be referred to as an intelligent contract, executes on the blockchain nodes, implements semantics of real-world contracts, which provide processing logic based on blockchain distributed ledgers.
With reference to fig. 1, a flow of a method for implementing a trusted medical question answering according to an embodiment of the present invention is described. As shown in fig. 1, the method may include:
s101, the medical service platform and the online medical practitioners acquire the digital certificates and associate the digital certificates with the block chain network identities and the entity identities.
The medical service platform and the online medical practitioners providing medical services on the platform need to register and register with a CA digital certificate authority to obtain a digital certificate, and the digital certificate is used for identifying entity identities. The digital certificate and the entity identity are bound and a pair of secret keys is provided by adopting an asymmetric encryption technology: a public key and a private key. The private key of the online medical practitioner is kept by the individual doctor, and the public key is published. The digital certificate authority may be an authoritative third party certificate authority. And adding the acquired digital certificate to the blockchain network to acquire the identity of the blockchain network.
In some possible embodiments, the obtained digital certificate is added to the blockchain network to obtain the identity of the blockchain network, for example, in a hyperhedger Fabric alliance network, the hyperhedger Fabric designs a Channel (Channel) as an independent communication Channel between partial network members, the Fabric may simultaneously have a plurality of channels isolated from each other, each Channel includes a private blockchain and a private ledger, and a single Channel may be regarded as a complete blockchain. The medical service platform and the online medical practitioners providing medical services on the platform use the common root certificate and join the same channel. The medical service platform acquires an organization digital certificate, and the organization digital certificate is used as the administrator identity of an organization to be added into the block chain network; the online medical practitioner obtains the personal digital certificate, when the online medical practitioner applies for online medical qualification to the medical service platform, the online medical practitioner needs to submit own subordinate qualification certificates such as a doctor qualification certificate, a doctor certification certificate, an identity card and the like to the medical service platform, and after the medical service platform verifies the subordinate qualification certificates, the online medical practitioner joins the blockchain network with the identity of the member to which the organization belongs.
Of course, the present invention is not limited to the above implementation, and the above implementation is only illustrative.
S102, identifying the photos in the subordinate medical qualification certificate of the online executive doctor through the human face, extracting facial features, and calling an intelligent contract of a block chain for recording.
When a medical practitioner applies for online medical qualification to a medical service platform, the medical practitioner needs to submit a subordinate medical qualification certificate such as a medical practitioner qualification certificate, a medical practitioner certification certificate, an identity card and the like to the medical service platform, and after the medical service platform verifies the subordinate medical qualification certificate, the medical service platform can use a photo in the subordinate medical qualification certificate as a comparison photo in face recognition. Optionally, when the difference between the photo in the qualification certificate and the real face is large, the face picture can be collected again to be used as a comparison photo in face recognition.
In some possible embodiments, the face recognition is performed on the certificate of the online medical practitioner and the facial features are extracted, and specifically, for example, Dlib is a C + + open source kit including a machine learning algorithm. The face detector in the dlib toolkit can be used for detecting and intercepting the face picture, and the extraction of the face features can be realized by using a depth residual error network (ResNet) face recognition model which is trained in the dlib to extract 128-dimensional face feature vectors in the face picture in the certificate.
And recording the 128-dimensional facial feature vector in the facial picture in the certificate on the blockchain by using the service platform blockchain network identity to call the intelligent contract on the blockchain.
And after the original medical qualification certificate picture is subjected to Hash operation, the intelligent contract on the block chain is called by using the service platform block chain network identity to be recorded on the block chain.
S103, the online medical practitioner identifies the face of the person before answering the question of the patient, compares the face with the face features in the certificate of the online medical practitioner and judges whether the practitioner operates himself.
For example, before providing service, a network medical practitioner opens a camera with a mobile phone APP terminal, establishes a connection with a server, tracks and detects a face and extracts a 128-dimensional face feature vector in a face picture, compares the face feature vector with the 128-dimensional face feature vector in the face picture in a certificate, and determines that the medical practitioner operates himself if the euclidean distance of the vector spaces of two faces is smaller than a preset euclidean distance threshold of the vector space, where the smaller the euclidean distance of the vector space, the closer the two faces are, and the preset euclidean distance threshold of the vector space may be, for example, 0.3, 0.38, 0.4, 0.45, 0.52, and the like.
For a specific implementation manner of detecting a face and extracting a 128-dimensional face feature vector in face recognition in this embodiment, reference may be made to the content of example shown in S102, which is not described herein again.
And S104, after the face recognition is successful, generating an encrypted token, managing the encrypted token by using a block chain, and storing the encrypted token by the doctor client.
In one possible implementation, the face recognition is successful before generating the encrypted token. For example, the encrypted token generated after the face recognition is successful may be generated by performing a digital signature using a private key of the medical service platform according to the face recognition correlation attribute and the public key of the medical practitioner.
The private key of the medical service platform is used for carrying out digital signature, such as RSA digital signature algorithm, DSA digital signature algorithm and ECDSA digital signature algorithm.
Among these, facial recognition associates attributes such as: the method comprises the steps of acquiring a video file in a face recognition process, extracting a face picture from the video, extracting a 128-dimensional face feature vector from the corresponding face picture, presetting Euclidean distance threshold values, and comparing the Euclidean distance of a vector space of a face between the face feature vector of the face picture in the video and the 128-dimensional face feature vector in a certificate.
The medical service platform calls an intelligent contract method by using the corresponding blockchain network identity to record the encrypted token on the blockchain, and then sends the encrypted token to the medical practitioner client for storage. The practitioner client stores, such as cookies, localstorage, sessionStorage. The encrypted token is issued by the medical service platform block chain identity and cannot be forged; when the online medical practitioner sends a request to the server, the validity of the medical service process can be verified by transmitting the encrypted token.
And S105, the patient user asks questions on the medical service platform, and the online medical practitioner responds to the request message for answering the questions from the patient user.
In particular implementations, reference may be made to general implementations of data storage and querying. For example, a centralized database may be used to store the information associated with the questions in a database medium, and the online medical practitioner may receive a request message in response to a reply from the patient user by querying the database medium.
Wherein the question related information may include: the medical service platform account number of the patient user, the department of the question, the age, the sex, the time of the question, the title of the question, the content of the question, the symptom picture and the like.
In some possible embodiments, the database medium, e.g., mysql, oracle, sqlserver, sqlite
And S106, after the online medical practitioner answers, sending the answering content and the encrypted token to the medical platform server, and simultaneously, calling an intelligent contract of the block chain by the medical practitioner client to record the answering process.
In the specific implementation, after a patient asks a question on a medical service platform, an online medical practitioner on the medical service platform can answer the question of the patient, submit the content of the answer corresponding to the question asked by the patient and an encryption token to a service platform background, and record the answering process by using a method of calling an intelligent contract of a block chain by using a block chain network identity of the online medical practitioner.
In the answering process, for example, the question related information and the answering content are directly digitally signed by using the block chain identity private key of the online medical practitioner.
And S107, the medical service platform verifies the answer and verifies the validity of the encrypted token, then calls the trusted timestamp service to obtain a trusted timestamp, and then records the trusted timestamp by using a block chain intelligent contract.
For example: when the service platform receives the answers of the on-line medical practitioners to the questions of the patients, the staff of the medical service platform conducts content verification on the questions of the patients and the answers of the patients, after the verification is passed, the medical service platform server program conducts verification on the transmitted encrypted tokens, then the trusted timestamp service of a third party is called to obtain the trusted timestamp, and finally the block chain identity of the medical service platform is used for recording the final results of the medical questions and answers.
The final result of the medical question-answering, for example, the question-related information and the answer-related information, the auditing state is directly signed by using the block chain identity private key of the medical service platform.
Wherein the answer-related information may include: the medical service platform account number of the practice, the answer content of the online medical practitioner, the public key of the online medical practitioner, the answer time, the encrypted token transmitted in the answer process and the like.
Wherein the audit state may include: and the platform audits the account number of the worker, the audit passing state, the audit time and the like.
For the question-related information, reference may be made to the content of the example shown in S104, which is not described herein again.
Having described the method of the exemplary embodiment of the present invention, next, a module of a device for implementing a trusted medical question-answering is described with reference to the accompanying drawings in the embodiments of the present invention, and it is apparent that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments.
For example, referring to fig. 2, a modular intent of an intelligent contract apparatus, the apparatus may include: the blockchain entity identity unit can be configured to identify an entity identity of the medical service platform. The entity identity terminal can be configured to store block chain entity identities and represent the block chain entity identities to interact with a block chain network. And the entity identity terminal calls an intelligent contract in the block chain network through the SDK to operate the ledger data and acquires the ledger data through the SDK.
As shown in fig. 3, the schematic diagram of the face recognition apparatus may include, as shown in fig. 3: and the image acquisition unit can be configured to open the upper camera and establish connection with the server. And the monitoring and tracking face unit can be configured to detect and track the face area of the human face in the video. The living body authentication unit may be configured to verify whether the user operates for the real living body himself or herself in the process of face recognition. For example, a method of matching command actions, such as left-turning, right-turning, mouth opening, blinking and the like of a human face, may be adopted, and a command matching error is considered as a forgery or fraud. The face feature extraction unit may be configured to extract a 128-dimensional face feature vector that detects a tracked face. And the human face input unit can be configured to acquire 128-dimensional facial feature vectors of facial pictures used for a reference group in human face recognition. And the block chain can be configured to store and acquire the facial picture information of the reference group through an intelligent contract, preferably, the facial picture information of the reference group can be encrypted by using a public key of the medical service platform, and the facial picture information of the reference group is acquired after being decrypted by a private key of the medical service platform. The reference group of face picture information may have one or more groups, and each group may include: the facial picture uses the character string encoded by base64, the 128-dimensional facial feature information of the facial picture, and the public key of the online medical practitioner entity identity. And the recognition unit is used for comparing the similarity of the facial features extracted in the facial recognition process with the facial features of the reference group and judging whether the doctor operates himself or herself according to the result of the living body detection.
Referring to fig. 4, a schematic diagram of a blockchain network physical identity device is shown, the device including: a certificate issuing authority (CA), a trusted third party organization or company, issues digital certificates used to create digital signatures and public-private key pairs. The role of the certificate issuing authority (CA) is to ensure that the entity that grants a unique certificate is in fact in line with what it claims to be. The medical service platform entity and the online medical practitioner entity are actual entities in the real world. The digital certificate is a digital certificate used for marking identity information of communication parties. And the blockchain can be configured to add the digital certificate to the blockchain, so that the actual entity in the real world is bound with the network identity of the blockchain.
Referring to fig. 5, which is a schematic flow chart of an encrypted token device, the device may include: and the face recognition module can be configured to recognize the face, and compare the face information monitored in real time with the face information in the subordinate medical qualification certificate of the doctor so as to judge whether the doctor is the doctor. The cryptographic token may be configured to verify the authenticity of the signature of the trusted party, thereby verifying the validity of each step of the medical question-answering process. The encrypted token is issued by the medical service platform identity and is endowed with a short validity period. The user terminal can be configured to store the encrypted token of the online medical practitioner, the encrypted token needs to be submitted to the medical service platform server in the medical question and answer process, and when the encrypted token is invalid, the face recognition needs to be carried out again. The medical service platform may be configured to verify validity of the encryption token through a public key of the medical service platform, query an issuance record of the encryption token through the block chain network SDK, and determine whether the issuance record is expired, where the validity period of the encryption token is as short as possible, for example, 15 minutes or 20 minutes. The blockchain network may be configured to record issuance of the cryptographic token by the smart contract.
Figure 6 schematically illustrates a digital signature flow diagram implemented in accordance with the present invention. The device is used for carrying out digital signature and verifying the signature. And the original text unit can be configured to acquire original text information needing digital signature. And the summary can be configured to perform hash operation on the original text unit, wherein the hash operation is, for example, md5, sha. . And the secret text is configured with signature information used for encrypting the abstract by using a private key of the blockchain network identity. The signed secret information can be decrypted by using a public key, and compared with the abstract after decryption, if the secret information is the same as the public key, the identity of the message issuer and the integrity of the message can be confirmed.
Referring to fig. 7, fig. 7 is a flowchart illustrating a trusted timestamp. The device includes: a text unit 701, a summary unit 702, a national time service center 703 and a third-party trusted time stamp issuing organization 704. The original text unit 701 may be configured to obtain original text information that needs time service. For example, the textual information may include: the doctor scans the face information and asks-answer information. Wherein the facial information is obtained by the intelligent contract api. The digest unit 702 may be configured to hash the original text with the machine health service platform private key to generate a digest. The national time service center 703 is the only authoritative service institution in our country, and one country only has one time source and one trusted timestamp service center to ensure the authority of the trusted timestamp service.
The third-party trusted time stamp issuing authority 704 and the third-party trusted time stamp issuing authority are subjected to time service and time service guarantee by the national time service center 703, and digital signatures are carried out on the summary unit 702 and the authoritative time records of the national time service center 703 to generate time stamps.
The embodiments of the present invention have been described in detail with reference to the accompanying drawings, but the present invention is not limited to the above embodiments, and various changes can be made within the knowledge of those skilled in the art without departing from the gist of the present invention.

Claims (10)

1. A medical question-answering method based on a block chain is characterized by comprising the following steps:
s101, acquiring a digital certificate of an online medical practitioner, and associating the digital certificate with a corresponding block chain network identity and an entity identity;
s102, extracting facial features of the face in the subordinate medical qualification certificate through the subordinate medical qualification certificate submitted by a face recognition doctor, wherein the subordinate medical qualification certificate comprises a doctor qualification certificate, a doctor practice certificate and an identity card, and the medical service platform calls an intelligent contract of a block chain to record the facial features;
s103, recognizing the face of the online medical practitioner through video acquisition equipment, and comparing a face recognition result with the facial features;
s104, generating an encrypted token after the face recognition is successful, managing the encrypted token through a block chain, and storing the encrypted token through a doctor client;
s105, receiving a question of a user client through a medical service platform, and responding a request message for answering by a doctor client to a patient user;
s106, sending the answer content of the doctor client and the encrypted token to a server of a medical platform, and simultaneously calling an intelligent contract of a block chain by the doctor client to record an answer process;
and S107, the medical service platform verifies the answer and verifies the validity of the encrypted token, calls the trusted timestamp service to obtain a trusted timestamp, and then records the trusted timestamp by using a block chain intelligent contract.
2. The blockchain-based medical question answering method according to claim 1, wherein the S101 includes:
the digital certificate is used for identifying the entity identity of the online medical practitioner;
and the digital certificate and the entity identity are bound and encrypted by adopting an asymmetric encryption technology, wherein a private key of an online medical practitioner is stored through the client, and a public key is disclosed in the block chain.
3. The blockchain-based medical question answering method according to claim 1, wherein the S102 includes:
and when the extracted facial features do not meet the requirements or have a large difference with the real human face of the online medical practitioner, the facial images are collected again through the doctor client, and the collected facial images are used as comparison photos for subsequent human face recognition.
4. The blockchain-based medical question answering method according to claim 3, wherein the S102 further comprises: identifying a face picture acquired by calling video acquisition equipment by the doctor client through the Dlib, specifically, establishing connection with a server of a medical platform, tracking a detected face, extracting a 128-dimensional face feature vector in the face picture, and comparing the face feature vector with the 128-dimensional face feature vector in the face picture to obtain an Euclidean distance of a vector space of the face;
and if the Euclidean distance of the vector spaces of the two faces is smaller than a preset threshold value, determining that the online medical practitioner operates by himself.
5. The blockchain-based medical question answering method according to claim 1, wherein the S104 includes:
according to the facial recognition correlation attribute and the public key, generating after digital signature is carried out through a private key of the medical service platform; the digital signature is carried out through a private key of the medical service platform, and the digital signature comprises an RSA digital signature algorithm, a DSA digital signature algorithm and an ECDSA digital signature algorithm.
6. The blockchain-based medical question answering method according to claim 1, wherein the S105 includes:
and storing the user client questioning information by using a centralized database, and receiving a request message for responding to a reply from a patient user by a doctor client through inquiring a database medium.
7. The blockchain-based medical question answering method according to claim 1, wherein the S106 includes:
after the answer is finished, the answer content and the encrypted token are sent to a medical platform server, meanwhile, a doctor client calls an intelligent contract of the block chain to record the answer process, and the question related information and the answer content directly use a block chain identity private key of the online medical practitioner to carry out digital signature.
8. The blockchain-based medical question answering method according to claim 1, wherein the S107 includes:
and the medical service platform verifies the answer and verifies the validity of the encrypted token, then calls the trusted timestamp service to obtain a trusted timestamp, and then records the trusted timestamp by using a block chain intelligent contract.
9. A blockchain-based medical question answering device, the device comprising:
a blockchain network identity module configured to associate digital certificates, blockchain network identities, and entity identities for blockchain network participants;
the face recognition module is used for inputting the face features and comparing the similarity of the face features;
the encrypted token module is configured for generating an encrypted token of a face recognition state, and reliably transmitting and verifying the encrypted token at a server side and a client side;
the intelligent contract module is configured for recording the process of answering questions by the online medical practitioners and managing the facial picture characteristics in the certificates;
the digital signature module is configured for carrying out digital signature and verification on data generated in the answer recording process;
and the trusted timestamp module is configured for proving the accurate occurrence time, the existence and the integrity of the service through the trusted timestamp service.
10. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the method steps of any one of claims 1 to 8.
CN202010740115.XA 2020-07-28 2020-07-28 Block chain-based medical question answering method, device and medium Active CN112002436B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010740115.XA CN112002436B (en) 2020-07-28 2020-07-28 Block chain-based medical question answering method, device and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010740115.XA CN112002436B (en) 2020-07-28 2020-07-28 Block chain-based medical question answering method, device and medium

Publications (2)

Publication Number Publication Date
CN112002436A true CN112002436A (en) 2020-11-27
CN112002436B CN112002436B (en) 2024-02-09

Family

ID=73462341

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010740115.XA Active CN112002436B (en) 2020-07-28 2020-07-28 Block chain-based medical question answering method, device and medium

Country Status (1)

Country Link
CN (1) CN112002436B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112507355A (en) * 2020-12-04 2021-03-16 钟爱健康科技(广东)有限公司 Individual health data storage system based on block chain
CN112565289A (en) * 2020-12-21 2021-03-26 北京航空航天大学 System and method for credible issuing and verifying of medical certificate based on block chain
CN114157474A (en) * 2021-11-30 2022-03-08 杭州趣链科技有限公司 Online health information acquisition method with anonymity and untraceability

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107682378A (en) * 2017-11-22 2018-02-09 国民认证科技(北京)有限公司 A kind of real name identification method and system based on block chain
KR101925322B1 (en) * 2018-04-10 2018-12-05 (주)우리메디컬컨설팅 Method for providing medical counseling service including digital certification, digital signature, and forgery prevention
CN110414203A (en) * 2019-07-26 2019-11-05 郑州大学 A kind of internet medical treatment identity identifying method based on block chain technology
CN110457878A (en) * 2019-08-14 2019-11-15 北京中电普华信息技术有限公司 A kind of identity identifying method based on block chain, apparatus and system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107682378A (en) * 2017-11-22 2018-02-09 国民认证科技(北京)有限公司 A kind of real name identification method and system based on block chain
KR101925322B1 (en) * 2018-04-10 2018-12-05 (주)우리메디컬컨설팅 Method for providing medical counseling service including digital certification, digital signature, and forgery prevention
CN110414203A (en) * 2019-07-26 2019-11-05 郑州大学 A kind of internet medical treatment identity identifying method based on block chain technology
CN110457878A (en) * 2019-08-14 2019-11-15 北京中电普华信息技术有限公司 A kind of identity identifying method based on block chain, apparatus and system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
李麟等: "基于医院医疗区块链平台的EMR设计与实现", 生命科学仪器, vol. 18, pages 59 - 64 *

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112507355A (en) * 2020-12-04 2021-03-16 钟爱健康科技(广东)有限公司 Individual health data storage system based on block chain
CN112507355B (en) * 2020-12-04 2024-04-02 钟爱健康科技(广东)有限公司 Personal health data storage system based on block chain
CN112565289A (en) * 2020-12-21 2021-03-26 北京航空航天大学 System and method for credible issuing and verifying of medical certificate based on block chain
CN112565289B (en) * 2020-12-21 2022-06-24 北京航空航天大学 System and method for credible issuing and verifying of medical certificate based on block chain
CN114157474A (en) * 2021-11-30 2022-03-08 杭州趣链科技有限公司 Online health information acquisition method with anonymity and untraceability
CN114157474B (en) * 2021-11-30 2024-02-23 杭州趣链科技有限公司 Online health information acquisition method with anonymity and untraceability

Also Published As

Publication number Publication date
CN112002436B (en) 2024-02-09

Similar Documents

Publication Publication Date Title
CN108881253B (en) Block chain real name participation method and system
US10396985B1 (en) Federated identity management based on biometric data
CN103679436B (en) A kind of electronic contract security system and method based on biological information identification
CN112002436B (en) Block chain-based medical question answering method, device and medium
EP2685400B1 (en) Signature Generation and Verification System and Signature Verification Apparatus
US6401206B1 (en) Method and apparatus for binding electronic impressions made by digital identities to documents
CN110086608A (en) User authen method, device, computer equipment and computer readable storage medium
CN107925581A (en) 1:N organism authentications, encryption, signature system
US11588638B2 (en) Digital notarization using a biometric identification service
CN112487778A (en) Multi-user online signing system and method
JPS6256043A (en) Electronic transaction system
CN112614586B (en) Remote disease intelligent diagnosis system based on medical images and block chains
CN108876375B (en) Block chain real name participation method and system
CN110460438A (en) The lightweight means of communication with privacy of user defencive function
CN108880832A (en) Block chain real name identification method and system
KR20190031986A (en) Apparatus for executing telebiometric authentication and apparatus for requesting the same
CN108959883A (en) A kind of network identity real name identification method based on quick response matrix code
Zhu et al. Secure online examination with biometric authentication and blockchain-based framework
CN113515756A (en) High-reliability digital identity management method and system based on block chain
CN112398920A (en) Medical privacy data protection method based on block chain technology
CN109067702B (en) Method for generating and protecting real-name system network identity
CN110995661B (en) Network card platform
El-Yahyaoui et al. An improved framework for biometric Database's privacy
Shirvanian et al. 2D-2FA: a new dimension in two-factor authentication
US11252153B2 (en) Method of providing mutual authentication of contents in social media service, and server, user terminal, and application implementing the method

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant