A hospital internal audit system and method based on drug management

By using the ciphertext interactive unit in the hospital's internal audit system to convert the drug summary data into ciphertext audit data, the problem of inaccessible audit data caused by the loss of keys is solved, and the security of drug audit data and the reliability of audit reports are realized.

CN119049673BActive Publication Date: 2025-04-22CHANGZHOU CHILDRENS HOSPITAL (CHANGZHOU SIXTH PEOPLES HOSPITAL) +1
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202411489886.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-10-24
Publication Date
2025-04-22
Estimated Expiration
2044-10-24

AI Technical Summary

Technical Problem

Hospitals cannot access audit data due to loss or leakage of keys during drug audits, which affects the generation of audit work and reports, and may lead to permanent loss of data, causing trouble to drug management and internal audits.

Method used

By introducing a ciphertext interaction unit into the hospital's internal audit system, the drug summary data is converted into ciphertext audit data using preset generation rules, replacing traditional key encryption methods, ensuring the security of the data during transmission and storage, and temporarily restoring the data for auditing when needed, and then destroying the temporary data.

Benefits of technology

It effectively avoids the risks of key loss and leakage, ensures the security and integrity of audit data, ensures the reliability of audit reports and the normal operation of hospital drug management.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119049673B_ABST
    Figure CN119049673B_ABST
Patent Text Reader

Abstract

The present invention discloses a hospital internal audit system and method based on drug management, and relates to the technical field of drug audit. The present invention sets an information summary unit to periodically collect and summarize and obtain drug summary information of a target hospital, sets a ciphertext interaction unit to convert drug summary data to obtain ciphertext audit data, wherein in the process of converting to obtain ciphertext audit data, a conversion logic is used to replace key encryption, thereby avoiding the risk of key loss and leakage, sets a drug audit module, stores the ciphertext audit data in ciphertext and sets plaintext access permissions, and temporarily restores the ciphertext audit data to automatically generate an audit report, and after the audit report is generated, the temporarily restored drug summary data is destroyed. In this way, the security of the ciphertext audit data before and after the audit is guaranteed, and the security of the audit result is further guaranteed.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of drug auditing, and in particular to a hospital internal auditing system and method based on drug management. Background Art

[0002] In the modern medical system, hospital drug management is a key link in ensuring medical quality and patient safety. With the widespread application of information technology in the medical field, hospital internal audits are gradually moving towards informatization and intelligence.

[0003] At present, in order to ensure the security of drug audit data, hospitals usually use keys to encrypt and store drug audit data. This method effectively prevents data from being illegally stolen and tampered with to a certain extent. However, as the "key" to open audit data, the security of the key is extremely important. If the key is lost, auditors will not be able to access and read the stored drug audit data normally. This will directly affect the development of audit work and make the generation of audit reports difficult. Because the accuracy and completeness of audit reports depend on the analysis and collation of comprehensive and accurate audit data, and the loss of keys will lead to the inability to obtain data, which will inevitably make the results of audit reports unreliable. In actual operations, hospital staff may lose keys due to various reasons, such as personnel changes, system failures, operational errors, etc. Once this happens, not only will it take a lot of time and effort to find or restore the key, but there may also be a risk that the data cannot be permanently restored, which will cause great trouble to the hospital's drug management and internal audit work.

[0004] In order to solve the above problems, the present invention proposes a solution. Summary of the invention

[0005] The purpose of the present invention is to provide a hospital internal audit system and method based on drug management, in order to solve the problems raised in the above background technology;

[0006] The purpose of the present invention can be achieved through the following technical solutions:

[0007] A hospital internal audit system based on drug management, including:

[0008] Each time drug summary data of a summary period is received, the ciphertext interaction unit generates ciphertext audit data of the corresponding summary period according to a preset generation rule, and transmits the ciphertext audit data to the drug audit module;

[0009] The drug audit module is used to periodically audit the stored drugs of the target hospital. The drug audit module pre-stores audit standard information, which includes several audit points, each of which corresponds to a preset audit score.

