Self-service medical record printing method and device based on privacy protection

Through facial privacy encryption and multi-scale replacement strategies for wavelet data, and combined with multi-factor identity authentication, the problem of insufficient privacy protection and cumbersome processes in the self-service printing system of medical records is solved, and efficient and safe medical record printing services are achieved.

CN119810985AInactive Publication Date: 2025-04-11SHANDONG HUAJIAN INFORMATION TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411921655.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-25
Publication Date
2025-04-11
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

The existing self-service printing system for medical records has problems such as insufficient privacy protection, cumbersome processes, high work intensity for medical staff, and low efficiency in patient information verification.

Method used

The facial privacy encryption method is adopted to extract images of different key areas in the applicant's authentication image, and perform feature vector representation and homomorphic encryption processing. Combined with the wavelet data multi-scale permutation strategy, the disease case image is chaotic permutation processing to achieve the privacy protection of the disease case, and ensure the legality of the applicant through multi-factor identity authentication and dynamic password verification.

Benefits of technology

It effectively protects patient privacy, simplifies the medical record printing process, reduces the work intensity of medical staff, and improves the efficiency of patient information verification.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119810985A_ABST
    Figure CN119810985A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of medical record self-service printing, and discloses a medical record self-service printing method and device based on privacy protection, and the method comprises the steps: an applicant submits a medical record printing application and basic information of a patient to a medical record self-service printer; performing multi-factor identity authentication according to the basic information of the patient to judge the legality of the applicant; if the identity authentication is passed, the digital medical record management system selects a medical record image encryption file; and decrypting the medical record image encryption file, and sending a decryption result to the medical record self-service printer for printing. According to the method, chaotic replacement processing is carried out on the medical record image file, the chaotic replacement processing comprises multiple multi-scale replacement modes such as sampling recombination, pixel-level replacement and image block replacement of the file, a chaotic disordered medical record image encryption file is obtained, privacy protection of a medical record is achieved, and the purpose that one medical record image file has a unique encryption key is achieved; the retrieval efficiency is improved, and the encrypted file of the medical record image is better controlled and managed.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of self-service printing of medical records, and in particular to a method and device for self-service printing of medical records based on privacy protection. Background Art

[0002] The promotion of electronic medical records has greatly alleviated the heavy work of filing paper medical records in the medical record room. Therefore, it is particularly important to realize self-service printing of medical records through information technology in the new social form to provide patients with faster, more convenient and more comfortable services. Medical record copying involves multiple links such as identity verification, window payment, printing and copying, and stamping, and the process is cumbersome. In addition, the insurance departments in various places have different requirements for the use of seals. Patients do not clearly express the need for seals, which easily leads to the situation of going back and forth to the hospital twice to stamp a certain page. Occasionally, the window has to stamp the medical records page by page, which increases the workload of medical staff. Finally, the patient (or family member) has different degrees of discrepancy with the identity information collected at the beginning, which causes the window to check and confirm repeatedly, relying entirely on personal experience and judgment, which affects work efficiency. Summary of the invention

[0003] In view of this, the present invention provides a medical record self-service printing method based on privacy protection, which adopts facial privacy encryption to extract images of different key areas in the applicant's authentication image, and represents them with feature vectors, and performs homomorphic encryption processing, and uploads the encryption result to the server for decryption and facial authentication. The medical record self-service printer itself does not retain the applicant's authentication image, and the server only receives the feature vectors of key areas in the applicant's authentication image to avoid the applicant's privacy being leaked. The medical record image file is subjected to chaotic permutation processing by a wavelet-based data multi-scale permutation strategy to obtain a chaotically disordered medical record image encrypted file, thereby realizing the privacy protection of the medical record and realizing that a medical record image file has a unique encryption key, thereby improving the retrieval efficiency and better controlling and managing the medical record image encrypted file.

[0004] To achieve the above purpose, the present invention provides a medical record self-service printing method based on privacy protection, comprising the following steps:

[0005] S1: The applicant submits a medical record printing application and basic patient information to the medical record self-service printer, where the basic patient information includes the patient's name, patient ID number, and the applicant's authentication image;

[0006] S2: Perform multi-factor identity authentication based on the patient's basic information to determine the legitimacy of the applicant, wherein the multi-factor identity authentication includes facial recognition authentication and dynamic password verification;

[0007] S3: If the identity authentication is passed, the digital medical record management system selects the corresponding medical record image encryption file, where the medical record image file is encrypted using a wavelet-based data multi-scale replacement strategy;

[0008] S4: Decrypt the encrypted medical record image file and send the decryption result to the medical record self-service printer for printing.

[0009] As a further improvement method of the present invention:

[0010] Optionally, in step S1, the applicant submits a medical record printing application and basic patient information to a self-service medical record printer, including:

[0011] The home page of the medical record self-service printer displays printing instructions, reminds applicants of precautions, and provides a voice guidance function. When the applicant clicks on the self-service machine page, the system can provide voice prompts based on the applicant's operations.

[0012] The applicant submits the medical record printing application and the patient's basic information to the medical record self-service printer according to the voice prompts. The patient's basic information includes the patient's name, patient ID number, and the applicant's authentication image;

[0013] The applicant authentication image is the patient's ID card image And a photo of the applicant in front of the self-service medical record printer After the applicant places the patient's ID card in the designated area of ​​the medical record self-service printer, the medical record self-service printer will automatically read the ID card image as the patient's ID card image. .

