CN112116979B - Electronic prescription circulation security working method based on blockchain account distribution protocol - Google Patents

Electronic prescription circulation security working method based on blockchain account distribution protocol Download PDF

Info

Publication number
CN112116979B
CN112116979B CN202010802391.4A CN202010802391A CN112116979B CN 112116979 B CN112116979 B CN 112116979B CN 202010802391 A CN202010802391 A CN 202010802391A CN 112116979 B CN112116979 B CN 112116979B
Authority
CN
China
Prior art keywords
client
electronic prescription
information
data
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.)
Active
Application number
CN202010802391.4A
Other languages
Chinese (zh)
Other versions
CN112116979A (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.)
Chongqing Huayi Kangdao Technology Co ltd
Original Assignee
Chongqing Huayi Kangdao 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 Chongqing Huayi Kangdao Technology Co ltd filed Critical Chongqing Huayi Kangdao Technology Co ltd
Priority to CN202010802391.4A priority Critical patent/CN112116979B/en
Publication of CN112116979A publication Critical patent/CN112116979A/en
Application granted granted Critical
Publication of CN112116979B publication Critical patent/CN112116979B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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
    • G16H20/00ICT specially adapted for therapies or health-improving plans, e.g. for handling prescriptions, for steering therapy or for monitoring patient compliance
    • G16H20/10ICT specially adapted for therapies or health-improving plans, e.g. for handling prescriptions, for steering therapy or for monitoring patient compliance relating to drugs or medications, e.g. for ensuring correct administration to patients
    • G16H20/13ICT specially adapted for therapies or health-improving plans, e.g. for handling prescriptions, for steering therapy or for monitoring patient compliance relating to drugs or medications, e.g. for ensuring correct administration to patients delivered from dispensers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/04Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks
    • H04L63/0428Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks wherein the data content is protected, e.g. by encrypting or encapsulating the payload
    • H04L63/0442Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks wherein the data content is protected, e.g. by encrypting or encapsulating the payload wherein the sending and receiving network entities apply asymmetric encryption, i.e. different keys for encryption and decryption
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network