[0010] After receiving the transmitted ciphertext audit data of the current summary period, the drug audit module first stores it and sets the plaintext access permission;

[0011] The ciphertext audit data is then restored to obtain the corresponding ciphertext audit data, all stored drugs contained in the restored ciphertext audit data are automatically audited according to the audit standard information to obtain a corresponding audit report, the audit report is stored, and the restored ciphertext audit data is destroyed after the audit reports for all stored drugs are generated.

[0012] Furthermore, it also includes an information aggregation unit, which is used to periodically collect and aggregate the stored drug information of all stored drugs stored in the target hospital to obtain drug summary data of the corresponding aggregation period.

[0013] Furthermore, the rules for generating the ciphertext audit data for the current summary period are as follows:

[0014] S11: Create a 4*4 table, and fill the numbers 1-16 into the 16 cells in the table in order from top to bottom and from right to left according to 4 rows and 4 columns. Then, in the table, the 4 cells in the first row from left to right are filled with the numbers 13, 9, 5, and 1 in sequence, the 4 cells in the second row from left to right are filled with the numbers 14, 10, 6, and 2 in sequence, the 4 cells in the third row from left to right are filled with the numbers 15, 11, 7, and 3 in sequence, and the 4 cells in the fourth row from left to right are filled with the numbers 16, 12, 8, and 4 in sequence, wherein the above description of the number of rows in the table is the 1st, 2nd, 3rd, and 4th rows described in order from top to bottom;

[0015] S12: after the filling is completed, a ciphertext reference table is generated according to a preset interchange generation rule;

[0016] S13: performing binary conversion on the drug summary data of the current summary period, marking the binary data obtained after the conversion as the drug processing data of the current summary period, and obtaining the total number A1 of characters constituting the drug processing data;

[0017] S14: using formula B1=mod(A1,16) to calculate and obtain the starting selected amount B1 of the cell of the current summary period, and using formula C1=mod(A1,4) to calculate and obtain the dynamic extension amount C1 of the current summary period, wherein the dynamic extension amount is artificially defined to characterize the dynamic extension characteristics of the current summary period for the numbers filled in the table;

[0018] S15: Generate a ciphertext standard table of the current summary period according to the preset deferral rule and the dynamic deferral amount B1 of the current summary period;

[0019] S16: from left to right, every four characters in the drug processing data are taken as a group of processing strings to obtain a plurality of groups of processing strings, and according to the position of each group of processing strings in the drug processing data, the groups of processing strings are marked as G1, G2, ..., Gg from left to right, where g≥1;

[0020] S17: Obtain the ciphertext strings of the processing strings G1, G2, ..., Gg in sequence according to the preset acquisition rules;

[0021] S18: Concatenate the ciphertext strings in the order of processing strings G1, G2, ..., Gg to obtain the ciphertext audit data of the current summary period.

[0022] A hospital internal audit method based on drug management includes the following steps:

[0023] Step 1: The information summary unit periodically collects and summarizes the stored drug information of all stored drugs stored in the target hospital to obtain drug summary data of the corresponding summary period, and transmits the drug summary data to the ciphertext interaction unit;

[0024] Step 2: upon receiving drug summary data of a summary period, the ciphertext interaction unit generates ciphertext audit data of the corresponding summary period according to a preset generation rule, and transmits the ciphertext audit data to the drug audit module;

[0025] Step 3: After receiving the ciphertext audit data of each summary period, the drug audit module first stores it and sets the plaintext access permission;

[0026] The ciphertext audit data is then restored to obtain the corresponding ciphertext audit data, all stored drugs contained in the restored ciphertext audit data are automatically audited according to the audit standard information to obtain a corresponding audit report, the audit report is stored, and the restored ciphertext audit data is destroyed after the audit reports for all stored drugs are generated.

[0027] Beneficial effects of the present invention:

[0028] (1) The present invention sets an information summary unit to periodically collect and summarize and obtain the drug summary information of the target hospital, sets a ciphertext interaction unit to convert the drug summary data to obtain ciphertext audit data, wherein in the process of converting the ciphertext audit data, a conversion logic is used to replace key encryption, thereby avoiding the risk of key loss and leakage, and sets a drug audit module to store the ciphertext audit data in ciphertext and set plaintext access permissions, and temporarily restores the ciphertext audit data to automatically generate an audit report, and after the audit report is generated, the temporarily restored drug summary data is destroyed. In this way, the security of the ciphertext audit data before and after the audit is guaranteed, and the security of the audit results is further guaranteed;

[0029] (2) The present invention introduces a ciphertext reference table in the process of converting ciphertext audit data. A number of characters are filled in the ciphertext reference table. Each time drug summary information of a summary period is received, the identification starting cell and the iterative extension character of the corresponding summary period are determined according to the drug summary information. The digital characters updated in the ciphertext reference table in each summary period are determined by identifying the starting cell and the iterative extension character. In this way, the ciphertext audit data obtained in each summary period is made dynamic, which increases the complexity and security of the conversion process and makes unknown access and cracking more difficult. BRIEF DESCRIPTION OF THE DRAWINGS

[0030] The present invention will be further described below in conjunction with the accompanying drawings.

[0031] Figure 1 It is a system block diagram of the present invention. DETAILED DESCRIPTION

[0032] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0033] like Figure 1 As shown, a hospital internal audit system and method based on drug management includes a drug data storage management module and a drug audit module;

[0034] The stored drug data management module is used to securely manage the stored drug data of the target hospital, and the stored drug data management module includes an information aggregation unit and a ciphertext interaction unit;

[0035] An information aggregation unit is used to periodically collect and aggregate the stored drug information of all stored drugs stored in the target hospital. The current aggregation cycle information aggregation unit acquires the drug information of all stored drugs stored in the target hospital in the current aggregation cycle, and generates drug aggregation data of the current aggregation cycle based on the acquired drug information. The drug information of the stored drugs includes basic information, purchase information, inventory information and usage information.

[0036] The basic information includes the name, specification, dosage form and manufacturer of the stored drugs, the purchase information includes the purchase date, purchase quantity, purchase price and supplier, the inventory information includes the inventory quantity, inventory location, inventory turnover rate, etc., and the usage information includes the patient's medication record;

[0037] The information summary unit transmits the generated drug summary data of the current summary period to the ciphertext interaction unit;

[0038] The ciphertext interaction unit updates the stored periodic measurement. After receiving the transmitted drug summary data of the current summary period, the ciphertext interaction unit generates the ciphertext audit data of the current summary period according to the preset generation rules. The generation rules are as follows:

[0039] S11: Create a 4*4 table, and fill the numbers 1-16 into the 16 cells in the table in order from top to bottom and from right to left according to 4 rows and 4 columns. Then, in the table, the 4 cells in the first row from left to right are filled with the numbers 13, 9, 5, and 1 in sequence, the 4 cells in the second row from left to right are filled with the numbers 14, 10, 6, and 2 in sequence, the 4 cells in the third row from left to right are filled with the numbers 15, 11, 7, and 3 in sequence, and the 4 cells in the fourth row from left to right are filled with the numbers 16, 12, 8, and 4 in sequence, wherein the above description of the number of rows in the table is the 1st, 2nd, 3rd, and 4th rows described in order from top to bottom;

[0040] S12: After the filling is completed, the ciphertext reference table is generated according to the preset exchange generation rule, and the exchange generation is as follows:

[0041] S121: After the filling is completed, the number filled in the cell of the 1st row and the 4th column is swapped with the number character filled in the cell of the 4th row and the 1st column. After the swap is completed, the number filled in the cell of the 1st row and the 4th column is 16, and the number filled in the cell of the 4th row and the 1st column is 1;

[0042] Similarly, swap the number filled in the cell in the 2nd row and 3rd column with the number filled in the cell in the 3rd row and 2nd column;