[0014] Optionally, in step S2, performing multi-factor identity authentication based on the basic information of the patient to determine the legitimacy of the applicant includes:

[0015] The applicant authentication image is used to perform facial recognition authentication on the applicant authentication image to distinguish whether the applicant is the patient himself or the agent. The facial recognition authentication process is as follows:

[0016] S21: The medical record self-service printer obtains the ID card image in the applicant's authentication image And photographic images , extract the ID card image according to the preset facial features area And photographic images The facial features position image corresponding to the facial features position area in the middle is processed into grayscale to obtain the facial features position grayscale image; wherein the preset facial features position area includes the left eye position area, the right eye position area, the nose position area, and the mouth position area, and the ID card image is extracted The grayscale image of the facial features is:

[0017] ;

[0018] G 1 i = ( G 1 i (x,y)) X i × Y i ,i ∈ [1,5] ;

[0019] in:

[0020] Represents an ID card image Grayscale images of the five facial features in the middle;

[0021] Represents a grayscale image The gray value of the pixel in the xth row and yth column, , Indicates The number of pixel rows in the facial features location area, Indicates The number of pixel columns in the facial features location area;

[0022] Extracted photo images The grayscale image of the facial features is:

[0023] ;

[0024] G 2 i = ( G 2 i (x,y)) X i × Y i ,i ∈ [1,5] ;

[0025] in:

[0026] Represents a photographed image Grayscale images of the five facial features in the middle;

[0027] S22: Convert the facial features position grayscale image into facial features position row pixel sequence to obtain ID card image And photographic images The pixel sequence of facial features ;

[0028] ;

[0029] ;

[0030] ;

[0031] ;

[0032] in:

[0033] Represents a grayscale image A row pixel sequence;

[0034] Represents a grayscale image A row pixel sequence;

[0035] S23: Exploiting Encrypted Parameters Pixel sequences for facial features Encryption processing is performed and the encrypted processing result is sent to the server; the pixel sequence of the facial features is The encryption result is:

[0036] c j = ( c j 1 , c j 2 , c j 3 , c j 4 , c j 5 ),j ∈ [1,2] ;

[0037] ;

[0038] ;

[0039] in:

[0040] Indicates the remainder symbol;

[0041] Represents the pixel sequence of facial features The encryption result of Represents a row pixel sequence The encryption result of

[0042] Integer representing randomness; Represents grayscale value The encryption result of

[0043] S24: Server uses decryption parameters Decrypt the encrypted result to get the ID card image And photographic images The row pixel sequence , and the row pixel sequence They are converted into grayscale images of facial features respectively; the encrypted results The decryption formula is:

[0044] G j i (x,y) = [ c j i (x,y)] b 1 mod ( a 1 ) 2 -1 a 1 ∙ b 2 mod a 1 a 1 ;

[0045] S25: Extract ID card images separately And photographic images Image feature vector of grayscale image of facial features , and perform vector similarity calculation; the grayscale image of facial features position The image feature vector extraction result is :

[0046] ;

[0047] in:

[0048] Represents grayscale image The gradient feature vector of

[0049] The gradient feature vector The feature extraction process is:

[0050] S251: Calculate the grayscale image The gradient value of the pixel in the grayscale image The gradient value of the pixel in the xth row and yth column is :

[0051] degree j i (x,y)= [ degree j i (x,y,1)] 2 + [ degree j i (x,y,2)] 2 ;

[0052] ;

[0053] ;

[0054] in:

[0055] Represents the horizontal gradient value, Indicates the vertical gradient value;

[0056] Calculate the gradient direction of the pixel, where the grayscale image The gradient direction of the pixel in the xth row and yth column is :

[0057] ;

[0058] S252: Calculate the grayscale image The sum of the gradient values ​​in different gradient direction ranges, where the grayscale image In 0- The sum of the gradient values ​​in the gradient direction range is , each gradient direction range is 45 degrees;

[0059] S253: Construct a grayscale image The gradient eigenvector of :

[0060] ;

[0061] Image feature vector Vector similarity between The calculation formula is:

[0062] ;

[0063] in:

[0064] represents the L2 norm;

[0065] S26: If the vector similarity calculation result is higher than the preset threshold, it means that the applicant is the patient himself and the facial recognition authentication is passed;

[0066] If the applicant is an agent, a dynamic password verification will be carried out. If the facial recognition authentication or dynamic password verification is passed, it means that the applicant is legitimate and the medical records to be printed will be selected.

[0067] Optionally, if the applicant is an agent, dynamic password verification is performed. If the facial recognition authentication or dynamic password verification is passed, it means that the applicant is legitimate, and the medical records to be printed are selected, including:

[0068] The process of dynamic password verification is as follows: a one-time dynamic verification code is sent to the registered mobile phone of the patient corresponding to the medical record, and the applicant needs to enter the verification code for authentication. If the authentication is passed, the applicant provides the ID number to the medical record self-service printer and retains the electronic file;

[0069] The selection process for medical records to be printed is as follows: the applicant selects a printing package for the medical records, including full-set printing, package printing, and custom printing; based on the number of pages and copies of the medical records selected by the applicant, the medical record self-service printer automatically calculates the payment amount, and the applicant uses WeChat or Alipay to scan the QR code on the screen to pay the medical record printing fee.

[0070] Optionally, in step S3, the digital medical record management system selects the corresponding medical record image encryption file, including:

[0071] The hospital encryption system performs privacy encryption on the patient's medical record image files. The wavelet-based data multi-scale replacement strategy is the implementation method of privacy encryption. The medical record image encrypted file is obtained and archived to the medical record paperless filing system. The digital medical record management system selects the corresponding medical record image encrypted file from the medical record paperless filing system according to the medical record printing application and the printing package selected by the applicant. The privacy encryption process of the medical record image file is as follows:

[0072] S31: Obtain the medical record image file that needs to be encrypted;

[0073] S32: converting the medical record image file into binary data, dividing the binary data into multiple 512-bit data blocks, performing hash calculation on the data blocks, and using the hash calculation result as the hash value hash of the medical record image file; in the embodiment of the present invention, the SHA-256 hash function is a function for generating the hash value of the medical record image file;

[0074] S33: Convert the hash value to decimal and divide it into 16 groups , where the length of each set of hash values ​​is equal, and the secret key intermediate variable is calculated based on each set of hash values :

[0075] ;

[0076] ;

[0077] ;

[0078] ;

[0079] in:

[0080] Represents external parameters;

[0081] Represents the bitwise exclusive OR operator;

[0082] Generate the encryption key for the medical record image file using the secret key intermediate variable :

[0083] ;

[0084] ;

[0085] ;

[0086] ;

[0087] ;

[0088] S34: Generate chaotic sequence using encryption key ; The generation process of chaotic sequence is:

[0089] S341: Using encryption keys Iterate to get two groups of length An iterative sequence, where P represents the number of pixel rows in the medical record image file, and Q represents the number of pixel columns in the medical record image file. The iterative sequence is represented as follows:

[0090] ;

[0091] ;

[0092] L 1 (n)= key 1 ,n=1 key 2 ,n=2 sin(π key 5 ( L 2 (n-1)+ L 2 (n-2))∙[1- ( L 2 (n-1)+ L 2 (n-2)) 2 ]),n≥2 ;

[0093] ;

[0094] in:

[0095] Represents two sets of iterative sequences obtained by iteration, Represents an iterative sequence The nth value in Represents an iterative sequence The nth value in ;

[0096] S342: Perform hybrid mapping processing on the iterative sequence to obtain a chaotic sequence :

[0097] S 1 =sort ( L 1 [1: P ×Q 4 ]) ;

[0098] S 2 = sort( L 2 [1: P ×Q×3 e 1 × e 2 ]) ;

[0099] ;

[0100] ;

[0101] in:

[0102] L 1 [1: P ×Q 4 ] Represents an iterative sequence The first value to the A sequence of values;

[0103] L 2 [1: P ×Q×3 e 1 × e 2 ] Represents an iterative sequence The first value to the A sequence of values, Indicates the preset exploded size;

[0104] Indicates ascending sorting;

[0105] Indicates rounding down;

[0106] Indicates that Convert to a matrix with P rows and Q columns. The length is The iterative sequence of

[0107] S35: Combining the chaotic sequence to perform sampling and reorganization, pixel-level scrambling, image block-level scrambling and global diffusion processing on the medical record image file, to obtain the encryption result of the medical record image file.

[0108] Optionally, the chaotic sequence is combined in step S35 to perform sampling and reorganization, pixel-level scrambling, image block-level scrambling and global diffusion processing on the medical record image file, including:

[0109] S351: Sampling and reorganizing the medical record image file data to obtain four sub-image files , where the sampling and reorganization process is:

[0110] Step 1: Divide the medical record image file data into multiple The pixels in the upper left, upper right, lower left and lower right of each image block are extracted to obtain four sets of pixels. The pixels in each set of pixels are sorted according to their positions in the medical record image file to obtain four sets of initial images, each of which is OK Columns in pixel matrix form;

[0111] Step 2: Taking the first group of initial images as the reference image, perform an XOR operation on the pixels in the other four groups of initial images and the pixels at the same position in the reference image;

[0112] Step 3: The first group of initial images and the remaining three groups of processed images are taken as four sub-image files;

[0113] S352: Sub-image file Convert to a one-dimensional vector and use the chaotic sequence The one-dimensional vector is shuffled and the coordinates of the pixels in the one-dimensional vector are converted into a chaotic sequence. The chaotic value in , and based on the transformed coordinates, the one-dimensional vector is reorganized to obtain the sub-image file The reorganization results ; The coordinate of the pth pixel in the one-dimensional vector is the chaotic sequence The pth chaotic value in p ∈ [1, P ×Q 4 ] ;

[0114] S353: Sub-image file Divide into several sizes The file matrix and number the files [1, P ×Q×3 e 1 × e 2 ] , is the number of pixel rows in the file matrix, is the number of pixel columns of the file matrix;

[0115] S354: Using Chaos Sequence Rearrange the order of the file matrix, that is, the chaotic sequence The chaotic value in is used as the position of the corresponding file number to form three sub-image files The reorganization results ;

[0116] S355: Using the reverse sampling and reorganization method of step S351, the reorganization result Combining into a reorganized matrix with P rows and Q columns ;

[0117] S356: Reorganization Matrix Perform global diffusion processing to obtain the encrypted file of medical record image , where the formula for global diffusion processing is:

[0118] ;

[0119] in:

[0120] It is the encryption result of the medical record image file data.

[0121] Optionally, decrypting the encrypted medical record image file in step S4 includes:

[0122] The digital medical record management system decrypts the encrypted medical record image file, where the decryption operation is the reverse process of the encryption operation. The decryption process is as follows:

[0123] S41: The digital medical record management system obtains the encryption key corresponding to the medical record image encryption file;

