CN108965416A - Medical data sharing method, device, computer equipment and storage medium - Google Patents

Medical data sharing method, device, computer equipment and storage medium Download PDF

Info

Publication number
CN108965416A
CN108965416A CN201810725981.4A CN201810725981A CN108965416A CN 108965416 A CN108965416 A CN 108965416A CN 201810725981 A CN201810725981 A CN 201810725981A CN 108965416 A CN108965416 A CN 108965416A
Authority
CN
China
Prior art keywords
terminal
medical data
shared platform
instruction
address
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201810725981.4A
Other languages
Chinese (zh)
Other versions
CN108965416B (en
Inventor
朱姬渊
孙行智
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ping An Technology Shenzhen Co Ltd
Original Assignee
Ping An Technology Shenzhen 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 Technology Shenzhen Co Ltd filed Critical Ping An Technology Shenzhen Co Ltd
Priority to CN201810725981.4A priority Critical patent/CN108965416B/en
Publication of CN108965416A publication Critical patent/CN108965416A/en
Application granted granted Critical
Publication of CN108965416B publication Critical patent/CN108965416B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/04Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks
    • H04L63/0428Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks wherein the data content is protected, e.g. by encrypting or encapsulating the payload
    • H04L63/0442Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks wherein the data content is protected, e.g. by encrypting or encapsulating the payload wherein the sending and receiving network entities apply asymmetric encryption, i.e. different keys for encryption and decryption
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • H04L63/0876Network architectures or network communication protocols for network security for authentication of entities based on the identity of the terminal or configuration, e.g. MAC address, hardware or software configuration or device fingerprint

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Computing Systems (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Hardware Design (AREA)
  • General Engineering & Computer Science (AREA)
  • Power Engineering (AREA)
  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Medical Treatment And Welfare Office Work (AREA)

Abstract

This application involves a kind of medical data sharing method, device, computer equipment and storage mediums.Method includes that the first address mark of first terminal is inquired when second terminal receives the instruction for sending medical data to first terminal, obtains the first address and identifies corresponding first network address;Second terminal is connect with first terminal by first network address;When connection failure, second terminal is connect with shared platform;Corresponding first public key of first terminal is obtained from shared platform, is encrypted medical data by the first public key to obtain forwarding instruction;Forwarding instruction is sent to shared platform, forwarding instruction is used to indicate shared platform and encrypted medical data is sent to first terminal, and corresponding first response results for receiving first terminal return are back to second terminal;The first response results that shared platform returns are received, successful medical data will be sent according to the first response results and be labeled as sending successfully.It is shared that medical data can be realized using this method.

Description

Medical data sharing method, device, computer equipment and storage medium
Technical field
This application involves field of computer technology, set more particularly to a kind of medical data sharing method, device, computer Standby and storage medium.
Background technique
With the development of communication technology, the medical data for being stored in each medical institutions theoretically may be implemented to share, Demand is seen a doctor so as to meet patient.
However, the shared of medical data of current each medical institutions is also unable to satisfy current requirement, such as when one It is usually that patient sees the last time in medical institutions B when medical institutions A needs the medical data of another medical institutions B The doctor that the written case history of disease gives medical institutions A checks, is only capable of providing the content of written case history in this way, and lose in case history After mistake, which loses, so that medical institutions A is unable to get the medical data of medical institutions B.
Summary of the invention
Based on this, it is necessary in view of the above technical problems, provide a kind of medical data that can be realized medical data and share Sharing method, device, computer equipment and storage medium.
A kind of medical data sharing method, which comprises
When second terminal receives the instruction for sending medical data to first terminal, then the of the first terminal is inquired One address mark, and obtain first address and identify corresponding first network address;
The second terminal and the first terminal are attached by the first network address;
When the second terminal and the first terminal connection failure, then the second terminal and shared platform are carried out Connection;
Corresponding first public key of the first terminal is obtained from the shared platform, and will be medical by first public key Data are encrypted, and obtain forwarding instruction according to encrypted medical data;
Forwarding instruction is sent to the shared platform, the forwarding instruction, which will be used to indicate the shared platform, to be added Medical data after close is sent to the first terminal, and it is returning with the encrypted doctor to receive the first terminal It treats corresponding first response results of data and is back to the second terminal;
The first response results that the shared platform returns are received, and will be sent successfully according to first response results Medical data is labeled as sending successfully.
In one of the embodiments, the method also includes:
When with the shared platform connection failure, then the medical data is subjected to the first broadcast;
The second response results corresponding with first broadcast that the first terminal returns are received, and according to described second Response results will send successful medical data and be labeled as sending successfully.
In one of the embodiments, the method also includes:
When second terminal receives the user account instruction being sent to medical data in shared platform, then described in acquisition The corresponding second address mark of user account, and obtain second address and identify corresponding second network address;
The second terminal and shared platform are established into connection by second network address;
When the second terminal and the shared platform successful connection, then pass through the corresponding public key pair of the user account The medical data is encrypted;
The encrypted medical data is sent to corresponding user account in the shared platform.
In one of the embodiments, the method also includes:
When receiving the abstract of medical data of first terminal transmission, then the corresponding trading standard of the medical data is obtained Know and connected transaction identifies;
Whether inquiry is local is stored with medical data corresponding with connected transaction mark;
If it is present by the first address mark of the first terminal, the second address mark of the second terminal, institute The abstract and the transaction ID for stating medical data generate the first verifying instruction;
The first verifying instruction is sent to shared platform, the first verifying instruction is used to indicate the shared platform Verify the legitimacy of the medical data;
When receiving when verifying the corresponding result being proved to be successful of instruction with described first of the shared platform return, then The first address for continuing to inquire the first terminal identifies, and obtains first address and identify corresponding first network address.
In one of the embodiments, the method also includes:
When local is not stored to be had with the connected transaction corresponding medical data of mark, then the connected transaction is identified The second broadcast is carried out, second broadcast is used to indicate the present terminal inquiry present terminal sheet being connected with the second terminal Ground whether there is medical data corresponding with connected transaction mark, and if it is present corresponding medical data be returned To second terminal, if it does not exist, then using the terminal being connected with the present terminal as present terminal, and continue to institute It states present terminal and sends second broadcast;
It receives and is stored with the medical data corresponding with second broadcast that the present terminal of the medical data returns;
By the second ground of the third address mark of the present terminal for being stored with the medical data, the second terminal Location mark, the abstract of the medical data and the transaction ID generate the second verifying instruction;
The second verifying instruction is sent to shared platform, the second verifying instruction is used to indicate the shared platform Verify the legitimacy of the medical data;
When receiving when verifying the corresponding result being proved to be successful of instruction with described second of the shared platform return, then The first address for continuing to inquire the first terminal identifies, and obtains first address and identify corresponding first network address.
In one of the embodiments, it is described receive be stored with that the terminal of the medical data returns with it is described second wide After broadcasting corresponding medical data, further includes:
Whether the terminal iidentification for detecting the recipient of the medical data is identical as local second terminal mark;
When identical, then pass through the second private key corresponding with second terminal mark being locally stored to the medical number According to being decrypted, and the medical data after decryption is stored by way of index to local;
When not identical, then the plaintext in the medical data is obtained, and by the stored in clear to local.
In one of the embodiments, the method also includes:
Receive the medical data inquiry instruction of input;
Corresponding medical data whether is stored with according to medical data inquiry instruction inquiry is local;
When corresponding medical data has been locally stored, then by the second private key for being locally stored to the medical data into Row decryption, and the medical data after decryption is shown;
When local is not stored corresponding medical data, then the medical data inquiry instruction is sent to shared platform;
The medical data corresponding with the medical data inquiry instruction that the shared platform returns is received, and passes through local The medical data is decrypted in second private key of storage, and the medical data after decryption is shown.
A kind of medical data sharing means, described device include:
First enquiry module, for when second terminal receives the instruction for sending medical data to first terminal, then looking into The first address mark of the first terminal is ask, and obtains first address and identifies corresponding first network address;
First link block, for being carried out the second terminal and the first terminal by the first network address Connection;When the second terminal and the first terminal connection failure, then the second terminal is connected with shared platform It connects;
First obtains module, for obtaining corresponding first public key of the first terminal from the shared platform, and passes through First public key encrypts medical data, obtains forwarding instruction according to encrypted medical data;
First sending module, for forwarding instruction to be sent to the shared platform, the forwarding instruction is for referring to Show that encrypted medical data is sent to the first terminal by the shared platform, and the first terminal will be received and returned The first response results corresponding with the encrypted medical data be back to the second terminal;
First receiving module, the first response results returned for receiving the shared platform, and according to first sound Should result will send successful medical data labeled as sending successfully.
A kind of computer equipment, including memory and processor, the memory are stored with computer program, the processing The step of device realizes any of the above-described the method when executing the computer program.
A kind of computer readable storage medium, is stored thereon with computer program, and the computer program is held by processor The step of method described in any of the above embodiments is realized when row.
Above-mentioned medical data sharing method, device, computer equipment and storage medium, second terminal are needed to first terminal When sending medical data, then the first address mark of first terminal is inquired first, and obtain the first address mark corresponding first Network address is attempted to be attached with first terminal by the first network address second terminal, if it fails to connect, then second The second terminal is attached by terminal with shared platform, and the medical data of second terminal is sent to by shared platform One terminal, therefore even if second terminal can also be by medical data under the premise of first terminal can not be connect with second terminal It is sent to first terminal, realizes the shared of medical data.
Detailed description of the invention
Fig. 1 is the application scenario diagram of medical data sharing method in one embodiment;
Fig. 2 is the flow diagram of medical data sharing method in one embodiment;
Fig. 3 is the flow chart of the data directory step in one embodiment;
Fig. 4 is the structural block diagram of medical data sharing device in one embodiment;
Fig. 5 is the internal structure chart of computer equipment in one embodiment.
Specific embodiment
It is with reference to the accompanying drawings and embodiments, right in order to which the objects, technical solutions and advantages of the application are more clearly understood The application is further elaborated.It should be appreciated that specific embodiment described herein is only used to explain the application, not For limiting the application.
Medical data sharing method provided by the present application, can be applied in application environment as shown in Figure 1.Including Shared platform and several terminals that can be communicated with shared platform, such as first terminal shown in Fig. 1, second Terminal, third terminal etc., wherein shared platform can provide medical data forwarding service, user account storage service, file are deposited Storage service, cipher key management services and address service etc..Wherein, there is the medical number for needing to be sent to first terminal in second terminal According to when, then inquire the first address mark of first terminal, and obtain the first address and identify corresponding first network address, second eventually Second terminal and first terminal are attached by end by first network address;When second terminal and first terminal connection failure When, then the second terminal is attached by second terminal with shared platform;To which second terminal can be obtained from shared platform Corresponding first public key of first terminal, and encrypted medical data by the first public key, according to encrypted medical data Obtain forwarding instruction;Forwarding instruction is sent to shared platform by second terminal, and forwarding instruction is used to indicate shared platform and will encrypt Medical data afterwards is sent to first terminal, and will receive corresponding with encrypted medical data the of first terminal return One response results return to second terminal;Second terminal receives the first response results that shared platform returns, and according to the first response As a result successful medical data will be sent to be labeled as sending successfully.Wherein, first terminal, second terminal and third terminal can be with But it is not limited to various personal computers, laptop, smart phone, tablet computer and portable wearable device, is shared Platform can be realized with the server cluster of the either multiple server compositions of independent server.
In one embodiment, as shown in Fig. 2, providing a kind of medical data sharing method, it is applied to Fig. 1 in this way In second terminal for be illustrated, comprising the following steps:
S202: when second terminal receives the instruction for sending medical data to first terminal, then first terminal is inquired First address mark, and obtain the first address and identify corresponding first network address.
Specifically, medical data is produced when user see a doctor in medical institutions A, then transfer from one hospital to another Qu Liao medical institutions B, Then medical institutions A needs for the medical data of user to be sent to medical institutions B at this time, i.e., that there are medical datas is pending for second terminal It send to first terminal.Therefore user can operate in second terminal, such as selection needs to be sent to the doctor of first terminal Data are treated, and after the completion of selection, receives the instruction that selected medical data is sent to first terminal.
First address mark is first terminal when shared platform is registered, and shared platform is according to block chain wallet address What generating mode generated, first address mark is the identification address that the first terminal can be uniquely determined with the whole network.Specifically, The following steps are included: medical institutions pass through the terminal upload groups of medical institutions first when medical institutions are registered to shared platform The information such as Institution Code, organization names, address, contact person and contact method are knitted, shared platform is serviced by CA authenticating authority (since whole system uses unsymmetrical key technology as encryption and decryption and signature means, it is specifically incorporated third party CA power Prestige authentication center provides key for whole system.) key corresponding with the organization mechanism code is generated, including public key and private Key, and the whole network corresponding with the organization mechanism code is generated according to the wallet address generating mode of block chain and uniquely identifies ground Location, i.e., address mark above, and notify that medical institutions address identifies and key has generated.In therapeutic machine under user's line Structure installs and deploys server node, and the private key that shared platform generates is stored into the server node, and acquisition has been disposed At server node network address, by the network address by being uploaded to shared platform after private key encryption, thus shared flat Platform obtains network address, i.e. IP address according to the corresponding public key decryptions of private key, and network address and address mark etc. are closed Connection storage.
Therefore, after the first address mark for inquiring first terminal, it can be identified according to the first address and get correspondence First network address, i.e., above-mentioned IP address.
S204: second terminal and first terminal are attached by first network address;When second terminal is whole with first When holding connection failure, then second terminal and shared platform are attached.
Specifically, after getting the first network address of first terminal, second terminal is tasted by the first network address Examination establishes connection with first terminal, such as can be carried out by the way of three-way handshake.When second terminal is connect with first terminal When success, then second terminal gets corresponding first public key of first terminal first, then passes through the first public key for medical data First terminal is sent to after being encrypted, thus medical data of the first terminal in the encryption for getting second terminal transmission Afterwards, it can be decrypted by the medical data for the first private key pair encryption corresponding with the first public key being locally stored, and will solution Medical data after close is stored, and after storing, and first terminal is to second terminal returning response message to confirm encryption Medical data whole transmission success, and second terminal is in the response message for the medical data whole transmission success for receiving the encryption Afterwards, successful medical data will be sent to be labeled as sending successfully.And if second terminal it is received be encryption medical data hair When sending unsuccessfully, then the medical data of encryption can be sent to first terminal again.
In addition, if second terminal and first terminal connection failure, then second terminal is attempted second terminal and is shared flat Platform is attached, i.e., is attached second terminal and shared platform by the network address for the shared platform being locally stored.
S206: obtaining corresponding first public key of first terminal from shared platform, and by the first public key by medical data into Row encryption obtains forwarding instruction according to encrypted medical data.
When second terminal and shared platform successful connection, then corresponding first public key of first terminal is got, second eventually End encrypts the medical data for being sent to first terminal by the first public key, is turned according to encrypted medical data Send instructions.Specifically, second terminal passes through the first public key first and encrypts to the medical data for being sent to first terminal, so After obtain preset forwarding instruction template, encrypted medical data is added in preset forwarding instruction template and is forwarded Instruction.
S208: forwarding instruction is sent to shared platform, forwarding instruction is used to indicate shared platform for encrypted medical treatment Data are sent to first terminal, and the first response corresponding with encrypted medical data for receiving first terminal return is tied Fruit is back to second terminal.
Specifically, the forwarding instruction of generation is sent to shared platform by second terminal, is carried and is passed through in forwarding instruction Medical data after first public key encryption, shared platform, can will be after the encryptions after receiving the encrypted medical data Medical data be added to the forwarding queue of shared platform, shared platform is attached with first terminal, and will be in forwarding queue The medical data of corresponding encryption is forwarded to first terminal and passes through first after first terminal receives the medical data of the encryption The medical data of the first private key pair encryption corresponding with the first public key of terminal local storage is decrypted to obtain the medical treatment of plaintext Data, and send the first response results to shared platform, i.e. medical data receives successful first response results, and shared platform exists After receiving first response results, medical data corresponding in transmit queue is removed.And optionally, if first is whole The first response results that end returns are to send failure, then shared platform can be to the first response results of first terminal transmission again The medical data of failure is sent, to guarantee the transmission success of medical data.
S210: the first response results that shared platform returns are received, and successfully doctor will be sent according to the first response results Treating data markers is to send successfully.
Specifically, after shared platform receives and sends successful first response results, shared platform first responds this As a result it is back to corresponding second terminal, second terminal will send successful medical data labeled as hair according to the first response results Send success.
And it is alternatively possible to a queue to be confirmed is generated in second terminal, what is stored in queue to be confirmed is to be sent to The medical data of the encryption of first terminal, when the medical data that second terminal receives the encryption is sent successfully, and will plus Close medical data is deleted from queue to be confirmed.And if second terminal it is received be encryption medical data send failure When, then the medical data of encryption can be sent to shared platform again, in order to which shared platform is sent again.
Above-mentioned medical data sharing method is then inquired first when second terminal needs to send medical data to first terminal First address of first terminal identifies, and obtains the first address and identify corresponding first network address, by the first network Second terminal trial in location is attached with first terminal, if it fails to connect, then second terminal is by second terminal and shared platform Be attached, the medical data of second terminal be sent to by first terminal by shared platform, therefore even if first terminal with Under the premise of second terminal can not connect, medical data can also be sent to first terminal by second terminal, realize medical number According to it is shared.
Above-mentioned medical data sharing method can also include: and work as to connect mistake with shared platform in one of the embodiments, When losing, then medical data is subjected to the first broadcast;The second response results corresponding with the first broadcast that first terminal returns are received, And successful medical data will be sent according to the second response results and is labeled as sending successfully.
Specifically, when above-mentioned second terminal is with shared platform also connection failure, second terminal can be broadcasted in the whole network, The first medical data is subjected to the first broadcast, optionally, second terminal gets corresponding first public key of first terminal first, After being encrypted by the first public key to medical data, then encrypted medical data is carried out first and is broadcasted.Wherein broadcast Process is that encrypted medical data is sent to the present terminal being connected with second terminal, present terminal by second terminal first Judge whether encrypted medical data is to be sent to itself, if it is not, using the terminal being connected with present terminal as working as Preceding terminal, and then continue encrypted medical data being sent to present terminal, until some present terminal judges that this adds Close medical data is to be sent to itself, i.e. first terminal, after first terminal receives the encrypted medical data, according to Recipient in the medical data of encryption may determine that the medical data of the encryption is to be sent to itself.Specifically, under Table, transmission format of the medical data between first terminal, second terminal, third terminal and shared platform can be with are as follows:
First terminal passes through the medical data after corresponding first private key pair encryption of the first public key that is locally stored and is solved The close plaintext for obtaining corresponding medical data, and the plaintext of the medical data is stored, then pass through to second terminal wide The mode broadcast returns to medical data and receives successful response message, so that second terminal receives successfully receiving the medical data Response message after, can be by the medical data labeled as sending successfully, and it is alternatively possible in second terminal generation one to true Recognize queue, what is stored in queue to be confirmed is the medical data for being sent to the encryption of first terminal, when second terminal receives When the medical data of the encryption is sent successfully, deleted from queue to be confirmed and by the medical data of encryption.
In above-described embodiment, when second terminal can not be connect with first terminal, and also can not be by second terminal and shared flat When platform is attached, medical data can be sent to first terminal by way of broadcast by second terminal, ensure that medical number According to can accurately be shared.
In one of the embodiments, above-mentioned medical data sharing method can also include: when second terminal receive by When medical data is sent to the instruction of the user account in shared platform, then the corresponding second address mark of user account is obtained, and It obtains the second address and identifies corresponding second network address;Second terminal and shared platform are established by the second network address and connected It connects;When second terminal and shared platform successful connection, then medical data is encrypted by user account corresponding public key; Encrypted medical data is sent to corresponding user account in shared platform.
Specifically, wherein the second address mark is user when shared platform is registered, shared platform is according to block chain Wallet address generating mode generate identification corresponding with user account address, second address mark can be with the whole network uniquely Determine the user account or user.Wherein user is when shared platform is registered, first by the name of user, identity card Number, contact method etc. be uploaded to shared platform, shared platform first verifies that name, the body that user uploads by real-name authentication system Whether part card number, contact method etc. are correct, pass through the corresponding key of CA certified authority generation, including public key if correct And private key, and private key is sent to individual, and by the network address of shared platform, i.e., IP address is as corresponding with the user The second network address.
When the medical data of second terminal is to be sent to individual, i.e., it is to be sent to medical data that second terminal is received When user account in shared platform instructs, that is, when needing to be sent to the user account of shared platform, then second terminal obtains first The corresponding second address mark of user account is got, and obtains the second address and identifies corresponding second network address.Then pass through Second terminal and shared platform are attached by second network address, and after successful connection, will be cured by the second public key It treats data to be encrypted, and the medical data of encryption is sent to shared platform, shared platform is in the medical treatment for receiving the encryption After data, the medical data of the encryption is stored, and returns to medical data to second terminal and receives successful response message, Corresponding medical data is labeled as receiving successfully to which second terminal receives successful response message according to the medical data.
It is alternatively possible to generate a queue to be confirmed in second terminal, what is stored in queue to be confirmed is to be sent to altogether The medical data for enjoying the encryption of platform, when the medical data that second terminal receives the encryption is sent successfully, and by encryption Medical data deleted from queue to be confirmed.
In above-described embodiment, when individual finishes watching after being ill in medical institutions, this is needed to see a doctor generated medical data, then Medical data transmission shared platform is stored by hospital, specifically, obtains the corresponding second address mark of user account, And it obtains the second address and identifies corresponding second network address;Second terminal and shared platform are established by the second network address Connection;When second terminal and shared platform successful connection, then medical data is added by user account corresponding public key It is close;Encrypted medical data is sent to corresponding user account in shared platform, so that user can log in shared platform To check corresponding medical number.
Above-mentioned medical data sharing method can also include: and work as to receive first terminal hair in one of the embodiments, When the abstract of the medical data sent, then the corresponding transaction ID of medical data and connected transaction mark are obtained;Whether inquiry local It is stored with medical data corresponding with connected transaction mark;If it is present eventually by the first address mark of first terminal, second Second address mark, the abstract of medical data and the transaction ID at end generate the first verifying instruction;By the first verifying instruction hair It send to shared platform, the first verifying instruction is used to indicate the legitimacy of shared platform verifying medical data;It is shared flat when receiving When verifying the corresponding result being proved to be successful of instruction with first of platform return, then continue the first address label for inquiring first terminal Know, and obtains the first address and identify corresponding first network address.
Above-mentioned medical data sharing method can also include: to have and close when locally not stored in one of the embodiments, When joining the corresponding medical data of transaction ID, then connected transaction mark is subjected to the second broadcast, the second broadcast is used to indicate and the The present terminal inquiry present terminal that two terminals are connected locally whether there is medical data corresponding with connected transaction mark, and If it is present corresponding medical data is back to second terminal, if it does not exist, then the end being connected with present terminal End is used as present terminal, and continues to send the second broadcast to present terminal;The present terminal that reception is stored with medical data returns The medical data corresponding with the second broadcast returned;Third address mark, the second end of the present terminal of medical data will be stored with Second address mark, the abstract of medical data and the transaction ID at end generate the second verifying instruction;By the second verifying instruction hair It send to shared platform, the second verifying instruction is used to indicate the legitimacy of shared platform verifying medical data;It is shared flat when receiving When verifying the corresponding result being proved to be successful of instruction with second of platform return, then continue the first address label for inquiring first terminal Know, and obtains the first address and identify corresponding first network address.
Specifically, which may include:
When second terminal receives the abstract of the medical data of first terminal transmission, wherein data format table institute for example above Show, wherein encrypted content and clear content are the abstracts of medical data, and there is also connected transaction mark and transaction IDs.Second Terminal extracts abstract, the trading standard of medical data according to preset data format from received medical data first Know and transaction association identifies.
Whether second terminal inquiry is local is stored with medical data corresponding with connected transaction mark, if it is present directly Connect by the first address of first terminal mark, the second address mark of second terminal, medical data abstract and transaction ID Generate the first verifying instruction, which instructed and is sent to shared platform and goes to verify, shared platform receive this When one verifying is instruction, the first address that whether inquiry shared platform is stored with first terminal first is identified, if be stored with, It proves that first terminal is legal terminal, then can also inquire the second address label whether shared platform is stored with second terminal Know, similarly, if be stored with, prove second terminal be also it is legal, shared platform establishes second terminal, medical data The incidence relation of abstract and transaction ID, thus in abstract either transaction ID inquiry of the next time according to medical data, Shared platform directly can recommend second terminal to corresponding terminal according to the incidence relation, and pass through the legal of shared platform After verifying, corresponding medical data can be sent to first terminal by second terminal, that is, repeat the above steps S202 to S210.Such as The legitimate verification of fruit first terminal fails, i.e., first terminal is not registered in shared platform also, then shared platform second is whole End returns to the illegal information of first terminal, in order to which second terminal is disconnected with first terminal in time.
When second terminal locally it is not stored have with connected transaction identify corresponding medical data when, then connected transaction is identified The second broadcast is carried out, such as sends the second broadcast to the present terminal being connected with second terminal first, present terminal inquiry is worked as Whether preceding terminal local is stored with medical data corresponding with connected transaction mark, if it is present by corresponding medical data It is back to second terminal;If it does not exist, then the terminal that present terminal is connected is as present terminal, and continue to current end End sends the second broadcast, until there are a certain present terminals for being stored with medical data to return to volume medical treatment corresponding with the second broadcast Data.Then at this time second terminal will be stored with medical data present terminal third address mark, second terminal the second ground Location mark, the abstract of medical data and transaction ID generate the second verifying instruction, and shared platform, which receives second verifying, is When instruction, the third address mark that whether inquiry shared platform is stored with present terminal first proves current if be stored with Terminal is legal terminal, then can also inquire the second address mark whether shared platform is stored with second terminal, equally Ground, if be stored with, prove second terminal be also it is legal, shared platform establish present terminal, medical data abstract with And the incidence relation of transaction ID, to be shared flat in abstract either transaction ID inquiry of the next time according to medical data Platform directly can recommend this to be stored with the present terminal of medical data according to the incidence relation to corresponding terminal, and by altogether After the legal verifying for enjoying platform, corresponding medical data can be sent to first terminal by second terminal, that is, be repeated the above steps S202 to S210.If the legitimate verification of present terminal fails, i.e., present terminal is not registered in shared platform also, then altogether It enjoys platform second terminal and returns to the illegal information of present terminal, in order to which second terminal is disconnected with present terminal in time. Optionally, above-mentioned verification process can also include the verification process to first terminal, specifically may refer to above, no longer superfluous herein It states.
In practical application, first terminal is medical institutions A, and second terminal is medical institutions B, and present terminal is medical institutions It is illustrated for C, medical institutions B first receives the abstract of the medical data of medical institutions A transmission, including medical number According to transaction ID txID and connected transaction identify InTxID, medical institutions B, which is checked in local data base, first whether there is Medical data corresponding with connected transaction mark InTxID, if it is present directly passing through the address mark of medical institutions A, doctor The address mark of mechanism B, the abstract of medical data are treated, i.e. hash256 value and archives transaction indicates that TxID is tested to shared platform The legitimacy of transaction is demonstrate,proved, that is, verifies the legitimacy of medical institutions A, such as whether verifying medical institutions A has been infused in platform Volume etc., if there is no transaction corresponding with connected transaction mark InTxID, the whole network broadcast in the local data base of medical institutions B The corresponding transaction of connected transaction mark InTxID is inquired, to get the corresponding medical data of connected transaction mark InTxID, and Medical institutions B needs to verify the conjunction for sending the medical institutions of the medical data after getting the corresponding medical data of InTxID Method, the abstract of address mark, medical data including medical institutions B, i.e. hash256 value and archives transaction ID TxID, So as to the legitimacy traded to platform validation.
The step of the whole network broadcast query connected transaction mark InTxID corresponding transaction in one of the embodiments, can be with It include: that inquiry of the medical institutions B about the corresponding transaction of connected transaction mark InTxID is received with another medical institutions C For request, medical institutions C retrieves the corresponding transaction of connected transaction mark InTxID in the local database whether there is, if In the presence of then medical institutions B is sent in such a way that data are sent, if it does not exist, then medical institutions C is looked into peer forwarding Request is ask, i.e., forwards the inquiry request to other medical institutions connecting with medical institutions C.
Optionally, wherein the reception of broadcast data is also possible to be stored with doctor by broadcast progress, such as present terminal When treating data, medical data is back to corresponding second terminal in the mode also by broadcast, and optionally, second terminal exists After receiving data, successful message can also will be received by way of broadcast and is sent to present terminal, i.e., doctor above The mode of flow structure C, broadcast may refer to described above, and details are not described herein.
It is in one of the embodiments, the flow chart of the data directory step in one embodiment referring to Fig. 3, Fig. 3, it should The step of medical data sharing method can also include the steps that a data directory, the data directory can be stored with doctor in reception After treating the medical data corresponding with the second broadcast that the terminals of data returns, the step of data directory, may include:
S402: whether the terminal iidentification for detecting the recipient of medical data is identical as local second terminal mark.
Specifically, when second terminal receives medical data, shown in data format table as mentioned in the above, wherein wrapping The terminal iidentification of recipient is included, therefore second terminal can then detect in medical data first when receiving medical data Recipient whether be itself, if it is for itself, then continue step S404, otherwise continue step S406.Wherein detect Process can be that judge that the terminal iidentification of the recipient in medical data and the second terminal of second terminal identify whether identical, Wherein terminal iidentification also can be replaced address mark, and details are not described herein.
S404: when identical, then pass through the second private key corresponding with second terminal mark being locally stored to medical data It is decrypted, and the medical data after decryption is stored by way of index to local.
Specifically, when identical, i.e., when second terminal is recipient, then by being locally stored and second terminal mark pair Medical data is decrypted in the second private key answered, and then stores the data after decryption to local, example by way of index Such as it is indexed by recipient, sender, transaction ID field.
S406: when not identical, then obtaining the plaintext in medical data, and by stored in clear to local.
Specifically, when not identical, i.e., when second terminal is not recipient, the plaintext in medical data is obtained, and will be bright Text is stored to local, wherein storage plaintext mode be also possible to by way of index, in this way can in order to subsequent inquiry, Such as it is indexed by fields such as recipient, sender, transaction IDs.
In above-described embodiment, when second terminal receives medical data, first determine whether itself is recipient, if Be, decryption after stored by way of index to local, if it is not, then in plain text stored by way of index to local, this Sample can be in order to subsequent inquiry.
Above-mentioned medical data sharing method can also include the access at any time of medical data in one of the embodiments, The access at any time of the medical data may include: the medical data inquiry instruction for receiving input;According to medical data inquiry instruction Whether inquiry is local is stored with corresponding medical data;When corresponding medical data has been locally stored, then by being locally stored The second private key medical data is decrypted, and the medical data after decryption is shown;There is correspondence when locally not stored Medical data when, then to shared platform send medical data inquiry instruction;Receive looking into medical data for shared platform return It askes and instructs corresponding medical data, and medical data is decrypted in the second private key by being locally stored, and will be after decryption Medical data is shown.
Specifically, the use user of second terminal can inquire some corresponding medical datas by second terminal at any time, Such as user can be in the display interface of second terminal by the operation inputs such as clicking to medical data inquiry instruction, such as it can be with The feature of medical data to be checked is input to second terminal first, then clicks and obtains button, so that second terminal can be with Medical data inquiry instruction is received, for second terminal according to medical data inquiry instruction generated, it is according to be checked that spy is standby The characteristic query of medical data locally whether be stored with corresponding medical data, if corresponding medical number has been locally stored According to medical data is decrypted in the second private key being then locally stored, and the medical data after decryption is shown.If this Ground is not stored corresponding medical data, then second terminal sends medical data inquiry instruction, shared platform root to shared platform The terminal of the storage of medical data is judged according to the feature of medical data entrained in inquiry instruction, then depositing from medical data The terminal of storage gets corresponding medical data, and the medical data is sent to second terminal, optionally, in medical data It needs to encrypt medical data by the second public key in transmission process, in this way when second terminal receives medical data, Medical data is decrypted by the second private key being locally stored, and the medical data after decryption is shown, completes the The access at any time of the medical data of two terminals.
Optionally, personal user can also realize the access at any time of medical data by shared platform, for example, user passes through The address mark medical data affiliated from shared platform inquiry, then corresponding medical data is returned to user couple by shared platform The terminal answered, the corresponding terminal of user are checked after being decrypted by private key.
In above-described embodiment, user can also access at any time medical data by terminal, realize checking for medical data.
It should be understood that although each step in the flow chart of Fig. 2-4 is successively shown according to the instruction of arrow, These steps are not that the inevitable sequence according to arrow instruction successively executes.Unless expressly stating otherwise herein, these steps Execution there is no stringent sequences to limit, these steps can execute in other order.Moreover, at least one in Fig. 2-4 Part steps may include that perhaps these sub-steps of multiple stages or stage are not necessarily in synchronization to multiple sub-steps Completion is executed, but can be executed at different times, the execution sequence in these sub-steps or stage is also not necessarily successively It carries out, but can be at least part of the sub-step or stage of other steps or other steps in turn or alternately It executes.
In one embodiment, as shown in figure 4, providing a kind of medical data sharing means, comprising: the first enquiry module 100, the first link block 200, first obtains module 300, the first sending module 400 and the first receiving module 500, in which:
First enquiry module 100, for when second terminal receive send medical data to first terminal instruction when, then The first address mark of first terminal is inquired, and obtains the first address and identifies corresponding first network address.
First link block 200, for being attached second terminal and first terminal by first network address;When When two terminals and first terminal connection failure, then second terminal and shared platform are attached.
First obtains module 300, for obtaining corresponding first public key of first terminal from shared platform, and it is public by first Key encrypts medical data, obtains forwarding instruction according to encrypted medical data.
First sending module 400, for instruction will to be forwarded to be sent to shared platform, forwarding instruction is used to indicate shared platform Encrypted medical data is sent to first terminal, and will receiving first terminal return with encrypted medical data pair The first response results answered are back to second terminal.
First receiving module 500, for receiving the first response results of shared platform return, and according to the first response results Successful medical data will be sent to be labeled as sending successfully.
Above-mentioned medical data sharing means can also include: in one of the embodiments,
First broadcast module, for when with shared platform connection failure, then medical data being carried out the first broadcast.
Second receiving module, for receiving the second response results corresponding with the first broadcast of first terminal return, and root Successful medical data will be sent according to the second response results to be labeled as sending successfully.
Above-mentioned medical data sharing means can also include: in one of the embodiments,
Second enquiry module, for receiving the user account being sent to medical data in shared platform when second terminal When instruction, then the corresponding second address mark of user account is obtained, and obtain the second address and identify corresponding second network address.
Second link block, for second terminal and shared platform to be established connection by the second network address.
Second obtains module, for when second terminal and shared platform successful connection, then it is corresponding to pass through user account Public key encrypts medical data.
Second sending module, for encrypted medical data to be sent to corresponding user account in shared platform.
Above-mentioned medical data sharing means can also include: in one of the embodiments,
Third obtains module, for when receiving the abstract of medical data of first terminal transmission, then obtaining medical number It is identified according to corresponding transaction ID and connected transaction.
Whether third enquiry module is locally stored with medical data corresponding with connected transaction mark for inquiring.
First authentication module, for if it is present by the second ground of the first address mark of first terminal, second terminal Location mark, the abstract of medical data and transaction ID generate the first verifying instruction.
Third sending module, for the first verifying instruction to be sent to shared platform, the first verifying instruction is used to indicate altogether Enjoy the legitimacy of platform validation medical data.
Third receiving module, for being proved to be successful when receiving the corresponding with the first verifying instruction of shared platform return When as a result, then continue the first address mark for inquiring first terminal, and obtain the first address and identify corresponding first network address.
Above-mentioned medical data sharing means can also include: in one of the embodiments,
Second broadcast module, for that when local is not stored to be had with the connected transaction corresponding medical data of mark, then will close Join transaction ID and carry out the second broadcast, the second broadcast is used to indicate the present terminal inquiry present terminal being connected with second terminal It is local to whether there is medical data corresponding with connected transaction mark, and if it is present corresponding medical data is back to Second terminal, if it does not exist, then using the terminal being connected with present terminal as present terminal, and continue to present terminal Send the second broadcast.
4th receiving module, for receiving the doctor corresponding with the second broadcast for being stored with the present terminal of medical data and returning Treat data.
Second authentication module, third address mark, the second terminal of the present terminal for medical data will to be stored with Second address mark, the abstract of medical data and transaction ID generate the second verifying instruction.
4th sending module, for the second verifying instruction to be sent to shared platform, the second verifying instruction is used to indicate altogether Enjoy the legitimacy of platform validation medical data.
5th receiving module, for being proved to be successful when receiving the corresponding with the second verifying instruction of shared platform return When as a result, then continue the first address mark for inquiring first terminal, and obtain the first address and identify corresponding first network address.
Above-mentioned medical data sharing means can also include: in one of the embodiments,
Detection module, for detecting whether the terminal iidentification of recipient of medical data with local second terminal identifies phase Together.
Memory module, for when identical, then passing through the second private key pair corresponding with second terminal mark being locally stored Medical data is decrypted, and the medical data after decryption is stored by way of index to local;When not identical, then obtain Take the plaintext in medical data, and by stored in clear to local.
Above-mentioned medical data sharing means can also include: in one of the embodiments,
6th receiving module, medical data inquiry instruction for receiving input.
Third enquiry module, for whether being stored with corresponding medical number according to the inquiry of medical data inquiry instruction is local According to.
First deciphering module, for when corresponding medical data has been locally stored, then it is private to pass through second be locally stored Medical data is decrypted in key, and the medical data after decryption is shown.
Second deciphering module, for when local is not stored corresponding medical data, then sending medical treatment to shared platform Data query instruction;The medical data corresponding with medical data inquiry instruction that shared platform returns is received, and is deposited by local Medical data is decrypted in second private key of storage, and the medical data after decryption is shown.
Specific about medical data sharing means limits the limit that may refer to above for medical data sharing method Fixed, details are not described herein.Modules in above-mentioned medical data sharing means can fully or partially through software, hardware and its Combination is to realize.Above-mentioned each module can be embedded in the form of hardware or independently of in the processor in computer equipment, can also be with It is stored in the memory in computer equipment in a software form, in order to which processor calls the above modules of execution corresponding Operation.
In one embodiment, a kind of computer equipment is provided, which can be terminal, internal structure Figure can be as shown in Figure 5.The computer equipment includes processor, the memory, network interface, display connected by system bus Screen and input unit.Wherein, the processor of the computer equipment is for providing calculating and control ability.The computer equipment is deposited Reservoir includes non-volatile memory medium, built-in storage.The non-volatile memory medium is stored with operating system and computer journey Sequence.The built-in storage provides environment for the operation of operating system and computer program in non-volatile memory medium.The calculating The network interface of machine equipment is used to communicate with external terminal by network connection.When the computer program is executed by processor with Realize a kind of medical data sharing method.The display screen of the computer equipment can be liquid crystal display or electric ink is shown Screen, the input unit of the computer equipment can be the touch layer covered on display screen, be also possible on computer equipment shell Key, trace ball or the Trackpad of setting can also be external keyboard, Trackpad or mouse etc..
It will be understood by those skilled in the art that structure shown in Fig. 5, only part relevant to application scheme is tied The block diagram of structure does not constitute the restriction for the computer equipment being applied thereon to application scheme, specific computer equipment It may include perhaps combining certain components or with different component layouts than more or fewer components as shown in the figure.
In one embodiment, a kind of computer equipment, including memory and processor are provided, which is stored with Computer program, the processor perform the steps of when executing computer program when second terminal receives transmission medical data To first terminal instruction when, then inquire first terminal the first address mark, and obtain the first address mark corresponding first Network address;Second terminal and first terminal are attached by first network address;When second terminal and first terminal connect When connecing unsuccessfully, then second terminal and shared platform are attached;Corresponding first public key of first terminal is obtained from shared platform, And encrypted medical data by the first public key, forwarding instruction is obtained according to encrypted medical data;Forwarding is instructed It is sent to shared platform, forwarding instruction is used to indicate shared platform and encrypted medical data is sent to first terminal, and will The first response results corresponding with encrypted medical data for receiving first terminal return are back to second terminal;It receives altogether Enjoy platform return the first response results, and according to the first response results will send successful medical data labeled as send at Function.
In one embodiment, it also performs the steps of to work as when processor executes computer program and be connect with shared platform When failure, then medical data is subjected to the first broadcast;Receive the second response knot corresponding with the first broadcast that first terminal returns Fruit, and successful medical data will be sent according to the second response results and be labeled as sending successfully.
In one embodiment, it also performs the steps of when processor executes computer program when second terminal receives When medical data is sent to the instruction of the user account in shared platform, then the corresponding second address mark of user account is obtained, And it obtains the second address and identifies corresponding second network address;Second terminal and shared platform are established by the second network address Connection;When second terminal and shared platform successful connection, then medical data is added by user account corresponding public key It is close;Encrypted medical data is sent to corresponding user account in shared platform.
In one embodiment, it also performs the steps of to work as when processor executes computer program and receives first terminal When the abstract of the medical data of transmission, then the corresponding transaction ID of medical data and connected transaction mark are obtained;Inquiry is local to be It is no to be stored with medical data corresponding with connected transaction mark;If it is present by the first address mark of first terminal, second The second address mark, the abstract of medical data and the transaction ID of terminal generate the first verifying instruction;By the first verifying instruction It is sent to shared platform, the first verifying instruction is used to indicate the legitimacy of shared platform verifying medical data;It is shared when receiving When verifying the corresponding result being proved to be successful of instruction with first of platform return, then continue the first address label for inquiring first terminal Know, and obtains the first address and identify corresponding first network address.
In one embodiment, also performed the steps of when processor executes computer program when it is local it is not stored have with Connected transaction identify corresponding medical data when, then by connected transaction mark carry out second broadcast, second broadcast be used to indicate with The present terminal inquiry present terminal that second terminal is connected locally whether there is medical data corresponding with connected transaction mark, And if it is present corresponding medical data is back to second terminal, if it does not exist, then will be connected with present terminal Terminal continues to send the second broadcast to present terminal as present terminal;Receive the present terminal for being stored with medical data The medical data corresponding with the second broadcast returned;To be stored with the present terminal of medical data third address mark, second The second address mark, the abstract of medical data and the transaction ID of terminal generate the second verifying instruction;By the second verifying instruction It is sent to shared platform, the second verifying instruction is used to indicate the legitimacy of shared platform verifying medical data;It is shared when receiving When verifying the corresponding result being proved to be successful of instruction with second of platform return, then continue the first address label for inquiring first terminal Know, and obtains the first address and identify corresponding first network address.
In one embodiment, processor executes the terminal that the reception realized when computer program is stored with medical data It can also include: the terminal iidentification for detecting the recipient of medical data after the medical data corresponding with the second broadcast returned It is whether identical as local second terminal mark;When identical, then by be locally stored corresponding with second terminal mark the Medical data is decrypted in two private keys, and the medical data after decryption is stored by way of index to local;When not phase Meanwhile the plaintext in medical data is then obtained, and by stored in clear to local.
In one embodiment, the medical number for receiving input is also performed the steps of when processor executes computer program According to inquiry instruction;Corresponding medical data whether is stored with according to the inquiry of medical data inquiry instruction is local;When being locally stored When corresponding medical data, then medical data is decrypted by the second private key for being locally stored, and by the medical treatment after decryption Data are shown;When local is not stored corresponding medical data, then medical data inquiry instruction is sent to shared platform; Receive the medical data corresponding with medical data inquiry instruction that shared platform returns, and the second private key pair by being locally stored Medical data is decrypted, and the medical data after decryption is shown.
In one embodiment, a kind of computer readable storage medium is provided, computer program is stored thereon with, is calculated Machine program performs the steps of when being executed by processor sends the instruction of medical data to first terminal when second terminal receives When, then the first address mark of first terminal is inquired, and obtain the first address and identify corresponding first network address;Pass through first Second terminal and first terminal are attached by network address;When second terminal and first terminal connection failure, then by second Terminal is attached with shared platform;Corresponding first public key of first terminal is obtained from shared platform, and will by the first public key Medical data is encrypted, and obtains forwarding instruction according to encrypted medical data;Forwarding instruction is sent to shared platform, is turned Send instructions and be used to indicate shared platform encrypted medical data is sent to first terminal, and first terminal return will be received The first response results corresponding with encrypted medical data be back to second terminal;Receive the first sound that shared platform returns It answers as a result, and successful medical data will be sent labeled as sending successfully according to the first response results.
In one embodiment, it also performs the steps of when computer program is executed by processor and connects when with shared platform When connecing unsuccessfully, then medical data is subjected to the first broadcast;Receive the second response corresponding with the first broadcast that first terminal returns As a result, and successful medical data will be sent labeled as sending successfully according to the second response results.
In one embodiment, it is also performed the steps of when computer program is executed by processor when second terminal receives To when medical data is sent to the instruction of the user account in shared platform, then corresponding second address label of user account is obtained Know, and obtains the second address and identify corresponding second network address;By the second network address by second terminal and shared platform Establish connection;When second terminal and when shared platform successful connection, then by the corresponding public key of user account to medical data into Row encryption;Encrypted medical data is sent to corresponding user account in shared platform.
In one embodiment, it is also performed the steps of when computer program is executed by processor whole when receiving first When holding the abstract of the medical data sent, then the corresponding transaction ID of medical data and connected transaction mark are obtained;Inquiry is local Whether with connected transaction mark corresponding medical data is stored with;If it is present by the first address of first terminal mark, the The second address mark, the abstract of medical data and the transaction ID of two terminals generate the first verifying instruction;First verifying is referred to Order is sent to shared platform, and the first verifying instruction is used to indicate the legitimacy of shared platform verifying medical data;It is total when receiving When verifying the corresponding result being proved to be successful of instruction with first of platform return is enjoyed, then continues the first address for inquiring first terminal Mark, and obtain the first address and identify corresponding first network address.
In one embodiment, also performing the steps of when computer program is executed by processor has when locally not stored When identifying corresponding medical data with connected transaction, then connected transaction mark is subjected to the second broadcast, the second broadcast is used to indicate And the present terminal inquiry present terminal that second terminal is connected locally whether there is medical number corresponding with connected transaction mark According to, and if it is present corresponding medical data is back to second terminal, if it does not exist, then will be connected with present terminal The terminal connect continues to send the second broadcast to present terminal as present terminal;Reception is stored with the current of medical data The medical data corresponding with the second broadcast that terminal returns;To be stored with the present terminal of medical data third address mark, The second address mark, the abstract of medical data and the transaction ID of second terminal generate the second verifying instruction;By the second verifying Instruction is sent to shared platform, and the second verifying instruction is used to indicate the legitimacy of shared platform verifying medical data;When receiving When verifying the corresponding result being proved to be successful of instruction with second of shared platform return, then continue the first ground for inquiring first terminal Location mark, and obtain the first address and identify corresponding first network address.
In one embodiment, the reception realized when computer program is executed by processor is stored with the end of medical data It can also include: the terminal mark for detecting the recipient of medical data after holding the medical data corresponding with the second broadcast returned Whether identical as local second terminal mark know;It is when identical, then corresponding with second terminal mark by being locally stored Medical data is decrypted in second private key, and the medical data after decryption is stored by way of index to local;When not When identical, then the plaintext in medical data is obtained, and by stored in clear to local.
In one embodiment, the medical treatment for receiving input is also performed the steps of when computer program is executed by processor Data query instruction;Corresponding medical data whether is stored with according to the inquiry of medical data inquiry instruction is local;When being locally stored When having corresponding medical data, then medical data is decrypted by the second private key for being locally stored, and by the doctor after decryption Data are treated to be shown;When local is not stored corresponding medical data, then medical data inquiry is sent to shared platform and referred to It enables;The medical data corresponding with medical data inquiry instruction that shared platform returns is received, and second by being locally stored is private Medical data is decrypted in key, and the medical data after decryption is shown.
Those of ordinary skill in the art will appreciate that realizing all or part of the process in above-described embodiment method, being can be with Relevant hardware is instructed to complete by computer program, the computer program can be stored in a non-volatile computer In read/write memory medium, the computer program is when being executed, it may include such as the process of the embodiment of above-mentioned each method.Wherein, To any reference of memory, storage, database or other media used in each embodiment provided herein, Including non-volatile and/or volatile memory.Nonvolatile memory may include read-only memory (ROM), programming ROM (PROM), electrically programmable ROM (EPROM), electrically erasable ROM (EEPROM) or flash memory.Volatile memory may include Random access memory (RAM) or external cache.By way of illustration and not limitation, RAM is available in many forms, Such as static state RAM (SRAM), dynamic ram (DRAM), synchronous dram (SDRAM), double data rate sdram (DDRSDRAM), enhancing Type SDRAM (ESDRAM), synchronization link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic ram (DRDRAM) and memory bus dynamic ram (RDRAM) etc..
Each technical characteristic of above embodiments can be combined arbitrarily, for simplicity of description, not to above-described embodiment In each technical characteristic it is all possible combination be all described, as long as however, the combination of these technical characteristics be not present lance Shield all should be considered as described in this specification.
The several embodiments of the application above described embodiment only expresses, the description thereof is more specific and detailed, but simultaneously It cannot therefore be construed as limiting the scope of the patent.It should be pointed out that coming for those of ordinary skill in the art It says, without departing from the concept of this application, various modifications and improvements can be made, these belong to the protection of the application Range.Therefore, the scope of protection shall be subject to the appended claims for the application patent.

Claims (10)

1. a kind of medical data sharing method, which is characterized in that the described method includes:
When second terminal receives the instruction for sending medical data to first terminal, then the first ground of the first terminal is inquired Location mark, and obtain first address and identify corresponding first network address;
The second terminal and the first terminal are attached by the first network address;
When the second terminal and the first terminal connection failure, then the second terminal is connected with shared platform It connects;
Corresponding first public key of the first terminal is obtained from the shared platform, and passes through first public key for medical data It is encrypted, forwarding instruction is obtained according to encrypted medical data;
Forwarding instruction is sent to the shared platform, the forwarding instruction is used to indicate the shared platform will be after encryption Medical data be sent to the first terminal, and it is returning with the encrypted medical number to receive the first terminal The second terminal is back to according to corresponding first response results;
The first response results that the shared platform returns are received, and successfully medical treatment will be sent according to first response results Data markers are to send successfully.
2. the method according to claim 1, wherein the method also includes:
When with the shared platform connection failure, then the medical data is subjected to the first broadcast;
The second response results corresponding with first broadcast that the first terminal returns are received, and according to second response As a result successful medical data will be sent to be labeled as sending successfully.
3. the method according to claim 1, wherein the method also includes:
When second terminal receives user account instruction medical data being sent in shared platform, then obtain the user The corresponding second address mark of account, and obtain second address and identify corresponding second network address;
The second terminal and shared platform are established into connection by second network address;
When the second terminal and the shared platform successful connection, then by the corresponding public key of the user account to described Medical data is encrypted;
The encrypted medical data is sent to corresponding user account in the shared platform.
4. according to claim 1 to method described in 3 any one, which is characterized in that the method also includes:
When receive first terminal transmission medical data abstract when, then obtain the corresponding transaction ID of the medical data and Connected transaction mark;
Whether inquiry is local is stored with medical data corresponding with connected transaction mark;
If it is present by the first address mark of the first terminal, the second address mark of the second terminal, the doctor The abstract and the transaction ID for treating data generate the first verifying instruction;
The first verifying instruction is sent to shared platform, the first verifying instruction is used to indicate the shared platform verifying The legitimacy of the medical data;
When receiving when verifying the corresponding result being proved to be successful of instruction with described first of the shared platform return, then continue The first address mark of the first terminal is inquired, and obtains first address and identifies corresponding first network address.
5. according to the method described in claim 4, it is characterized in that, the method also includes:
When local is not stored to be had with the connected transaction corresponding medical data of mark, then the connected transaction is identified and carried out Second broadcast, second broadcast, which is used to indicate the present terminal inquiry present terminal being connected with the second terminal, is locally It is no to there is medical data corresponding with connected transaction mark, and if it is present corresponding medical data is back to the Two terminals, if it does not exist, then using the terminal being connected with the present terminal as present terminal, and continue to work as to described Preceding terminal sends second broadcast;
It receives and is stored with the medical data corresponding with second broadcast that the present terminal of the medical data returns;
By the second address label of the third address mark of the present terminal for being stored with the medical data, the second terminal Know, the abstract of the medical data and the transaction ID generate the second verifying instruction;
The second verifying instruction is sent to shared platform, the second verifying instruction is used to indicate the shared platform verifying The legitimacy of the medical data;
When receiving when verifying the corresponding result being proved to be successful of instruction with described second of the shared platform return, then continue The first address mark of the first terminal is inquired, and obtains first address and identifies corresponding first network address.
6. according to the method described in claim 5, it is characterized in that, described receive the terminal return for being stored with the medical data Medical data corresponding with second broadcast after, further includes:
Whether the terminal iidentification for detecting the recipient of the medical data is identical as local second terminal mark;
When identical, then by the second private key corresponding with second terminal mark for being locally stored to the medical data into Row decryption, and the medical data after decryption is stored by way of index to local;
When not identical, then the plaintext in the medical data is obtained, and by the stored in clear to local.
7. according to claim 1 to method described in 3 any one, which is characterized in that the method also includes:
Receive the medical data inquiry instruction of input;
Corresponding medical data whether is stored with according to medical data inquiry instruction inquiry is local;
When corresponding medical data has been locally stored, then the medical data is solved by the second private key being locally stored It is close, and the medical data after decryption is shown;
When local is not stored corresponding medical data, then the medical data inquiry instruction is sent to shared platform;
The medical data corresponding with the medical data inquiry instruction that the shared platform returns is received, and by being locally stored The second private key the medical data is decrypted, and the medical data after decryption is shown.
8. a kind of medical data sharing means, which is characterized in that described device includes:
First enquiry module, for when second terminal receives the instruction for sending medical data to first terminal, then inquiring institute The first address mark of first terminal is stated, and obtains first address and identifies corresponding first network address;
First link block, for being connected the second terminal and the first terminal by the first network address It connects;When the second terminal and the first terminal connection failure, then the second terminal is attached with shared platform;
First obtains module, for obtaining corresponding first public key of the first terminal from the shared platform, and by described First public key encrypts medical data, obtains forwarding instruction according to encrypted medical data;
First sending module, for forwarding instruction to be sent to the shared platform, the forwarding instruction is used to indicate institute State shared platform and encrypted medical data be sent to the first terminal, and will receive that the first terminal returns with Corresponding first response results of the encrypted medical data are back to the second terminal;
First receiving module, the first response results returned for receiving the shared platform, and tied according to first response Fruit will send successful medical data and be labeled as sending successfully.
9. a kind of computer equipment, including memory and processor, the memory are stored with computer program, feature exists In the step of processor realizes any one of claims 1 to 7 the method when executing the computer program.
10. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the computer program The step of method described in any one of claims 1 to 7 is realized when being executed by processor.
CN201810725981.4A 2018-07-04 2018-07-04 Medical data sharing method and device, computer equipment and storage medium Active CN108965416B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810725981.4A CN108965416B (en) 2018-07-04 2018-07-04 Medical data sharing method and device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810725981.4A CN108965416B (en) 2018-07-04 2018-07-04 Medical data sharing method and device, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN108965416A true CN108965416A (en) 2018-12-07
CN108965416B CN108965416B (en) 2022-04-15

Family

ID=64485500

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810725981.4A Active CN108965416B (en) 2018-07-04 2018-07-04 Medical data sharing method and device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN108965416B (en)

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109919691A (en) * 2019-02-27 2019-06-21 腾讯科技(深圳)有限公司 A kind of system of data processing, method and device
CN110148475A (en) * 2019-04-03 2019-08-20 平安科技(深圳)有限公司 A kind of Medical data sharing method, apparatus, readable storage medium storing program for executing and server
CN110706766A (en) * 2019-08-31 2020-01-17 华南理工大学 Electronic medical record management system and referral method based on block chain
CN110910978A (en) * 2019-11-21 2020-03-24 腾讯科技(深圳)有限公司 Information processing method applied to block chain network and related device
CN111324787A (en) * 2018-12-14 2020-06-23 北京沃东天骏信息技术有限公司 Block chain data display method and device in block chain browser
CN111382420A (en) * 2018-12-29 2020-07-07 金联汇通信息技术有限公司 Data transaction method, device, system, electronic equipment and readable storage medium
CN111726268A (en) * 2019-03-19 2020-09-29 佛山市顺德区美的电热电器制造有限公司 Data sharing method and device, equipment and storage medium
CN111883228A (en) * 2020-07-28 2020-11-03 平安科技(深圳)有限公司 Health information recommendation method, device, equipment and medium based on knowledge graph
CN112152980A (en) * 2019-06-28 2020-12-29 深圳迈瑞生物医疗电子股份有限公司 Data transmission method, medical ventilation equipment and storage medium
CN112988427A (en) * 2021-04-14 2021-06-18 深圳证券交易所 Data exchange method, device and medium
CN113779621A (en) * 2021-08-24 2021-12-10 浙江数秦科技有限公司 Data sharing method based on block chain

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150154357A1 (en) * 2013-11-29 2015-06-04 Nokia Corporation Method and appratus for determining consent to access medical data based on an aggregate reponse
CN106453612A (en) * 2016-11-10 2017-02-22 华中科技大学 Data storage and sharing system
CN107330301A (en) * 2017-08-25 2017-11-07 遵义博文软件开发有限公司 Managing medical information platform based on recognition of face
CN107784338A (en) * 2017-02-08 2018-03-09 平安医疗健康管理股份有限公司 Method for managing medical information and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150154357A1 (en) * 2013-11-29 2015-06-04 Nokia Corporation Method and appratus for determining consent to access medical data based on an aggregate reponse
CN106453612A (en) * 2016-11-10 2017-02-22 华中科技大学 Data storage and sharing system
CN107784338A (en) * 2017-02-08 2018-03-09 平安医疗健康管理股份有限公司 Method for managing medical information and device
CN107330301A (en) * 2017-08-25 2017-11-07 遵义博文软件开发有限公司 Managing medical information platform based on recognition of face

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
刘琳等: "构建安全通畅的数字化医院信息系统――以天津医院为例", 《医学信息学杂志》 *

Cited By (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111324787A (en) * 2018-12-14 2020-06-23 北京沃东天骏信息技术有限公司 Block chain data display method and device in block chain browser
CN111382420A (en) * 2018-12-29 2020-07-07 金联汇通信息技术有限公司 Data transaction method, device, system, electronic equipment and readable storage medium
CN109919691A (en) * 2019-02-27 2019-06-21 腾讯科技(深圳)有限公司 A kind of system of data processing, method and device
CN109919691B (en) * 2019-02-27 2021-06-08 腾讯科技(深圳)有限公司 Data processing system, method and device
CN111726268B (en) * 2019-03-19 2022-04-12 佛山市顺德区美的电热电器制造有限公司 Data sharing method and device, equipment and storage medium
CN111726268A (en) * 2019-03-19 2020-09-29 佛山市顺德区美的电热电器制造有限公司 Data sharing method and device, equipment and storage medium
CN110148475A (en) * 2019-04-03 2019-08-20 平安科技(深圳)有限公司 A kind of Medical data sharing method, apparatus, readable storage medium storing program for executing and server
CN110148475B (en) * 2019-04-03 2023-10-27 平安科技(深圳)有限公司 Medical information sharing method and device, readable storage medium and server
CN112152980A (en) * 2019-06-28 2020-12-29 深圳迈瑞生物医疗电子股份有限公司 Data transmission method, medical ventilation equipment and storage medium
CN110706766A (en) * 2019-08-31 2020-01-17 华南理工大学 Electronic medical record management system and referral method based on block chain
CN110910978A (en) * 2019-11-21 2020-03-24 腾讯科技(深圳)有限公司 Information processing method applied to block chain network and related device
CN110910978B (en) * 2019-11-21 2024-04-09 腾讯科技(深圳)有限公司 Information processing method and related device applied to blockchain network
CN111883228A (en) * 2020-07-28 2020-11-03 平安科技(深圳)有限公司 Health information recommendation method, device, equipment and medium based on knowledge graph
CN111883228B (en) * 2020-07-28 2023-07-07 平安科技(深圳)有限公司 Knowledge graph-based health information recommendation method, device, equipment and medium
CN112988427B (en) * 2021-04-14 2024-03-01 深圳证券交易所 Data exchange method, device and medium
CN112988427A (en) * 2021-04-14 2021-06-18 深圳证券交易所 Data exchange method, device and medium
CN113779621A (en) * 2021-08-24 2021-12-10 浙江数秦科技有限公司 Data sharing method based on block chain
CN113779621B (en) * 2021-08-24 2023-08-22 浙江数秦科技有限公司 Data sharing method based on block chain

Also Published As

Publication number Publication date
CN108965416B (en) 2022-04-15

Similar Documents

Publication Publication Date Title
CN108965416A (en) Medical data sharing method, device, computer equipment and storage medium
CN109471844B (en) File sharing method and device, computer equipment and storage medium
US10552823B1 (en) System and method for authentication of a mobile device
CN106161359B (en) It authenticates the method and device of user, register the method and device of wearable device
RU2434352C2 (en) Reliable authentication method and device
CN109325342B (en) Identity information management method, device, computer equipment and storage medium
CN106304074B (en) Auth method and system towards mobile subscriber
CN111431713B (en) Private key storage method and device and related equipment
US20040006713A1 (en) Device authentication system
AU2017354083A1 (en) Verifying an association between a communication device and a user
CN106452770B (en) Data encryption method, data decryption method, device and system
JP2018038068A (en) Method for confirming identification information of user of communication terminal and related system
CA2518032A1 (en) Methods and software program product for mutual authentication in a communications network
US20200211004A1 (en) Method of performing authentication for a transaction and a system thereof
CN109997119A (en) Safety element installation and setting
US20130305378A1 (en) Method and system for establishing trust between a service provider and a client of the service provider
JP2024099827A (en) Multi-factor authentication providing credential via contactless card for secure messaging
CN110737915B (en) Anti-quantum-computation anonymous identity recognition method and system based on implicit certificate
JP2008535427A (en) Secure communication between data processing device and security module
CN109768979A (en) Data encryption and transmission method, device, computer equipment and storage medium
CN110135175A (en) Information processing, acquisition methods, device, equipment and medium based on block chain
WO2021138217A1 (en) Method, chip, device and system for authenticating a set of at least two users
US20090185679A1 (en) Method for electronically signing electronic documents and method for verifying an electronic signature
US10396989B2 (en) Method and server for providing transaction keys
US20090210714A1 (en) Method for electronically signing electronic documents and method for verifying an electronic signature

Legal Events

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