[0043] S122: swap the number filled in the cell in the first row and the first column with the number filled in the cell in the fourth row and the fourth column, and swap the number filled in the cell in the second row and the second column with the number filled in the cell in the second row and the third column, and after the swap is completed, obtain the ciphertext reference table;

[0044] It should be noted here that the above description of the number of columns in the table describes the 1st, 2nd, 3rd, and 4th columns in order from left to right;

[0045] In this embodiment, the cells for exchanging characters are selected based on the principle of diagonal lines. Based on the four vertices in the table, all cells through which the diagonal line passes are selected, and the characters in these cells are exchanged.

[0046] S13: performing binary conversion on the drug summary data of the current summary period, marking the binary data obtained after the conversion as the drug processing data of the current summary period, and obtaining the total number A1 of characters constituting the drug processing data;

[0047] S14: using formula B1=mod(A1,16) to calculate and obtain the starting selected amount B1 of the cell of the current summary period, and using formula C1=mod(A1,4) to calculate and obtain the dynamic extension amount C1 of the current summary period, wherein the dynamic extension amount is artificially defined to characterize the dynamic extension characteristics of the current summary period for the numbers filled in the table;

[0048] S15: Generate a ciphertext standard table of the current summary period according to the preset deferral rule combined with the dynamic deferral amount B1 of the current summary period. The deferral rule is as follows:

[0049] S151: Mark all cells in the ciphertext reference table in order from left to right and from top to bottom, and mark them as D1, D2, ..., D16, wherein D1, D2, D3, D4 are cells in the first row of the ciphertext reference table, D5, D6, D7, D8 are cells in the second row of the ciphertext reference table, and cells D9, D10, ..., D16 are marked in the same manner;

[0050] S152: Select the cell marked with a subscript B1 as the start cell of the current summary period from left to right, and obtain the numeric character E1 filled in the start cell;

[0051] Using the formula Calculate and obtain the iterative extension character F1 of the identification starting cell;

[0052] S153: updating the character in the identification start cell to F1 according to the iteratively deferred character E1;

[0053] S154: according to S151 to S152, the iterative deferred characters of the remaining cells are calculated in sequence, and according to S153, the corresponding iterative deferred characters are updated and filled into the corresponding cells in the ciphertext reference table to obtain the ciphertext standard table of the current summary period;

[0054] S16: from left to right, every four characters in the drug processing data are taken as a group of processing strings to obtain a plurality of groups of processing strings, and according to the position of each group of processing strings in the drug processing data, the groups of processing strings are marked as G1, G2, ..., Gg from left to right, where g≥1;

[0055] S17: Obtain the ciphertext strings of the processing strings G1, G2, ..., Gg in sequence according to the preset acquisition rules. The acquisition rules are as follows:

[0056] S171: Calculate and obtain the matching numeric character I1 of the processing string G1 using the formula I1=H1+1, where H1 is the decimal number of the processing string;

[0057] S172: Obtain the numeric characters filled in the cells marked with a subscript I1 in the ciphertext standard table and use the decimal numbers of the numeric characters as the ciphertext string of the processing string G1;

[0058] S173: Obtain the ciphertext strings of the processing strings G2, G3, ..., Gg in sequence according to S171 to S172;

[0059] S18: Concatenate the ciphertext strings in the order of the processed strings G1, G2, ..., Gg to obtain the ciphertext audit data of the current summary period;

[0060] Transfer the ciphertext audit data of the current summary period to the drug audit module;

[0061] The drug audit module is used to automatically audit the management process of drug storage in the target hospital. The drug audit module pre-stores audit standard information related to the stored drug information. The audit standard information includes several audit points, and each audit point corresponds to an audit score.