[0124] S42: Generate a chaotic sequence using the encryption key, and perform global diffusion processing on the encrypted medical record image file; in the embodiment of the present invention, the obtained chaotic sequence is consistent with the chaotic sequence in S34;

[0125] S43: combining the chaotic sequence, sampling, pixel-level scrambling, image block-level scrambling and reorganization processing are performed on the global diffusion result in sequence to obtain the decryption result of the medical record image encrypted file;

[0126] S44: Send the decryption result to the medical record self-service printer for printing;

[0127] The medical record self-service printer supports segmented printing. The printer can be paused when a certain number of pages are exceeded. The first page of the printed medical record carries an anti-counterfeiting QR code, which can prove that the medical record is printed and issued by this hospital.

[0128] When the medical record printing process fails due to network fluctuations or printer paper jams, the following occurs:

[0129] (1) The applicant can choose to refund the fee, and the system will automatically return the fee to the applicant;

[0130] (2) On-site service personnel can perform re-printing operations using the administrator account.

[0131] Optionally, the generation process of the encryption parameters and decryption parameters is:

[0132] Pick two different large prime numbers , calculate the encryption parameters :

[0133] ;

[0134] ;

[0135] in:

[0136] Indicates calculation of the least common multiple;

[0137] Indicates calculating the greatest common divisor;

[0138] Calculate the decryption parameters:

[0139] ;

[0140] ;

[0141] in:

[0142] Indicates decryption parameters.

[0143] In order to solve the above problems, the present invention provides a medical record self-service printing device based on privacy protection, characterized in that the device comprises:

[0144] Identity authentication module, used to perform multi-factor identity authentication based on the patient's basic information to determine the legitimacy of the applicant;

[0145] Privacy encryption module, used to perform privacy encryption and privacy decryption processing on the patient's medical records;

[0146] A printing device is used to receive a medical record printing application and basic patient information, and print the decryption result of the medical record to implement a medical record self-service printing method based on privacy protection as described in any one of claims 1-8.

[0147] In order to solve the above problem, the present invention further provides an electronic device, the electronic device comprising:

[0148] A memory storing at least one instruction;

[0149] Communication interface, enabling electronic equipment to communicate; and

[0150] The processor executes the instructions stored in the memory to implement the above-mentioned medical record self-service printing method based on privacy protection.

[0151] In order to solve the above problems, the present invention also provides a computer-readable storage medium, in which at least one instruction is stored. The at least one instruction is executed by a processor in an electronic device to implement the above-mentioned privacy-protection-based medical record self-service printing method.

[0152] Compared with the prior art, the present invention proposes a self-service medical record printing method based on privacy protection, which has the following advantages:

[0153] First, this scheme proposes a facial privacy encryption authentication method. By using facial privacy encryption, images of different key areas in the applicant's authentication image are extracted, represented by feature vectors, and homomorphic encryption is performed. The encryption results are uploaded to the server for decryption and facial authentication. The medical record self-service printer itself does not retain the applicant's authentication image, and the server only receives the feature vectors of key areas in the applicant's authentication image to avoid the applicant's privacy being leaked.

[0154] At the same time, this scheme proposes a medical record privacy protection method, which uses a wavelet-based data multi-scale replacement strategy to perform chaotic replacement processing on medical record image files, including sampling and reorganization of the image file itself, pixel-level replacement, image block replacement and other multi-scale replacement methods, to obtain a chaotic and disordered medical record image encrypted file, thereby realizing the privacy protection of the medical record, and realizing that a medical record image file has a unique encryption key, improving the retrieval efficiency, and better controlling and managing the medical record image encrypted files. BRIEF DESCRIPTION OF THE DRAWINGS

[0155] Figure 1 A flowchart of a method for self-service printing of medical records based on privacy protection provided by an embodiment of the present invention;

[0156] Figure 2 A functional module diagram of a medical record self-service printing device based on privacy protection provided by an embodiment of the present invention;

[0157] Figure 2 In: 100 a medical record self-service printing device based on privacy protection, 101 an identity authentication module, 102 a privacy encryption module, 103 a printing device;

[0158] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0159] It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not used to limit the present invention.

[0160] The embodiment of the present application provides a medical record self-service printing method based on privacy protection. The execution subject of the medical record self-service printing method based on privacy protection includes but is not limited to at least one of the electronic devices such as a server and a terminal that can be configured to execute the method provided by the embodiment of the present application. In other words, the medical record self-service printing method based on privacy protection can be executed by software or hardware installed on a terminal device or a server device, and the software can be a blockchain platform. The server includes but is not limited to: a single server, a server cluster, a cloud server or a cloud server cluster, etc.

[0161] Embodiment 1:

[0162] S1: The applicant submits a medical record printing application and the patient's basic information to the medical record self-service printer, where the patient's basic information includes the patient's name, patient ID number, and the applicant's authentication image.

[0163] In step S1, the applicant submits a medical record printing application and basic patient information to the medical record self-service printer, including:

[0164] The home page of the medical record self-service printer displays printing instructions, reminds applicants of precautions, and provides a voice guidance function. When the applicant clicks on the self-service machine page, the system can provide voice prompts based on the applicant's operations.

[0165] The applicant submits the medical record printing application and the patient's basic information to the medical record self-service printer according to the voice prompts. The patient's basic information includes the patient's name, patient ID number, and the applicant's authentication image;

