CN109543458A - A kind of prescription data method of calibration, equipment and server based on block chain - Google Patents

A kind of prescription data method of calibration, equipment and server based on block chain Download PDF

Info

Publication number
CN109543458A
CN109543458A CN201811323418.0A CN201811323418A CN109543458A CN 109543458 A CN109543458 A CN 109543458A CN 201811323418 A CN201811323418 A CN 201811323418A CN 109543458 A CN109543458 A CN 109543458A
Authority
CN
China
Prior art keywords
prescription data
block
data block
everywhere
patient
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
Application number
CN201811323418.0A
Other languages
Chinese (zh)
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.)
Shenzhen Ping An Medical Health Technology Service Co Ltd
Original Assignee
Ping An Medical and Healthcare Management 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 Ping An Medical and Healthcare Management Co Ltd filed Critical Ping An Medical and Healthcare Management Co Ltd
Priority to CN201811323418.0A priority Critical patent/CN109543458A/en
Publication of CN109543458A publication Critical patent/CN109543458A/en
Priority to PCT/CN2019/095055 priority patent/WO2020093722A1/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/64Protecting data integrity, e.g. using checksums, certificates or signatures

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Theoretical Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • Bioethics (AREA)
  • General Health & Medical Sciences (AREA)
  • Computer Hardware Design (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Medical Treatment And Welfare Office Work (AREA)

Abstract

The embodiment of the invention discloses a kind of prescription data method of calibration, equipment and servers based on block chain, this method comprises: obtaining the prescription data block for each patient that diagnosis and treatment terminal is sent, and prescription data block chain is generated according to the prescription data block of each patient;When receiving the prescription data acquisition request that prescription data of the third party for target patient is sent, number formulary everywhere in the correspondence of target patient described in the prescription data block chain is verified according to block;If verification failure, it is determined that there are the prescription data blocks that prescription data is illegally distorted according in block for number formulary everywhere in target patient described in the prescription data block chain is corresponding, and refuse the third-party prescription data acquisition request;Determine the target patient it is corresponding everywhere in number formulary according to the target prescription data block illegally distorted in block, and to the third party send prompt information.In this way, the safety of prescription data is improved.

Description

A kind of prescription data method of calibration, equipment and server based on block chain
Technical field
The present invention relates to field of computer technology more particularly to a kind of prescription data method of calibration based on block chain, set Standby and server.
Background technique
Currently, With the fast development of internet, various data informations can be stored by way of network, with Just user can more easily obtain required data.Such as the prescription data in medical domain, diagnosis and treatment terminal by acquiring in real time The prescription data information of each patient, and it is uploaded to server, to facilitate each patient of third parties' user query such as medical staff, patient Prescription data information.However, this mode is all carrying out operation related with data all the time, including data acquisition, The links such as data transmission and data storage, data are easy by malicious attack and illegally to distort operation in each link.Cause This, the safety for how improving data is extremely important.
Summary of the invention
The embodiment of the present invention provides a kind of prescription data method of calibration, equipment and server based on block chain, can be improved The safety of prescription data.
In a first aspect, the embodiment of the invention provides a kind of prescription data method of calibration based on block chain, this method packet It includes:
The prescription data block for each patient that diagnosis and treatment terminal is sent is obtained, and is generated according to the prescription data block of each patient Prescription data block chain, wherein the prescription data block is that the diagnosis and treatment terminal is generated according to the prescription data of each patient, The prescription data includes any one or more in the usage and dosage of nomenclature of drug, Quantity of drugs, drug;
When receiving the prescription data acquisition request that prescription data of the third party for target patient is sent, to the place Number formulary is verified according to block everywhere in target patient described in square data block chain is corresponding;
If verification failure, it is determined that number formulary is according to area everywhere in target patient described in the prescription data block chain is corresponding There are the prescription data blocks that prescription data is illegally distorted in block, and refuse the third-party prescription data acquisition request;
Determine that number formulary is according to the target prescription data block illegally distorted in block everywhere in the target patient correspondence, and Prompt information is sent to the third party, wherein the prompt information is used to prompt the prescription of the target prescription data block Data are illegally distorted.
Further, the prescription data block includes block Hash codes, described to institute in the prescription data block chain Number formulary everywhere in target patient correspondence is stated to be verified according to block, comprising:
Obtain target patient described in the prescription data block chain it is corresponding everywhere in number formulary according to block block Hash codes;
Number formulary is according to the block Hash between the adjacent prescription data block of block everywhere in detection is corresponding with the target patient Whether code is associated;
If testing result is yes, it is determined that the verification success of the prescription data block chain;
If testing result is no, it is determined that the verification of the prescription data block chain fails.
It further, include block-identified in the prescription data block;The determination target patient is corresponding each The target prescription data block illegally distorted in prescription data block, comprising:
Number formulary is according to the block Hash between the adjacent prescription data block of block everywhere in acquisition is corresponding with the target patient Code between it is not associated at least one distort prescription data block;
It is block-identified in prescription data block according to respectively distorting, determine that number formulary is according to area everywhere in the target patient correspondence The target prescription data block illegally distorted in block.
Further, the prescription data block includes block Hash codes, is carried in the prescription data acquisition request Encryption information;It is described that number formulary everywhere in the correspondence of target patient described in the prescription data block chain is verified according to block, Include:
Obtain the encryption information carried in the prescription data acquisition request, wherein the encryption information includes that encryption is calculated Method and key;
According to the encryption information, number formulary everywhere in target patient correspondence is encrypted according to block, is generated Everywhere in the target patient is corresponding number formulary according to block verification Hash codes;
Whether corresponding with each prescription data block detect the corresponding verification Hash codes of each prescription data block The matching of block Hash codes;
If testing result is yes, it is determined that the verification success of the prescription data block chain;
If testing result is no, it is determined that the verification of the prescription data block chain fails.
It further, include block-identified in the prescription data block;The determination target patient is corresponding each The target prescription data block illegally distorted in prescription data block, comprising:
According to number formulary everywhere in target patient correspondence according to the block-identified of block, determine that the target patient is corresponding Everywhere in the verification Hash codes of each prescription data block are corresponding with the target patient number formulary according to block block Hash codes not The prescription data block matched is the target prescription data block illegally distorted.
It is further, described that prescription data block chain is generated according to the prescription data block of each patient, comprising:
Obtain the quantity of the prescription data block of each patient;
According to the quantity of the prescription data block, each patient is ranked up;
The prescription data block chain is generated according to the prescription data block after sequence.
Further, the prescription data acquisition request includes authentication information;It is described to be directed to when receiving third party After the prescription data acquisition request that the prescription data of target patient is sent, integrality school is carried out to the prescription data block chain Before testing, further includes:
According to the prescription data acquisition request, the authentication information is obtained, wherein the authentication information packet Include password, fingerprint, any one or more information in voice;
The authentication information is matched with preset authentication information;
If successful match, triggers and execute described the step of completeness check is carried out to the prescription data block chain.
Second aspect, the embodiment of the invention provides a kind of data check equipment, which includes for holding The unit of the method for the above-mentioned first aspect of row.
The third aspect, the embodiment of the invention provides a kind of server, including processor, input equipment, output equipment and Memory, the processor, input equipment, output equipment and memory are connected with each other, wherein the memory is for storing branch The computer program that data check equipment executes the above method is held, the computer program includes program instruction, the processor It is configured for calling described program instruction, the method for executing above-mentioned first aspect.
Fourth aspect, the embodiment of the invention provides a kind of computer readable storage medium, the computer storage medium It is stored with computer program, the computer program includes program instruction, and described program instruction makes institute when being executed by a processor State the method that processor executes above-mentioned first aspect.
The embodiment of the present invention, the prescription data block for each patient that the available diagnosis and treatment terminal of server is sent, and according to The prescription data block of each patient generates prescription data block chain, sends out when receiving prescription data of the third party for target patient When the prescription data acquisition request sent, to number formulary everywhere in the correspondence of target patient described in the prescription data block chain according to block It is verified, if verification failure, can determine that target patient described in the prescription data block chain is square everywhere in corresponding There are the prescription data blocks that prescription data is illegally distorted in data block, and refuse the third-party prescription data and obtain Request, and determine that number formulary is according to the target prescription data block illegally distorted in block everywhere in the target patient correspondence, and Send prompt information to the third party, in this way, avoid the prescription data block that will illegally be distorted to Third party improves the safety of data.
Detailed description of the invention
Technical solution in order to illustrate the embodiments of the present invention more clearly, below will be to needed in embodiment description Attached drawing is briefly described, it should be apparent that, drawings in the following description are some embodiments of the invention, general for this field For logical technical staff, without creative efforts, it is also possible to obtain other drawings based on these drawings.
Fig. 1 is a kind of schematic flow diagram of prescription data method of calibration based on block chain provided in an embodiment of the present invention;
Fig. 2 is the exemplary flow of another prescription data method of calibration based on block chain provided in an embodiment of the present invention Figure;
Fig. 3 is the exemplary flow of another prescription data method of calibration based on block chain provided in an embodiment of the present invention Figure;
Fig. 4 is a kind of schematic block diagram of data check equipment provided in an embodiment of the present invention;
Fig. 5 is a kind of schematic block diagram of server provided in an embodiment of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that described embodiments are some of the embodiments of the present invention, instead of all the embodiments.Based on this hair Embodiment in bright, every other implementation obtained by those of ordinary skill in the art without making creative efforts Example, shall fall within the protection scope of the present invention.
It should be appreciated that the term used in this description of the invention is merely for the sake of for the purpose of describing particular embodiments And it is not intended to limit the present invention.As description of the invention and it is used in the attached claims, unless up and down Text clearly indicates other situations, and otherwise " one " of singular, "one" and "the" are intended to include plural form.
It will be further appreciated that the term "and/or" used in description of the invention and the appended claims is Refer to any combination and all possible combinations of one or more of associated item listed, and including these combinations.
Prescription data method of calibration provided in an embodiment of the present invention based on block chain can be by a kind of data verification system It executes, the data verification system includes data check equipment and diagnosis and treatment terminal, and in certain embodiments, the data check is set It is standby to can be set on the servers such as mobile phone, computer, plate, smartwatch.In certain embodiments, the data check equipment It can establish communication connection between the diagnosis and treatment terminal, to carry out two-way communication.In certain embodiments, the data check Equipment may be mounted on server, and in certain embodiments, the data check equipment can be spatially independently of described Server.In certain embodiments, the diagnosis and treatment terminal may include: that mobile phone, computer, plate, smartwatch etc. can intelligently eventually End.
The prescription data block of collected each patient can be sent to by diagnosis and treatment terminal described in the data verification system Server, the server, can bases after the prescription data block for getting each patient that the diagnosis and treatment terminal is sent The prescription data block of each patient generates prescription data block chain, wherein the prescription data block is the diagnosis and treatment terminal root It is generated according to the prescription data of each patient, the prescription data includes in the usage and dosage of nomenclature of drug, Quantity of drugs, drug Any one or more.It is asked when server receives third party for the prescription data acquisition that the prescription data of target patient is sent When asking, the server can be carried out number formulary everywhere in the correspondence of target patient described in the prescription data block chain according to block Verification, if verification failure, it is determined that number formulary is according to block everywhere in target patient described in the prescription data block chain is corresponding The middle prescription data block illegally distorted there are prescription data, and refuse the third-party prescription data acquisition request.Institute Stating server can determine that number formulary is according to the target prescription data area illegally distorted in block everywhere in the target patient correspondence Block, and prompt information is sent to the third party, the prompt information is used to prompt the prescription of the target prescription data block Data are illegally distorted.It can be sent to third party to avoid by the prescription data illegally distorted in this way, improved The safety of data.The position finding and detection method of the embodiment of the present invention is schematically illustrated with reference to the accompanying drawing.
Referring to Figure 1, Fig. 1 is a kind of showing for prescription data method of calibration based on block chain provided in an embodiment of the present invention Meaning flow chart, as shown in Figure 1, this method can be executed by data check equipment, the data check equipment is set to server On, the specific explanations of the data check equipment are as previously mentioned, details are not described herein again.Specifically, the embodiment of the present invention is described Method includes the following steps.
S101: the prescription data block for each patient that diagnosis and treatment terminal is sent is obtained, and according to the prescription data area of each patient Block generates prescription data block chain.
In the embodiment of the present invention, the prescription data block for each patient that the available diagnosis and treatment terminal of server is sent, and root Prescription data block chain is generated according to the prescription data block of each patient.In certain embodiments, the prescription data block is institute State what diagnosis and treatment terminal was generated according to the prescription data of each patient, the prescription data includes nomenclature of drug, Quantity of drugs, drug Any one or more in usage and dosage.It in certain embodiments, include Patient identification and area in the prescription data block Block identification.
In one embodiment, the server is generating prescription data block chain according to the prescription data block of each patient When, the quantity of the prescription data block of available each patient, according to the quantity of the prescription data block, to each patient It is ranked up, generates the prescription data block chain according to the prescription data block after sequence.For example, it is assumed that the server obtains The prescription data block of n patient of diagnosis and treatment terminal transmission is got, then the server can be according to each prescription data block The size order of quantity is successively ranked up the n patient, and according to data field square everywhere in each patient of n after sequence Block generates the prescription data block chain.In this way, being conducive to server can be according to the Patient identification couple of each patient The quantity of square data block, searches prescription data, improves the search efficiency of prescription data everywhere in answering.
In one embodiment, the prescription data acquisition request includes authentication information, and the server is receiving After the prescription data acquisition request sent to third party for the prescription data of target patient, to the prescription data block chain Before carrying out completeness check, the authentication information can be obtained, wherein institute according to the prescription data acquisition request Stating authentication information includes password, fingerprint, any one or more information in voice, and by the authentication information with Preset authentication information is matched, if successful match, trigger execute it is described to the prescription data block chain into The step of row completeness check.Authentication is carried out to the third party for sending prescription data acquisition request in this way, it can To ensure third-party safety, the illegal user that the prescription data is sent to no authorized is avoided, is further ensured The safety of the prescription data.
S102: right when receiving the prescription data acquisition request that prescription data of the third party for target patient is sent Number formulary is verified according to block everywhere in target patient described in the prescription data block chain is corresponding.
In the embodiment of the present invention, obtained when receiving the prescription data that prescription data of the third party for target patient is sent When request, server can carry out school according to block to number formulary everywhere in the correspondence of target patient described in the prescription data block chain It tests.
It in one embodiment, include block Hash codes in the prescription data block, the server can be according to institute It states block Hash codes and number formulary everywhere in the correspondence of target patient described in the prescription data block chain is verified according to block.
It in one embodiment, include that block Hash codes and the prescription data obtain in the prescription data block Encryption information is carried in request, the server can be according to the block Hash codes and the encryption information, to the place Number formulary is verified according to block everywhere in target patient described in square data block chain is corresponding.
S103: if verification failure, it is determined that side everywhere in target patient described in the prescription data block chain is corresponding There are the prescription data blocks that prescription data is illegally distorted in data block, and refuse the third-party prescription data and obtain Request.
In the embodiment of the present invention, if everywhere in server is corresponding to target patient described in the prescription data block chain The verification of square data block fails, then can determine number formulary everywhere in the correspondence of target patient described in the prescription data block chain According in block, there are the prescription data blocks that prescription data is illegally distorted, and refuse the third-party prescription data acquisition and ask It asks.
S104: determine that number formulary is according to the target prescription data area illegally distorted in block everywhere in the target patient correspondence Block, and prompt information is sent to the third party.
In the embodiment of the present invention, the server is determining that target patient described in the prescription data block chain is corresponding After the prescription data block illegally distorted in each prescription data block there are prescription data, the target patient can be determined Number formulary sends prompt letter according to the target prescription data block illegally distorted in block, and to the third party everywhere in correspondence Breath, wherein the prompt information is for prompting the prescription data of the target prescription data block illegally to be distorted.
In the embodiment of the present invention, the prescription data block for each patient that the available diagnosis and treatment terminal of server is sent, and root According to each patient prescription data block generate prescription data block chain, when receive third party be directed to target patient prescription data When the prescription data acquisition request of transmission, to number formulary everywhere in the correspondence of target patient described in the prescription data block chain according to area Block is verified, if verification failure, can be determined everywhere in the correspondence of target patient described in the prescription data block chain There are the prescription data blocks that prescription data is illegally distorted in square data block, and refuse the third-party prescription data and obtain Take request, and determine the target patient it is corresponding everywhere in number formulary according to the target prescription data block illegally distorted in block, And prompt information is sent to the third party, in this way, avoids the prescription data block that will be illegally distorted and occur To third party, the safety of data is improved.
Fig. 2 is referred to, Fig. 2 is another prescription data method of calibration based on block chain provided in an embodiment of the present invention Schematic flow diagram, as shown in Fig. 2, this method can be executed by data check equipment, the specific explanations of the data check equipment are such as Preceding described, details are not described herein again.The difference of the embodiment of the present invention and embodiment described in above-mentioned Fig. 1 is that the embodiment of the present invention is A kind of implementation process that number formulary is verified according to block everywhere in corresponding to target patient described in the prescription data block chain It is described in detail.Specifically, described method includes following steps for the embodiment of the present invention.
S201: the prescription data block for each patient that diagnosis and treatment terminal is sent is obtained, and according to the prescription data area of each patient Block generates prescription data block chain.
In the embodiment of the present invention, the prescription data block for each patient that the available diagnosis and treatment terminal of server is sent, and root Prescription data block chain is generated according to the prescription data block of each patient.Wherein, the prescription data block explanation as previously mentioned, And the explanation of the prescription data is as previously mentioned, details are not described herein again.
S202: it when receiving the prescription data acquisition request that prescription data of the third party for target patient is sent, obtains Take target patient described in the prescription data block chain it is corresponding everywhere in number formulary according to block block Hash codes.
In the embodiment of the present invention, obtained when receiving the prescription data that prescription data of the third party for target patient is sent When request, everywhere in target patient described in the available prescription data block chain of server is corresponding number formulary according to block area Block hash code.In certain embodiments, the block Hash codes are the servers at according to each prescription data block generation Before square data block chain, the prescription data block is encrypted according to preset Encryption Algorithm.In certain realities It applies in example, the preset Encryption Algorithm can be preset hash algorithm, and the embodiment of the present invention calculates the preset encryption Method does not do specific restriction.For example, it is assumed that the Patient identification for the target patient that the server is got is a, the then service Everywhere in target patient a described in the available prescription data block chain of device is corresponding number formulary according to block block Hash codes.
S203: number formulary is according to the block between the adjacent prescription data block of block everywhere in detection is corresponding with the target patient Whether Hash codes are associated, if testing result be it is yes, then follow the steps S204, if testing result be it is no, then follow the steps S205。
In the embodiment of the present invention, server is to get target patient described in the prescription data block chain corresponding each After the block Hash codes of prescription data block, it is adjacent according to block to can detecte number formulary everywhere in corresponding with the target patient Whether the block Hash codes between prescription data block are associated, if testing result be it is yes, then follow the steps S204, if detection As a result be it is no, then follow the steps S205.
In one embodiment, it is described it is corresponding with the target patient everywhere in the number formulary prescription data area adjacent according to block Block may include everywhere in the target patient is corresponding number formulary also may include and number formulary everywhere in the target patient according to block According to the prescription data block of other adjacent patients of block.
In one embodiment, the server can detecte the corresponding each adjacent prescription data block of the target patient Between block Hash codes whether be associated, and the detection target patient it is corresponding everywhere in number formulary according to block and adjacent institute Whether state in prescription data block chain is associated between other corresponding prescription data blocks.
It can specifically illustrate, it is assumed that the Patient identification for the target patient that the server is got is a, and described It includes 1 that target patient a is corresponding, 2,3,, n, n continuous prescription data blocks, and the prescription number with the target patient a According to 1 adjacent prescription data block x of block 1, and 1 prescription adjacent with the prescription data block n of the target patient a Data block y.Then the server can detecte the target patient a it is corresponding 1,2,3,, n, n continuous prescriptions Whether the block Hash codes between data block are associated, and the detection prescription data block x and prescription data block 1 it Between block Hash codes whether be associated, and the block between the detection prescription data block y and prescription data block n is breathed out Whether uncommon code is associated.
It in one embodiment, include Patient identification in the prescription data block, the server is determining the mesh When number formulary is according to the target prescription data block illegally distorted in block everywhere in mark patient is corresponding, the available and target Everywhere in patient is corresponding number formulary according between the block Hash codes between the adjacent prescription data block of block it is not associated at least one Prescription data block is distorted, and block-identified in prescription data block according to respectively distorting, determines that the target patient is corresponding The target prescription data block illegally distorted in each prescription data block.
In certain embodiments, the prescription data block of distorting may include number formulary everywhere in the target patient is corresponding It also may include the one or more places adjacent with the prescription data of the target patient according to any one or more in block Square data block.
It is specific it can be demonstrated that assume that the Patient identification for the target patient that the server is got is a, and institute State target patient a it is corresponding include 1,2,3,, n, n continuous prescription data blocks, and the area of the n prescription data block Block identification corresponds to 1,2,3,, n, and the 1 prescription data block adjacent with the prescription data block 1 of the target patient a It is block-identified be x, and the block mark of the 1 prescription data block adjacent with the prescription data block n of the target patient a Knowing is y.If the server gets the prescription data area adjacent according to block of number formulary everywhere in corresponding with the target patient a Between block Hash codes between block it is not associated distort prescription data block include prescription data block x, prescription data block 2, Prescription data block 3, then the server can be block-identified in prescription data block according to respectively distorting, and determines the target Number formulary is prescription data block 2 and prescription number according to the target prescription data block illegally distorted in block everywhere in patient is corresponding According to block 3.
S204: the verification success of the prescription data block chain is determined.
In the embodiment of the present invention, if server detects that number formulary is adjacent according to block everywhere in corresponding with the target patient Prescription data block between block Hash codes it is associated, then can determine the verification success of the prescription data block chain.
In one embodiment, the server, can be with after the verification success for determining the prescription data block chain Number formulary everywhere in target patient correspondence is sent to the third party according to block.
S205: it determines the verification failure of the prescription data block chain, and executes step S206.
In the embodiment of the present invention, if server detects that number formulary is adjacent according to block everywhere in corresponding with the target patient Prescription data block between there are unrelated block Hash codes, then can determine the prescription data block chain verification lose It loses, and after verification failure, executes step S206.
S206: determine target patient described in the prescription data block chain it is corresponding everywhere in number formulary according to there is place in block Number formulary refuses the third-party prescription data acquisition request according to the prescription data block illegally distorted.
In the embodiment of the present invention, server can determine institute after the verification failure to the prescription data block chain State target patient described in prescription data block chain it is corresponding everywhere in number formulary according to illegally being distorted in block there are prescription data Prescription data block, and refuse the third-party prescription data acquisition request.In this way, it avoids illegally being distorted Prescription data block afterwards is sent to third party.
S207: determine that number formulary is according to the target prescription data area illegally distorted in block everywhere in the target patient correspondence Block, and prompt information is sent to the third party.
In the embodiment of the present invention, server can determine that number formulary is according to illegal in block everywhere in the target patient correspondence The target prescription data block distorted, and prompt information is sent to the third party, wherein the prompt information is for prompting institute The prescription data for stating target prescription data block is illegally distorted.
It is specific it can be demonstrated that assume that the Patient identification for the target patient that the server is got is a, and institute State target patient a it is corresponding include 1,2,3,, n, n continuous prescription data blocks, and the area of the n prescription data block Block identification corresponds to 1,2,3,, n, and the 1 prescription data block adjacent with the prescription data block 1 of the target patient a It is block-identified be x, and the block mark of the 1 prescription data block adjacent with the prescription data block n of the target patient a Knowing is y.If the server determines that number formulary is according to the target illegally distorted in block everywhere in the target patient correspondence Prescription data block is prescription data block 2 and prescription data block 3, then the server can send prompt letter to third party Breath, to prompt prescription data block 2 and the prescription data block 3 of target patient a described in the third party illegally to be distorted.
In one embodiment, the server can determine that number formulary is according in block everywhere in the target patient correspondence After the target prescription data block illegally distorted, the corresponding terminal of Xiang Suoshu target patient sends prompt information, with prompt Target prescription data block described in the terminal of the target patient is illegally distorted, so that the terminal of the target patient can weigh Newly upload the target prescription data block.Patient terminal can be made to upload the prescription illegally distorted again in this way Data block, the prescription data block of prescription data block chain described in completion, it is ensured that data in the prescription data block chain Integrality.
For example, it is assumed that the Patient identification for the target patient that the server is got is a, and the target patient a It is corresponding include 1,2,3,, n, n continuous prescription data blocks, and the block-identified of n prescription data block corresponds to 1,2,3,, n, and 1 prescription data block block-identified adjacent with the prescription data block 1 of the target patient a be X, and the block-identified of the 1 prescription data block adjacent with the prescription data block n of the target patient a is y.If institute It states server and determines that number formulary is according to the target prescription data block illegally distorted in block everywhere in the target patient correspondence For prescription data block 2 and prescription data block 3, then the server can be sent to the corresponding terminal of the target patient a Prompt information is illegally distorted with prescription data block 2 described in the terminal of the target patient a and prescription data block 3, so that The terminal of the target patient a can upload the prescription data block 2 and prescription data block 3 again.
In the embodiment of the present invention, the prescription data block for each patient that the available diagnosis and treatment terminal of server is sent, and root According to each patient prescription data block generate prescription data block chain, when receive third party be directed to target patient prescription data When the prescription data acquisition request of transmission, number formulary evidence everywhere in the correspondence of target patient described in the prescription data block chain is obtained The block Hash codes of block.If detecting the prescription data area that number formulary is adjacent according to block everywhere in corresponding with the target patient Block Hash codes between block are associated, it is determined that the verification success of the prescription data block chain, if detected and the mesh Number formulary is unrelated according to the block Hash codes between the adjacent prescription data block of block everywhere in mark patient is corresponding, then can determine The verification of the prescription data block chain fails, and everywhere in target patient correspondence described in the determination prescription data block chain There are the prescription data blocks that prescription data is illegally distorted in square data block, refuse the third-party prescription data and obtain Request.Server can determine that number formulary is according to the target prescription data illegally distorted in block everywhere in the target patient correspondence Block, and prompt information is sent to the third party, to prompt the prescription data of the third party target prescription data block Illegally distorted.In this way, it can be sent to third party to avoid by the prescription data block after illegally being distorted, improved The safety of data, it is ensured that the integrality of data in the prescription data block chain.
Fig. 3 is referred to, Fig. 3 is another prescription data method of calibration based on block chain provided in an embodiment of the present invention Schematic flow diagram, as shown in figure 3, this method can be executed by data check equipment, the specific explanations of the data check equipment are such as Preceding described, details are not described herein again.The difference of the embodiment of the present invention and embodiment described in above-mentioned Fig. 2 is that the embodiment of the present invention is Number formulary was implemented according to the another kind that block is verified everywhere in corresponding to target patient described in the prescription data block chain Journey is described in detail.Specifically, described method includes following steps for the embodiment of the present invention.
S301: the prescription data block for each patient that diagnosis and treatment terminal is sent is obtained, and according to the prescription data area of each patient Block generates prescription data block chain.
In the embodiment of the present invention, the prescription data block for each patient that the available diagnosis and treatment terminal of server is sent, and root Prescription data block chain is generated according to the prescription data block of each patient.Wherein, the prescription data block explanation as previously mentioned, And the explanation of the prescription data is as previously mentioned, details are not described herein again.
S302: it when receiving the prescription data acquisition request that prescription data of the third party for target patient is sent, obtains Take the encryption information carried in the prescription data acquisition request.
In the embodiment of the present invention, obtained when receiving the prescription data that prescription data of the third party for target patient is sent When request, the encryption information that is carried in the available prescription data acquisition request of server.In certain embodiments, described Encryption information includes Encryption Algorithm and key, and in certain embodiments, the Encryption Algorithm may include preset hash algorithm, The embodiment of the present invention is not specifically limited the preset hash algorithm.
S303: according to the encryption information, number formulary everywhere in target patient correspondence being encrypted according to block, Generate the target patient it is corresponding everywhere in number formulary according to block verification Hash codes.
In the embodiment of the present invention, server can be according to the encryption information, to side everywhere in target patient correspondence Data block is encrypted, generate the target patient it is corresponding everywhere in number formulary according to block verification Hash codes.
In one embodiment, the server can be according to the Encryption Algorithm and key in the encryption information, to institute State target patient it is corresponding everywhere in number formulary be encrypted according to block, generate the target patient it is corresponding everywhere in number formulary according to area The verification Hash codes of block.
For example, it is assumed that the Encryption Algorithm that the server is got is hash algorithm SHA256, key xyz, if institute The Patient identification for stating target patient is a, and the target patient a is corresponding includes 1,2,3,, n, n continuous prescription data areas Block, then the server can be according to the hash algorithm SHA256 and key xyz to side everywhere in target patient correspondence Data block is encrypted, generate the target patient it is corresponding everywhere in number formulary according to block verification Hash codes.
S304: the corresponding verification Hash codes of detection each prescription data block whether with each prescription data block pair The block Hash codes matching answered, if it does, then step S305 is executed, if it does not match, executing step S306.
In the embodiment of the present invention, server can detecte the corresponding verification Hash codes of each prescription data block whether with The corresponding block Hash codes matching of each prescription data block, if it does, then step S305 is executed, if it does not match, Execute step S306.
For example, if the server detects that the verification for calculating the corresponding prescription data block 2 of the target patient a is breathed out The block Hash codes of uncommon code and the prescription data block 2 mismatch and the corresponding prescription data block of the target patient a 3 verification Hash codes and the block Hash codes of the prescription data block 3 mismatch, then the server can execute step S306。
S305: the verification success of the prescription data block chain is determined.
In the embodiment of the present invention, if server detects the corresponding verification Hash codes of each prescription data block and institute The corresponding block Hash codes matching of each prescription data block is stated, then can determine the verification success of the prescription data block chain.
In one embodiment, the server, can be with after the verification success for determining the prescription data block chain Number formulary everywhere in target patient correspondence is sent to the third party according to block.
S306: it determines the verification failure of the prescription data block chain, and executes step S307.
In the embodiment of the present invention, if server detects the corresponding verification Hash codes of each prescription data block and institute It states the corresponding block Hash codes of each prescription data block to mismatch, then can determine that the verification of the prescription data block chain is lost It loses, and executes step S307.
S307: determine target patient described in the prescription data block chain it is corresponding everywhere in number formulary according to there is place in block Number formulary refuses the third-party prescription data acquisition request according to the prescription data block illegally distorted.
In the embodiment of the present invention, server can determine after the verification failure for determining the prescription data block chain There are prescription datas illegally to be distorted according in block for number formulary everywhere in target patient described in the prescription data block chain is corresponding Prescription data block, and refuse the third-party prescription data acquisition request.In this way, it avoids illegally being usurped Prescription data block after changing is sent to third party.
S308: determine that number formulary is according to the target prescription data area illegally distorted in block everywhere in the target patient correspondence Block, and prompt information is sent to the third party.
In the embodiment of the present invention, server can determine that number formulary is according to illegal in block everywhere in the target patient correspondence The target prescription data block distorted, and prompt information is sent to the third party.Specific embodiment and illustration are such as preceding institute It states, details are not described herein again.
In one embodiment, the server can determine that number formulary is according in block everywhere in the target patient correspondence After the target prescription data block illegally distorted, the corresponding terminal of Xiang Suoshu target patient sends prompt information, with prompt Target prescription data block described in the terminal of the target patient is illegally distorted, so that the terminal of the target patient can weigh Newly upload the target prescription data block.Patient terminal can be made to upload the prescription illegally distorted again in this way Data block, the prescription data block of prescription data block chain described in completion, it is ensured that data in the prescription data block chain Integrality.The illustration of specific embodiment is as previously mentioned, details are not described herein again.
In the embodiment of the present invention, the prescription data block for each patient that the available diagnosis and treatment terminal of server is sent, and root According to each patient prescription data block generate prescription data block chain, when receive third party be directed to target patient prescription data When the prescription data acquisition request of transmission, the encryption information carried in the prescription data acquisition request is obtained, is added according to described Number formulary everywhere in target patient correspondence is encrypted according to block, it is corresponding to generate the target patient for confidential information The verification Hash codes of each prescription data block.By detect the corresponding verification Hash codes of each prescription data block whether with institute The corresponding block Hash codes matching of each prescription data block is stated, if it does, then determining the verification of the prescription data block chain Success if it does not match, determining the verification failure of the prescription data block chain, and determines in the prescription data block chain There are the prescription data blocks that prescription data is illegally distorted according in block for number formulary everywhere in the target patient is corresponding, and refuse The third-party prescription data acquisition request further determines that number formulary is according to non-in block everywhere in the target patient correspondence The target prescription data block that method is distorted, and prompt information is sent to the third party.It in this way, can be to avoid will be by Prescription data block after illegally distorting is sent to third party, it is ensured that the integrality of data in the prescription data block chain mentions High Information Security.
The embodiment of the invention also provides a kind of data check equipment, the data check equipment is any one of aforementioned for executing The unit of the method.Specifically, referring to fig. 4, Fig. 4 is a kind of signal of data check equipment provided in an embodiment of the present invention Block diagram.The data check equipment of the present embodiment includes: acquiring unit 401, verification unit 402, the first determination unit 403, second Determination unit 404.
Acquiring unit 401, the prescription data block of each patient for obtaining the transmission of diagnosis and treatment terminal, and according to each patient's Prescription data block generates prescription data block chain, wherein the prescription data block is the diagnosis and treatment terminal according to each patient Prescription data generate, the prescription data includes any one in the usage and dosage of nomenclature of drug, Quantity of drugs, drug Or it is a variety of;
Verification unit 402, for being obtained when the prescription data for receiving prescription data transmission of the third party for target patient When taking request, number formulary everywhere in the correspondence of target patient described in the prescription data block chain is verified according to block;
First determination unit 403, if for verifying failure, it is determined that target described in the prescription data block chain is suffered from There are the prescription data blocks that prescription data is illegally distorted according in block for number formulary everywhere in person is corresponding, and refuse the third party Prescription data acquisition request;
Second determination unit 404, for determine the target patient it is corresponding everywhere in number formulary illegally distorted according in block Target prescription data block, and send prompt information to the third party, wherein the prompt information is for prompting the mesh The prescription data of mark prescription data block is illegally distorted.
Further, the prescription data block includes block Hash codes, and the verification unit 402 is to the prescription data When number formulary is verified according to block everywhere in target patient described in block chain is corresponding, it is specifically used for:
Obtain target patient described in the prescription data block chain it is corresponding everywhere in number formulary according to block block Hash codes;
Number formulary is according to the block Hash between the adjacent prescription data block of block everywhere in detection is corresponding with the target patient Whether code is associated;
If testing result is yes, it is determined that the verification success of the prescription data block chain;
If testing result is no, it is determined that the verification of the prescription data block chain fails.
It further, include block-identified in the prescription data block;First determination unit 403 determines that the target is suffered from When number formulary is according to the target prescription data block illegally distorted in block everywhere in person is corresponding, it is specifically used for:
Number formulary is according to the block Hash between the adjacent prescription data block of block everywhere in acquisition is corresponding with the target patient Code between it is not associated at least one distort prescription data block;
It is block-identified in prescription data block according to respectively distorting, determine that number formulary is according to area everywhere in the target patient correspondence The target prescription data block illegally distorted in block.
Further, the prescription data block includes block Hash codes, is carried in the prescription data acquisition request Encryption information;Number formulary is according to area everywhere in the verification unit 402 is corresponding to target patient described in the prescription data block chain When block is verified, it is specifically used for:
Obtain the encryption information carried in the prescription data acquisition request, wherein the encryption information includes that encryption is calculated Method and key;
According to the encryption information, number formulary everywhere in target patient correspondence is encrypted according to block, is generated Everywhere in the target patient is corresponding number formulary according to block verification Hash codes;
Whether corresponding with each prescription data block detect the corresponding verification Hash codes of each prescription data block The matching of block Hash codes;
If testing result is yes, it is determined that the verification success of the prescription data block chain;
If testing result is no, it is determined that the verification of the prescription data block chain fails.
It further, include block-identified in the prescription data block;First determination unit 403 determines the mesh When number formulary is according to the target prescription data block illegally distorted in block everywhere in mark patient is corresponding, it is specifically used for:
According to number formulary everywhere in target patient correspondence according to the block-identified of block, determine that the target patient is corresponding Everywhere in the verification Hash codes of each prescription data block are corresponding with the target patient number formulary according to block block Hash codes not The prescription data block matched is the target prescription data block illegally distorted.
Further, when the acquiring unit 401 generates prescription data block chain according to the prescription data block of each patient, It is specifically used for:
Obtain the quantity of the prescription data block of each patient;
According to the quantity of the prescription data block, each patient is ranked up;
The prescription data block chain is generated according to the prescription data block after sequence.
Further, the prescription data acquisition request includes authentication information;The verification unit 402 is receiving Third party for target patient prescription data send prescription data acquisition request after, to the prescription data block chain into Before row completeness check, it is also used to:
According to the prescription data acquisition request, the authentication information is obtained, wherein the authentication information packet Include password, fingerprint, any one or more information in voice;
The authentication information is matched with preset authentication information;
If successful match, triggers and execute described the step of completeness check is carried out to the prescription data block chain.
In the embodiment of the present invention, the prescription data block for each patient that the available diagnosis and treatment terminal of server is sent, and root According to each patient prescription data block generate prescription data block chain, when receive third party be directed to target patient prescription data When the prescription data acquisition request of transmission, to number formulary everywhere in the correspondence of target patient described in the prescription data block chain according to area Block is verified, if verification failure, can be determined everywhere in the correspondence of target patient described in the prescription data block chain There are the prescription data blocks that prescription data is illegally distorted in square data block, and refuse the third-party prescription data and obtain Take request, and determine the target patient it is corresponding everywhere in number formulary according to the target prescription data block illegally distorted in block, And prompt information is sent to the third party, in this way, avoids the prescription data block that will be illegally distorted and occur To third party, the safety of data is improved.
Fig. 5 is referred to, Fig. 5 is a kind of schematic block diagram of server provided in an embodiment of the present invention.This reality as shown in the figure Applying the server in example may include: one or more processors 501;One or more input equipments 502, it is one or more defeated Equipment 503 and memory 504 out.Above-mentioned processor 501, input equipment 502, output equipment 503 and memory 504 pass through bus 505 connections.Memory 504 is for storing computer program, and the computer program includes program instruction, and processor 501 is used for Execute the program instruction that memory 504 stores.Wherein, processor 501 is configured for calling described program instruction execution:
The prescription data block for each patient that diagnosis and treatment terminal is sent is obtained, and is generated according to the prescription data block of each patient Prescription data block chain, wherein the prescription data block is that the diagnosis and treatment terminal is generated according to the prescription data of each patient, The prescription data includes any one or more in the usage and dosage of nomenclature of drug, Quantity of drugs, drug;
When receiving the prescription data acquisition request that prescription data of the third party for target patient is sent, to the place Number formulary is verified according to block everywhere in target patient described in square data block chain is corresponding;
If verification failure, it is determined that number formulary is according to area everywhere in target patient described in the prescription data block chain is corresponding There are the prescription data blocks that prescription data is illegally distorted in block, and refuse the third-party prescription data acquisition request;
Determine that number formulary is according to the target prescription data block illegally distorted in block everywhere in the target patient correspondence, and Prompt information is sent to the third party, wherein the prompt information is used to prompt the prescription of the target prescription data block Data are illegally distorted.
Further, the prescription data block includes block Hash codes, and the processor 501 is to the prescription data area When number formulary is verified according to block everywhere in target patient described in block chain is corresponding, it is specifically used for:
Obtain target patient described in the prescription data block chain it is corresponding everywhere in number formulary according to block block Hash codes;
Number formulary is according to the block Hash between the adjacent prescription data block of block everywhere in detection is corresponding with the target patient Whether code is associated;
If testing result is yes, it is determined that the verification success of the prescription data block chain;
If testing result is no, it is determined that the verification of the prescription data block chain fails.
It further, include block-identified in the prescription data block;The processor 501 determines the target patient When number formulary is according to the target prescription data block illegally distorted in block everywhere in correspondence, it is specifically used for:
Number formulary is according to the block Hash between the adjacent prescription data block of block everywhere in acquisition is corresponding with the target patient Code between it is not associated at least one distort prescription data block;
It is block-identified in prescription data block according to respectively distorting, determine that number formulary is according to area everywhere in the target patient correspondence The target prescription data block illegally distorted in block.
Further, the prescription data block includes block Hash codes, is carried in the prescription data acquisition request Encryption information;Number formulary is according to block everywhere in the processor 501 is corresponding to target patient described in the prescription data block chain When being verified, it is specifically used for:
Obtain the encryption information carried in the prescription data acquisition request, wherein the encryption information includes that encryption is calculated Method and key;
According to the encryption information, number formulary everywhere in target patient correspondence is encrypted according to block, is generated Everywhere in the target patient is corresponding number formulary according to block verification Hash codes;
Whether corresponding with each prescription data block detect the corresponding verification Hash codes of each prescription data block The matching of block Hash codes;
If testing result is yes, it is determined that the verification success of the prescription data block chain;
If testing result is no, it is determined that the verification of the prescription data block chain fails.
It further, include block-identified in the prescription data block;The processor 501 determines the target patient When number formulary is according to the target prescription data block illegally distorted in block everywhere in correspondence, it is specifically used for:
According to number formulary everywhere in target patient correspondence according to the block-identified of block, determine that the target patient is corresponding Everywhere in the verification Hash codes of each prescription data block are corresponding with the target patient number formulary according to block block Hash codes not The prescription data block matched is the target prescription data block illegally distorted.
Further, when the processor 501 generates prescription data block chain according to the prescription data block of each patient, tool Body is used for:
Obtain the quantity of the prescription data block of each patient;
According to the quantity of the prescription data block, each patient is ranked up;
The prescription data block chain is generated according to the prescription data block after sequence.
Further, the prescription data acquisition request includes authentication information;The processor 501 is receiving After the prescription data acquisition request that tripartite sends for the prescription data of target patient, the prescription data block chain is carried out Before completeness check, it is also used to:
According to the prescription data acquisition request, the authentication information is obtained, wherein the authentication information packet Include password, fingerprint, any one or more information in voice;
The authentication information is matched with preset authentication information;
If successful match, triggers and execute described the step of completeness check is carried out to the prescription data block chain.
In the embodiment of the present invention, the prescription data block for each patient that the available diagnosis and treatment terminal of server is sent, and root According to each patient prescription data block generate prescription data block chain, when receive third party be directed to target patient prescription data When the prescription data acquisition request of transmission, to number formulary everywhere in the correspondence of target patient described in the prescription data block chain according to area Block is verified, if verification failure, can be determined everywhere in the correspondence of target patient described in the prescription data block chain There are the prescription data blocks that prescription data is illegally distorted in square data block, and refuse the third-party prescription data and obtain Take request, and determine the target patient it is corresponding everywhere in number formulary according to the target prescription data block illegally distorted in block, And prompt information is sent to the third party, in this way, avoids the prescription data block that will be illegally distorted and occur To third party, the safety of data is improved.
It should be appreciated that in embodiments of the present invention, alleged processor 501 can be central processing unit (Central Processing Unit, CPU), which can also be other general processors, digital signal processor (Digital Signal Processor, DSP), specific integrated circuit (Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic Device, discrete gate or transistor logic, discrete hardware components etc..General processor can be microprocessor or this at Reason device is also possible to any conventional processor etc..
Input equipment 502 may include Trackpad, microphone etc., output equipment 503 may include display (LCD etc.), Loudspeaker etc..
The memory 504 may include read-only memory and random access memory, and to processor 501 provide instruction and Data.The a part of of memory 504 can also include nonvolatile RAM.For example, memory 504 can also be deposited Store up the information of device type.
In the specific implementation, processor 501 described in the embodiment of the present invention, input equipment 502, output equipment 503 can Execute reality described in embodiment of the method described in Fig. 1, Fig. 2 or Fig. 3 of position finding and detection method provided in an embodiment of the present invention Implementation or the described service of Fig. 5 of data check equipment described in Fig. 4 of the embodiment of the present invention also can be performed in existing mode The implementation of device, details are not described herein.
A kind of computer readable storage medium is additionally provided in the embodiment of the present invention, the computer readable storage medium is deposited Computer program is contained, the computer program is realized in embodiment corresponding to Fig. 1, Fig. 2 or Fig. 3 when being executed by processor and described Position finding and detection method, can also realize the data check equipment of embodiment corresponding to Fig. 4 of the present invention or the described service of Fig. 5 Device, details are not described herein.
It deposits the inside that the computer readable storage medium can be data check equipment described in aforementioned any embodiment Storage unit, such as the hard disk or memory of data check equipment.The computer readable storage medium is also possible to the data school Test the plug-in type hard disk being equipped on the External memory equipment of equipment, such as the data check equipment, intelligent memory card (Smart Media Card, SMC), secure digital (Secure Digital, SD) card, flash card (Flash Card) etc..Further, The computer readable storage medium can also both include the internal storage unit of the data check equipment or deposit including outside Store up equipment.The computer readable storage medium is for storing needed for the computer program and the data check equipment Other programs and data.The computer readable storage medium, which can be also used for temporarily storing, have been exported or will export Data.
Those of ordinary skill in the art may be aware that list described in conjunction with the examples disclosed in the embodiments of the present disclosure Member and algorithm steps, can be realized with electronic hardware, computer software, or a combination of the two, in order to clearly demonstrate hardware With the interchangeability of software, each exemplary composition and step are generally described according to function in the above description.This A little functions are implemented in hardware or software actually, the specific application and design constraint depending on technical solution.Specially Industry technical staff can use different methods to achieve the described function each specific application, but this realization is not It is considered as beyond the scope of this invention.
If the integrated unit is realized in the form of SFU software functional unit and sells or use as independent product When, it can store in a computer readable storage medium.Based on this understanding, technical solution of the present invention is substantially The all or part of the part that contributes to existing technology or the technical solution can be in the form of software products in other words It embodies, which is stored in a storage medium, including some instructions are used so that a computer Equipment (can be personal computer, server or the network equipment etc.) executes the complete of each embodiment the method for the present invention Portion or part steps.And storage medium above-mentioned includes: USB flash disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic or disk etc. are various can store journey The medium of sequence code.
The above, some embodiments only of the invention, but scope of protection of the present invention is not limited thereto, and it is any Those familiar with the art in the technical scope disclosed by the present invention, can readily occur in various equivalent modifications or replace It changes, these modifications or substitutions should be covered by the protection scope of the present invention.

Claims (10)

1. a kind of prescription data method of calibration based on block chain characterized by comprising
The prescription data block for each patient that diagnosis and treatment terminal is sent is obtained, and prescription is generated according to the prescription data block of each patient Data block chain, wherein the prescription data block is that the diagnosis and treatment terminal is generated according to the prescription data of each patient, described Prescription data includes any one or more in the usage and dosage of nomenclature of drug, Quantity of drugs, drug;
When receiving the prescription data acquisition request that prescription data of the third party for target patient is sent, to the prescription number It is verified according to number formulary everywhere in the correspondence of target patient described in block chain according to block;
If verification failure, it is determined that number formulary is according in block everywhere in target patient described in the prescription data block chain is corresponding There are the prescription data blocks that prescription data is illegally distorted, and refuse the third-party prescription data acquisition request;
Determine the target patient it is corresponding everywhere in number formulary according to the target prescription data block illegally distorted in block, and to institute It states third party and sends prompt information, wherein the prompt information is used to prompt the prescription data of the target prescription data block Illegally distorted.
2. described the method according to claim 1, wherein the prescription data block includes block Hash codes Number formulary is verified according to block everywhere in corresponding to target patient described in the prescription data block chain, comprising:
Obtain target patient described in the prescription data block chain it is corresponding everywhere in number formulary according to block block Hash codes;
Number formulary is according to the block Hash codes between the adjacent prescription data block of block everywhere in detection is corresponding with the target patient It is no associated;
If testing result is yes, it is determined that the verification success of the prescription data block chain;
If testing result is no, it is determined that the verification of the prescription data block chain fails.
3. according to the method described in claim 2, it is characterized in that, including block-identified in the prescription data block;It is described Determine that number formulary is according to the target prescription data block illegally distorted in block everywhere in the target patient correspondence, comprising:
Obtain it is corresponding with the target patient everywhere in number formulary according to the block Hash codes between the adjacent prescription data block of block it Between it is not associated at least one distort prescription data block;
It is block-identified in prescription data block according to respectively distorting, determine that number formulary is according in block everywhere in the target patient correspondence The target prescription data block illegally distorted.
4. described the method according to claim 1, wherein the prescription data block includes block Hash codes Encryption information is carried in prescription data acquisition request;It is described corresponding to target patient described in the prescription data block chain Each prescription data block is verified, comprising:
Obtain the encryption information carried in the prescription data acquisition request, wherein the encryption information include Encryption Algorithm and Key;
According to the encryption information, number formulary everywhere in target patient correspondence is encrypted according to block, described in generation Everywhere in target patient is corresponding number formulary according to block verification Hash codes;
Detect the corresponding verification Hash codes of each prescription data block block whether corresponding with each prescription data block Hash codes matching;
If testing result is yes, it is determined that the verification success of the prescription data block chain;
If testing result is no, it is determined that the verification of the prescription data block chain fails.
5. according to the method described in claim 4, it is characterized in that, including block-identified in the prescription data block;It is described Determine that number formulary is according to the target prescription data block illegally distorted in block everywhere in the target patient correspondence, comprising:
According to number formulary everywhere in target patient correspondence according to the block-identified of block, determine everywhere in the target patient correspondence Number formulary is unmatched according to the block Hash codes of block everywhere in the verification Hash codes of square data block are corresponding with the target patient Prescription data block is the target prescription data block illegally distorted.
6. the method according to claim 1, wherein described generate prescription according to the prescription data block of each patient Data block chain, comprising:
Obtain the quantity of the prescription data block of each patient;
According to the quantity of the prescription data block, each patient is ranked up;
The prescription data block chain is generated according to the prescription data block after sequence.
7. the method according to claim 1, wherein the prescription data acquisition request includes authentication letter Breath;It is described when receive third party for target patient prescription data send prescription data acquisition request after, to described Prescription data block chain carries out before completeness check, further includes:
According to the prescription data acquisition request, the authentication information is obtained, wherein the authentication information includes close Code, fingerprint, any one or more information in voice;
The authentication information is matched with preset authentication information;
If successful match, triggers and execute described the step of completeness check is carried out to the prescription data block chain.
8. a kind of data check equipment, which is characterized in that including for executing as described in any one of claim 1-7 claim Method unit.
9. a kind of server, which is characterized in that including processor, input equipment, output equipment and memory, the processor, Input equipment, output equipment and memory are connected with each other, wherein the memory is for storing computer program, the calculating Machine program includes program instruction, and the processor is configured for calling described program instruction, is executed as claim 1-7 is any Method described in.
10. a kind of computer readable storage medium, which is characterized in that the computer storage medium is stored with computer program, The computer program includes program instruction, and described program instruction makes the processor execute such as right when being executed by a processor It is required that the described in any item methods of 1-7.
CN201811323418.0A 2018-11-07 2018-11-07 A kind of prescription data method of calibration, equipment and server based on block chain Pending CN109543458A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201811323418.0A CN109543458A (en) 2018-11-07 2018-11-07 A kind of prescription data method of calibration, equipment and server based on block chain
PCT/CN2019/095055 WO2020093722A1 (en) 2018-11-07 2019-07-08 Block chain-based prescription data verification method and device, and server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811323418.0A CN109543458A (en) 2018-11-07 2018-11-07 A kind of prescription data method of calibration, equipment and server based on block chain

Publications (1)

Publication Number Publication Date
CN109543458A true CN109543458A (en) 2019-03-29

Family

ID=65844566

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811323418.0A Pending CN109543458A (en) 2018-11-07 2018-11-07 A kind of prescription data method of calibration, equipment and server based on block chain

Country Status (2)

Country Link
CN (1) CN109543458A (en)
WO (1) WO2020093722A1 (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110348975A (en) * 2019-05-24 2019-10-18 深圳壹账通智能科技有限公司 Customs declaration information calibration method and device, electronic equipment and storage medium
CN110598458A (en) * 2019-09-25 2019-12-20 腾讯科技(深圳)有限公司 Method, device and system for acquiring medical prescription based on block chain
CN111063407A (en) * 2019-12-02 2020-04-24 姚其新 Medical resource data processing method and system based on block chain
WO2020093722A1 (en) * 2018-11-07 2020-05-14 平安医疗健康管理股份有限公司 Block chain-based prescription data verification method and device, and server
CN113470795A (en) * 2020-03-30 2021-10-01 上海奥普生物医药股份有限公司 Data tracking method, system, server and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107767134A (en) * 2017-01-22 2018-03-06 平安医疗健康管理股份有限公司 Medical care cost method and system based on block chain
CN107785059A (en) * 2017-01-22 2018-03-09 平安医疗健康管理股份有限公司 Medicine distribution method and system based on block chain
CN107799163A (en) * 2017-01-22 2018-03-13 平安医疗健康管理股份有限公司 Prescription circulation methods, devices and systems based on block chain
CN107818817A (en) * 2017-01-22 2018-03-20 平安医疗健康管理股份有限公司 The prescription side of continuing method and system based on block chain
CN107896213A (en) * 2017-11-16 2018-04-10 重庆忠昇数据处理服务有限公司 Electronic prescription date storage method
US20180130034A1 (en) * 2016-11-07 2018-05-10 LedgerDomain, LLC Extended blockchains for event tracking and management

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106682520A (en) * 2016-11-17 2017-05-17 精硕科技(北京)股份有限公司 Data exchange method and system
CN107748850A (en) * 2017-10-30 2018-03-02 北京计算机技术及应用研究所 A kind of method and system that maintenance of equipment work data is preserved using block chain
CN108171068A (en) * 2017-12-31 2018-06-15 天津大学 A kind of student status certification alliance catenary system and its operation method
CN109543458A (en) * 2018-11-07 2019-03-29 平安医疗健康管理股份有限公司 A kind of prescription data method of calibration, equipment and server based on block chain

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180130034A1 (en) * 2016-11-07 2018-05-10 LedgerDomain, LLC Extended blockchains for event tracking and management
CN107767134A (en) * 2017-01-22 2018-03-06 平安医疗健康管理股份有限公司 Medical care cost method and system based on block chain
CN107785059A (en) * 2017-01-22 2018-03-09 平安医疗健康管理股份有限公司 Medicine distribution method and system based on block chain
CN107799163A (en) * 2017-01-22 2018-03-13 平安医疗健康管理股份有限公司 Prescription circulation methods, devices and systems based on block chain
CN107818817A (en) * 2017-01-22 2018-03-20 平安医疗健康管理股份有限公司 The prescription side of continuing method and system based on block chain
CN107896213A (en) * 2017-11-16 2018-04-10 重庆忠昇数据处理服务有限公司 Electronic prescription date storage method

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2020093722A1 (en) * 2018-11-07 2020-05-14 平安医疗健康管理股份有限公司 Block chain-based prescription data verification method and device, and server
CN110348975A (en) * 2019-05-24 2019-10-18 深圳壹账通智能科技有限公司 Customs declaration information calibration method and device, electronic equipment and storage medium
CN110598458A (en) * 2019-09-25 2019-12-20 腾讯科技(深圳)有限公司 Method, device and system for acquiring medical prescription based on block chain
CN110598458B (en) * 2019-09-25 2023-08-08 腾讯科技(深圳)有限公司 Method, device and system for acquiring medical prescriptions based on blockchain
CN111063407A (en) * 2019-12-02 2020-04-24 姚其新 Medical resource data processing method and system based on block chain
CN113470795A (en) * 2020-03-30 2021-10-01 上海奥普生物医药股份有限公司 Data tracking method, system, server and storage medium

Also Published As

Publication number Publication date
WO2020093722A1 (en) 2020-05-14

Similar Documents

Publication Publication Date Title
CN109543458A (en) A kind of prescription data method of calibration, equipment and server based on block chain
CN110113167B (en) Information protection method and system of intelligent terminal and readable storage medium
CN105812570B (en) Terminal firmware update method and device
CN108416589A (en) Connection method, system and the computer readable storage medium of block chain node
CN104767613B (en) Signature verification method, apparatus and system
CN112446785A (en) Cross-chain transaction method, system, device, equipment and storage medium
CN109257342A (en) Authentication method, system, server and readable storage medium storing program for executing of the block chain across chain
CN109472598A (en) A kind of health data method of calibration, equipment and server based on block chain
CN108900533A (en) A kind of shared data method for secret protection, system, terminal and medium
CN108399329A (en) A method of improving trusted application safety
CN113487042B (en) Federal learning method, device and federal learning system
CN110071808A (en) A kind of the secure digital identity verification method and device of block chain user
CN109286490A (en) Support close state data deduplication and integrity verification method and system
CN106779716A (en) Authentication method, apparatus and system based on block chain account address
CN106302544A (en) A kind of safe verification method and system
Chen et al. An IoT-based traceable drug anti-counterfeiting management system
CN111815321A (en) Transaction proposal processing method, device, system, storage medium and electronic device
CN107979467A (en) Verification method and device
CN108023873A (en) channel establishing method and terminal device
CN110113334A (en) Contract processing method, equipment and storage medium based on block chain
CN114338666A (en) Method, device, equipment and medium for verifying Fabric block chain cross-chain transaction
CN113569263A (en) Secure processing method and device for cross-private-domain data and electronic equipment
CN109886662A (en) Block chain wallet application method and system, terminal and computer readable storage medium
CN114257376A (en) Digital certificate updating method and device, computer equipment and storage medium
CN109558724A (en) A kind of software action integrity verification method

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right

Effective date of registration: 20220525

Address after: 518000 China Aviation Center 2901, No. 1018, Huafu Road, Huahang community, Huaqiang North Street, Futian District, Shenzhen, Guangdong Province

Applicant after: Shenzhen Ping An medical and Health Technology Service Co.,Ltd.

Address before: Room 12G, Block H, 666 Beijing East Road, Huangpu District, Shanghai 200000

Applicant before: PING AN MEDICAL AND HEALTHCARE MANAGEMENT Co.,Ltd.

TA01 Transfer of patent application right
RJ01 Rejection of invention patent application after publication

Application publication date: 20190329

RJ01 Rejection of invention patent application after publication