[0062] In this embodiment, the audit points include the procurement channels of stored drugs, whether the specifications are compliant, whether the quality inspection of stored drugs is qualified, the inventory quantity of stored drugs, inventory location and inventory turnover rate, storage conditions of stored drugs, purchase date, whether the purchase price meets the requirements, the price of stored drugs, whether the patient use record is reasonable, etc. By reviewing these audit points one by one, the stored drug information can be audited comprehensively and accurately to ensure the standardization and safety of the hospital's stored drug management;

[0063] After receiving the transmitted ciphertext audit data of the current summary period, the drug audit module first stores it;

[0064] Then, the received transmitted ciphertext audit data of the current summary period is restored to obtain the drug summary data of the current summary period, and for a stored drug, an audit score based on each audit point of the stored drug is automatically calculated according to the drug summary data, and the sum of all audit scores is calculated to obtain, and an audit report of the stored drug in the current summary period is generated according to the obtained audit score based on each audit point of the stored drug and the sum of all audit scores;

[0065] After obtaining the audit reports of all stored drugs, store them, and then destroy the restored drug summary data of the current summary period;

[0066] In the description of the specification, the description with reference to the terms "one embodiment", "example", "specific example", etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described can be combined in any one or more embodiments or examples in a suitable manner.

[0067] The above contents are merely examples and explanations of the present invention. Those skilled in the art may make various modifications or additions to the specific embodiments described or replace them in similar ways. As long as they do not deviate from the scope defined by the invention, they shall all fall within the protection scope of the present invention.

[0068] The above is a detailed description of an embodiment of the present invention, but the content is only a preferred embodiment of the present invention and cannot be considered to limit the scope of implementation of the present invention. All equivalent changes and improvements made within the scope of the present invention should still fall within the scope of the patent coverage of the present invention.

Claims