[0166] The applicant authentication image is the patient's ID card image And a photo of the applicant in front of the self-service medical record printer After the applicant places the patient's ID card in the designated area of ​​the medical record self-service printer, the medical record self-service printer will automatically read the ID card image as the patient's ID card image. .

[0167] S2: Perform multi-factor identity authentication based on the patient’s basic information to determine the legitimacy of the applicant.

[0168] In step S2, multi-factor identity authentication is performed based on the basic information of the patient to determine the legitimacy of the applicant, including:

[0169] The applicant authentication image is used to perform facial recognition authentication on the applicant authentication image to distinguish whether the applicant is the patient himself or the agent. The facial recognition authentication process is as follows:

[0170] S21: The medical record self-service printer obtains the ID card image in the applicant's authentication image And photographic images , extract the ID card image according to the preset facial features area And photographic images The facial features position image corresponding to the facial features position area in the middle is processed into grayscale to obtain the facial features position grayscale image; wherein the preset facial features position area includes the left eye position area, the right eye position area, the nose position area, and the mouth position area, and the ID card image is extracted The grayscale image of the facial features is:

[0171] ;

[0172] G 1 i = ( G 1 i (x,y)) X i × Y i ,i ∈ [1,5] ;

[0173] in:

[0174] Represents an ID card image Grayscale images of the five facial features in the middle;

[0175] Represents a grayscale image The gray value of the pixel in the xth row and yth column, , Indicates The number of pixel rows in the facial features location area, Indicates The number of pixel columns in the facial features location area;

[0176] Extracted photo images The grayscale image of the facial features is:

[0177] ;

[0178] G 2 i = ( G 2 i (x,y)) X i × Y i ,i ∈ [1,5] ;

[0179] in:

[0180] Represents a photographed image Grayscale images of the five facial features in the middle;

[0181] S22: Convert the facial features position grayscale image into facial features position row pixel sequence to obtain ID card image And photographic images The pixel sequence of facial features ;

[0182] ;

[0183] ;

[0184] ;

[0185] ;

[0186] in:

[0187] Represents a grayscale image A row pixel sequence;

[0188] Represents a grayscale image A row pixel sequence;

[0189] S23: Exploiting Encrypted Parameters Pixel sequences for facial features Encryption processing is performed and the encrypted processing result is sent to the server; the pixel sequence of the facial features is The encryption result is:

[0190] c j = ( c j 1 , c j 2 , c j 3 , c j 4 , c j 5 ),j ∈ [1,2] ;

[0191] ;

[0192] ;

[0193] in:

[0194] Indicates the remainder symbol;

[0195] Represents the pixel sequence of facial features The encryption result of Represents a row pixel sequence The encryption result of

[0196] Integer representing randomness; Represents grayscale value The encryption result of

[0197] S24: Server uses decryption parameters Decrypt the encrypted result to get the ID card image And photographic images The row pixel sequence , and the row pixel sequence They are converted into grayscale images of facial features respectively; the encrypted results The decryption formula is:

[0198] G j i (x,y) = [ c j i (x,y)] b 1 mod ( a 1 ) 2 -1 a 1 ∙ b 2 mod a 1 a 1 ;

[0199] S25: Extract ID card images separately And photographic images Image feature vector of grayscale image of facial features , and perform vector similarity calculation; the grayscale image of facial features position The image feature vector extraction result is :

[0200] ;

[0201] in:

[0202] Represents grayscale image The gradient feature vector of

[0203] The gradient feature vector The feature extraction process is:

[0204] S251: Calculate the grayscale image The gradient value of the pixel in the grayscale image The gradient value of the pixel in the xth row and yth column is :

[0205] degree j i (x,y)= [ degree j i (x,y,1)] 2 + [ degree j i (x,y,2)] 2 ;

[0206] ;

[0207] ;

[0208] in:

[0209] Represents the horizontal gradient value, Indicates the vertical gradient value;

[0210] Calculate the gradient direction of the pixel, where the grayscale image The gradient direction of the pixel in the xth row and yth column is :

[0211] ;

[0212] S252: Calculate the grayscale image The sum of the gradient values ​​in different gradient direction ranges, where the grayscale image In 0- The sum of the gradient values ​​in the gradient direction range is , each gradient direction range is 45 degrees;

[0213] S253: Construct a grayscale image The gradient eigenvector of :

[0214] ;

[0215] Image feature vector Vector similarity between The calculation formula is:

[0216] ;

[0217] in:

[0218] represents the L2 norm;

[0219] S26: If the vector similarity calculation result is higher than the preset threshold, it means that the applicant is the patient himself and the facial recognition authentication is passed;

[0220] If the applicant is an agent, a dynamic password verification will be carried out. If the facial recognition authentication or dynamic password verification is passed, it means that the applicant is legitimate and the medical records to be printed will be selected.

[0221] If the applicant is an agent, dynamic password verification is performed. If the applicant is legitimate, the medical records to be printed are selected, including:

[0222] The process of dynamic password verification is as follows: a one-time dynamic verification code is sent to the registered mobile phone of the patient corresponding to the medical record, and the applicant needs to enter the verification code for authentication. If the authentication is passed, the applicant provides the ID number to the medical record self-service printer and retains the electronic file;

[0223] The selection process for medical records to be printed is as follows: the applicant selects a printing package for the medical records, including full-set printing, package printing, and custom printing; based on the number of pages and copies of the medical records selected by the applicant, the medical record self-service printer automatically calculates the payment amount, and the applicant uses WeChat or Alipay to scan the QR code on the screen to pay the medical record printing fee.