Landscapes

  • Engineering & Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Computer Security & Cryptography (AREA)
  • Primary Health Care (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Epidemiology (AREA)
  • Public Health (AREA)
  • Medicinal Chemistry (AREA)
  • Computer Hardware Design (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Bioinformatics & Cheminformatics (AREA)
  • Chemical & Material Sciences (AREA)
  • Medical Treatment And Welfare Office Work (AREA)

Abstract

The invention provides an electronic prescription circulation security working method based on a blockchain account distribution protocol, which comprises the following steps: s1, a hospital information system and each information system participating in an electronic prescription transfer service access a blockchain network through introducing an SDK, and completing a task of electronic prescription security transfer settlement by calling an intelligent contract instruction in the network, S2, in the electronic prescription security transfer settlement task, division definition is carried out on the hospital information system and each information system participating in the electronic prescription transfer service and the accessed blockchain, S3, after an electronic prescription security transfer settlement task definition document set is validated, the hospital information system and each information system participating in the electronic prescription transfer service execute a task cooperation instruction according to the definition document set, S4, and a patient client confirms an electronic signature of the whole electronic prescription security transfer settlement task.

Description

Electronic prescription circulation security working method based on blockchain account distribution protocol
Technical Field
The invention relates to the field of blockchain security, in particular to an electronic prescription flow security working method based on a blockchain account distribution protocol.
Background
The prescription circulation refers to the process that after a doctor makes a prescription, the prescription flows to an out-of-hospital pharmacy, and the out-of-hospital pharmacy dispenses and delivers medicines for users. Prescription flows involve multiple stakeholders and there are complex stakeholder gaming processes between each stakeholder. This process is in turn governed and constrained by various laws and regulations or local management approaches. Therefore, the prescription flow compares the business scenes conforming to the technical characteristics of the block chain. In the electronic prescription circulation process, a multiparty organization or organization is required to carry out authentication operation, in addition, the electronic prescription cannot be safely authenticated in the information uploading process of the blockchain network, and the authenticity and reliability of electronic prescription circulation data in the blockchain network cannot be ensured, so that a person skilled in the art is required to solve the corresponding technical problems.
Disclosure of Invention
The invention aims at least solving the technical problems in the prior art, and particularly creatively provides an electronic prescription circulation security working method based on a blockchain account distribution protocol.
In order to achieve the above object of the present invention, the present invention provides a work method for electronic prescription circulation security based on blockchain accounting protocol, comprising the following steps:
s1, an electronic prescription security circulation settlement task is completed by introducing an SDK into a blockchain network and calling an intelligent contract instruction in the network, and meanwhile, the intelligent contract executes a supervision instruction on the completion condition of the electronic prescription security circulation settlement task; after each information system of the hospital information system and the information systems participating in the electronic prescription circulation service are accessed into a block chain, an asymmetric encryption key is distributed;
s2, in the electronic prescription security circulation settlement task, division definition is carried out on a hospital information system, all information systems participating in the electronic prescription circulation service and an accessed blockchain, the definition content is access information and transmission information of the hospital information system and all information systems participating in the electronic prescription circulation service, the access information and the transmission information form a definition document set, and the hospital information system and all information systems participating in the electronic prescription circulation service carry out signature authentication on the definition document set through private keys of the hospital information system and all information systems participating in the electronic prescription circulation service; then uploading the definition document set into the blockchain by calling an intelligent contract instruction; the intelligent contract verifies whether the electronic signature of each information system of the working hospital information system and the information systems participating in the electronic prescription transfer service is valid or not; when intelligent contracts in a hospital information system and information systems participating in an electronic prescription transfer service are valid in the electronic prescription security transfer settlement task, the electronic prescription security transfer settlement task definition document set takes effect;
s3, after the electronic prescription security circulation settlement task definition document set takes effect, executing task cooperation instructions by the hospital information system and each information system participating in the electronic prescription circulation service according to the definition document set; the first task cooperation instruction is that a doctor client side issues an electronic prescription, after electronic prescription information is formed, data security is guaranteed through an electronic signature and encryption instruction, then an intelligent contract is called to submit the electronic prescription to a blockchain network, and under the frame of access information and sending information defined by a work definition document set, a hospital account declares a part of digital asset;
the second task collaboration instruction is that after the electronic prescription is acquired by the auditing center client, the electronic prescription is audited according to the division of the electronic prescription circulation security task, and another digital asset is established for the auditing center account;
the third task cooperation instruction is that the pharmacy client acquires the electronic prescription, can acquire the electronic prescription, completes the electronic prescription safe circulation settlement task according to the division of the electronic prescription safe circulation settlement task, and establishes another digital asset for the pharmacy account;
and S4, the patient client confirms the electronic signature of the whole electronic prescription security circulation settlement task, so that after the circulation work of the electronic prescription is completed, the digital assets of the doctor client, the pharmacy client and the audit center client are formally validated, and if the patient client does not confirm the electronic signature of the whole electronic prescription security circulation settlement task, the corresponding digital assets are in an unactuated state and cannot be digitally settled.
Preferably, the S3 includes:
s3-1, after the doctor client determines the medicine matching service, the blockchain network performs medicine marking and matching verification; identifying that the electronic prescription which does not accord with the abnormal data of the patient client enters a pharmacy client; the doctor client and the pharmacy client upload and match the medicine catalogs in a default interface docking mode, so that data association is completed; the blockchain account dividing protocol sets each doctor client and each pharmacy client to establish a behavior time stamp locking instruction, and when each doctor client and each pharmacy client act, an active pushing mode is adopted and the system is sent to a blockchain network to prevent data tampering, if medicine data can be matched with medicine requirements of the doctor client, a data association relationship is established with the pharmacy client after the matching is completed;
s3-2, after each time a doctor client and a pharmacy client finish the medicine opening and taking instruction, the patient client acquires a data feedback instruction, the blockchain network performs behavior calibration on diagnosis and treatment and prescription opening operations of the doctor client and the pharmacy client according to the work task division of the patient client, the doctor client and the pharmacy client, and matches a medicine catalog with high use frequency with a medicine catalog of a medicine enterprise/pharmacy client, and simultaneously sends recommended information to the patient client, plans a medicine taking path, and associates and matches the medicine catalog and electronic prescription information of the pharmacy;
s3-3, after the patient client receives the electronic prescription, establishing consumption virtual account information in a blockchain network to form a digital asset, performing electronic signature authentication on the electronic prescription, acquiring the virtual account information of the patient client by a doctor client and a pharmacy client, and completing payment operation by the patient client according to rules established by a blockchain account distribution protocol; and obtaining benefits by the doctor client and the pharmacy client, and carrying out data package on the electronic prescription payment flow.
Preferably, the asymmetric encryption key includes:
s5-1, synchronizing the medicine data and payment settlement data of the electronic prescription in each blockchain network, initializing and encoding the medicine data and payment settlement data, and setting a plurality of classification compression packages because the information of the doctor client and the pharmacy client in the dependent variable changes along with the continuous advancement of the independent variable time of the request of the patient client,
s5-2, executing an instruction for adjusting the classified compression package in real time according to the change of the data requested by the patient client, classifying the updated data into the corresponding classified compression package if the updated data are in the set range of the classified compression package, establishing the classified compression package aiming at the data requested by the user if the updated data are not in the set range, evaluating the classified compression package by the patient client if the correlation degree of the data requested by the patient client and any classified compression package is too low, and completing the matching operation of the data requested by the patient client through a data updating algorithm.
Preferably, the S5-2 comprises:
when the request data cannot be matched with the classified compressed packet, the optimal position selection parameterAt this time, the search position of the request data is updated; optimal position selection parameter if the request data matches the corresponding classified compressed package>At this time, updating is not needed, according to the continuous change of the request data of the patient client and the positioning information of the classified compressed packet, the probability of whether the position of the request data collected by the classified compressed packet is at the optimal position is formed, as the algorithm gradually tends to converge, the request data of the patient client which needs to be updated is less and less, the request data approaches the corresponding classified compressed packet, and the probability of the classified compressed packet in the optimal classified compressed packet is determined by using the relation data updating algorithm of the request data of the patient client and the iteration times:
wherein: t represents the iteration number of the request data, F ij Representing the maximum iteration number of the jth classified compressed packet in the ith request data, and entering the corresponding classified compressed packet when the iteration number t is smallerWhen the iteration times t are increased, the number of iterations t is increased>Reduce and thereby Q in Getting larger, making the request data approach to the corresponding classified compressed packet, wherein K ij For the positioning node of the jth classified compressed packet in the ith request data, position adjustment is performed by adjusting parameter epsilon, A i To request the number of data vectors, A j To classify the number of compressed packet vectors, M and N are positive integers,
since the classified compression packet is dynamically changed according to the change of the request data, an iterative optimization algorithm is setGenerating a classified compressed packet matrix according to the iteration times t>Classified compressed packet feature matrix C j Classified compressed packet state matrix D j Transpose of +.>By adjusting by matrix adjustment coefficient sigma by using non-negative matrix factorizationDecomposed non-negative parameter product ++>Updating, in classifying compressed package, about->And C j Relative to D j Performing iterative optimization; thereby completing the probability encapsulation of the request data in the classified compression packet.
Preferably, the asymmetric encryption key further includes:
in the asymmetric encryption process, each patient client, doctor client, audit center client and pharmacy client form corresponding public keys and private keys, the private keys are used for signing the electronic prescriptions, and the public keys are used for verifying and signing the patient client, doctor client, audit center client and pharmacy client; the public key is used for encrypting and decrypting the corresponding information, and the private key is stored in the client of the patient;
the doctor client uses the doctor private key to sign after the electronic prescription is made, and the public key is public, so that the doctor client can verify the signature of the doctor by using the public key of the doctor to ensure that the prescription is made for the doctor;
in addition, the doctor client side carries out symmetric encryption on the prescription by using a one-time password; simultaneously encrypting the one-time password by using the public key of the account of the audit center client; after receiving the encrypted one-time password, the audit center client decrypts the password by using the account private key of the audit center client; then decrypting the prescription by using the password, namely seeing the original text of the prescription; ensuring confidentiality of the prescription.
Preferably, the method further comprises:
S-A, acquiring packaged electronic prescription information and encrypted information of se:Sup>A patient client, se:Sup>A doctor client and se:Sup>A pharmacy client in real time, obtaining sample datse:Sup>A Y containing the electronic prescription information and the encrypted information, and preprocessing the sample datse:Sup>A Y; analyzing each data element in the sample data Y by using a security identification formula so as to obtain abnormal data in the sample data Y;
S-B, when the electronic prescription information and the encrypted information which are packaged by the patient client, the doctor client and the pharmacy client are collected and the abnormal data tend to be in a reasonable range, judging that the electronic prescription information and the encrypted information are included in a normal calling data set, and if the electronic prescription information and the encrypted information which are packaged by the patient client, the doctor client and the pharmacy client are collected and the abnormal data are out of the reasonable range, judging that the electronic prescription information and the encrypted information are included in the abnormal calling data set;
S-C, setting an abnormal factor judgment value, and carrying out security judgment on the electronic prescription information and the encryption information according to the abnormal factor judgment value so as to feed back to the blockchain network; for electronic prescription information and encryption information which are included in the normal call data set and the abnormal call data set, finding that the electronic prescription information and the encryption information are unsuitable for the electronic prescription information and the encryption information in the normal call data set and the abnormal call data set in real time, and updating the unsuitable electronic prescription information and the unsuitable encryption information by adopting overflow operation; until no new electronic prescription information and encryption information is entered.
In summary, due to the adoption of the technical scheme, the beneficial effects of the invention are as follows:
the hospital information system synchronizes information in the blockchain by participating in electronic prescription circulation information, and according to the synchronicity of the blockchain, electronic prescription circulation can be efficiently carried out aiming at a doctor client, a pharmacy client and a audit center client, intelligent contracts are formed through an information encryption process in an electronic prescription interaction process, an electronic signature is verified, the electronic prescription information security is ensured, traceability of electronic prescription circulation and related data is completed, and participants meeting the passing qualification of electronic prescription verification can participate in the electronic prescription circulation process conveniently and rapidly.
Additional aspects and advantages of the invention will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention.
Drawings
The foregoing and/or additional aspects and advantages of the invention will become apparent and may be better understood from the following description of embodiments taken in conjunction with the accompanying drawings in which:
FIG. 1 is a diagram of a system architecture of the present invention;
FIG. 2 is a functional block diagram of an SDK according to the present invention;
fig. 3 is a schematic diagram of the operation of the present invention.
Detailed Description
Embodiments of the present invention are described in detail below, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to like or similar elements or elements having like or similar functions throughout. The embodiments described below by referring to the drawings are illustrative only and are not to be construed as limiting the invention.
As shown in fig. 1 to 3, the invention discloses an electronic prescription flow security working method based on a blockchain accounting protocol; comprising the following steps:
s1, an electronic prescription security circulation settlement task is completed by introducing an SDK into a blockchain network and calling an intelligent contract instruction in the network, and meanwhile, the intelligent contract executes a supervision instruction on the completion condition of the electronic prescription security circulation settlement task; after each information system of the hospital information system and the information systems participating in the electronic prescription circulation service are accessed into a block chain, an asymmetric encryption key is distributed;
s2, in the electronic prescription security circulation settlement task, division definition is carried out on a hospital information system, all information systems participating in the electronic prescription circulation service and an accessed blockchain, the definition content is access information and transmission information of the hospital information system and all information systems participating in the electronic prescription circulation service, the access information and the transmission information form a definition document set, and the hospital information system and all information systems participating in the electronic prescription circulation service carry out signature authentication on the definition document set through private keys of the hospital information system and all information systems participating in the electronic prescription circulation service; then uploading the definition document set into the blockchain by calling an intelligent contract instruction; the intelligent contract verifies whether the electronic signature of each information system of the working hospital information system and the information systems participating in the electronic prescription transfer service is valid or not; when intelligent contracts in a hospital information system and information systems participating in an electronic prescription transfer service are valid in the electronic prescription security transfer settlement task, the electronic prescription security transfer settlement task definition document set takes effect;
s3, after the electronic prescription security circulation settlement task definition document set takes effect, executing task cooperation instructions by the hospital information system and each information system participating in the electronic prescription circulation service according to the definition document set; the first task cooperation instruction is that a doctor client side issues an electronic prescription, after electronic prescription information is formed, data security is guaranteed through an electronic signature and encryption instruction, then an intelligent contract is called to submit the electronic prescription to a blockchain network, and under the frame of access information and sending information defined by a work definition document set, a hospital account declares a part of digital asset;
the second task collaboration instruction is that after the electronic prescription is acquired by the auditing center client, the electronic prescription is audited according to the division of the electronic prescription circulation security task, and another digital asset is established for the auditing center account;
the third task cooperation instruction is that the pharmacy client acquires the electronic prescription, can acquire the electronic prescription, completes the electronic prescription safe circulation settlement task according to the division of the electronic prescription safe circulation settlement task, and establishes another digital asset for the pharmacy account;
and S4, the patient client confirms the electronic signature of the whole electronic prescription security circulation settlement task, so that after the circulation work of the electronic prescription is completed, the digital assets of the doctor client, the pharmacy client and the audit center client are formally validated, and if the patient client does not confirm the electronic signature of the whole electronic prescription security circulation settlement task, the corresponding digital assets are in an unactuated state and cannot be digitally settled.
Preferably, the S3 includes:
s3-1, after the doctor client determines the medicine matching service, the blockchain network performs medicine marking and matching verification; identifying that the electronic prescription which does not accord with the abnormal data of the patient client enters a pharmacy client; the doctor client and the pharmacy client upload and match the medicine catalogs in a default interface docking mode, so that data association is completed; the system comprises a block chain network, a block chain accounting protocol, a user end, a doctor client and a pharmacy client, wherein the abnormal data of the user end is a prescription drug or a drug causing factors such as physical allergy of the user, the block chain accounting protocol sets each doctor client and the pharmacy client to establish a behavior time stamp locking instruction, and when each doctor client and the pharmacy client act, an active pushing mode is adopted and the data is sent to the block chain network to prevent data tampering, if the drug data can be matched with the drug requirements of the doctor client, a data association relationship is established with the pharmacy client after the matching is completed;
s3-2, after each time a doctor client and a pharmacy client finish the medicine opening and taking instruction, the patient client acquires a data feedback instruction, the blockchain network performs behavior calibration on diagnosis and treatment and prescription opening operations of the doctor client and the pharmacy client according to the work task division of the patient client, the doctor client and the pharmacy client, and matches a medicine catalog with high use frequency with a medicine catalog of a medicine enterprise/pharmacy client, and simultaneously sends recommended information to the patient client, plans a medicine taking path, and associates and matches the medicine catalog and electronic prescription information of the pharmacy;
s3-3, after the patient client receives the electronic prescription, establishing consumption virtual account information in a blockchain network to form a digital asset, performing electronic signature authentication on the electronic prescription, acquiring the virtual account information of the patient client by a doctor client and a pharmacy client, and completing payment operation by the patient client according to rules established by a blockchain account distribution protocol; and obtaining benefits by the doctor client and the pharmacy client, and carrying out data package on the electronic prescription payment flow.
Preferably, the method further comprises;
the asymmetric encryption key includes:
s5-1, synchronizing medicine data and payment settlement data of an electronic prescription in each blockchain network, and initializing and encoding the medicine data and the payment settlement data, wherein as a request of a patient client is continuously advanced along with independent variable time, information of medicine opening and taking of a doctor client and a pharmacy client in dependent variables is changed, and a plurality of classification compression packages are required to be set, such as: internal medicine, surgery, orthopedics, otorhinolaryngology, pediatrics, gynecology, obstetrics, and the like;
s5-2, executing an instruction for adjusting the classified compression package in real time according to the change of the data requested by the patient client, classifying the updated data into the corresponding classified compression package if the updated data are in the set range of the classified compression package, establishing the classified compression package aiming at the data requested by the user if the updated data are not in the set range, evaluating the classified compression package by the patient client if the correlation degree of the data requested by the patient client and any classified compression package is too low, and completing the matching operation of the data requested by the patient client through a data updating algorithm.
The S5-2 comprises the following steps:
when the request data cannot be matched with the classified compressed packet, the optimal position selection parameterAt this time, the search position of the request data is updated; optimal position selection parameter if the request data matches the corresponding classified compressed package>At this time, updating is not needed, and a component is formed according to the continuous change of the patient client request data and the classified compression packet positioning informationThe probability of whether the position of the request data collected by the class compression packet is at the optimal position or not is determined by the probability that the algorithm gradually converges, the request data of the patient client needing to be updated is smaller and smaller, the request data is close to the corresponding class compression packet, and the probability that the classification position of the class compression packet is in the optimal class compression packet is determined by using the relational data updating algorithm of the request data of the patient client and the iteration times:
wherein: t represents the iteration number of the request data, F ij Representing the maximum iteration number of the jth classified compressed packet in the ith request data, and entering the corresponding classified compressed packet when the iteration number t is smallerWhen the iteration times t are increased, the number of iterations t is increased>Reduce and thereby Q in Getting larger, making the request data approach to the corresponding classified compressed packet, wherein K ij For the positioning node of the jth classified compressed packet in the ith request data, position adjustment is performed by adjusting parameter epsilon, A i To request the number of data vectors, A j To classify the number of compressed packet vectors, M and N are positive integers,
since the classified compression packet is dynamically changed according to the change of the request data, an iterative optimization algorithm is setGenerating a classified compressed packet matrix according to the iteration times t>Classified compressed packet feature matrix C j Classified compressed packet state matrix D j Transpose of +.>By adjusting the matrix adjustment coefficient sigma by using non-negative matrix factors +.>Decomposed non-negative parameter product ++>Updating, in classifying compressed package, about->And C j Relative to D j Performing iterative optimization; thereby completing the probability encapsulation of the request data in the classified compression packet.
Preferably, the asymmetric encryption key further includes:
in the asymmetric encryption process, each patient client, doctor client, audit center client and pharmacy client form corresponding public keys and private keys, the private keys are used for signing the electronic prescriptions, and the public keys are used for verifying and signing the patient client, doctor client, audit center client and pharmacy client; the public key is used for encrypting and decrypting the corresponding information, and the private key is stored in the client of the patient;
the doctor client uses the doctor private key to sign after the electronic prescription is made, and the public key is public, so that the doctor client can verify the signature of the doctor by using the public key of the doctor to ensure that the prescription is made for the doctor;
in addition, the doctor client side carries out symmetric encryption on the prescription by using a one-time password; simultaneously encrypting the one-time password by using the public key of the account of the audit center client; after receiving the encrypted one-time password, the audit center client decrypts the password by using the account private key of the audit center client; then decrypting the prescription by using the password, namely seeing the original text of the prescription; ensuring confidentiality of the prescription.
Preferably, S-A, electronic prescription information and encryption information after the package of se:Sup>A patient client, se:Sup>A doctor client and se:Sup>A pharmacy client are acquired in real time, sample datse:Sup>A Y containing the electronic prescription information and the encryption information is obtained, and the sample datse:Sup>A Y is preprocessed; analyzing each data element in the sample data Y by using a security identification formula so as to obtain abnormal data in the sample data Y;
S-B, when the electronic prescription information and the encrypted information which are packaged by the patient client, the doctor client and the pharmacy client are collected and the abnormal data tend to be in a reasonable range, judging that the electronic prescription information and the encrypted information are included in a normal calling data set, and if the electronic prescription information and the encrypted information which are packaged by the patient client, the doctor client and the pharmacy client are collected and the abnormal data are out of the reasonable range, judging that the electronic prescription information and the encrypted information are included in the abnormal calling data set;
S-C, setting an abnormal factor judgment value, and carrying out security judgment on the electronic prescription information and the encryption information according to the abnormal factor judgment value so as to feed back to the blockchain network; for electronic prescription information and encryption information which are included in the normal call data set and the abnormal call data set, finding that the electronic prescription information and the encryption information are unsuitable for the electronic prescription information and the encryption information in the normal call data set and the abnormal call data set in real time, and updating the unsuitable electronic prescription information and the unsuitable encryption information by adopting overflow operation; until no new electronic prescription information and encryption information is entered.
The SDK set by the hospital information system includes: a key management module: user key localization management;
user management interface: packaging functions of the platform intelligent contract user management module for calling by a third party application;
path management interface: packaging the functions of the platform intelligent contract path management module for calling by a third party application;
prescription circulation interface: packaging the functions of the platform intelligent contract prescription circulation module for calling by a third party application;
settlement redemption interface: packaging the functions of the platform intelligent contract settlement and redemption module for calling by a third party application;
secure authentication interface: packaging the functions of the platform intelligent contract security authentication module for calling by a third party application;
statistical analysis interface: packaging the functions of the platform intelligent contract statistics analysis module for calling by a third party application;
and the data encryption and decryption and verification module: the method is used for realizing data signing, data encryption and decryption, signature verification and checking whether the decrypted data accords with the data standard specification.
Blockchain network SDK: SDK of bottom layer block chain network used by platform; the platform intelligence contract includes:
(1) User management module
The user management contract is mainly used for storing and inquiring user information of each party participating in the platform service and comprises a user ID, a public key and basic information.
(2) Path management module
The platform adopts a path-driven prescription circulation mode. We model the prescription flow path as a finite state transducer. The contract is mainly used for configuring a prescription circulation path, managing rights and the like.
(3) Prescription circulation module
The prescription transfer contract is a contract for executing prescription transfer core business logic, and is used for executing prescription transfer according to path configuration and related business rules.
(4) Settlement and redemption module
And a module for cashing the platform asset according to the platform account separating protocol.
(5) Statistical analysis contracts
The statistical analysis contract is mainly used for performing a statistical analysis function on platform business execution conditions. (optional)
First, the hospital information system, i.e., platform, defines a virtual financial asset (like a bitcoin). Such virtual financial assets may be redeemed with a third-party payment system, or other virtual asset platform, or digital currency platform, through a settlement redemption module. Each processing node may record a positive asset (creditor) for itself and then record a corresponding negative asset (debt) on the prescription as it is being circulated through the circulation path.
Finally, the end user pays for the electronic prescription by exchanging its own assets for virtual assets on the platform and paying the debt on the prescription. The positive asset of the processing node is formally validated after payment is completed. And thus redeemable for assets of other platforms. The number of positive assets each processing node notes to itself may be determined by the platform configuration, or there may be processing nodes that price freely according to their own interests. The end user receives the electronic prescription either with or without payment, and only after payment is the electronic prescription validated, the processing node's positive asset is otherwise invalidated. The end user may be the patient of the prescription or may be a third party payment authority such as a medical insurance, business insurance, or the like. The exchange proportion of the platform virtual asset and other platforms (such as a banking system) is determined by a platform operator according to actual conditions.
While embodiments of the present invention have been shown and described, it will be understood by those of ordinary skill in the art that: many changes, modifications, substitutions and variations may be made to the embodiments without departing from the spirit and principles of the invention, the scope of which is defined by the claims and their equivalents.

Claims (4)

1. The electronic prescription circulation security working method based on the blockchain account distribution protocol is characterized by comprising the following steps of:
step S1, a hospital information system and each information system participating in an electronic prescription transfer service access a blockchain network through introducing an SDK, and complete an electronic prescription security transfer settlement task by calling an intelligent contract instruction in the network, and simultaneously, the intelligent contract executes a supervision instruction on the completion condition of the electronic prescription security transfer settlement task; after each information system of the hospital information system and the information systems participating in the electronic prescription circulation service are accessed into a block chain, an asymmetric encryption key is distributed;
the asymmetric encryption key includes:
in each blockchain network, the medicine data and payment settlement data of the electronic prescription are synchronized, the medicine data and payment settlement data are initialized and encoded, because the request of the patient client is continuously advanced along with the independent variable time, the information of the doctor client and the pharmacy client in the dependent variable on the medicine opening and taking changes, a plurality of classification compression packages are required to be set,
executing an instruction for adjusting the classified compression packet in real time according to the change of the data requested by the patient client, classifying the updated data into the corresponding classified compression packet if the updated data is within the set range of the classified compression packet, establishing a classified compression packet aiming at the data requested by the patient client if the updated data is not within the set range, evaluating the classified compression packet by the patient client if the correlation degree between the data requested by a certain patient client and any classified compression packet is too low, and completing the matching operation of the data requested by the patient client through a data updating algorithm;
when the request data cannot be matched with the classified compressed packet, the optimal position selection parameterAt this time, the search position of the request data is updated; optimal position selection parameter if the request data matches the corresponding classified compressed package>At this time, updating is not needed, according to the continuous change of the request data of the patient client and the positioning information of the classified compressed packet, the probability of whether the position of the request data collected by the classified compressed packet is at the optimal position is formed, as the algorithm gradually tends to converge, the request data of the patient client which needs to be updated is less and less, the request data approaches the corresponding classified compressed packet, and the probability of the classified compressed packet in the optimal classified compressed packet is determined by using the relation data updating algorithm of the request data of the patient client and the iteration times:
wherein: t represents the iteration number of the request data, F ij Representing the maximum iteration number of the jth classified compressed packet in the ith request data, and entering the corresponding classified compressed packet when the iteration number t is smallerWhen the iteration times t are increased, the number of iterations t is increased>Reduce and thereby Q in Getting larger, making the request data approach to the corresponding classified compressed packet, wherein K ij For the positioning node of the jth classified compressed packet in the ith request data, position adjustment is performed by adjusting parameter epsilon, A i To request the number of data vectors, A j To classify the number of compressed packet vectors, M and N are positive integers,
since the classified compression packet is dynamically changed according to the change of the request data, an iterative optimization algorithm is setGenerating a classified compressed packet matrix according to the iteration times t>Classified compressed packet feature matrix C j Classified compressed packet state matrix D j Transpose of +.>By adjusting by matrix adjustment coefficient sigma by using non-negative matrix factorizationDecomposed non-negative parameter product ++>Updating, in classifying compressed package, about->And C j Relative to D j Performing iterative optimization; thereby completing probability encapsulation of the request data in the classified compression packet;
step S2, in the electronic prescription security circulation settlement task, division definition is carried out on a hospital information system, all information systems participating in the electronic prescription circulation service and an accessed blockchain, definition contents are access information and transmission information of the hospital information system and all information systems participating in the electronic prescription circulation service, the access information and the transmission information form a definition document set, and the hospital information system and all information systems participating in the electronic prescription circulation service carry out signature authentication on the definition document set through private keys of the hospital information system and all information systems participating in the electronic prescription circulation service; then uploading the definition document set into the blockchain by calling an intelligent contract instruction; the intelligent contract verifies whether the electronic signature of each information system of the working hospital information system and the information systems participating in the electronic prescription transfer service is valid or not; when intelligent contracts in a hospital information system and information systems participating in an electronic prescription transfer service are valid in the electronic prescription security transfer settlement task, the electronic prescription security transfer settlement task definition document set takes effect;
step S3, after the electronic prescription security circulation settlement task definition document set takes effect, executing task cooperation instructions by the hospital information system and each information system participating in the electronic prescription circulation service according to the definition document set; the first task cooperation instruction is that a doctor client side issues an electronic prescription, after electronic prescription information is formed, data security is guaranteed through an electronic signature and encryption instruction, then an intelligent contract is called to submit the electronic prescription to a blockchain network, and under the frame of access information and sending information defined by a work definition document set, a hospital account declares a part of digital asset;
the second task collaboration instruction is that after the electronic prescription is acquired by the auditing center client, the electronic prescription is audited according to the division of the electronic prescription circulation security task, and another digital asset is established for the auditing center account;
the third task cooperation instruction is that the pharmacy client acquires the electronic prescription, and completes the electronic prescription safe circulation settlement task according to the division of the electronic prescription safe circulation settlement task, and establishes another digital asset for the pharmacy account;
and S4, the patient client confirms the electronic signature of the whole electronic prescription security circulation settlement task, so that after the circulation work of the electronic prescription is completed, the digital assets of the doctor client, the pharmacy client and the audit center client are formally validated, and if the patient client does not confirm the electronic signature of the whole electronic prescription security circulation settlement task, the corresponding digital assets are in an unactuated state and cannot be digitally settled.
2. The blockchain-based accounting protocol electronic prescription flow security working method of claim 1, wherein S3 comprises:
s3-1, after the doctor client determines that the medicine is matched with the service, the blockchain network performs medicine marking and matching verification; identifying that the electronic prescription which does not accord with the abnormal data of the patient client enters a pharmacy client; the doctor client and the pharmacy client upload and match the medicine catalogs in a default interface docking mode, so that data association is completed; the blockchain account dividing protocol sets each doctor client and each pharmacy client to establish a behavior time stamp locking instruction, and when each doctor client and each pharmacy client act, an active pushing mode is adopted and the system is sent to a blockchain network to prevent data tampering, if medicine data can be matched with medicine requirements of the doctor client, a data association relationship is established with the pharmacy client after the matching is completed;
step S3-2, after each time a doctor client and a pharmacy client finish the medicine opening and taking instruction, a patient client acquires a data feedback instruction, a blockchain network performs behavior calibration on diagnosis and treatment and prescription opening operations of the doctor client and the pharmacy client according to the work task division of the patient client, the doctor client and the pharmacy client, and matches a medicine catalog with high use frequency with a medicine catalog of the pharmacy client, and simultaneously sends recommended information to the patient client, plans a medicine taking path, and associates and matches the medicine catalog and electronic prescription information of a pharmacy;
step S3-3, after the patient client receives the electronic prescription, establishing consumption virtual account information in a blockchain network to form a digital asset, performing electronic signature authentication on the electronic prescription, acquiring the virtual account information of the patient client by a doctor client and a pharmacy client, and completing payment operation by the patient client according to rules established by a blockchain account distribution protocol; and obtaining benefits by the doctor client and the pharmacy client, and carrying out data package on the electronic prescription payment flow.
3. The blockchain-based accounting protocol electronic prescription flow security working method of claim 1, wherein the asymmetric encryption key further comprises:
in the asymmetric encryption process, each patient client, doctor client, audit center client and pharmacy client form corresponding public keys and private keys, the private keys are used for signing the electronic prescriptions, and the public keys are used for verifying and signing the patient client, doctor client, audit center client and pharmacy client; the public key is used for encrypting and decrypting the corresponding information, and the private key is stored in the client of the patient;
the doctor client uses a doctor private key to sign after making an electronic prescription, and the public key is public, so that the doctor client verifies the signature of the doctor by using the doctor public key to ensure that the prescription is made for the doctor;
in addition, the doctor client side carries out symmetric encryption on the prescription by using a one-time password; simultaneously encrypting the one-time password by using the public key of the account of the audit center client; after receiving the encrypted one-time password, the audit center client decrypts the password by using the account private key of the audit center client; then decrypting the prescription by using the password, namely seeing the original text of the prescription; ensuring confidentiality of the prescription.
4. The blockchain-based accounting protocol electronic prescription flow security work method of claim 1, further comprising:
S-A, acquiring electronic prescription information and encryption information after packaging of se:Sup>A patient client, se:Sup>A doctor client and se:Sup>A pharmacy client in real time, obtaining sample datse:Sup>A Y containing the electronic prescription information and the encryption information, and preprocessing the sample datse:Sup>A Y; analyzing each data element in the sample data Y by using a security identification formula so as to obtain abnormal data in the sample data Y;
S-B, when the electronic prescription information and the encrypted information which are packaged by the patient client, the doctor client and the pharmacy client are collected and the abnormal data tend to be in a reasonable range, judging that the electronic prescription information and the encrypted information are included in a normal calling data set, and if the electronic prescription information and the encrypted information which are packaged by the patient client, the doctor client and the pharmacy client are collected and the abnormal data are out of the reasonable range, judging that the electronic prescription information and the encrypted information are included in the abnormal calling data set;
S-C, setting an abnormal factor judgment value, and carrying out security judgment on the electronic prescription information and the encryption information according to the abnormal factor judgment value so as to feed back to the blockchain network; for electronic prescription information and encryption information which are included in the normal call data set and the abnormal call data set, finding that the electronic prescription information and the encryption information are unsuitable for the electronic prescription information and the encryption information in the normal call data set and the abnormal call data set in real time, and updating the unsuitable electronic prescription information and the unsuitable encryption information by adopting overflow operation; until no new electronic prescription information and encryption information is entered.
CN202010802391.4A 2020-08-11 2020-08-11 Electronic prescription circulation security working method based on blockchain account distribution protocol Active CN112116979B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010802391.4A CN112116979B (en) 2020-08-11 2020-08-11 Electronic prescription circulation security working method based on blockchain account distribution protocol

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010802391.4A CN112116979B (en) 2020-08-11 2020-08-11 Electronic prescription circulation security working method based on blockchain account distribution protocol

Publications (2)

Publication Number Publication Date
CN112116979A CN112116979A (en) 2020-12-22
CN112116979B true CN112116979B (en) 2024-03-19

Family

ID=73804032

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010802391.4A Active CN112116979B (en) 2020-08-11 2020-08-11 Electronic prescription circulation security working method based on blockchain account distribution protocol

Country Status (1)

Country Link
CN (1) CN112116979B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113723955A (en) * 2021-08-06 2021-11-30 四川大学 Token-based electronic prescription transfer method based on intelligent contracts
CN116126976B (en) * 2023-04-06 2023-07-04 之江实验室 Data synchronization method and device, storage medium and electronic equipment

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20020080529A (en) * 2001-04-16 2002-10-26 김현성 Electronic data interchange system and method for the medical world
CN108335744A (en) * 2018-04-03 2018-07-27 江苏大学附属医院 A kind of emergency cardiovascular care network system and its method for early warning of classifying
CN108446992A (en) * 2018-05-11 2018-08-24 济南浪潮高新科技投资发展有限公司 A kind of net connection accurate Accident Handling Method of automobile based on block chain
CN109949019A (en) * 2018-11-15 2019-06-28 陕西医链区块链集团有限公司 A kind of payment system based on medical block chain
CN110414204A (en) * 2019-08-01 2019-11-05 广东珠江智联信息科技股份有限公司 A kind of shared flow system of internet hospital electronic prescription
CN110808958A (en) * 2019-10-07 2020-02-18 复旦大学 Medicine separation management system based on CP-ABE and block chain
EP3620976A1 (en) * 2018-09-07 2020-03-11 Volvo Car Corporation Methods and systems for providing fast semantic proposals for image and video annotation
US11558178B2 (en) * 2018-01-31 2023-01-17 Walmart Apollo, Llc System and method for prescription security and authentication

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20190206536A1 (en) * 2018-01-01 2019-07-04 Brian Hausman System and method for prescription monitoring and drug dispensation utilizing a distributed ledger

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20020080529A (en) * 2001-04-16 2002-10-26 김현성 Electronic data interchange system and method for the medical world
US11558178B2 (en) * 2018-01-31 2023-01-17 Walmart Apollo, Llc System and method for prescription security and authentication
CN108335744A (en) * 2018-04-03 2018-07-27 江苏大学附属医院 A kind of emergency cardiovascular care network system and its method for early warning of classifying
CN108446992A (en) * 2018-05-11 2018-08-24 济南浪潮高新科技投资发展有限公司 A kind of net connection accurate Accident Handling Method of automobile based on block chain
EP3620976A1 (en) * 2018-09-07 2020-03-11 Volvo Car Corporation Methods and systems for providing fast semantic proposals for image and video annotation
CN109949019A (en) * 2018-11-15 2019-06-28 陕西医链区块链集团有限公司 A kind of payment system based on medical block chain
CN110414204A (en) * 2019-08-01 2019-11-05 广东珠江智联信息科技股份有限公司 A kind of shared flow system of internet hospital electronic prescription
CN110808958A (en) * 2019-10-07 2020-02-18 复旦大学 Medicine separation management system based on CP-ABE and block chain

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
"区块链技术在医药行业的应用及问题与对策";李剑峰 等;《医学信息学杂志》;20180225;第39卷(第02期);第14-17、21页 *

Also Published As

Publication number Publication date
CN112116979A (en) 2020-12-22

Similar Documents

Publication Publication Date Title
US11552785B2 (en) Methods and systems for a synchronized distributed data structure for federated machine learning
Uddin et al. A survey on the adoption of blockchain in iot: Challenges and solutions
Houtan et al. A survey on blockchain-based self-sovereign patient identity in healthcare
US8316237B1 (en) System and method for secure three-party communications
CN107391944A (en) A kind of electronic health record shared system based on block chain
US20210266170A1 (en) System and method of trustless confidential positive identification and de-anonymization of data using blockchain
US8661249B2 (en) Health keyset management
US20200167338A1 (en) Verified permissioned blockchains
US20200168307A1 (en) Method and system for accessing electronic medical and health records by blockchain
CN112116979B (en) Electronic prescription circulation security working method based on blockchain account distribution protocol
CN108108611A (en) A kind of intelligent seal for carrying intelligent chip
CN109003192A (en) A kind of insurance underwriting method and relevant device based on block chain
CN116168820A (en) Medical data interoperation method based on virtual integration and blockchain fusion
US20210044440A1 (en) Blockchain-based clinical trial management
Sharma et al. Blockchain Enabled Biometric Security in Intemet-of-Medical-Things (IoMT) Devices
Kayikci et al. Blockchain meets machine learning: a survey
US20210248621A1 (en) Methods and systems for tracking the transfer of a cannabis article
US20210012447A1 (en) Method and System for Processing Firearm-Related Data
US11620580B2 (en) Methods and systems for probabilistic filtering of candidate intervention representations
CN110648735A (en) Electronic medical record credible sharing method and system based on block chain
US20230254148A1 (en) Apparatus and methods for selectively revealing data
US11917060B2 (en) Apparatus and methods for mapping user-associated data to an identifier
US11863676B1 (en) Apparatus and methods for minting non-fungible tokens (NFTS) from user-specific products and data
Abbas et al. Adapting hybrid approaches for electronic medical record management and sharing using blockchain sharding
Nishanthini et al. Deep Learning on Healthcare Ecosystem using Blockchain Based Security System

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