CN113723955A - Token-based electronic prescription transfer method based on intelligent contracts - Google Patents
Token-based electronic prescription transfer method based on intelligent contracts Download PDFInfo
- Publication number
- CN113723955A CN113723955A CN202110900545.8A CN202110900545A CN113723955A CN 113723955 A CN113723955 A CN 113723955A CN 202110900545 A CN202110900545 A CN 202110900545A CN 113723955 A CN113723955 A CN 113723955A
- Authority
- CN
- China
- Prior art keywords
- prescription
- token
- target
- drug
- electronic prescription
- 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.)
- Pending
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q20/00—Payment architectures, schemes or protocols
- G06Q20/38—Payment protocols; Details thereof
- G06Q20/382—Payment protocols; Details thereof insuring higher security of transaction
- G06Q20/3821—Electronic credentials
- G06Q20/38215—Use of certificates or encrypted proofs of transaction rights
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q40/00—Finance; Insurance; Tax strategies; Processing of corporate or income taxes
- G06Q40/04—Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange
Landscapes
- Business, Economics & Management (AREA)
- Accounting & Taxation (AREA)
- Engineering & Computer Science (AREA)
- Finance (AREA)
- Physics & Mathematics (AREA)
- Strategic Management (AREA)
- General Business, Economics & Management (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Economics (AREA)
- Marketing (AREA)
- Technology Law (AREA)
- Development Economics (AREA)
- Computer Security & Cryptography (AREA)
- Medical Treatment And Welfare Office Work (AREA)
Abstract
The invention discloses a Token-based electronic prescription circulation method, a block chain node and a block chain based on an intelligent contract, wherein the method comprises the steps of receiving a use request of an electronic prescription and acquiring drug transfer information; calling a first judgment logic of a prescription intelligent contract statement to judge whether the electronic prescription has a target prescription token; if the electronic prescription has the target prescription token, transferring the target drug token in the target prescription token to the pharmacy node. According to the invention, the block chain is utilized, and the corresponding target drug token is transferred to the pharmacy node according to the obtained use request of the electronic prescription, so that the circulation transaction of the drug token and the prescription token among the doctor node, the patient node and the pharmacy node is realized, the authenticity of the electronic prescription is ensured, the circulation efficiency of the electronic prescription is improved, the traceability is provided for the transaction of the drug, and the efficient supervision in the circulation process of the electronic prescription is realized.
Description
Technical Field
The invention relates to the technical field of block chains, in particular to a Token-based electronic prescription circulation method based on an intelligent contract, a block chain node and a block chain.
Background
In order to maintain stable state of illness, patients with chronic diseases need to take prescription medicines prescribed by doctors for a long time. In order to reduce the medication risk, China has strict control measures on prescription drugs, patients can buy the prescription drugs only according to the prescriptions of doctors, and the dosage of the drugs contained in the prescriptions has clear limitation. This results in patients who rely on prescription medication having to frequently go to the hospital for "follow-up", which not only increases the time and economic cost for the patient, but also crowds valuable medical resources. In addition, after a doctor makes a prescription, a patient can purchase a medicine in a pharmacy online or offline according to the prescription, but the traditional prescription is difficult to verify the authenticity, the patient can conveniently purchase the medicine for multiple times by one prescription, and the illegal event of the pharmacy 'selling the medicine without the prescription' frequently occurs, so that the supervision of the prescription medicine becomes a difficult problem.
In recent years, with the rapid development of internet medical industry in China, prescription electronization has become a necessary trend, and an electronic prescription which is easier to copy becomes a new problem on how to verify the authenticity of the prescription, ensure the anti-repudiation of the prescription and how to supervise hospitals, patients, drug stores and other parties involved in prescription circulation.
Therefore, how to supervise the circulation of electronic prescriptions is a technical problem which needs to be solved urgently.
The above is only for the purpose of assisting understanding of the technical aspects of the present invention, and does not represent an admission that the above is prior art.
Disclosure of Invention
The invention mainly aims to provide a Token-based electronic prescription circulation method, a block chain node and a block chain based on an intelligent contract, and aims to solve the technical problem of difficult supervision during electronic prescription circulation.
In order to achieve the above object, the present invention provides a Token-based electronic prescription transfer method based on an intelligent contract, which is used for a pharmacy node, and the method comprises the following steps:
receiving a use request of an electronic prescription and acquiring drug transfer information; wherein the drug transfer information comprises a target prescription token and a target drug token for the target prescription token;
calling a first judgment logic of a prescription intelligent contract statement to judge whether the electronic prescription has a target prescription token;
if the electronic prescription has the target prescription token, transferring the target drug token in the target prescription token to the pharmacy node.
Optionally, the step of transferring the target drug token in the target prescription token to the pharmacy node if the electronic prescription has the target prescription token specifically includes:
if the electronic prescription has the target prescription token, judging whether the target medicine token of the target prescription token is in a tradable state;
if so, calling a drug processing logic declared by a drug intelligent contract, and transferring the target drug token to the pharmacy node.
In addition, in order to achieve the above object, the present invention further provides a Token-based electronic prescription circulation method based on an intelligent contract, which is used for a doctor node, and the method includes:
receiving a prescription generation request; wherein the prescription generation request includes personal information of a doctor;
calling a second judgment logic of a prescription intelligent contract statement, and judging whether the doctor has the reissue authority or not according to the personal information;
if the doctor has the increased issuing authority, generating an electronic prescription; wherein the electronic prescription includes a prescription token and a drug token for the prescription token.
Optionally, if the doctor has the reissue authority, the step of generating the electronic prescription specifically includes:
if the doctor has the reissue authority, calling prescription token generation logic declared by a prescription intelligent contract, and generating a prescription token according to the prescription generation request;
and calling a drug token generation logic of a drug intelligent contract statement, and generating a drug token according to the prescription generation request.
In addition, in order to achieve the above object, the present invention provides a pharmacy node, including:
the acquisition device is used for receiving a use request of the electronic prescription and acquiring the drug transfer information; wherein the drug transfer information comprises a target prescription token and a target drug token for the target prescription token;
the first judgment device is used for calling first judgment logic of the prescription intelligent contract statement and judging whether the electronic prescription has a target prescription token or not;
a transfer device for transferring a target drug token of the target prescription tokens to the pharmacy node if the electronic prescription has the target prescription token.
Optionally, the transfer device is further configured to determine whether a target drug token of the target prescription token is in a tradable state if the electronic prescription has the target prescription token; if so, calling a drug processing logic declared by a drug intelligent contract, and transferring the target drug token to the pharmacy node.
In order to achieve the above object, the present invention also provides a doctor node, including:
receiving means for receiving a prescription generation request; wherein the prescription generation request includes personal information of a doctor;
the second judgment device is used for calling a second judgment logic of the prescription intelligent contract statement and judging whether the doctor has the reissue authority or not according to the personal information;
the generating device is used for generating the electronic prescription if the doctor has the reissue authority; wherein the electronic prescription includes a prescription token and a drug token for the prescription token.
Optionally, the generating device is further configured to invoke a prescription token generating logic of a prescription intelligent contract statement if the doctor has the reissue authority, and generate a prescription token according to the prescription generating request; and calling a drug token generation logic of a drug intelligent contract statement, and generating a drug token according to the prescription generation request.
In addition, in order to achieve the above object, the present invention also provides a blockchain including a pharmacy node and a doctor node.
In addition, in order to achieve the above object, the present invention further provides a Token-based electronic prescription flowing apparatus based on an intelligent contract, wherein the apparatus includes: the intelligent contract-based Token-based electronic prescription circulation program is stored on the memory and can run on the processor, and when being executed by the processor, the intelligent contract-based Token-based electronic prescription circulation program realizes the steps of the intelligent contract-based Token-based electronic prescription circulation method for the pharmacy node.
In order to achieve the above object, the present invention further provides a storage medium, wherein the storage medium stores thereon a Token-based electronic prescription circulation program based on an intelligent contract, and the Token-based electronic prescription circulation program based on the intelligent contract, when executed by a processor, implements the steps of the above Token-based electronic prescription circulation method for a pharmacy node.
In addition, in order to achieve the above object, the present invention further provides a Token-based electronic prescription flowing apparatus based on an intelligent contract, wherein the apparatus includes: the intelligent contract-based Token-based electronic prescription circulation program realizes the steps of the intelligent contract-based Token-based electronic prescription circulation method for the doctor node when being executed by the processor.
In addition, in order to achieve the above object, the present invention further provides a storage medium, wherein the storage medium stores a Token-based electronic prescription circulation program based on an intelligent contract, and the Token-based electronic prescription circulation program based on the intelligent contract, when executed by a processor, implements the steps of the Token-based electronic prescription circulation method for a doctor node.
The invention provides a Token-based electronic prescription circulation method, a block chain node and a block chain based on an intelligent contract, which comprises the steps of receiving a use request of an electronic prescription and acquiring drug transfer information; calling a first judgment logic of a prescription intelligent contract statement to judge whether the electronic prescription has a target prescription token; if the electronic prescription has the target prescription token, transferring the target drug token in the target prescription token to the pharmacy node. According to the invention, the block chain is utilized, and the corresponding target drug token is transferred to the pharmacy node according to the obtained use request of the electronic prescription, so that the circulation transaction of the drug token and the prescription token among the doctor node, the patient node and the pharmacy node is realized, the authenticity of the electronic prescription is ensured, the circulation efficiency of the electronic prescription is improved, the traceability is provided for the transaction of the drug, and the efficient supervision in the circulation process of the electronic prescription is realized.
Drawings
Fig. 1 is a schematic diagram of a Token-based electronic prescription flowing apparatus according to an embodiment of the present invention;
FIG. 2 is a schematic flow chart of a first embodiment of the intelligent contract-based Token-based electronic prescription forwarding method for a pharmacy node according to the present invention;
FIG. 3 is a schematic flow chart of a second embodiment of the intelligent contract-based Token-based electronic prescription forwarding method for a pharmacy node according to the present invention;
FIG. 4 is a schematic flow chart of a first embodiment of the method for circulating a Token-based electronic prescription based on an intelligent contract for a doctor node according to the present invention;
FIG. 5 is a schematic flow chart of a second embodiment of the method for circulating a Token-based electronic prescription based on an intelligent contract for a doctor node according to the present invention;
fig. 6 is a schematic structural diagram of a pharmacy node according to an embodiment of the present invention.
Fig. 7 is a schematic structural diagram of a doctor node according to an embodiment of the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
In order to maintain stable state of illness, patients with chronic diseases need to take prescription medicines prescribed by doctors for a long time. In order to reduce the medication risk, China has strict control measures on prescription drugs, patients can buy the prescription drugs only according to the prescriptions of doctors, and the dosage of the drugs contained in the prescriptions has clear limitation. This results in patients who rely on prescription medication having to frequently go to the hospital for "follow-up", which not only increases the time and economic cost for the patient, but also crowds valuable medical resources. In addition, after a doctor makes a prescription, a patient can purchase a medicine in a pharmacy online or offline according to the prescription, but the traditional prescription is difficult to verify the authenticity, the patient can conveniently purchase the medicine for multiple times by one prescription, and the illegal event of the pharmacy 'selling the medicine without the prescription' frequently occurs, so that the supervision of the prescription medicine becomes a difficult problem. In recent years, with the rapid development of internet medical industry in China, prescription electronization has become a necessary trend, and an electronic prescription which is easier to copy becomes a new problem on how to verify the authenticity of the prescription, ensure the anti-repudiation of the prescription and how to supervise hospitals, patients, drug stores and other parties involved in prescription circulation.
To address this issue, various embodiments of the intelligent contract-based Token-based electronic prescription flow method of the present invention are presented. The Token electronic prescription circulation method based on the intelligent contract provided by the invention transfers the corresponding target drug Token to the pharmacy node based on the use request of the electronic prescription, realizes the circulation transaction of the prescription Token between a doctor and a patient and the drug Token between the doctor, the patient and the pharmacy, ensures the authenticity of the electronic prescription, improves the circulation efficiency of the electronic prescription, provides traceability for the transaction of the drug and realizes efficient supervision in the circulation process of the electronic prescription.
Referring to fig. 1, fig. 1 is a schematic structural diagram of a recommendation device of a Token-based electronic prescription circulation method for a hardware operating environment according to an embodiment of the present invention.
The device may be a User Equipment (UE) such as a Mobile phone, smart phone, laptop, digital broadcast receiver, Personal Digital Assistant (PDA), tablet computer (PAD), handheld device, vehicular device, wearable device, computing device or other processing device connected to a wireless modem, Mobile Station (MS), or the like. The device may be referred to as a user terminal, portable terminal, desktop terminal, etc.
Generally, the apparatus comprises: at least one processor 301, a memory 302, and an intelligent contract-based Token-based electronic prescription flow program stored on the memory and executable on the processor, the intelligent contract-based Token-based electronic prescription flow program configured to implement the steps of the intelligent contract-based Token-based electronic prescription flow method as described above.
The processor 301 may include one or more processing cores, such as a 4-core processor, an 8-core processor, and so on. The processor 301 may be implemented in at least one hardware form of a DSP (Digital Signal Processing), an FPGA (Field-Programmable Gate Array), and a PLA (Programmable Logic Array). The processor 301 may also include a main processor and a coprocessor, where the main processor is a processor for processing data in an awake state, and is also called a Central Processing Unit (CPU); a coprocessor is a low power processor for processing data in a standby state. In some embodiments, the processor 301 may be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content required to be displayed on the display screen. Processor 301 may also include an AI (Artificial Intelligence) processor for processing operations related to intelligent contract-based Token-based electronic prescription circulation, such that the intelligent contract-based Token-based electronic prescription circulation model may train learning autonomously, improving efficiency and accuracy.
In some embodiments, the terminal may further include: a communication interface 303 and at least one peripheral device. The processor 301, the memory 302 and the communication interface 303 may be connected by a bus or signal lines. Various peripheral devices may be connected to communication interface 303 via a bus, signal line, or circuit board. Specifically, the peripheral device includes: at least one of radio frequency circuitry 304, a display screen 305, and a power source 306.
The communication interface 303 may be used to connect at least one peripheral device related to I/O (Input/Output) to the processor 301 and the memory 302. The communication interface 303 is used for receiving the movement tracks of the plurality of mobile terminals uploaded by the user and other data through the peripheral device. In some embodiments, processor 301, memory 302, and communication interface 303 are integrated on the same chip or circuit board; in some other embodiments, any one or two of the processor 301, the memory 302 and the communication interface 303 may be implemented on a single chip or circuit board, which is not limited in this embodiment.
The Radio Frequency circuit 304 is used for receiving and transmitting RF (Radio Frequency) signals, also called electromagnetic signals. The radio frequency circuit 304 communicates with a communication network and other communication devices through electromagnetic signals, so as to obtain the movement tracks and other data of a plurality of mobile terminals. The rf circuit 304 converts an electrical signal into an electromagnetic signal to transmit, or converts a received electromagnetic signal into an electrical signal. Optionally, the radio frequency circuit 304 comprises: an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a subscriber identity module card, and so forth. The radio frequency circuitry 304 may communicate with other terminals via at least one wireless communication protocol. The wireless communication protocols include, but are not limited to: metropolitan area networks, various generation mobile communication networks (2G, 3G, 4G, and 5G), Wireless local area networks, and/or WiFi (Wireless Fidelity) networks. In some embodiments, the rf circuit 304 may further include NFC (Near Field Communication) related circuits, which are not limited in this application.
The display screen 305 is used to display a UI (User Interface). The UI may include graphics, text, icons, video, and any combination thereof. When the display screen 305 is a touch display screen, the display screen 305 also has the ability to capture touch signals on or over the surface of the display screen 305. The touch signal may be input to the processor 301 as a control signal for processing. At this point, the display screen 305 may also be used to provide virtual buttons and/or a virtual keyboard, also referred to as soft buttons and/or a soft keyboard. In some embodiments, the display screen 305 may be one, the front panel of the electronic device; in other embodiments, the display screens 305 may be at least two, respectively disposed on different surfaces of the electronic device or in a folded design; in still other embodiments, the display screen 305 may be a flexible display screen disposed on a curved surface or a folded surface of the electronic device. Even further, the display screen 305 may be arranged in a non-rectangular irregular figure, i.e. a shaped screen. The Display screen 305 may be made of LCD (liquid crystal Display), OLED (Organic Light-Emitting Diode), and the like.
The power supply 306 is used to power various components in the electronic device. The power source 306 may be alternating current, direct current, disposable or rechargeable. When the power source 306 includes a rechargeable battery, the rechargeable battery may support wired or wireless charging. The rechargeable battery may also be used to support fast charge technology.
Those skilled in the art will appreciate that the configuration shown in fig. 1 does not constitute a limitation of a Token-based electronic prescription flowing apparatus for an intelligent contract, and may include more or fewer components than those shown, or some components in combination, or a different arrangement of components.
An embodiment of the present invention provides a Token-based electronic prescription circulation method based on an intelligent contract, and referring to fig. 2, fig. 2 is a schematic flow diagram of a first embodiment of the Token-based electronic prescription circulation method based on an intelligent contract, which is applied to a pharmacy node.
In this embodiment, the method for Token-based electronic prescription transfer based on an intelligent contract is used for a pharmacy node, and includes the following steps:
step S110, receiving a request for use of the electronic prescription, and acquiring drug transfer information.
Specifically, the usage request of the electronic prescription is a usage request of the electronic prescription received by the pharmacy node, and the usage request of the electronic prescription comprises drug transfer information transferred by the electronic prescription. In practical application, the patient node is a sending node for a use request of an electronic prescription, the pharmacy node is a receiving node for receiving the use request of the electronic prescription, and the pharmacy node can obtain the corresponding electronic prescription according to the use request after receiving the use request of the electronic prescription. The receiving device of the receiving node may be various types of electronic devices such as a mobile phone, a tablet computer, or a wearable device, which is not limited in this embodiment.
The method comprises the steps that drug transfer information comprises a target prescription token and a target drug token of the target prescription token, namely after a pharmacy node receives a use request of an electronic prescription, the drug transfer information is obtained, and transfer processing is conducted on the electronic prescription by means of the target prescription token in the drug transfer information and the target drug token of the target prescription token, so that transfer of the drug token between a patient node and a pharmacy node is achieved.
It should be noted that, in the present embodiment, the electronic prescription is added by the doctor node and transferred to the patient node by the doctor node, the electronic prescription includes a prescription token and a medicine token of the prescription token, the medicine token is a token for the doctor to prescribe a medicine for the patient node corresponding to the patient, the prescription token is a token for the doctor to prescribe a prescription for the patient node corresponding to the patient, and the prescription records prescription information including prescription ID, diagnosis information, prescription status, medicine list, medicine information, addition information, and transaction information.
The electronic prescription is transferred by using the target prescription token in the drug transfer information and the target drug token of the target prescription token, so that the transfer of the drug token between the patient node and the pharmacy node is realized.
And step S120, calling a first judgment logic of the prescription intelligent contract statement, and judging whether the electronic prescription has a target prescription token.
Specifically, the prescription intelligent contract is an intelligent contract which is preset at each node of the block chain and is used for processing a prescription token, and first judgment logic declared by the prescription intelligent contract is invoked to judge whether the electronic prescription has a target prescription token, the electronic prescription is a corresponding electronic prescription acquired by a pharmacy node according to a use request of the electronic prescription, the electronic prescription is also an electronic prescription sent by a doctor node received by a patient node, the patient node sends the use request of the electronic prescription to the pharmacy node according to the electronic prescription, and the pharmacy node realizes transfer of a medicine token according to the use request.
It should be noted that, the first judgment logic of the prescription intelligent contract statement is used to judge whether the electronic prescription has a target prescription token, and if the electronic prescription does not have the target prescription token in the drug transfer information, it indicates that all the drug tokens in the target prescription token have been transferred and the target prescription token has been checked and is unavailable, that is, the patient node cannot transfer the drug corresponding to the target prescription token to the pharmacy node according to the request for using the electronic prescription.
It is easy to understand that after a target prescription token corresponding to a use request of an electronic prescription is obtained, whether the electronic prescription has a target prescription token or not is judged based on a first judgment logic stated by a prescription intelligent contract, namely whether the prescription token in the electronic prescription of a patient node has the target prescription token requested for transfer is judged, and only when the prescription token in the electronic prescription has the target prescription token, transfer is performed on a medicine token in the target prescription token, so that the situations that the patient purchases medicines for many times and the pharmacy does not have the prescription to sell the medicines are avoided, and the supervision of the prescription and the medicines is greatly improved.
Step S130, if the electronic prescription has the target prescription token, transferring the target drug token in the target prescription token to the pharmacy node.
Specifically, if the electronic prescription has a target prescription token in the drug transfer information, it indicates that a drug token without transfer exists in the target prescription token, that is, the drug in the electronic prescription corresponding to the patient node has not been completed in a transaction. At the moment, the pharmacy node requests to transfer the target drug token in the target prescription token to the pharmacy node, and the transfer process of the target drug token is completed.
It should be noted that, in order to ensure that the target drug token is not repeatedly transferred by the patient node in each transfer process, the corresponding target drug token needs to be transferred to the pharmacy node every time the target drug token is transferred, whether the target prescription token where the target drug token is located still has the drug token is judged after the transfer, and if the target prescription token does not have the drug token, the target prescription token is verified and cancelled, so that the patient node does not have the corresponding target drug token in the electronic prescription during the next drug transfer, and the possibility that the patient purchases the drug for many times is avoided.
In the embodiment, a Token-based electronic prescription circulation method based on an intelligent contract is provided, and the method is used for a pharmacy node and is used for acquiring drug transfer information according to a use request of an electronic prescription; calling a first judgment logic of a prescription intelligent contract statement to judge whether the electronic prescription has a target prescription token; if the electronic prescription has the target prescription token, transferring the target drug token in the target prescription token to the pharmacy node. In the embodiment, the block chain is utilized, the corresponding target drug token is transferred to the pharmacy node according to the obtained using request of the electronic prescription, the circulation transaction of the drug token and the prescription token among the doctor node, the patient node and the pharmacy node is realized, the authenticity of the electronic prescription is ensured, the circulation efficiency of the electronic prescription is improved, the traceability is provided for the transaction of the drug, and the efficient supervision in the circulation process of the electronic prescription is realized.
For convenience of understanding, referring to fig. 3, fig. 3 is a schematic flow chart of a second embodiment of the intelligent contract-based Token-based electronic prescription forwarding method for a pharmacy node according to the present invention. Based on the first embodiment that the Token-based electronic prescription streaming method based on the intelligent contract shown in fig. 2 is applied to a pharmacy node, this embodiment provides a specific implementation scheme for transferring a target drug Token in a target prescription Token to the pharmacy node if the electronic prescription has the target prescription Token, which is specifically as follows:
step S131, if the electronic prescription has the target prescription token, determining whether the target medicine token of the target prescription token is in a tradable state.
Specifically, if the electronic prescription has a target prescription token in the drug transfer information, it indicates that a drug token without transfer exists in the target prescription token, that is, the drug in the electronic prescription corresponding to the patient node has not been completed in a transaction. At the moment, the pharmacy node requests to transfer the target drug token in the target prescription token to the pharmacy node, and the transfer process of the target drug token is completed.
It should be noted that, when transferring the target drug token of the target prescription token to the pharmacy node, it is also necessary to determine whether the target drug token of the target prescription token is in a tradable state, where the tradable state is that the number of the target drug tokens is legal and has not been used yet. If the number of the target medicine tokens of the target prescription token is legal and exists, the medicine corresponding to the target medicine token is judged not to be obtained by the patient node transaction.
It is easy to understand that, whether the target drug token of the target prescription token is in a tradable state or not is judged, whether the target prescription token exists or not is searched in the target prescription token according to the target prescription token provided by the patient node by calling a prescription intelligent contract, and if the target prescription token exists and the quantity is legal, the target prescription token is in a tradable state.
And S132, if so, calling a drug processing logic declared by the intelligent drug contract, and transferring the target drug token to the pharmacy node.
Specifically, in this embodiment, if there is a target prescription token in the drug transfer information in the electronic prescription, it indicates that there is a drug token that has not been transferred in the target prescription token, that is, the drug in the electronic prescription corresponding to the patient node has not been completed in the transaction. And meanwhile, the target medicine token of the target prescription token is in a transactable state, and the target medicine token is transferred to the pharmacy node.
It should be noted that, the drug processing logic of the drug intelligent contract statement is used for transferring the drug token, that is, transferring the drug token from one user node to another user node.
In this embodiment, a specific implementation is provided for transferring the target drug token in the target prescription token to the pharmacy node if the electronic prescription has the target prescription token. And transferring the target medicine token to the pharmacy node if the target medicine token of the target prescription token is in a tradable state. The possibility that the patient purchases the medicine for many times is avoided, and the supervision effect of the electronic prescription is improved.
For convenience of understanding, an embodiment of the present invention provides a Token-based electronic prescription circulation method based on an intelligent contract, and referring to fig. 4, fig. 4 is a schematic flow diagram of a first embodiment of the Token-based electronic prescription circulation method based on an intelligent contract, which is applied to a doctor node.
In this embodiment, the Token-based electronic prescription circulation method based on the intelligent contract is used for a doctor node, and includes the following steps:
step S210, receiving a prescription generation request; wherein the prescription generation request includes personal information of a doctor.
Specifically, the prescription generation request is a request to generate an electronic prescription received by the doctor node, the request to generate the electronic prescription including personal information of the doctor. In practical application, a doctor node is a receiving node for generating a request for a prescription and is also a sending node for an electronic prescription, the electronic prescription comprises a prescription token and a medicine token sent by a doctor, and the electronic prescription is used for being sent to a patient node by the doctor node so that the patient node can transfer the medicine token according to the electronic prescription. The receiving device of the doctor node may be various types of electronic devices such as a mobile phone, a tablet computer, or a wearable device, which is not limited in this embodiment.
It should be noted that, in the present embodiment, the electronic prescription is added by the doctor node and transferred to the patient node by the doctor node, the electronic prescription includes a prescription token and a medicine token of the prescription token, the medicine token is a token for the doctor to prescribe a medicine for the patient node corresponding to the patient, the prescription token is a token for the doctor to prescribe a prescription for the patient node corresponding to the patient, and the prescription records prescription information including prescription ID, diagnosis information, prescription status, medicine list, medicine information, addition information, and transaction information.
It is easy to understand that the doctor node judges whether the doctor has the prescription token distribution authority or not according to the received prescription generation request, and supervises the prescription qualification, thereby improving the supervision of prescription drugs.
And step S220, calling a second judgment logic of the prescription intelligent contract statement, and judging whether the doctor has the increased distribution authority or not according to the personal information.
Specifically, in this embodiment, after obtaining the personal information of the doctor in the prescription generation request, the second judgment logic declared by the prescription intelligent contract is invoked to judge whether the doctor has the authority corresponding to the electronic prescription addition, the prescription intelligent contract is an intelligent contract which is preset at each node of the blockchain and is used for processing the prescription token, and the second judgment logic declared by the prescription intelligent contract is invoked to judge whether the doctor has the authority of the electronic prescription addition, the electronic prescription is also an electronic prescription sent by the doctor node to the patient node, the patient node sends a use request of the electronic prescription to the pharmacy node according to the electronic prescription, and the pharmacy node realizes the transfer of the drug token according to the use request.
It should be noted that, the second judgment logic of the prescription intelligent contract statement is used for judging whether the doctor has the issuing-increasing authority of the corresponding electronic prescription, and if the doctor does not have the issuing-increasing authority of the electronic prescription, it indicates that the electronic prescription issued by the doctor is an illegal electronic prescription, and both the prescription token and the medicine token corresponding to the electronic prescription are unavailable, so that if the issuing-increasing authority is not available, the action of generating the electronic prescription according to the prescription generation request is terminated.
It is easy to understand that after receiving the prescription generating request, the personal information of the doctor included in the prescription generating request is obtained, the second judgment logic declared by the prescription intelligent contract is invoked for the personal information of the doctor, so as to judge whether the doctor has the authority of adding the corresponding electronic prescription, and if the doctor does not have the authority of adding the corresponding electronic prescription, the action of generating the electronic prescription is terminated. The prescription qualification is supervised, and the supervision of prescription drugs is further improved.
Step S230, if the doctor has the reissue authority, generating an electronic prescription; wherein the electronic prescription includes a prescription token and a drug token for the prescription token.
Specifically, if the doctor has the authority to add and distribute the electronic prescription, the doctor indicates that the electronic prescription added and distributed by the doctor is a legal electronic prescription, and executes an action of generating the electronic prescription, wherein the generated electronic prescription includes a prescription token and a medicine token of the prescription token, and further includes prescription information such as a diagnosis result of the corresponding patient and a medication suggestion of each medicine, so that the patient node can know the diagnosis result and the medication suggestion given by the doctor when receiving the electronic prescription.
The electronic prescription comprises a prescription token and a medicine token of the prescription token, and the prescription token and the medicine token are used for sending a use request of the electronic prescription to a pharmacy node after the electronic prescription is received by a patient node, further obtaining medicine transfer information by the pharmacy node after the use request of the electronic prescription is received, and transferring the electronic prescription by using a target prescription token and the target medicine token of the target prescription token in the medicine transfer information so as to realize the transfer of the medicine token between the patient node and the pharmacy node.
In this embodiment, a Token-based electronic prescription circulation method based on an intelligent contract is provided, where the method is used for a doctor node to receive a prescription generation request; wherein the prescription generation request includes personal information of a doctor; calling a second judgment logic of a prescription intelligent contract statement, and judging whether the doctor has the reissue authority or not according to the personal information; if the doctor has the increased issuing authority, generating an electronic prescription; wherein the electronic prescription includes a prescription token and a drug token. In the embodiment, the block chain is utilized, the electronic prescription comprising the prescription token and the medicine token is generated according to the received prescription generation request, the prescription is used for the patient node to transfer the corresponding target medicine token to the pharmacy node, the circulation transaction of the medicine token and the prescription token among the doctor node, the patient node and the pharmacy node is realized, the authenticity of the electronic prescription is ensured, the electronic prescription circulation efficiency is improved, the traceability is provided for the medicine transaction, and the efficient supervision in the electronic prescription circulation process is realized.
For convenience of understanding, the intelligent contract-based Token-based electronic prescription circulation method of the present invention is applied to the first embodiment of the doctor node, and the intelligent contract-based Token-based electronic prescription circulation method of the present invention is applied to the second embodiment of the doctor node. Referring to fig. 5, fig. 5 is a schematic flow chart of a second embodiment of the method for transferring a Token-based electronic prescription to a doctor node according to the present invention. The embodiment provides a specific implementation scheme for generating the electronic prescription if the doctor has the reissue authority, which is specifically as follows:
and S231, if the doctor has the reissue authority, calling prescription token generation logic declared by the prescription intelligent contract, and generating a prescription token according to the prescription generation request.
Specifically, after the second judgment logic of the prescription intelligent contract statement is called, whether the doctor has the increased issuing authority is judged according to the personal information, if the doctor is judged to have the increased issuing authority, the prescription token generation logic of the prescription intelligent contract statement is called, and the prescription token corresponding to the prescription generation request is obtained by using the prescription token generation logic.
It is easy to understand that the prescription intelligent contract is an intelligent contract which is preset at each node of the block chain and is used for processing prescription tokens, prescription token generation logic declared by the prescription intelligent contract is called, so that the prescription token generation logic is used for obtaining the prescription token corresponding to the prescription generation request after the doctor is judged to have the prescription adding authority according to the prescription generation request received by the doctor node, the prescription token is used for sending a use request of the electronic prescription to the pharmacy node according to the prescription token in the electronic prescription after the patient node receives the electronic prescription, and further the pharmacy node realizes the transfer of the medicine token according to the use request.
And step S232, calling a drug token generation logic of the intelligent contract statement of the drug, and generating a drug token according to the prescription generation request.
Specifically, after a prescription token generation logic of a prescription intelligent contract statement is called and a prescription token is generated according to the prescription generation request, the medicine token generation logic of a medicine intelligent contract statement is continuously called, and a medicine token corresponding to the prescription generation request is obtained by utilizing the medicine token generation logic.
It is easy to understand that the intelligent drug contract is an intelligent contract which is preset at each node of the block chain and is used for processing drug tokens, the drug token generation logic declared by the intelligent drug contract is called, the intelligent drug contract is used for generating a request according to a prescription received by a doctor node, after the doctor is judged to have prescription adding authority, a drug token corresponding to the prescription generation request is obtained, the drug token is used for sending a use request of an electronic prescription to a pharmacy node according to the prescription token in the electronic prescription after a patient node receives the electronic prescription, and then the pharmacy node realizes transfer of the drug token according to the use request.
In this embodiment, a specific implementation scheme for generating an electronic prescription if the doctor has the issue-adding authority is provided. The method comprises the steps that a prescription generation logic stated in a prescription intelligent contract and a medicine generation logic stated in a medicine intelligent contract are called to generate a medicine token corresponding to a prescription generation request, so that a patient node sends a use request of an electronic prescription to a pharmacy node through the prescription token and the medicine token, and the pharmacy node transfers the medicine token according to the prescription token and the medicine token. The phenomenon that no prescription is sold is avoided, and the supervision effect of the electronic prescription is improved.
Referring to fig. 6, fig. 6 is a structural block diagram of a pharmacy node provided by the present invention.
As shown in fig. 6, the pharmacy node according to the embodiment of the present invention includes:
an obtaining means 110 for receiving a request for use of the electronic prescription and obtaining drug transfer information; wherein the drug transfer information comprises a target prescription token and a target drug token for the target prescription token;
the first judgment device 120 is used for calling a first judgment logic of the prescription intelligent contract statement and judging whether the electronic prescription has a target prescription token;
a transfer device 130 for transferring a target drug token of the target prescription tokens to the pharmacy node if the electronic prescription has the target prescription token.
In one embodiment, the diversion device 130 is further configured to determine whether a target drug token of the target prescription token is in a tradable state if the electronic prescription has the target prescription token; if so, calling a drug processing logic declared by a drug intelligent contract, and transferring the target drug token to the pharmacy node.
The pharmacy node provided by the embodiment acquires drug transfer information according to the use request of the electronic prescription; calling a first judgment logic of a prescription intelligent contract statement to judge whether the electronic prescription has a target prescription token; if the electronic prescription has the target prescription token, transferring the target drug token in the target prescription token to the pharmacy node. In the embodiment, the block chain is utilized, the corresponding target drug token is transferred to the pharmacy node according to the obtained using request of the electronic prescription, the circulation transaction of the drug token and the prescription token among the doctor node, the patient node and the pharmacy node is realized, the authenticity of the electronic prescription is ensured, the circulation efficiency of the electronic prescription is improved, the traceability is provided for the transaction of the drug, and the efficient supervision in the circulation process of the electronic prescription is realized.
Referring to fig. 7, fig. 7 is a structural block diagram of a doctor node provided in the present invention.
As shown in fig. 7, the doctor node according to the embodiment of the present invention includes:
receiving means 210 for receiving a prescription generation request; wherein the prescription generation request includes personal information of a doctor;
the second judgment device 220 is used for calling a second judgment logic of the prescription intelligent contract statement and judging whether the doctor has the reissue authority or not according to the personal information;
a generating device 230, configured to generate an electronic prescription if the doctor has the reissue authority; wherein the electronic prescription includes a prescription token and a drug token.
In one embodiment, the generating device 230 is further configured to invoke prescription generating logic of a prescription intelligent contract declaration if the doctor has the issuance authority, and generate a prescription token according to the prescription generating request; and calling a drug generation logic of a drug intelligent contract statement, and generating a drug token according to the prescription generation request.
The pharmacy node provided by the embodiment receives a prescription generation request; wherein the prescription generation request includes personal information of a doctor; calling a second judgment logic of a prescription intelligent contract statement, and judging whether the doctor has the reissue authority or not according to the personal information; if the doctor has the increased issuing authority, generating an electronic prescription; wherein the electronic prescription includes a prescription token and a drug token. In the embodiment, the block chain is utilized, the electronic prescription comprising the prescription token and the medicine token is generated according to the received prescription generation request, the prescription is used for the patient node to transfer the corresponding target medicine token to the pharmacy node, the circulation transaction of the medicine token and the prescription token among the doctor node, the patient node and the pharmacy node is realized, the authenticity of the electronic prescription is ensured, the electronic prescription circulation efficiency is improved, the traceability is provided for the medicine transaction, and the efficient supervision in the electronic prescription circulation process is realized.
Other embodiments or specific implementation manners of the block chain node of the present invention may refer to the above method embodiments, and are not described herein again.
In addition, the embodiment of the present invention further provides a storage medium, where an intelligent contract-based Token-based electronic prescription circulation program is stored, and when executed by a processor, the intelligent contract-based Token-based electronic prescription circulation program implements the steps of the intelligent contract-based Token-based electronic prescription circulation method for a pharmacy node. Therefore, a detailed description thereof will be omitted. In addition, the beneficial effects of the same method are not described in detail. For technical details not disclosed in embodiments of the computer-readable storage medium referred to in the present application, reference is made to the description of embodiments of the method of the present application. It is determined that, by way of example, the program instructions may be deployed to be executed on one computing device or on multiple computing devices at one site or distributed across multiple sites and interconnected by a communication network.
In addition, the embodiment of the present invention further provides a storage medium, where an intelligent contract-based Token-based electronic prescription circulation program is stored, and when executed by a processor, the intelligent contract-based Token-based electronic prescription circulation program implements the steps of the intelligent contract-based Token-based electronic prescription circulation method for a doctor node. Therefore, a detailed description thereof will be omitted. In addition, the beneficial effects of the same method are not described in detail. For technical details not disclosed in embodiments of the computer-readable storage medium referred to in the present application, reference is made to the description of embodiments of the method of the present application. It is determined that, by way of example, the program instructions may be deployed to be executed on one computing device or on multiple computing devices at one site or distributed across multiple sites and interconnected by a communication network.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. The storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), or the like.
It should be noted that the above-described embodiments of the apparatus are merely schematic, where the units described as separate parts may or may not be physically separate, and the parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. In addition, in the drawings of the embodiment of the apparatus provided by the present invention, the connection relationship between the modules indicates that there is a communication connection between them, and may be specifically implemented as one or more communication buses or signal lines. One of ordinary skill in the art can understand and implement it without inventive effort.
Through the above description of the embodiments, those skilled in the art will clearly understand that the present invention may be implemented by software plus necessary general hardware, and may also be implemented by special hardware including special integrated circuits, special CPUs, special memories, special components and the like. Generally, functions performed by computer programs can be easily implemented by corresponding hardware, and specific hardware structures for implementing the same functions may be various, such as analog circuits, digital circuits, or dedicated circuits. However, the implementation of a software program is a more preferable embodiment for the present invention. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, where the computer software product is stored in a readable storage medium, such as a floppy disk, a usb disk, a removable hard disk, a Read-only memory (ROM), a random-access memory (RAM), a magnetic disk or an optical disk of a computer, and includes instructions for enabling a computer device (which may be a personal computer, a server, or a network device) to execute the methods according to the embodiments of the present invention.
Claims (10)
1. A Token-based electronic prescription circulation method based on an intelligent contract is characterized by being used for a pharmacy node, and comprises the following steps:
receiving a use request of an electronic prescription and acquiring drug transfer information; wherein the drug transfer information comprises a target prescription token and a target drug token for the target prescription token;
calling a first judgment logic of a prescription intelligent contract statement to judge whether the electronic prescription has a target prescription token;
if the electronic prescription has the target prescription token, transferring the target drug token in the target prescription token to the pharmacy node.
2. The intelligent contract-based Token-based electronic prescription flow method according to claim 1, wherein the step of transferring the target drug Token in the target prescription Token to the pharmacy node if the electronic prescription has the target prescription Token comprises:
if the electronic prescription has the target prescription token, judging whether the target medicine token of the target prescription token is in a tradable state;
if so, calling a drug processing logic declared by a drug intelligent contract, and transferring the target drug token to the pharmacy node.
3. A Token-based electronic prescription circulation method based on an intelligent contract is characterized by being used for a doctor node and comprising the following steps:
receiving a prescription generation request; wherein the prescription generation request includes personal information of a doctor;
calling a second judgment logic of a prescription intelligent contract statement, and judging whether the doctor has the reissue authority or not according to the personal information;
if the doctor has the increased issuing authority, generating an electronic prescription; wherein the electronic prescription includes a prescription token and a drug token for the prescription token.
4. The intelligent contract-based Token-based electronic prescription flow method according to claim 3, wherein the step of generating the electronic prescription if the doctor has the issuing authority includes:
if the doctor has the reissue authority, calling prescription token generation logic declared by a prescription intelligent contract, and generating a prescription token according to the prescription generation request;
and calling a drug token generation logic of a drug intelligent contract statement, and generating a drug token according to the prescription generation request.
5. A pharmacy node, the pharmacy node comprising:
the acquisition device is used for receiving a use request of the electronic prescription and acquiring the drug transfer information; wherein the drug transfer information comprises a target prescription token and a target drug token for the target prescription token;
the first judgment device is used for calling first judgment logic of the prescription intelligent contract statement and judging whether the electronic prescription has a target prescription token or not;
a transfer device for transferring a target drug token of the target prescription tokens to the pharmacy node if the electronic prescription has the target prescription token.
6. A doctor node, characterized in that the doctor node comprises:
receiving means for receiving a prescription generation request; wherein the prescription generation request includes personal information of a doctor;
the second judgment device is used for calling a second judgment logic of the prescription intelligent contract statement and judging whether the doctor has the reissue authority or not according to the personal information;
the generating device is used for generating the electronic prescription if the doctor has the reissue authority; wherein the electronic prescription includes a prescription token and a drug token for the prescription token.
7. A blockchain, comprising a pharmacy node and a doctor node.
8. A Token-based electronic prescription flowing apparatus based on an intelligent contract, the apparatus comprising: a memory, a processor and a smart contract-based Token-based electronic prescription flow program stored on the memory and executable on the processor, the smart contract-based Token-based electronic prescription flow program when executed by the processor implementing the steps of the smart contract-based Token-based electronic prescription flow method as claimed in any one of claims 1 to 2.
9. A Token-based electronic prescription flowing apparatus based on an intelligent contract, the apparatus comprising: a memory, a processor and a smart contract-based Token-based electronic prescription flow program stored on the memory and executable on the processor, the smart contract-based Token-based electronic prescription flow program when executed by the processor implementing the steps of the smart contract-based Token-based electronic prescription flow method as claimed in any one of claims 3 to 4.
10. A storage medium, characterized in that an intelligent contract-based Token-based electronic prescription circulation program is stored on the storage medium, and when executed by a processor, the intelligent contract-based Token-based electronic prescription circulation program realizes the steps of the intelligent contract-based Token-based electronic prescription circulation method according to any one of claims 1 to 4.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110900545.8A CN113723955A (en) | 2021-08-06 | 2021-08-06 | Token-based electronic prescription transfer method based on intelligent contracts |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110900545.8A CN113723955A (en) | 2021-08-06 | 2021-08-06 | Token-based electronic prescription transfer method based on intelligent contracts |
Publications (1)
Publication Number | Publication Date |
---|---|
CN113723955A true CN113723955A (en) | 2021-11-30 |
Family
ID=78675034
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110900545.8A Pending CN113723955A (en) | 2021-08-06 | 2021-08-06 | Token-based electronic prescription transfer method based on intelligent contracts |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113723955A (en) |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110011996A (en) * | 2019-03-26 | 2019-07-12 | 阿里巴巴集团控股有限公司 | Application authorization method and device and electronic equipment based on block chain |
CN112116979A (en) * | 2020-08-11 | 2020-12-22 | 重庆华医康道科技有限公司 | Electronic prescription circulation safety working method based on block chain ledger protocol |
-
2021
- 2021-08-06 CN CN202110900545.8A patent/CN113723955A/en active Pending
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110011996A (en) * | 2019-03-26 | 2019-07-12 | 阿里巴巴集团控股有限公司 | Application authorization method and device and electronic equipment based on block chain |
CN112116979A (en) * | 2020-08-11 | 2020-12-22 | 重庆华医康道科技有限公司 | Electronic prescription circulation safety working method based on block chain ledger protocol |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
Ainsworth et al. | A comparison of two delivery modalities of a mobile phone-based assessment for serious mental illness: native smartphone application vs text-messaging only implementations | |
Gottlieb et al. | Clinical practice guidelines at an HMO: development and implementation in a quality improvement model. | |
CN109493939A (en) | A kind of Drug use administration method, server and computer storage medium | |
CN105589336A (en) | Multi-Processor Device | |
CN106560787A (en) | MVVM-framework-based view page displaying method and apparatus | |
CN104574065A (en) | Whole-process medical convenient mobile payment method and system | |
EP4060465A2 (en) | Method and apparatus for controlling terminal, device and storage medium | |
CN113110963A (en) | Service processing method, service processing device, electronic equipment and readable storage medium | |
CN109509527A (en) | A kind of drug allots method, block chain node device and system | |
CN109255721A (en) | Insurance recommended method, equipment, server and readable medium based on Cost Forecast | |
CN110750364A (en) | Multi-user online editing management method, device and system | |
CN107506571A (en) | A kind of medicine thing service system and its application process | |
TW202125218A (en) | Resource settlement method and device, electronic equipment and storage medium | |
CN108256852A (en) | Information processing method, device and information processing system | |
CN109544372B (en) | Artificial intelligence-based outpatient chronic disease qualification monitoring method and related device | |
CN104375963B (en) | Control system and method based on buffer consistency | |
CN104407995B (en) | Control system based on buffer consistency and method | |
CN113723955A (en) | Token-based electronic prescription transfer method based on intelligent contracts | |
CN111967878A (en) | Red packet sending and distributing method, device and equipment | |
CN110033844A (en) | Drug use administration system based on intelligent medical box | |
Xing-Hua et al. | Design and development of tele-diagnosis system of medical image based on mobile terminal | |
CN110532810A (en) | Information processing method, device, electronic equipment and readable storage medium storing program for executing | |
CN110610363B (en) | Method, device and medium for providing service through self-management control identity information | |
CN114119163A (en) | Method and device for executing medicine purchase business | |
CN207250147U (en) | A kind of system of slow disease patient self-management |
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 |