[0224] S3: If the identity authentication is passed, the digital medical record management system selects the corresponding medical record image encryption file.

[0225] In step S3, the digital medical record management system selects the corresponding medical record image encryption file, including:

[0226] The hospital encryption system performs privacy encryption on the patient's medical record image files. The wavelet-based data multi-scale replacement strategy is the implementation method of privacy encryption. The medical record image encrypted file is obtained and archived to the medical record paperless filing system. The digital medical record management system selects the corresponding medical record image encrypted file from the medical record paperless filing system according to the medical record printing application and the printing package selected by the applicant. The privacy encryption process of the medical record image file is as follows:

[0227] S31: Obtain the medical record image file that needs to be encrypted;

[0228] S32: converting the medical record image file into binary data, dividing the binary data into multiple 512-bit data blocks, performing hash calculation on the data blocks, and using the hash calculation result as the hash value hash of the medical record image file; in the embodiment of the present invention, the SHA-256 hash function is a function for generating the hash value of the medical record image file;

[0229] S33: Convert the hash value to decimal and divide it into 16 groups , where the length of each set of hash values ​​is equal, and the secret key intermediate variable is calculated based on each set of hash values :

[0230] ;

[0231] ;

[0232] ;

[0233] ;

[0234] in:

[0235] Represents external parameters;

[0236] Represents the bitwise exclusive OR operator;

[0237] Generate the encryption key for the medical record image file using the secret key intermediate variable :

[0238] ;

[0239] ;

[0240] ;

[0241] ;

[0242] ;

[0243] S34: Generate chaotic sequence using encryption key ; The generation process of chaotic sequence is:

[0244] S341: Using encryption keys Iterate to get two groups of length An iterative sequence, where P represents the number of pixel rows in the medical record image file, and Q represents the number of pixel columns in the medical record image file. The iterative sequence is represented as follows:

[0245] ;

[0246] ;

[0247] L 1 (n)= key 1 ,n=1 key 2 ,n=2 sin(π key 5 ( L 2 (n-1)+ L 2 (n-2))∙[1- ( L 2 (n-1)+ L 2 (n-2)) 2 ]),n≥2 ;

[0248] ;

[0249] in:

[0250] Represents two sets of iterative sequences obtained by iteration, Represents an iterative sequence The nth value in Represents an iterative sequence The nth value in ;

[0251] S342: Perform hybrid mapping processing on the iterative sequence to obtain a chaotic sequence :

[0252] S 1 =sort ( L 1 [1: P ×Q 4 ]) ;

[0253] S 2 = sort( L 2 [1: P ×Q×3 e 1 × e 2 ]) ;

[0254] ;

[0255] ;

[0256] in:

[0257] L 1 [1: P ×Q 4 ] Represents an iterative sequence The first value to the A sequence of values;

[0258] L 2 [1: P ×Q×3 e 1 × e 2 ] Represents an iterative sequence The first value to the A sequence of values, Indicates the preset exploded size;

[0259] Indicates ascending sorting;

[0260] Indicates rounding down;

[0261] Indicates that Convert to a matrix with P rows and Q columns. The length is The iterative sequence of

[0262] S35: Combining the chaotic sequence to perform sampling and reorganization, pixel-level scrambling, image block-level scrambling and global diffusion processing on the medical record image file, to obtain the encryption result of the medical record image file.

[0263] In the step S35, the chaotic sequence is combined to perform sampling and reorganization, pixel-level scrambling, image block-level scrambling and global diffusion processing on the medical record image file, including:

[0264] S351: Sampling and reorganizing the medical record image file data to obtain four sub-image files , where the sampling and reorganization process is:

[0265] Step 1: Divide the medical record image file data into multiple The pixels in the upper left, upper right, lower left and lower right of each image block are extracted to obtain four sets of pixels. The pixels in each set of pixels are sorted according to their positions in the medical record image file to obtain four sets of initial images, each of which is OK Columns in pixel matrix form;

[0266] Step 2: Taking the first group of initial images as the reference image, perform an XOR operation on the pixels in the other four groups of initial images and the pixels at the same position in the reference image;

[0267] Step 3: The first group of initial images and the remaining three groups of processed images are taken as four sub-image files;

[0268] S352: Sub-image file Convert to a one-dimensional vector and use the chaotic sequence The one-dimensional vector is shuffled and the coordinates of the pixels in the one-dimensional vector are converted into a chaotic sequence. The chaotic value in , and based on the transformed coordinates, the one-dimensional vector is reorganized to obtain the sub-image file The reorganization results ; The coordinate of the pth pixel in the one-dimensional vector is the chaotic sequence The pth chaotic value in p ∈ [1, P ×Q 4 ] ;

[0269] S353: Sub-image file Divide into several sizes The file matrix and number the files [1, P ×Q×3 e 1 × e 2 ] , is the number of pixel rows in the file matrix, is the number of pixel columns of the file matrix;

[0270] S354: Using Chaos Sequence Rearrange the order of the file matrix, that is, the chaotic sequence The chaotic value in is used as the position of the corresponding file number to form three sub-image files The reorganization results ;

[0271] S355: Using the reverse sampling and reorganization method of step S351, the reorganization result Combining into a reorganized matrix with P rows and Q columns ;

[0272] S356: Reorganization Matrix Perform global diffusion processing to obtain the encrypted file of medical record image , where the formula for global diffusion processing is:

[0273] ;

[0274] in:

[0275] It is the encryption result of the medical record image file data.