1. A hospital internal audit system based on drug management, characterized in that: include: Each time drug summary data of a summary period is received, the ciphertext interaction unit generates ciphertext audit data of the corresponding summary period according to a preset generation rule, and transmits the ciphertext audit data to the drug audit module; The drug audit module is used to periodically audit the stored drugs of the target hospital. The drug audit module pre-stores audit standard information, which includes several audit points, each of which corresponds to a preset audit score. After receiving the transmitted ciphertext audit data of the current summary period, the drug audit module first stores it and sets the plaintext access permission; Then, the ciphertext audit data is restored to obtain corresponding drug summary data, all stored drugs included in the restored drug summary data are automatically audited according to the audit standard information to obtain corresponding audit reports, the audit reports are stored, and after the audit reports of all stored drugs are generated, the restored drug summary data is destroyed; The rules for generating ciphertext audit data for the current summary period are as follows: S11: Create a 4*4 table, and fill the numbers 1-16 into the 16 cells in the table in order from top to bottom and from right to left in 4 rows and 4 columns. Then, in the table, the 4 cells in the first row from left to right are filled with the numbers 13, 9, 5, and 1 in sequence, the 4 cells in the second row from left to right are filled with the numbers 14, 10, 6, and 2 in sequence, the 4 cells in the third row from left to right are filled with the numbers 15, 11, 7, and 3 in sequence, and the 4 cells in the fourth row from left to right are filled with the numbers 16, 12, 8, and 4 in sequence; S12: After the filling is completed, the ciphertext reference table is generated according to the preset interchange generation rule. The interchange generation rule is as follows: S121: After the filling is completed, the number filled in the cell of the 1st row and the 4th column is swapped with the number character filled in the cell of the 4th row and the 1st column. After the swap is completed, the number filled in the cell of the 1st row and the 4th column is 16, and the number filled in the cell of the 4th row and the 1st column is 1; Similarly, swap the number filled in the cell in the 2nd row and 3rd column with the number filled in the cell in the 3rd row and 2nd column; S122: swap the number filled in the cell in the first row and the first column with the number filled in the cell in the fourth row and the fourth column, and swap the number filled in the cell in the second row and the second column with the number filled in the cell in the second row and the third column, and after the swap is completed, obtain the ciphertext reference table; S13: performing binary conversion on the drug summary data of the current summary period, marking the binary data obtained after the conversion as the drug processing data of the current summary period, and obtaining the total number A1 of characters constituting the drug processing data; S14: using formula B1=mod(A1,16) to calculate and obtain the starting selected amount B1 of the cell of the current summary period, and using formula C1=mod(A1,4) to calculate and obtain the dynamic extension amount C1 of the current summary period, wherein the dynamic extension amount is artificially defined to characterize the dynamic extension characteristics of the current summary period for the numbers filled in the table; S15: Generate a ciphertext standard table of the current summary period according to the preset deferral rule combined with the dynamic deferral amount C1 of the current summary period. The deferral rule is as follows: S151: Mark all cells in the ciphertext reference table in order from left to right and from top to bottom, and mark them as D1, D2, ..., D16, wherein D1, D2, D3, D4 are cells in the first row of the ciphertext reference table, D5, D6, D7, D8 are cells in the second row of the ciphertext reference table, and cells D9, D10, ..., D16 are marked in the same manner; S152: From left to right, select the cell with the subscript B1 as the start cell of the current summary period, and obtain the numeric character E1 filled in the start cell; Using the formula Calculate and obtain the iterative extension character F1 of the identification starting cell; S153: updating the character in the identification start cell to F1 according to the iteratively deferred character E1; S154: according to S151 to S152, the iterative deferred characters of the remaining cells are calculated in sequence, and according to S153, the corresponding iterative deferred characters are updated and filled into the corresponding cells in the ciphertext reference table to obtain the ciphertext standard table of the current summary period; S16: from left to right, every four characters in the drug processing data are taken as a group of processing strings to obtain a plurality of groups of processing strings, and according to the position of each group of processing strings in the drug processing data, the groups of processing strings are marked as G1, G2, ..., Gg from left to right, where g≥1; S17: Obtain the ciphertext strings of the processing strings G1, G2, ..., Gg in sequence according to the preset acquisition rules. The acquisition rules are as follows: S171: Calculate and obtain the matching numeric character I1 of the processing string G1 using the formula I1=H1+1, where H1 is the decimal number of the processing string G1; S172: Obtain the numeric characters filled in the cells marked with a subscript I1 in the ciphertext standard table and use the decimal numbers of the numeric characters as the ciphertext string of the processing string G1; S173: Obtain the ciphertext strings of the processing strings G2, G3, ..., Gg in sequence according to S171 to S172; S18: Concatenate the ciphertext strings in the order of processing strings G1, G2, ..., Gg to obtain the ciphertext audit data of the current summary period.

2. According to claim 1, a hospital internal audit system based on drug management is characterized in that: It also includes an information summary unit, which is used to periodically collect and summarize the stored drug information of all stored drugs stored in the target hospital to obtain drug summary data of the corresponding summary period.

3. A hospital internal audit system based on drug management according to claim 2, characterized in that: A drug information store includes basic information, purchase information, inventory information and usage information.

