Invention content
The technical problem to be solved in the present invention is, provides a kind of patient medical record data encryption method and system.
The technical solution adopted by the present invention to solve the technical problems is:A kind of patient medical record data encryption method is provided,Include the following steps:
S1:Identity database and history data library are set respectively;
S2:Identity information and medical record information are obtained from the identity database and the history data library respectively;
S3:The identity information and medical record information are subjected to Data Matching, and export the identity of correct matching relationshipInformation and medical record information.
Preferably, in the step S2, step is further included:The identifying data data in the identity database are added respectivelyIt is close be identity information, by the medical history taking data encryption in the history data library be medical record information.
Preferably, in the step S3, step is further included:By the identity information after matching and the medical record information pointIt does not decrypt, obtain the identifying data data and the medical history data data and exports.
Preferably, in the step S3, the identity information and medical record information are carried out by data according to a public keysMatch, and judge whether can successful matching, if so, obtaining the correspondence of the identity information and the medical record information;If it is not,It can not then obtain.
Preferably, the identity database includes the patient ID libraries of patient, name library, gender library, date of birth library, is bornAt least one of ground library, contact method, contact person, occupation, social security number, blood group library.
Preferably, the history data library includes the life-information library of patient, medical image library, medical history data library, testsAt least one of room inspection result library, patient's multimedia database.A kind of patient medical record data privacy system is also provided, is wrappedIt includes:
First memory module, for storing the identity database;
Second memory module, for storing the history data library;
Data acquisition module, for respectively from the identity database and the history data library obtain identity information andMedical record information;
Data match module for the identity information and medical record information to be carried out Data Matching, and exports correct matchingThe identity information and medical record information of relationship.
Preferably, the system also includes encrypting module, for respectively by the identity number in first memory moduleAccording to the identifying data data encryption in library for identity information, by the medical history in the history data library in second memory moduleRecord data encryption is medical record information.
Preferably, the system also includes deciphering module, for the identity information and case history letter after matchingBreath is decrypted respectively, is obtained the identifying data data and the medical history data data and is exported.
Preferably, the identity information and medical record information are carried out data by the data match module according to a public keysMatching, and according to whether can successful matching obtain pairing result.
The beneficial effects of the practice of the present invention is:The patient medical record data encryption method and system of the present invention is respectively from identity numberAccording to identity information and medical record information is obtained in library and history data library, Data Matching is carried out later, can just be obtained after successful matchCorrect matching relationship plays the role of preventing patients' privacy from revealing.
Specific embodiment
For a clearer understanding of the technical characteristics, objects and effects of the present invention, now control attached drawing is described in detailThe specific embodiment of the present invention.
Fig. 1 shows patient medical record data privacy system in some embodiments of the invention, for patient medical record data intoRow secrecy processing prevents illegal user from obtaining the personal information of patient and corresponding medical history situation simultaneously, plays protection and suffers fromThe effect of person's privacy.The system includes the first memory module 10, the second memory module 20, data acquisition module 30, Data MatchingModule 40, encrypting module 50 and deciphering module 60, the first memory module 10 and the second memory module 20 store identity data respectivelyLibrary and history data library, data acquisition module 30 obtain identity information and disease from the first memory module 10 and the second memory module 20Information is gone through, data match module 40 matches identity information and medical record information, and encrypting module 50 and deciphering module 60 are used forIt is encrypted and decrypted.
Wherein, for storing identity database, the second memory module 20 is used to store history data the first memory module 10Library.Identity database includes the identifying data data about personal patient information, it is alternatively that, it may include suffering from identity databaseThe patient ID libraries of person, name library, gender library, date of birth library, birthplace library, contact method, contact person, occupation, social security number, bloodAt least one of type library.History data library includes the medical history taking data about patient medical history situation, it is alternatively that, medical history numberAccording to may include the life-information library of patient, medical image library, medical history data library, laboratory examination results library, the more matchmakers of patient in libraryAt least one of body data bank.Here it should be noted that, the data in identity database are divided with the data in history data libraryIt is not stored, so as to prevent identifying data data brought patients' privacy of putting together corresponding with medical history taking data directlyThe hidden danger of leakage.Preferably, the first memory module 10 and the second memory module 20 can be respectively arranged on two servers orFirst memory module 10 and the second memory module 20 are set in two relatively independent modules of same server by person, fromAnd increase the invasion difficulty of illegal user, improve safety.
In some embodiments, patient medical record data confidentiality is further included for encrypted encrypting module 50.Encrypting module 50It is connected and communicates with the first memory module 10 and the second memory module 20, specifically, encrypting module 50 is for respectively by theIdentifying data data encryption in one memory module 10 in identity database for identity information, by medical history in the second memory module 20Medical history taking data encryption in database is medical record information.Also, encrypting module 50 is completed and then will be added in encryptionIdentity information and medical record information after close are back to the first memory module 10 and the second memory module 20 respectively.What is handled in this way is goodPlace is, identity information and medical record information be plus be overstocked after data, can further improve the safety of data.
Alternatively, encrypting module 50 can be set, and can not also be set.In some embodiments, when being not provided with encryptingDuring module 50, identity information and medical record information are the visual data without encryption, and security performance decreases.ThisIn the case of, identity information and medical record information are identifying data data and medical history taking data.
Data acquisition module 30 is for acquisition identity information and case history letter from identity database and history data library respectivelyBreath, and identity information and medical record information are sent to data match module 40.
After data match module 40 receives the identity information and medical record information of the transmission of data acquisition module 30, identity is believedBreath and medical record information carry out Data Matching, and export the identity information and medical record information of correct matching relationship.
Preferably, identity information and medical record information are carried out Data Matching by data match module 40 according to a public keys,And according to whether can successful matching obtain pairing result.Alternatively, data match module 40 can also according to other modes intoRow Data Matching for example, in a relation mapping table built in data match module 40, can find out identity according to the relation mapping tableThe matching status of information and medical record information, so as to obtain correct matching relationship.
Deciphering module 60 is for carrying out data deciphering, after 40 Data Matching of data match module, deciphering module 60Identity information after matching and medical record information are decrypted respectively, obtain identifying data data and medical history data data and exported.MakeFor selection, deciphering module 60 is used cooperatively with encrypting module 50, then can be set in encrypting module 50, the feelings that can not also be setUnder condition, deciphering module 60 can be set, and can not also be set.
In some embodiments, if not including the encrypting and decrypting performance of encrypting module 50 and deciphering module 60, dataExporting the identity information of correct matching relationship and medical record information with module 40 also just can enable legitimate user obtain identity databaseWith the correct patient medical record library of history data library correspondence.
Patient medical record data encryption method in some embodiments of the invention as shown in Figure 2, for counting one by one diseaseAccording to maintaining secrecy.Patient medical record data encryption method includes the following steps S1 to S3.
Wherein, in step S1, identity database and history data library are first set respectively.
Identity database includes the identifying data data about personal patient information, it is alternatively that, it can in identity databasePatient ID libraries including patient, name library, gender library, date of birth library, birthplace library, contact method, contact person, occupation, societyAt least one of guarantor number, blood group library.History data library includes the medical history taking data about patient medical history situation, as choosingSelect, may include in history data library the life-information library of patient, medical image library, medical history data library, laboratory examination results library,At least one of patient's multimedia database.Here it should be noted that, data in identity database in history data libraryData stored respectively, so as to prevent directly being brought put corresponding with medical history taking data of identifying data dataThe hidden danger of patients' privacy leakage.
In step S2, identity information and medical record information are obtained from identity database and history data library respectively.
It preferably, also can be respectively by the identifying data data encryption in identity database for identity information, by history dataMedical history taking data encryption in library is medical record information.Alternatively, in some embodiments, when without encryption,Identity information and medical record information are the visual data without encryption, and security performance decreases.In this case, bodyPart information and medical record information are identifying data data and medical history taking data.
S3:Identity information and medical record information are subjected to Data Matching, and export the identity information and disease of correct matching relationshipGo through information.
Alternatively, in step S3, identity information and medical record information are carried out, and sentence by Data Matching according to a public keysIt is disconnected whether can successful matching, if so, obtaining the correspondence of identity information and medical record information;If it is not, it can not then obtain.
Preferably, it is corresponding with encrypting step, it is further included under step S3:By the identity information after matching and medical record information pointIt does not decrypt, obtain identifying data data and medical history data data and exports.Alternatively, in some embodiments, if not includingEncrypting step does not include decryption step then, that is, the identity information and medical record information for exporting correct matching relationship also can just enable conjunction yetMethod user obtains identity database and the correct patient medical record library of history data library correspondence.
The above is only the preferred embodiment of the present invention, and protection scope of the present invention is not limited merely to above-mentioned implementationExample, all technical solutions belonged under thinking of the present invention all belong to the scope of protection of the present invention.It should be pointed out that for the artThose of ordinary skill for, several improvements and modifications without departing from the principles of the present invention, these improvements and modificationsAlso it should be regarded as protection scope of the present invention.