[0276] S4: Decrypt the encrypted medical record image file and send the decryption result to the medical record self-service printer for printing.

[0277] Decrypting the encrypted medical record image file in step S4 includes:

[0278] The digital medical record management system decrypts the encrypted medical record image file, where the decryption operation is the reverse process of the encryption operation. The decryption process is as follows:

[0279] S41: The digital medical record management system obtains the encryption key corresponding to the medical record image encryption file;

[0280] S42: Generate a chaotic sequence using the encryption key and perform global diffusion processing on the encrypted medical record image file;

[0281] S43: combining the chaotic sequence, sampling, pixel-level scrambling, image block-level scrambling and reorganization processing are performed on the global diffusion result in sequence to obtain the decryption result of the medical record image encrypted file;

[0282] S44: Send the decryption result to the medical record self-service printer for printing;

[0283] The medical record self-service printer supports segmented printing. The printer can be paused when a certain number of pages are exceeded. The first page of the printed medical record carries an anti-counterfeiting QR code, which can prove that the medical record is printed and issued by this hospital.

[0284] When the medical record printing process fails due to network fluctuations or printer paper jams, the following occurs:

[0285] (1) The applicant can choose to refund the fee, and the system will automatically return the fee to the applicant;

[0286] (2) On-site service personnel can perform re-printing operations using the administrator account.

[0287] Embodiment 2:

[0288] like Figure 2 , is a functional module diagram of a medical record self-service printing device based on privacy protection provided in one embodiment of the present invention, which can implement the medical record self-service printing method based on privacy protection in Example 1.

[0289] The medical record self-service printing device 100 based on privacy protection of the present invention can be installed in an electronic device. According to the functions to be implemented, the medical record self-service printing device based on privacy protection can include an identity authentication module 101, a privacy encryption module 102 and a printing device 103. The module of the present invention can also be called a unit, which refers to a series of computer program segments that can be executed by an electronic device processor and can complete fixed functions, which are stored in the memory of the electronic device.

[0290] Identity authentication module 101, used to perform multi-factor identity authentication based on the patient's basic information to determine the legitimacy of the applicant;

[0291] The privacy encryption module 102 is used to perform privacy encryption and privacy decryption processing on the patient's medical records;

[0292] The printing device 103 is used to receive the medical record printing application and the patient's basic information, and print the decrypted result of the medical record.

[0293] In detail, each module in the medical record self-service printing device 100 based on privacy protection in the embodiment of the present invention adopts the same Figure 1 The technical means are the same as the self-service printing method of medical records based on privacy protection described in, and can produce the same technical effects, so I will not go into details here.

[0294] It should be understood that the embodiment is for illustration only and the scope of the patent application is not limited to this structure.

[0295] It should be noted that the serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages and disadvantages of the embodiments. And the terms "including", "comprising" or any other variants thereof in this article are intended to cover non-exclusive inclusion, so that a process, device, article or method including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, device, article or method. In the absence of further restrictions, an element defined by the sentence "including a ..." does not exclude the presence of other identical elements in the process, device, article or method including the element.