4. A hospital internal audit method based on drug management, characterized in that: The following steps are involved: Step 1: The information summary unit periodically collects and summarizes the stored drug information of all stored drugs stored in the target hospital to obtain drug summary data of the corresponding summary period, and transmits the drug summary data to the ciphertext interaction unit; Step 2: Every time the drug summary data of a summary period is received, the ciphertext interaction unit generates the ciphertext audit data of the corresponding summary period according to the preset generation rules, and transmits the ciphertext audit data to the drug audit module. The generation rules for generating the ciphertext audit data of the current summary period are as follows: S11: Create a 4*4 table, and fill the numbers 1-16 into the 16 cells in the table in order from top to bottom and from right to left in 4 rows and 4 columns. Then, in the table, the 4 cells in the first row from left to right are filled with the numbers 13, 9, 5, and 1 in sequence, the 4 cells in the second row from left to right are filled with the numbers 14, 10, 6, and 2 in sequence, the 4 cells in the third row from left to right are filled with the numbers 15, 11, 7, and 3 in sequence, and the 4 cells in the fourth row from left to right are filled with the numbers 16, 12, 8, and 4 in sequence; S12: After the filling is completed, the ciphertext reference table is generated according to the preset interchange generation rule. The interchange generation rule is as follows: S121: After the filling is completed, the number filled in the cell of the 1st row and the 4th column is swapped with the number character filled in the cell of the 4th row and the 1st column. After the swap is completed, the number filled in the cell of the 1st row and the 4th column is 16, and the number filled in the cell of the 4th row and the 1st column is 1; Similarly, swap the number filled in the cell in the 2nd row and 3rd column with the number filled in the cell in the 3rd row and 2nd column; S122: swap the number filled in the cell in the first row and the first column with the number filled in the cell in the fourth row and the fourth column, and swap the number filled in the cell in the second row and the second column with the number filled in the cell in the second row and the third column, and after the swap is completed, obtain the ciphertext reference table; S13: performing binary conversion on the drug summary data of the current summary period, marking the binary data obtained after the conversion as the drug processing data of the current summary period, and obtaining the total number A1 of characters constituting the drug processing data; S14: using formula B1=mod(A1,16) to calculate and obtain the starting selected amount B1 of the cell of the current summary period, and using formula C1=mod(A1,4) to calculate and obtain the dynamic extension amount C1 of the current summary period, wherein the dynamic extension amount is artificially defined to characterize the dynamic extension characteristics of the current summary period for the numbers filled in the table; S15: Generate a ciphertext standard table of the current summary period according to the preset deferral rule combined with the dynamic deferral amount C1 of the current summary period. The deferral rule is as follows: S151: Mark all cells in the ciphertext reference table in order from left to right and from top to bottom, and mark them as D1, D2, ..., D16, wherein D1, D2, D3, D4 are cells in the first row of the ciphertext reference table, D5, D6, D7, D8 are cells in the second row of the ciphertext reference table, and cells D9, D10, ..., D16 are marked in the same manner; S152: From left to right, select the cell with the subscript B1 as the start cell of the current summary period, and obtain the numeric character E1 filled in the start cell; Using the formula Calculate and obtain the iterative extension character F1 of the identification starting cell; S153: updating the character in the identification start cell to F1 according to the iteratively deferred character E1; S154: according to S151 to S152, the iterative deferred characters of the remaining cells are calculated in sequence, and according to S153, the corresponding iterative deferred characters are updated and filled into the corresponding cells in the ciphertext reference table to obtain the ciphertext standard table of the current summary period; S16: from left to right, every four characters in the drug processing data are taken as a group of processing strings to obtain a plurality of groups of processing strings, and according to the position of each group of processing strings in the drug processing data, the groups of processing strings are marked as G1, G2, ..., Gg from left to right, where g≥1; S17: Obtain the ciphertext strings of the processing strings G1, G2, ..., Gg in sequence according to the preset acquisition rules. The acquisition rules are as follows: S171: Calculate and obtain the matching numeric character I1 of the processing string G1 using the formula I1=H1+1, where H1 is the decimal number of the processing string G1; S172: Obtain the numeric characters filled in the cells marked with a subscript I1 in the ciphertext standard table and use the decimal numbers of the numeric characters as the ciphertext string of the processing string G1; S173: Obtain the ciphertext strings of the processing strings G2, G3, ..., Gg in sequence according to S171 to S172; S18: Concatenate the ciphertext strings in the order of the processed strings G1, G2, ..., Gg to obtain the ciphertext audit data of the current summary period; Step 3: After receiving the ciphertext audit data of each summary period, the drug audit module first stores it and sets the plaintext access permission; The ciphertext audit data is then restored to obtain the corresponding drug summary data, all stored drugs contained in the restored drug summary data are automatically audited according to the audit standard information to obtain the corresponding audit report, the audit report is stored, and the restored drug summary data is destroyed after the audit reports of all stored drugs are generated.

Citation Information

Patent Citations

  • Data auditing method and device, electronic device and storage medium

    CN111245814A