[0296] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) as described above, and includes a number of instructions for a terminal device (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present invention.

[0297] The above are only preferred embodiments of the present invention, and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made using the contents of the present invention specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.

Claims

1. A medical record self-service printing method based on privacy protection, characterized in that: The method comprises: S1: The applicant submits the medical record printing application and the patient's basic information to the medical record self-service printer; S2: Perform multi-factor identity authentication based on the patient's basic information to determine the legitimacy of the applicant; S3: If the identity authentication is passed, the digital medical record management system selects the corresponding medical record image encryption file; S4: Decrypt the encrypted medical record image file and send the decryption result to the medical record self-service printer for printing.

2. A medical record self-service printing method based on privacy protection as claimed in claim 1, characterized in that: In step S1, the applicant submits a medical record printing application and basic patient information to the medical record self-service printer, including: The first page of the medical record self-service printer displays printing instructions, reminds applicants of precautions, and provides voice guidance. When applicants click on the self-service machine page, the system can provide voice prompts based on the applicant's operation; The applicant submits the medical record printing application and the patient's basic information to the medical record self-service printer according to the voice prompts. The patient's basic information includes the patient's name, patient ID number, and the applicant's authentication image; The applicant authentication image is the patient's ID card image And a photo of the applicant in front of the self-service medical record printer After the applicant places the patient's ID card in the designated area of ​​the medical record self-service printer, the medical record self-service printer will automatically read the ID card image as the patient's ID card image. .

3. A medical record self-service printing method based on privacy protection as claimed in claim 2, characterized in that: In step S2, multi-factor identity authentication is performed based on the basic information of the patient to determine the legitimacy of the applicant, including: The applicant authentication image is used to perform facial recognition authentication on the applicant authentication image to distinguish whether the applicant is the patient himself or the agent. The facial recognition authentication process is as follows: S21: The medical record self-service printer obtains the ID card image in the applicant's authentication image And photographic images , extract the ID card image according to the preset facial features area And photographic images The facial features position image corresponding to the facial features position area in the middle is processed into grayscale to obtain the facial features position grayscale image; S22: Convert the facial features position grayscale image into facial features position row pixel sequence to obtain ID card image And photographic images The pixel sequence of facial features ; S23: Exploiting Encrypted Parameters Pixel sequences for facial features Perform encryption processing and send the encryption processing result to the server; S24: Server uses decryption parameters Decrypt the encrypted result to get the ID card image And photographic images The row pixel sequence , and the row pixel sequence Convert them into grayscale images of facial features respectively; S25: Extract ID card images separately And photographic images Image feature vector of grayscale image of facial features , and perform vector similarity calculation; S26: If the vector similarity calculation result is higher than the preset threshold, it means that the applicant is the patient himself and the facial recognition authentication is passed; If the applicant is an agent, a dynamic password verification will be carried out. If the facial recognition authentication or dynamic password verification is passed, it means that the applicant is legitimate and the medical records to be printed will be selected.

4. A medical record self-service printing method based on privacy protection as claimed in claim 3, characterized in that: If the applicant is an agent, dynamic password verification is performed. If the facial recognition authentication or dynamic password verification is passed, it means that the applicant is legitimate, and the medical records to be printed are selected, including: The process of dynamic password verification is as follows: a one-time dynamic verification code is sent to the registered mobile phone of the patient corresponding to the medical record, and the applicant needs to enter the verification code for authentication. If the authentication is passed, the applicant provides the ID number to the medical record self-service printer and retains the electronic file; The selection process for medical records to be printed is as follows: the applicant selects a printing package for the medical records, including full-set printing, package printing, and custom printing; based on the number of pages and copies of the medical records selected by the applicant, the medical record self-service printer automatically calculates the payment amount, and the applicant uses WeChat or Alipay to scan the QR code on the screen to pay the medical record printing fee.

5. A medical record self-service printing method based on privacy protection as claimed in claim 1, characterized in that: In step S3, the digital medical record management system selects the corresponding medical record image encryption file, including: The hospital encryption system performs privacy encryption on the patient's medical record image file to obtain the medical record image encrypted file, and archives the medical record image encrypted file to the medical record paperless archiving system. The digital medical record management system selects the corresponding medical record image encrypted file from the medical record paperless archiving system according to the medical record printing application and the printing package selected by the applicant. The privacy encryption process of the medical record image file is as follows: S31: Obtain the medical record image file that needs to be encrypted; S32: converting the medical record image file into binary data, dividing the binary data into multiple 512-bit data blocks, performing hash calculation on the data blocks, and using the hash calculation result as the hash value hash of the medical record image file; S33: Convert the hash value to decimal and divide it into 16 groups , where the length of each set of hash values ​​is equal, and the secret key intermediate variable is calculated based on each set of hash values ; Generate the encryption key for the medical record image file using the secret key intermediate variable ; S34: Generate chaotic sequence using encryption key ; S35: Combining the chaotic sequence to perform sampling and reorganization, pixel-level scrambling, image block-level scrambling and global diffusion processing on the medical record image file, to obtain the encryption result of the medical record image file.

6. A medical record self-service printing method based on privacy protection as claimed in claim 5, characterized in that: In the step S35, the chaotic sequence is combined to perform sampling and reorganization, pixel-level scrambling, image block-level scrambling and global diffusion processing on the medical record image file, including: S351: Sampling and reorganizing the medical record image file data to obtain four sub-image files ; S352: Sub-image file Convert to a one-dimensional vector and use the chaotic sequence The one-dimensional vector is shuffled and the coordinates of the pixels in the one-dimensional vector are converted into a chaotic sequence. The chaotic value in , and based on the transformed coordinates, the one-dimensional vector is reorganized to obtain the sub-image file The reorganization results ; S353: Sub-image file Divide into several sizes The file matrix and number the files , is the number of pixel rows in the file matrix, is the number of pixel columns of the file matrix; S354: Using Chaos Sequence Rearrange the order of the file matrix, that is, the chaotic sequence The chaotic value in is used as the position of the corresponding file number to form three sub-image files The reorganization results ; S355: Using the reverse sampling and reorganization method of step S351, the reorganization result Combining into a reorganized matrix with P rows and Q columns ; S356: Reorganization Matrix Perform global diffusion processing to obtain the encrypted file of medical record image .

7. A medical record self-service printing method based on privacy protection as claimed in claim 1, characterized in that: Decrypting the encrypted medical record image file in step S4 includes: The digital medical record management system decrypts the encrypted medical record image file, where the decryption operation is the reverse process of the encryption operation. The decryption process is as follows: S41: The digital medical record management system obtains the encryption key corresponding to the medical record image encryption file; S42: Generate a chaotic sequence using the encryption key and perform global diffusion processing on the encrypted medical record image file; S43: combining the chaotic sequence, sampling, pixel-level scrambling, image block-level scrambling and reorganization processing are performed on the global diffusion result in sequence to obtain the decryption result of the medical record image encrypted file; S44: Send the decryption result to the medical record self-service printer for printing.

8. A method for self-service printing of medical records based on privacy protection as claimed in claim 3, characterized in that: The generation process of the encryption parameters and decryption parameters is as follows: Pick two different large prime numbers , calculate the encryption parameters : ; ; in: Indicates calculation of the least common multiple; Indicates calculating the greatest common divisor; Calculate the decryption parameters: ; ; in: Indicates decryption parameters.

9. A medical record self-service printing device based on privacy protection, characterized in that: The device comprises: Identity authentication module, used to perform multi-factor identity authentication based on the patient's basic information to determine the legitimacy of the applicant; Privacy encryption module, used to perform privacy encryption and privacy decryption processing on the patient's medical records; A printing device is used to receive a medical record printing application and basic patient information, and print the decryption result of the medical record to implement a medical record self-service printing method based on privacy protection as described in any one of claims 1-8.