An outpatient and emergency diagnosis and treatment data quality checking system and method

By preloading standard coding libraries and value range sets in memory and performing batch parallel verification, the quality problems of outpatient and emergency medical data are solved, achieving efficient full verification and multi-dimensional quantitative evaluation, and supporting in-depth identification and improvement of data quality.

CN123182891APending Publication Date: 2026-11-27PEKING UNIVERSITY FIRST HOSPITAL (PEKING UNIVERSITY FIRST CLINICAL MEDICAL COLLEGE)
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611443088.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-09-17
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

Existing outpatient and emergency medical data suffers from various quality issues during collection and transmission, including field completeness, terminology standardization, value range compliance, and cost logic. Existing verification tools are inefficient, have limited coverage, are difficult to verify in full, and lack a multi-dimensional verification system and quantitative evaluation.

Method used

By preloading standard encoding libraries, value range sets, and field index information into memory, batch parallel verification is performed, including non-empty verification, diagnosis and surgery name matching verification, value range compliance verification, and cross-field logic verification, generating structured quality reports and supporting detailed export of anomaly information.

Benefits of technology

It significantly improves the efficiency of verification and processing of massive amounts of outpatient and emergency medical data, comprehensively covers various quality issues, provides multi-dimensional quantitative evaluation and targeted traceability and rectification support, and improves the efficiency of data quality identification and improvement.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123182891A_ABST
    Figure CN123182891A_ABST
Patent Text Reader

Abstract

The application provides an outpatient and emergency diagnosis and treatment data quality checking system and method, which is applied to the technical field of medical data processing. Outpatient and emergency diagnosis and treatment information page data sets are obtained, field name standardization mapping is performed, and a standard coding library, a value domain set and a field index are preloaded to the memory for batch parallel checking. The checking covers the field saturation, diagnosis and operation term specification, value domain compliance, cost logic compliance and data quality logic correctness dimensions, and executes non-empty checking and saturation statistics, name coding bidirectional matching, value domain comparison and extreme value detection, cost rule checking and cross-field linkage cross-checking, with at least one non-zero cost as the effective judgment benchmark. Finally, the checking results are summarized, statistical information is output, a quality report is generated and abnormal detail classification selective export is supported.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of medical data processing technology, and in particular to a system and method for verifying the quality of outpatient and emergency medical data. Background Technology

[0002] With the continuous advancement of healthcare informatization, hospital information systems at all levels generate massive amounts of outpatient and emergency medical data daily, covering multiple dimensions such as basic patient information, consultation process information, treatment information, and cost information. Outpatient and emergency medical data is a crucial foundational data source for clinical research, medical quality control, medical insurance cost auditing, and hospital operation management; its quality directly impacts the reliability of subsequent data analysis results and the scientific rigor of medical decisions.

[0003] However, current outpatient and emergency medical data collection and transmission generally suffer from multiple quality issues. Regarding field completeness, some core data collection fields are missing or contain invalid identifiers, resulting in incomplete medical records. Regarding terminology standardization, diagnostic names and surgical procedure names sometimes use clinically common names without standardizing them against a standard coding library, and some records show mismatches between the entered codes and standard codes. Regarding value range compliance, some fields with fixed standard value ranges exceed the preset enumeration range, and some fields have the same value across all records, indicating batch entry errors or outdated default values ​​in the data interface. Regarding cost logic, there are business logic errors such as total costs being zero or negative, total costs not matching the sum of cost items, cost items exceeding the total cost, and child items exceeding parent items in parent-child cost categories. Regarding cross-field logic, there are deep-seated logical anomalies that cannot be detected by single-field validation, such as diagnostic codes being mutually exclusive with patient gender, inconsistencies between ID card numbers and gender and date of birth information, incomplete surgical information, lack of linkage between surgical costs and surgical names, and reversed order of visit times.

[0004] Current outpatient and emergency department data quality verification primarily relies on manual sampling, which is inefficient, has limited coverage, and struggles to meet the demands of full-scale data verification. Some medical institutions use simple single-field format verification tools, which can only check for superficial issues such as empty fields and correct formatting, failing to identify deeper quality problems like non-standard terminology, out-of-bounds value ranges, incorrect cost logic, and cross-field logical anomalies. Furthermore, existing verification tools lack a unified multi-dimensional verification system, making it difficult to quantify and evaluate verification results. The methods for exporting anomaly details are inflexible, hindering quality control personnel from conducting targeted source tracing and rectification for different verification dimensions and fields. Summary of the Invention

[0005] Other features and advantages of this application will become apparent from the following detailed description, or may be learned in part by practice of the invention.

[0006] According to one aspect of this application, a method for verifying the quality of outpatient and emergency medical data is provided, comprising: acquiring a dataset of outpatient and emergency medical information pages, the dataset containing multiple medical records, each record containing fields for collecting patient basic information, consultation process information, medical information, and cost information; during loading, standardizing and mapping the field names, and preloading standard diagnostic and surgical coding libraries, standard value range sets, and field index information into memory, thereby performing batch parallel verification on multiple records; in the batch parallel verification, performing non-empty verification on preset core collection fields, counting the number of valid records and field saturation for each field, and locating abnormal records with empty field values ​​or preset invalid identifiers; performing bidirectional matching verification on the names and codes of diagnoses and surgeries according to the standard coding library, identifying abnormal records with names not included or with name-code mismatches; and taking fixed value range fields... The system compares values ​​with the standard value range set to identify out-of-bounds values ​​and extreme value anomalies where all field values ​​are identical. It performs checks on total cost for positive values, total cost for consistency with the sum of individual items, individual items for not exceeding the total cost, and parent-child cost inclusion relationships, with at least one cost not being zero as a valid criterion. It performs cross-validation on multiple collected fields, including checks on gender constraints in diagnostic codes and mutual exclusion between patient genders, consistency between ID number and gender and date of birth, verification of document type, checks on the same or empty entries for surgery name, code, date, and surgeon, checks on surgery name when surgery cost is greater than zero, and logical checks on the order of consultation time. It summarizes the results of field saturation, diagnostic and surgical terminology standardization, value range compliance, cost logic compliance, and data quality logic correctness checks, outputs data quality statistics, generates a structured quality report, and supports selective export of anomaly details at different levels.

[0007] Another aspect of this application is an outpatient and emergency medical data quality verification system, used to execute executable instructions to perform the above-described outpatient and emergency medical data quality verification method.

[0008] According to another aspect of this application, an electronic device includes: a first processor; and a memory for storing executable instructions of the first processor; wherein the first processor is configured to execute the above-described outpatient and emergency medical data quality verification method by executing the executable instructions.

[0009] According to another aspect of this application, a computer-readable storage medium is provided, on which a computer program is stored, which, when executed by a second processor, implements the above-described method for verifying the quality of outpatient and emergency medical data.

[0010] The beneficial technical effects of this application are as follows: It acquires a dataset of outpatient and emergency treatment information pages, performs standardized mapping on field names, preloads standard diagnostic coding libraries, standard surgical coding libraries, standard value range sets, and field index information into memory, and performs batch parallel verification on multiple treatment records. It performs non-empty verification on preset core collection fields, and counts the number of valid records and field saturation for each field. Based on the standard coding library, it performs bidirectional matching verification on the names and codes of diagnoses and surgeries, identifying abnormal records with missing names or mismatched names and codes. It compares the values ​​of fixed value range fields with the standard value range set, identifying out-of-bounds values ​​and extreme value anomalies, and performs verifications for positive total costs, consistency between total costs and the sum of individual items, individual items not exceeding the total cost, and parent-child hierarchical cost inclusion relationships. It performs linked cross-verification on multiple collection fields, identifying abnormal records with mutually exclusive diagnoses and genders, inconsistent ID information, incomplete surgical information, non-linking surgical costs and surgical names, and reversed consultation time order. It summarizes various verification results, outputs data quality statistics, generates a structured quality report, and supports selective export of anomaly details at different levels.

[0011] By preloading standard encoding libraries, standard value range sets, and field index information into memory and performing batch parallel verification, the efficiency of verification processing for massive outpatient and emergency medical data is significantly improved, supporting rapid full verification of up to 200,000 data entries. A multi-dimensional verification system integrating field saturation, terminology standardization, value range compliance, cost logic conformity, and data quality logic correctness is constructed, comprehensively covering various quality issues in outpatient and emergency medical data, from field integrity to deep cross-field logic, thus compensating for the insufficient coverage of single-field format verification.

[0012] The system utilizes a bidirectional index relationship between diagnostic names and standard codes to perform terminology standardization verification. Through cross-field cross-verification involving applicable gender constraints, ID card coding rules, surgical information linkage, and chronological logic, it detects deep logical anomalies that single-field format verification cannot uncover, improving the depth and comprehensiveness of anomaly identification. Data quality is evaluated using quantitative indicators such as field saturation, name standardization rate, code standardization rate, value range standardization rate, cost compliance rate, and logical satisfaction rate, providing objective data support for medical institutions to identify data quality shortcomings and develop targeted improvement measures. The system supports exporting detailed anomalies by verification category and specific field level, facilitating targeted source tracing and rectification by quality control personnel for different verification dimensions and fields, improving the targeting and execution efficiency of continuous data quality improvement. Attached Figure Description

[0013] Figure 1 This invention illustrates a flowchart of a method for verifying the quality of outpatient and emergency medical data according to an embodiment of this application; Figure 2 This is a diagram showing the selective export interface for an anomaly classification of a data quality verification tool for outpatient and emergency department treatment information pages; Figure 3 An interface diagram showing the selective export of anomaly details for a data quality verification tool for outpatient and emergency department treatment information pages; Figure 4 This illustration shows a schematic diagram of an outpatient and emergency medical data quality verification system provided in one embodiment of this application. Detailed Implementation

[0014] The preferred embodiments of the present invention will be described below with reference to the accompanying drawings. It should be understood that the preferred embodiments described herein are for illustration and explanation only and are not intended to limit the present invention.

[0015] In one implementation, Figure 1 A schematic flowchart of a method for verifying the quality of outpatient and emergency medical data according to an embodiment of this application is shown.

[0016] S101: Obtain the dataset of outpatient and emergency treatment information pages. The dataset contains multiple treatment records. Each record contains fields for collecting patient basic information, treatment process information, treatment information, and cost information. During loading, the field names are standardized and mapped, and standard diagnosis, surgical code library, standard value range set, and field index information are preloaded into memory. Based on this, multiple records are batch-verified in parallel.

[0017] In one implementation, the system runs as a standalone desktop application. Standard resource files, such as standard diagnostic coding libraries and standard surgical coding libraries, are encapsulated within the application, enabling an out-of-the-box mode that requires no installation of a runtime environment, no internet download of dependencies, and no manual parameter configuration. The system runs entirely locally; the loading, verification, and report generation of all patient diagnosis and treatment data are completed on the user's local computer, without transmitting data to any external server.

[0018] The system reads the outpatient and emergency treatment information page data file from the local storage path. This data file is a structured data file in CSV format, encoded in UTF-8, with commas as field separators. Date fields in the data file uniformly use the format YYYY-MM-DD or YYYY / MM / DD. Cost fields only retain numbers and decimal points; fields without data should be left blank. Placeholder text such as "None," "Unsearched," or "Unknown" should not be entered. The first line of the data file is the field name line, and the field names must match the English column names specified in the outpatient and emergency treatment information page data report interface standard. It is recommended that the amount of data validated in a single session be limited to 200,000 records. If the data volume is too large, it can be exported and validated in batches according to the visit date. The data file contains multiple treatment records, each corresponding to one outpatient or emergency visit, and includes four categories of collected fields: patient basic information, visit process information, treatment information, and cost information.

[0019] For example, a medical institution directly exported the outpatient and emergency treatment information page data file for August 2026 from its HIS system using the official interface template. This file contains 120,000 treatment records, which is within the recommended limit of 200,000 records. After reading this file, the system constructs a two-dimensional data table in memory, with treatment records as rows and collected fields as columns, for subsequent verification operations.

[0020] Because data files exported from different medical institutions may have different field names, the system performs field name standardization mapping when loading data, mapping the actual field names in the data file to the system's preset standard field codes. The field name standardization mapping method includes the following steps: First, the system preloads a field code mapping table, which stores the correspondence between standard field codes and standard field names. The standard field codes are generated using a unified encoding rule, and each collected field corresponds to a unique standard field code. Second, the system reads the field name list from the first line of the data file and matches each actual field name with the standard field name in the field code mapping table. The matching method uses exact string matching. When an actual field name and a standard field name are completely identical, a mapping relationship is established between the actual field name and the corresponding standard field code. Third, the system stores the established field name mapping relationship in the field code mapping cache, and simultaneously records the correspondence between the standard field code and the data file column index. Subsequent verification modules locate the corresponding columns in the data file using the standard field codes, eliminating the need to perform field name matching again.

[0021] For example, in a data file exported by a medical institution, the actual column name of the patient's gender field is "gender". The system searches for an entry with the standard field name "gender" in the field code mapping table, matches it with the corresponding standard field code, establishes a mapping relationship from "gender" to the standard field code, and records the column index in the data file corresponding to the standard field code. When the field saturation verification module needs to read the patient's gender field later, it locates the "gender" column in the data file through this standard field code and directly reads all the data values ​​in that column.

[0022] Upon system startup, the standard diagnostic coding library, standard surgical coding library, standard value range set, and field index information are preloaded into memory to construct a multi-level cache structure, avoiding repeated reading of external data files during verification. The multi-level cache structure includes three levels: The first level is a field coding mapping cache, storing the correspondence between actual field names and standard field codes established during the field name standardization mapping phase, as well as the correspondence between standard field codes and data file column indexes. The second level is a standard value range set cache, storing the allowed value set for each fixed standard value range field, used to quickly determine whether a field value is within the standard value range. The third level is a standard coding mapping and constraint attribute cache, storing data from the standard diagnostic coding library and the standard surgical coding library, including bidirectional index relationships from diagnostic name to standard code and from standard code to diagnostic name, as well as attributes such as applicable gender constraint information associated with standard codes.

[0023] The standard resource preloading method includes the following steps: First, upon system startup, the system reads the standard resource files encapsulated within the application, including the standard diagnostic coding library file, the standard surgical coding library file, the standard value range set configuration file, and the field coding mapping configuration file. Second, the system parses the standard diagnostic coding library file, reads each standard coding record line by line, extracts the standard coding, diagnostic name, and applicable gender constraint information, and writes them respectively to the forward index from diagnostic name to standard coding, the reverse index from standard coding to diagnostic name, and the constraint attribute storage.

[0024] The third step involves the system parsing the standard surgical code library file, reading each standard code record line by line, extracting the standard code and surgical operation name, and writing them into the forward index from the surgical name to the standard code and the reverse index from the standard code to the surgical name, respectively. The fourth step involves the system parsing the standard value range set configuration file, reading the field code and allowed value list for each fixed standard value range field, and writing the allowed value list into the standard value range set cache. The fifth step involves the system verifying the completeness of the standard code resource files. When a missing standard resource file is detected, a prompt message is automatically displayed and verification units that depend on that resource are disabled to avoid abnormal verification results due to incomplete resources.

[0025] For example, when the system starts, it reads the standard diagnostic coding library file, which contains all records of the national or industry-issued disease classification and code standard coding tables. After parsing line by line, the system writes the mapping from all diagnostic names to standard codes into the forward index, the mapping from all standard codes to diagnostic names into the reverse index, and the applicable gender constraint information corresponding to all standard codes into the constraint attribute storage. During the verification process, when the terminology standardization verification module needs to query the standard code corresponding to a certain diagnostic name, it directly queries the forward index using that diagnostic name as the key, without needing to read external files.

[0026] Based on pre-loaded data in memory, the system performs batch parallel verification on multiple medical records in the dataset. It replaces line-by-line looping with batch processing, uniformly performing batch judgments on various verification rules. The batch parallel verification method includes the following steps: First, the system converts the verification rules into column-oriented batch judgment operations, reading all column data of a field at once and counting the number of records that meet the conditions through batch comparison or batch set inclusion operations, rather than judging the field value of each record line by line. Second, the system uniformly performs batch judgments on various verification rules. For example, in field saturation verification, the non-empty check reads all column data of the target field at once and counts the number of non-empty records through batch comparison operations; in value range compliance verification, the value judgment reads all column data of the target field at once and counts the number of records within the value range through batch set inclusion operations. Third, the system summarizes the batch judgment results of each verification rule, generating statistical indicators for each verification dimension and abnormal record location information.

[0027] For example, a dataset contains 120,000 medical records. When performing field saturation validation, the system reads all 120,000 values ​​of the patient gender field at once. Through batch comparison, the number of non-empty values ​​is found to be 119,850, and the field saturation is [value missing]. The full-dimensional verification of hundreds of thousands of outpatient and emergency medical records can be completed within seconds. This performance data is based on a specific test environment, and the actual performance varies with hardware configuration and the number of verification modules enabled. It cannot be generalized to other configuration scenarios.

[0028] S102, in batch parallel verification, perform non-empty verification on the preset core collection fields, count the number of valid records and field saturation of each field, and locate abnormal records with field values ​​that are empty or have preset invalid flags.

[0029] In one implementation, combining the data integrity quality control requirements of the outpatient and emergency treatment information page with batch parallel verification rules, a non-empty verification is performed on preset core collection fields within the field saturation verification unit. Core collection fields are those that have a critical impact on the integrity of the treatment information. Field saturation verification is performed on the preset core collection fields, which are those that have a critical impact on the integrity of the treatment information. The system pre-configures a list of core collection fields, which uses standard field codes as identifiers to mark whether each field belongs to the core collection fields. The core collection field list is loaded when the system starts. During the verification process, saturation verification is performed only on fields marked as core collection fields in the list; non-core fields are not subject to this verification.

[0030] For example, a medical institution's core data collection field list includes seven fields: patient gender, date of birth, ID number, date of visit, primary diagnosis name, primary diagnosis code, and total cost. When the system starts, these seven fields are marked as core data collection fields. During the validation process, only these seven fields undergo saturation checks; other fields, such as the attending physician and the department visited, are not subject to saturation checks.

[0031] Non-empty verification is the foundation of field saturation verification, used to determine whether the core data collection fields of each medical record have valid values. The non-empty verification method includes the following steps: First, the system reads the standard field code list of all core data collection fields. Second, the system reads the column data corresponding to each core data collection field one by one, obtaining the set of values ​​for that field in all medical records at once. Third, the system performs a non-empty check on each value in the set of values. The non-empty check rule includes two conditions: Condition 1, the field value is not an empty string; Condition 2, the field value does not belong to the preset invalid identifier set. The preset invalid identifier set is stored in the system configuration and includes placeholder text such as "None," "Unsearched," and "Unknown." When a field value simultaneously meets the conditions of not being an empty string and not belonging to the preset invalid identifier set, the field of that record is determined to be validly non-empty. Fourth, the system counts the number of validly non-empty records for that field, i.e., the number of records that meet the non-empty check rule. Fifth, the system repeats steps two through four until the non-empty verification of all core data collection fields is completed. The NOT NULL check uses a batch operation method, which reads all column data of a certain field at once and performs a batch comparison, rather than looping through each record to check the field value.

[0032] For example, a dataset contains 120,000 medical records, with patient gender as a core data collection field. The system reads all 120,000 values ​​for the patient gender field at once and performs a non-empty check on each one. Of these, 119,850 values ​​are either "male" or "female," satisfying the non-empty check rule; 100 values ​​are empty strings; and 50 values ​​are "unknown," belonging to a pre-defined set of invalid identifiers. The system counts 119,850 valid non-empty records for this field.

[0033] The system connects the medical record data structure with the core collection field list, calculates the total number of cases and the number of valid non-empty records for each field, and establishes a quantitative evaluation mechanism for field integrity by calculating the field saturation as the ratio of the number of valid non-empty records to the total number of cases. Field saturation is used to quantitatively evaluate the data collection integrity of core collection fields, and is calculated as the ratio of the number of valid non-empty records to the total number of cases. The field saturation calculation method includes the following steps: First, the system obtains the total number of cases in the dataset, i.e., the total number of all medical records. Second, the system reads the number of valid non-empty records for each core collection field, which is obtained by the non-empty verification method. Third, the system calculates the field saturation for each core collection field according to the formula: field saturation equals the number of valid non-empty records divided by the total number of cases. The field saturation value ranges from 0 to 1; the closer the value is to 1, the lower the proportion of missing data in that field, and the better the data collection quality. Fourth, the system stores the total number of cases, the number of valid non-empty records, and the field saturation for each core collection field as verification results for subsequent abnormal record location and threshold warning.

[0034] For example, a dataset contains 120,000 medical records, and the number of valid non-empty records in the patient gender field is 119,850. The system calculates the field saturation using the formula 119,850 divided by 120,000, resulting in a field saturation of 0.99875 for the patient gender field. This indicates that the missing data percentage for this field is 0.00125, suggesting good data collection quality.

[0035] Using field saturation as the core evaluation dimension, the system integrates the total number of cases, the number of valid non-empty fields, and saturation indicators for each field to automatically locate abnormal records with empty field values ​​or preset invalid flags. Abnormal record location is used to automatically identify medical records with empty core data collection field values ​​or those belonging to preset invalid flags, facilitating targeted source tracing and rectification by quality control personnel. The abnormal record location method includes the following steps: First, the system reads the non-empty judgment result of each core data collection field one by one. This result is generated synchronously by the non-empty verification method during the non-empty judgment process, and each element corresponds to whether the field of a medical record is validly non-empty. Second, the system iterates through the non-empty judgment results. When the judgment result corresponding to a certain position is invalid, it indicates that the field of the corresponding medical record at that position is an abnormal value, and the system records the row number and patient card number of the medical record. Third, the system stores the row number, patient card number, field name, and abnormality type of the abnormal record in the abnormal details list. The abnormality types include two categories: field values ​​being empty and field values ​​being preset invalid flags. Fourth, the system repeats steps one through three until the abnormal record location for all core data collection fields is completed.

[0036] For example, a dataset contains 120,000 medical records. In the NOT NULL judgment results for the patient gender field, the 5000th record has an empty string value, and the 8000th record has an unknown value. When the system iterates through the NOT NULL judgment results, invalid judgments are detected at the 5000th and 8000th positions. These two records are recorded with row numbers 5000 and 8000 respectively, medical card numbers corresponding to the card numbers, and anomaly types of empty field value and preset invalid field value respectively, and are stored in the anomaly details list.

[0037] The system uses a saturation threshold warning mechanism to identify batch omissions in field data entry and data interface transmission anomalies. When the saturation of a field falls below a preset threshold, it alerts the system that the field may have batch omissions or data interface transmission anomalies, forming the foundation for field saturation verification and anomaly tracing and rectification. The saturation threshold warning is used to identify core data acquisition fields with abnormally low saturation, indicating potential batch omissions or data interface transmission anomalies, facilitating targeted rectification by quality control personnel. The saturation threshold warning method includes the following steps: First, the system reads a preset saturation threshold, configured by the medical institution according to its own quality control requirements and stored in the system configuration. Second, the system reads the saturation of each core data acquisition field and compares it with the saturation threshold. Third, when the saturation of a core data acquisition field falls below the preset threshold, the system generates a warning message, indicating potential batch omissions or data interface transmission anomalies. Fourth, the system outputs the warning message to the verification result interface, prominently prompting quality control personnel to conduct key checks. The fifth step involves quality control personnel locating abnormal records based on the early warning information, verifying the data collection process or data interface transmission configuration, and implementing targeted source tracing and rectification.

[0038] For example: A dataset contains 120,000 medical records, with a preset saturation threshold of 0.95. The number of valid non-empty records in the main diagnostic coding field is 108,000, and the field saturation is... The value was below the threshold of 0.95. The system generated an early warning message, indicating that there might be batch omissions in the main diagnostic coding field or abnormal data interface transmission. After verification by quality control personnel, it was found that the data interface transmission configuration was abnormal during this period, resulting in the failure to transmit the main diagnostic coding field. After correcting the configuration, the data in this field returned to normal.

[0039] S103, based on the standard coding library, performs a two-way matching check on the name and code of diagnosis and surgery, and identifies abnormal records where the name is not included or the name and code do not match.

[0040] In one implementation, combining the standardization and quality control requirements of diagnostic and surgical terminology based on outpatient and emergency department data with national or industry coding standards, a bidirectional index relationship is introduced within the diagnostic and surgical terminology standardization verification unit. This relationship establishes a connection between diagnostic names and standard codes, and between standard codes and diagnostic names, enabling bidirectional matching and verification between diagnostic and surgical names and their codes. The standardization verification of diagnostic and surgical terminology is performed based on pre-loaded standard diagnostic code libraries and standard surgical code libraries. The standard diagnostic code library uses the National Clinical Version 2.02022 of the Disease Classification and Codes, and the standard surgical code library uses the National Clinical Version 3.02022 of the Surgical Procedure Classification Codes, both of which include nationally or industry-published standard coding tables for disease classification and codes and standard coding tables for surgical procedure classification codes.

[0041] Upon system startup, the standard diagnostic coding library and standard surgical coding library are preloaded into the standard coding mapping and constraint attribute cache in memory, constructing a bidirectional index relationship. This bidirectional index relationship consists of two parts: a forward index and a reverse index. The forward index uses the diagnostic name as the key and the standard coding as the value, while the reverse index uses the standard coding as the key and the diagnostic name as the value. Surgical operation names and surgical operation codes are similarly indexed using both forward and reverse indexes.

[0042] The bidirectional index construction method includes the following steps: First, the system reads the standard diagnostic code library file, parses each standard code record line by line, and extracts the standard code field and the diagnostic name field. Second, the system writes the diagnostic name as the key and the standard code as the value into the diagnostic name forward index, and simultaneously writes the standard code as the key and the diagnostic name as the value into the diagnostic code reverse index. Third, the system reads the standard surgical code library file, parses each standard code record line by line, and extracts the standard code field and the surgical operation name field. Fourth, the system writes the surgical operation name as the key and the standard code as the value into the surgical name forward index, and simultaneously writes the standard code as the key and the surgical operation name as the value into the surgical code reverse index. Fifth, the system verifies the integrity of the bidirectional index. When a missing standard code library file or parsing failure is detected, a prompt message is automatically displayed and the terminology standardization verification unit is disabled to avoid abnormal verification results due to incomplete resources.

[0043] For example, when the system starts, it reads the standard diagnostic code library file, which contains all records of the National Clinical Version 2.02022 of the Disease Classification and Codes. After parsing line by line, the system writes the mapping from all diagnostic names to standard codes into the forward index of diagnostic names, and the mapping from all standard codes to diagnostic names into the reverse index of diagnostic codes. For example, the standard code corresponding to the diagnostic name "acute bronchitis" is J20.9. The system stores J20.9 in the forward index with "acute bronchitis" as the key, and stores "acute bronchitis" in the reverse index with J20.9 as the key. During the verification process, when the terminology standardization verification module needs to query the standard code corresponding to a certain diagnostic name, it directly queries the forward index with that diagnostic name as the key, without reading external files.

[0044] Two-way matching verification is used to check whether the diagnosis name and diagnosis code, and the surgical procedure name and surgical procedure code in medical records conform to the standard coding library specifications. The system performs standardization verification on the names and codes of the primary diagnosis and other diagnoses, and also performs standardization verification on the names and codes of surgical procedures. The two-way matching verification method includes the following steps: First, the system reads the diagnosis name field, diagnosis code field, surgical procedure name field, and surgical procedure code field of all medical records from the dataset, obtaining the complete set of values ​​for each field at once. Second, the system processes the diagnosis name and diagnosis code of each medical record one by one, performing forward matching from name to code and reverse matching from code to name. Forward matching queries the standard code corresponding to the diagnosis name through the forward index of the diagnosis name, and reverse matching queries the standard diagnosis name corresponding to the diagnosis code through the reverse index of the diagnosis code. Third, the system judges the result of the forward matching. When the standard code found by the forward matching matches the diagnosis code filled in the medical record, the system determines that the diagnosis name and code of the record conform to the specifications. The fourth step involves the system processing the surgical procedure name and code for each medical record, performing the same forward and reverse matching as in steps two and three to determine if the surgical procedure name and code conform to the specifications. The fifth step involves the system repeating steps two through four until the standardization verification of diagnosis and surgical terminology for all medical records is completed. The bidirectional matching verification uses a batch processing method, reading all column data of a field at once and then performing a batch index query, rather than looping through each record row by row to check the name and code.

[0045] For example, a dataset contains 120,000 medical records. Record number 3000 has an acute bronchitis diagnosis as its primary diagnosis, and the reported diagnosis code is J20.9. The system uses the forward index of the diagnosis name to find the standard code for acute bronchitis, which is J20.9. This matches the reported code, so the system determines that the primary diagnosis name and code of this record conform to the standard. Record number 5000 also has acute bronchitis as its primary diagnosis, but the reported diagnosis code is J40. The system uses the forward index to find the standard code for acute bronchitis, which is J20.9. This does not match the reported code J40, so the system determines that this record has a name-code mismatch.

[0046] The system interfaces with a pre-loaded standard diagnostic and surgical coding database. This database includes nationally or industry-issued standard coding tables for disease classification and codes, and standard coding tables for surgical procedure classification codes. The system performs standardization checks on the names and codes of major diagnoses and other diagnoses, distinguishing between two types of anomalies: names not included in the standard terminology database and names in the database but with mismatched submitted codes. The verification process differentiates between two types of anomalies: the first is that the diagnosis or surgical name is not included in the standard terminology database; the second is that the name is in the database but the submitted code does not match the standard code. The method for identifying the first type of anomaly is as follows: when performing forward matching, if the diagnostic name or surgical procedure name cannot find a corresponding standard code in the forward index, it indicates that the name is not included in the standard terminology database, and the system marks this record as an anomaly of "name not included." This anomaly typically corresponds to situations where clinically commonly used names have not been standardized and mapped against the standard coding database. The second type of anomaly identification method: When the system performs forward matching, if the diagnostic name or surgical procedure name finds a corresponding standard code in the forward index, but this standard code does not match the code entered in the medical record, it indicates that the name is in the database, but the entered code does not match the standard code. The system marks this record as a code mismatch anomaly. The system stores the record row number, patient card number, field name, anomaly type, and anomaly details for both types of anomalies in an anomaly details list. The anomaly details include the entered name and code, as well as the corresponding standard code and standard name in the standard code database, facilitating quality control personnel to trace and verify each type of anomaly and implement corrective measures.

[0047] For example, a dataset contains 120,000 medical records. Record number 7000 has a primary diagnosis of "common cold" and a reported diagnosis code of J00. The system searches for "common cold" using the forward index of diagnosis names but cannot find a corresponding standard code, indicating that "common cold" is not included in the standard terminology database. The system marks this record as an anomaly, noting that the primary diagnosis is "common cold" and the reported code is J00. Record number 9000 has a primary diagnosis of type 2 diabetes and a reported diagnosis code of E11.9. Other diagnoses include hypertension, with reported codes of I10. The system searches for the standard code for type 2 diabetes using the forward index, finding E11.9, which matches the reported code; it also searches for the standard code for hypertension using I10, which matches the reported code. The system determines that the primary diagnosis and other diagnoses of this record are compliant and there are no anomalies.

[0048] Using name standardization rate, coding standardization rate, and dual standardization rate as core evaluation indicators, the system integrates the number of valid names, the number of names conforming to the standardization criteria, the number of valid codes, and the number of codes conforming to the standardization criteria for each diagnostic field. This provides data support for medical institutions to identify the standardization level of diagnostic and surgical procedure terminology. The system separately calculates the number of valid names, the number of names conforming to the standardization criteria, and the name standardization rate for each diagnostic field; the number of codes and names matching; the number of valid codes, the number of codes conforming to the standardization criteria, and the coding standardization rate; and the dual standardization rate where both name and code conform to the standardization criteria. The same indicators are calculated for the surgical procedure field.

[0049] The normalization rate calculation method includes the following steps: First, the system counts the number of valid names for each diagnostic field, i.e., the number of records in that field whose names are not empty and do not belong to the preset invalid identifier set. Second, the system counts the number of names in each diagnostic field that conform to the normalization rate, i.e., the number of records in that field whose names can be found in the forward index with the corresponding standard code. Third, the system calculates the name normalization rate for each diagnostic field using the formula: name normalization rate equals the number of names that conform to the normalization rate divided by the number of valid names. Fourth, the system counts the number of matching codes and names for each diagnostic field, i.e., the number of records in that field whose entered codes match the standard codes found in the forward index.

[0050] Step 5: The system counts the number of valid codes for each diagnostic field, i.e., the number of records in that field whose codes are not empty and do not belong to the preset invalid identifier set. Step 6: The system counts the number of codes in each diagnostic field that conform to the standard, i.e., the number of records in that field whose codes can be found in the reverse index with the corresponding standard name. Step 7: The system calculates the coding standardization rate for each diagnostic field using the formula: coding standardization rate equals the number of codes conforming to the standard divided by the number of valid codes. Step 8: The system counts the number of records where both the name and code conform to the standard, and calculates the double standardization rate for each diagnostic field using the formula: double standardization rate equals the number of records where both the name and code conform to the standard divided by the number of valid names. Step 9: The system repeats steps 1 to 8 for the surgical operation name field and the surgical operation code field, calculating the various standardization rate indicators for surgical terminology. Step 10: The system outputs the number of valid names, the number of names conforming to the standard, the name standardization rate, the number of codes and names matching, the number of valid codes, the number of codes conforming to the standard, the coding standardization rate, and the double standardization rate for each diagnostic field and surgical field to the verification results interface, providing data support for medical institutions to identify the standardization level of diagnostic and surgical operation terminology.

[0051] For example, a dataset contains 120,000 medical records. The number of valid names in the "Main Diagnosis Name" field is 118,000, of which 112,100 names conform to the naming conventions, resulting in a naming standardization rate of [percentage missing]. The number of matching codes and names for the main diagnostic fields is 108,000. The number of valid codes for the main diagnostic coding fields is 115,000, of which 109,250 codes conform to the standard, resulting in a coding standardization rate of [percentage missing]. The number of records whose names and codes both conform to the standard is 106,200, with a double standardization rate of [percentage missing]. The system outputs the above indicators to the verification results interface, indicating that the medical institution's standardization rate for the names and codes of the main diagnostic terms is 0.95, and the dual standardization rate is 0.90. The standardization of terms needs to be improved, and it is recommended that quality control personnel focus on checking abnormal records where names are not included or codes do not match.

[0052] S104 compares the values ​​of the fixed value range field with the standard value range set, identifies out-of-bounds values ​​and extreme value anomalies where all field values ​​are the same, and performs checks on the total cost being positive, the total cost being consistent with the sum of the items, the items not exceeding the total cost, and the parent-child level cost inclusion relationship, with at least one cost not being zero as the valid judgment criterion.

[0053] In one implementation, the value range compliance check is performed on collected fields with fixed standard value ranges. Fields with fixed standard value ranges are collected fields whose values ​​are limited to a preset enumeration range. The value range compliance check is used to evaluate the standardization of the values ​​entered for fields within a fixed value range. Higher standardization indicates better field entry quality, while low standardization indicates abnormal issues such as field values ​​exceeding the value range or custom invalid values, requiring targeted tracing and rectification. At system startup, a predefined set of standard value ranges is preloaded into a standard value range cache in memory. The standard value range cache uses the field's standard code as the key and the set of allowed values ​​for that field as the value. Each set of allowed values ​​is internally stored using a hash set for quickly determining whether a field's value is within the standard value range.

[0054] The value range compliance verification method includes the following steps: First, the system reads the standard field code list of all collected fields with fixed standard value ranges. Second, the system reads the column data corresponding to each fixed standard value range field one by one, obtaining the set of values ​​for that field in all medical records at once. Third, the system performs value range determination on each value in the value set. The value range determination rules include two conditions: Condition 1, the field value is not empty and does not belong to the preset invalid identifier set; Condition 2, the field value belongs to the standard value range set corresponding to that field. When a field value meets both conditions simultaneously, it is determined that the field value of that record is within the standard value range. Fourth, the system counts the number of valid records for that field, i.e., the number of records that meet Condition 1, and the number of records within the value range, i.e., the number of records that simultaneously meet Condition 1 and Condition 2. Fifth, the system calculates the standardization rate of that field according to the formula: standardization rate equals the number within the value range divided by the number of valid records. Sixth, the system repeats steps two through five until the value range compliance verification of all fixed standard value range fields is completed. Value range compliance verification uses a batch operation method, which reads all column data of a certain field at once and then performs a batch set inclusion operation, rather than checking whether the field value of each record is within the standard value range by looping through each row.

[0055] For example, a dataset contains 120,000 medical records. One of the data collection fields with a fixed standard value range is patient gender, which has two possible values: male and female. The system reads all 120,000 values ​​for the patient gender field at once and performs value range determination for each. Of these, 119,850 values ​​are either male or female, satisfying the value range determination rules; 100 values ​​are empty strings; and 50 values ​​are "unknown," belonging to the preset invalid identifier set. The system counts 119,900 valid records for this field, with 119,850 records falling within the value range, resulting in a standardization rate of [percentage missing]. .

[0056] Extreme value anomaly detection is used to automatically detect whether all field values ​​are identical. When a field has the same value across all records, it helps identify potential batch entry errors or outdated data interface default values. The extreme value anomaly detection method includes the following steps: First, the system reads the column data corresponding to each fixed standard value range field one by one, obtaining the set of values ​​for that field across all medical records at once. Second, the system performs a deduplication operation on the value set, counting the number of different values ​​for that field. Third, the system determines whether the number of different values ​​equals 1. When the number of different values ​​equals 1, it indicates that the field has the same value across all records, and the system marks the field as having an extreme value anomaly, recording the unique value content of the field. Fourth, the system stores the field name, unique value content, and anomaly type of the extreme value anomaly in an anomaly details list, prompting quality control personnel to check for batch entry errors or outdated data interface default values. Fifth, the system repeats steps one through four until extreme value anomaly detection for all fixed standard value range fields is completed.

[0057] For example, a dataset contains 120,000 medical records, with the "Department" field having a fixed standard value range. The system reads all 120,000 values ​​for the "Department" field at once, performs deduplication, and counts only 1 distinct value, meaning all records show "Internal Medicine" as the department. The system marks the "Department" field as having an extreme value anomaly, records the unique value as "Internal Medicine," and stores it in the anomaly details list. Quality control personnel, after review, find that the data interface's "Department" field was configured with the default value "Internal Medicine" during this period, failing to correctly transmit the actual department information. After correcting the configuration and re-verifying, the number of distinct values ​​for this field returned to 15, and the extreme value anomaly was eliminated.

[0058] The cost logic compliance check verifies the business logic of outpatient and emergency cost data. It evaluates the rigor of the business logic for various types of medical cost data. A higher degree of logical compliance indicates stronger consistency in cost data logic and better billing statistics quality. A low degree of compliance suggests anomalies such as incorrect cost hierarchy attribution or discrepancies between item totals and summed amounts, requiring targeted rectification. The system can execute at least one of the following verification rules, which can be enabled independently as needed: total cost positive value verification, total cost and item sum consistency verification, item sum not exceeding total cost verification, and parent-child level cost item inclusion relationship verification.

[0059] The cost logic compliance verification method includes the following steps: First, the system reads the total cost field and each cost item field from the dataset for all medical records, obtaining the complete set of values ​​for each cost field at once. Second, the system performs a positive total cost check, determining whether the total cost of each record is greater than 0. If the total cost is less than or equal to 0, the record is marked as having a non-positive total cost anomaly. Third, the system performs a consistency check between the total cost and the sum of the cost items, calculating the sum of all cost items for each record and comparing the result with the total cost of that record. If the sum of the cost items does not match the total cost, the record is marked as having a total cost inconsistency with the sum of the cost items anomaly.

[0060] The fourth step involves the system performing a check that each expense item does not exceed the total cost. This compares each expense item in each record with the total cost of that record. If any expense item exceeds the total cost, the record is marked as having an anomaly where the expense item exceeds the total cost. The fifth step involves the system performing a check on the parent-child hierarchical expense item inclusion relationship. This compares the parent expense item with the child expense item in each expense item with a parent-child hierarchical relationship. If the child expense item is greater than the parent expense item, the record is marked as having an anomaly in the parent-child hierarchical expense inclusion relationship. The sixth step involves the system repeating steps two through five until the expense logic compliance check for all treatment records is completed. The expense logic compliance check uses a batch processing method, reading all column data for each expense field at once and performing batch comparisons and batch summations, rather than iteratively checking the expense logic of each record row by row.

[0061] For example, a dataset contains 120,000 medical records. The cost field includes total cost, medication cost, examination fee, laboratory test fee, and treatment fee. The 1000th record has a total cost of 200 yuan, medication cost of 50 yuan, examination fee of 80 yuan, laboratory test fee of 30 yuan, and treatment fee of 40 yuan. The system calculates the sum of the cost items as follows: The total cost is 200 yuan, consistent with the total cost of 200 yuan; all individual cost items are less than the total cost of 200 yuan; the cost of Western medicine is the parent cost, which includes the sub-cost of oral medication of 30 yuan, which is less than the parent cost of 50 yuan. The system determines that all cost logic validation rules for this record are met. The total cost of record 2000 is 150 yuan, the cost of Western medicine is 80 yuan, the examination fee is 100 yuan, the laboratory fee is 0 yuan, and the treatment fee is 0 yuan. The system calculates the sum of the cost items as follows: The item cost 100 yuan is inconsistent with the total cost of 150 yuan. The system marks this record as an anomaly where the total cost does not match the total cost of the items. At the same time, the inspection fee of 100 yuan is less than the total cost of 150 yuan, so the anomaly of the item cost exceeding the total cost is not triggered.

[0062] For validation rules involving two expense items, the system uses at least one expense item not being zero as the criterion for valid data, ensuring the business rationality of the compliance rate statistics. Validation rules involving two expense items include consistency checks between total cost and the sum of its components, and checks on the inclusion relationship between parent and child expense items. The valid data criterion method includes the following steps: First, before executing a validation rule involving two expense items, the system first determines whether at least one of the two expense items in the record is not zero. Second, when both expense items are zero, the system determines the record as invalid data, does not include it in the compliance rate statistics for that rule, and does not mark it as an anomaly. Third, when at least one of the two expense items is not zero, the system determines the record as valid data, includes it in the compliance rate statistics for that rule, and executes the corresponding validation rule to determine compliance. Fourth, the system counts the amount of valid data for that rule, i.e., the number of records that meet the condition that at least one expense item is not zero, and the number of records that comply with the rule, i.e., the number of valid data records that satisfy the validation rule. Fifth, the system calculates the compliance rate of that rule using the formula: compliance rate equals the number of compliant rules divided by the amount of valid data.

[0063] For example, a dataset contains 120,000 medical records. During the check for consistency between total cost and the sum of expenses, the total cost of record 3000 is 0 yuan, and all expense items are also 0 yuan. The system determines that since both expense items are zero, this record is invalid and is not included in the compliance rate statistics for the total cost and expense item sum check, nor is it marked as an anomaly. Record 4000 has a total cost of 100 yuan and a total expense item sum of 120 yuan. The system determines that the total cost is not zero, so this record is valid and included in the compliance rate statistics. The system then applies the check rules, and because the sum of expense items (120 yuan) is inconsistent with the total cost (100 yuan), this record is marked as an anomaly due to the inconsistency between total cost and expense item sum. This record is counted as valid data but not as part of the compliance rule count.

[0064] The system performs compliance checks on the value range by counting the number of valid values, the number of values ​​within the value range, and the compliance rate of each field. It also performs compliance checks on the cost logic by counting the number of valid data points, the number of compliant rules, and the compliance rate of each rule. The system outputs these indicators to the verification results interface.

[0065] The statistical methods for standardization rate and compliance rate include the following steps: The first step is to summarize the number of valid values, the number of values ​​within the range, and the compliance rate of all fixed standard value range fields, and generate statistical results on value range compliance.

[0066] The second step is for the system to summarize the effective data volume, number of compliant rules, and compliance rate of all cost logic verification rules, and generate cost logic compliance statistics.

[0067] The third step involves the system outputting the statistical results of value domain compliance and cost logic compliance to the verification result interface, presenting the statistical indicators of each field and rule.

[0068] The fourth step is to store abnormal records whose values ​​are not within the standard value range, fields with extreme value anomalies, and abnormal records that do not meet the cost rules into an abnormal details list, and support hierarchical selective export of abnormal details.

[0069] For example, a dataset contains 120,000 medical records. The statistical results of value range compliance checks show that the number of valid records for the patient gender field is 119,900, and the number within the value range is 119,850, resulting in a compliance rate of 0.99958. The department field exhibits extreme value anomalies, with the only possible value being internal medicine. The statistical results of cost logic compliance checks show that the number of valid records for positive total cost checks is 120,000, with 119,500 conforming to the rules, resulting in a compliance rate of 0.99583. The number of valid records for the consistency between total cost and the sum of its components is 118,000, with 115,640 conforming to the rules, resulting in a compliance rate of 0.98. The number of valid records for the validation that each component does not exceed the total cost is 118,000, with 117,410 conforming to the rules, resulting in a compliance rate of 0.995. The number of valid records for the validation of parent-child hierarchical cost item inclusion relationships is 80,000, with 79,600 conforming to the rules, resulting in a compliance rate of 0.995. The system outputs the above statistical results to the verification results interface and stores all abnormal records in the abnormal details list, supporting selective export by verification dimension and abnormal type.

[0070] S105 performs cross-validation of multiple collected fields, including mutual exclusion verification of gender constraint of diagnosis code and patient gender, consistency verification of ID number with gender and date of birth and verification of document type, verification of the same or same blank of surgical name, code, date, and surgeon, verification of surgical name when surgical fee is greater than zero, and logical verification of the order of consultation time.

[0071] In one implementation, the diagnostic code gender constraint and patient gender mutual exclusion verification are based on the bidirectional index relationship between the diagnostic name and the standard diagnostic code. The diagnostic name is converted into the corresponding standard code, and the applicable gender constraint information associated with the standard code is called and associated with the patient gender field to identify medical business logic anomalies where the diagnosis and gender are mutually exclusive.

[0072] The method for verifying the mutual exclusion of diagnostic code gender constraints and patient gender includes the following steps: First, the system reads the diagnostic name field and patient gender field of all medical records from the dataset, obtaining all possible values ​​for each field at once. Second, the system processes the diagnostic name of each medical record one by one, utilizing the bidirectional index relationship between the diagnostic name and the standard diagnostic code, converting the diagnostic name into the corresponding standard diagnostic code through the forward index of the diagnostic name. Third, the system queries the applicable gender constraint information associated with the standard code in the standard code mapping and constraint attribute cache based on the standard diagnostic code. Fourth, the system correlates the applicable gender constraint information with the patient gender field of the record. If the applicable gender constraint of the standard code is mutually exclusive with the patient gender, the record is determined to have a medical business logic anomaly of diagnosis and gender mutual exclusion. Fifth, when the record has a medical business logic anomaly of diagnosis and gender mutual exclusion, the system stores the row number, patient card number, diagnostic name, standard diagnostic code, applicable gender constraint information, and patient gender of the abnormal record in the anomaly details list. Step 6: The system repeats steps 2 through 5 until the gender constraint of the diagnosis code and the mutual exclusion verification of the patient's gender in all medical records are completed.

[0073] For example, a dataset contains 120,000 medical records. Record 5000's primary diagnosis is benign prostatic hyperplasia (BPH), and the patient is female. The system utilizes the bidirectional index relationship between the diagnosis name and the standard diagnostic code. Through the positive index of the diagnosis name, BPH is converted to the standard diagnostic code N40. The applicable gender constraint information for N40, found in the standard code mapping and constraint attribute cache, is only applicable to males. The system correlates this applicable gender constraint information with the patient's female gender. Since the standard code is only applicable to males and the patient is female, they are mutually exclusive. The system determines that this record has a medical business logic anomaly of diagnosis and gender mutual exclusion and stores the anomaly details in the anomaly list. Record 6000's primary diagnosis is acute bronchitis, and the patient is male. The system converts acute bronchitis to the standard diagnostic code J20.9 through the positive index. The applicable gender constraint information for J20.9 is found to be applicable to both males and females. The system determines that this record does not have an anomaly of diagnosis and gender mutual exclusion.

[0074] The consistency verification of ID document information extracts gender and date of birth information from the ID document number according to the coding rules, and compares them with the gender and date of birth fields respectively. When the ID document number conforms to a specific ID document coding format, it verifies whether the document type field corresponds to that document type.

[0075] The method for verifying the consistency of ID document information includes the following steps: First, the system reads the ID document number, gender, date of birth, and document type fields from all medical records in the dataset, obtaining all possible values ​​for each field at once. Second, the system processes the ID document number for each medical record individually, determining whether the ID document number conforms to the resident ID card encoding format. The resident ID card encoding format is 18 characters: the first 6 digits are the address code, the 7th to 14th digits are the date of birth code, the 15th to 17th digits are the sequence code, and the 18th digit is the check code. Third, when the ID document number does not conform to the resident ID card encoding format, the system skips the date of birth extraction, gender extraction, and document type verification, marking the record as having an ID document number format that does not conform to the specific ID document encoding format, and excluding it from the consistency verification of ID document information.

[0076] Step 4: When the ID number conforms to the resident ID card encoding format, the system extracts the date of birth information from the 7th to the 14th digits of the ID number, parses it into a date of birth format (year, month, day), and compares the extracted date of birth with the date of birth field in the record. If they do not match, a date of birth inconsistency is identified. Step 5: The system extracts gender information from the 17th digit of the ID number. An odd 17th digit indicates male, and an even digit indicates female. The extracted gender information is compared with the gender field in the record. If they do not match, a gender inconsistency is identified. Step 6: The system verifies whether the document type field corresponds to the resident ID card type. If the document type field is not a resident ID card, a document type mismatch is identified. Step 7: When any of the following anomalies exists in the record: date of birth inconsistency, gender inconsistency, or document type mismatch, the system stores the row number, medical card number, ID number, extracted date of birth, recorded date of birth, extracted gender, recorded gender, and document type in the anomaly details list. Step 8: The system repeats steps 2 through 7 until the consistency verification of ID information for all medical records is completed.

[0077] For example, a dataset contains 120,000 medical records. The 8,000th record has an ID number of 110101199003071234, a gender field indicating male, a date of birth field indicating March 7, 1990, and an ID type field indicating resident ID card. The system determines that the ID number conforms to the 18-digit resident ID card encoding format. The date of birth information is extracted from the 7th to 14th digits, resulting in 19900307, ​​which parses to March 7, 1990, consistent with the date of birth field. The gender information is extracted from the 17th digit, which is 3, an odd number, indicating male, consistent with the gender field. The ID type field also indicates resident ID card, corresponding to the ID number type. The system determines that the ID information consistency check for this record is entirely successful. Record number 9000 has an ID number of 110101198505124321, a gender field of male, a date of birth of May 12, 1985, and an ID type field of passport. The system determines that the ID number conforms to the resident ID card encoding format, extracts the gender information from the 17th digit, which is 2, an even number indicating female, inconsistent with the male gender field, thus the system determines there is a gender inconsistency anomaly; the ID type field is passport, which does not correspond to the resident ID card type, the system determines there is an ID type mismatch anomaly, and the anomaly details are stored in the anomaly details list.

[0078] The system performs a linked verification of four surgical information items: surgical name, surgical code, surgical date, and surgeon information. All four items must be filled in simultaneously or simultaneously empty to avoid incomplete records with only partial information. The linked verification method includes the following steps: First, the system reads the surgical name, surgical code, surgical date, and surgeon fields from all treatment records in the dataset, obtaining the complete set of values ​​for each field at once. Second, the system processes each treatment record individually, determining the filling status of the four surgical information items. The filling status includes two possibilities: filled and empty. "Filled" indicates that the field value is not empty and does not belong to the preset invalid identifier set; "empty" indicates that the field value is empty or belongs to the preset invalid identifier set. Third, the system counts the number of filled surgical information items in the record. When the number of filled items is 0, it means that all four surgical information items are simultaneously empty, and the linked verification of the surgical information for this record is deemed successful. When the number of filled items is 4, it means that all four surgical information items are filled in simultaneously, and the linked verification of the surgical information for this record is deemed successful.

[0079] Fourth, when the number of filled items is greater than 0 and less than 4, it indicates that only part of the surgical information has been filled in. The system determines that this record has an incomplete surgical information anomaly, recording which surgical information has been filled in and which surgical information is empty. Fifth, when this record has an incomplete surgical information anomaly, the system stores the abnormal record's line number, patient card number, surgical name filling status, surgical code filling status, surgical date filling status, and surgeon filling status in the abnormal details list. Sixth, the system repeats steps two through five until the surgical information linkage verification of all medical records is completed.

[0080] For example: A dataset contains 120,000 medical records. Record 11,000 describes an appendectomy (surgery name), with surgery code 47.09, surgery date March 15, 2026, and surgeon Dr. Zhang. The system determines that all four surgical details are complete, with 4 items completed, thus the record's surgical information verification is successful. Record 12,000 describes a cholecystectomy (surgery name), with surgery code 51.23, but the surgery date and surgeon are empty. The system determines that the number of completed items is 2, greater than 0 and less than 4, indicating an incomplete surgical information anomaly. The record shows the surgery name and code are complete, but the surgery date and surgeon are empty, and is added to the anomaly details list. Record 13,000 shows all four surgical details are empty. The system determines that the number of completed items is 0, thus the surgical information verification for this record is successful.

[0081] The system implements a linkage validation mechanism between surgical fees and surgical names. When the surgical-related fees are greater than zero, the system checks whether the surgical name should be entered accordingly, establishing a linkage constraint between fee information and treatment information. The method includes the following steps: First, the system reads the surgical-related fee and surgical name fields from all treatment records in the dataset, obtaining all possible values ​​for each field at once. Second, the system processes each treatment record individually, determining whether the surgical-related fees are greater than zero. Third, when the surgical-related fees are less than or equal to zero, the system skips the surgical name entry status check and determines that the surgical fee and surgical name linkage validation for that record is successful.

[0082] Fourth, when the surgery-related costs are greater than zero, the system further checks whether the surgery name field is filled in. If filled in, it means the field value is not empty and does not belong to the preset invalid identifier set. When the surgery name field is not filled in, the system determines that the record has an anomaly in the linkage between surgery costs and surgery name, indicating that there are surgery costs but the corresponding surgery name is not filled in. Fifth, when the record has an anomaly in the linkage between surgery costs and surgery name, the system stores the row number, medical card number, amount of surgery-related costs, and surgery name filling status of the anomaly record in the anomaly details list. Sixth, the system repeats steps two through five until the linkage verification of surgery costs and surgery names for all medical records is completed.

[0083] For example, a dataset contains 120,000 medical records. Record 15,000 has a surgery-related cost of 5,000 yuan, and the surgery name is coronary artery bypass grafting. The system determines that the surgery-related cost is greater than zero, further checks that the surgery name is filled in, and determines that the linkage between the surgery cost and surgery name in this record is correct. Record 16,000 has a surgery-related cost of 3,000 yuan, and the surgery name is empty. The system determines that the surgery-related cost is greater than zero, further checks that the surgery name is not filled in, and determines that this record has an anomaly in the linkage between the surgery cost and surgery name, indicating that there is a surgery cost of 3,000 yuan but the corresponding surgery name is not filled in, and stores the anomaly details in the anomaly list. Record 17,000 has a surgery-related cost of 0 yuan, and the surgery name is empty. The system determines that the surgery-related cost is less than or equal to zero, skips the surgery name filling status check, and determines that the linkage between the surgery cost and surgery name in this record is correct.

[0084] The system performs a logical check on the order of multiple time fields during the medical visit process to identify abnormal records with reversed time sequences. The method includes the following steps: First, the system reads all medical records from the dataset, obtaining all possible values ​​for each time field at once. Second, the system processes each medical record individually, arranging the values ​​of each time field according to a preset chronological order. Third, the system compares the chronological relationships of adjacent time fields. If any two time fields that should have a chronological relationship are reversed, the system determines that the record has a logical anomaly in its medical visit time sequence and records the specific two time fields that are reversed. Fourth, when a record has a logical anomaly in its medical visit time sequence, the system stores the row number, medical card number, specific values ​​of each time field, and the reversed time field pairs in an anomaly details list. Fifth, the system repeats steps two through four until the logical check of the medical visit time sequence for all medical records is completed.

[0085] For example, a dataset contains 120,000 medical records. The "visit time" field includes registration time, consultation time, payment time, and medication pickup time. The preset time order is: registration time earlier than or equal to consultation time, consultation time earlier than or equal to payment time, and payment time earlier than or equal to medication pickup time. The 20,000th record has a registration time of 8:30 AM on March 15, 2026, a consultation time of 9:00 AM on March 15, 2026, a payment time of 9:30 AM on March 15, 2026, and a medication pickup time of 10:00 AM on March 15, 2026. The system compares the data sequentially according to a preset time order. The registration time of 8:30 AM is earlier than the consultation time of 9:00 AM; the consultation time of 9:00 AM is earlier than the payment time of 9:30 AM; and the payment time of 9:30 AM is earlier than the medication pickup time of 10:00 AM. All adjacent time fields match the expected order, so the system determines that the logical check of the consultation time for this record is successful. Record number 21000 has a registration time of 10:00 AM on March 15, 2026, a consultation time of 9:30 AM on March 15, 2026, a payment time of 10:30 AM on March 15, 2026, and a medication pickup time of 11:00 AM on March 15, 2026. The system compares the registration time and consultation time; the registration time of 10:00 AM is later than the consultation time of 9:30 AM. Therefore, the system determines that this record has a logical anomaly in the consultation time order, reverses the order of the registration and consultation times, and stores it in the anomaly details list. Each verification will mark records that do not meet the rules as medical business logic anomalies. The system will store all medical business logic anomaly records in the anomaly details list to complete the cross-verification of multiple data collection fields.

[0086] like Figure 2 As shown, Figure 2 This is a selective export interface for an anomaly classification of a data quality verification tool for outpatient and emergency department treatment information pages. The top of the main window is a file selection area displaying the storage path of the CSV file to be verified, with a browse button on the right for selecting the data file. Below the file selection area is the verification options area, listing optional verification items in checkbox format, including field saturation verification, cost logic verification, and data quality logic correctness verification. Users can select and enable the corresponding verification dimensions as needed. Below the verification options area is the verification results display area, presenting the statistical results of each verification dimension in tab format. The bottom of the interface is the execution log area, recording the execution process of the verification tasks in chronological order, including log entries such as "Field value range verification executed," "Field value range verification completed," "Data quality logic correctness verification executed," "Data quality logic correctness verification completed," and "All verification tasks completed."

[0087] A pop-up window in the center of the interface displays the exception details to be exported. The left side of the window shows the selectable validation items, the top shows a drop-down list of validation categories, the currently selected field shows saturation validation, and the list below displays the exportable exceptions under that validation category, including fields such as outpatient / emergency department primary diagnosis name, outpatient / emergency department primary diagnosis code, patient's chief complaint, other allergies, attending physician's title, and whether a follow-up visit was required. Four operation buttons are located in the middle of the window: move the selected exception to the export list, move all exceptions to the export list, move the selected exception back from the export list, and move all exceptions back from the export list. The right side of the window displays the export details list, showing the selected exceptions. A close button is located on the left bottom of the window, and a confirm export button is located on the right. Clicking this button after selection will export the selected exception details data.

[0088] This interface corresponds to the result output stage after data quality verification is completed. It supports exporting anomaly details by verification category and specific field level, meeting the needs of medical institutions for targeted tracing and rectification for different verification dimensions and fields.

[0089] like Figure 3 As shown, Figure 3 This is a selective export interface for an anomaly classification of a data quality verification tool for outpatient and emergency department medical information pages. It presents a multi-dimensional anomaly selection scenario with a dropdown menu for verification categories. The top of the main window is a file selection area, displaying the storage path of the CSV file to be verified. A browse button on the right allows users to select the data file. Below the file selection area is the verification options area, listing optional verification items in checkbox format, including field saturation verification, cost logic verification, and data quality logic correctness verification. Users can select and enable the corresponding verification dimensions as needed. Below the verification options area is the verification results display area, presenting the statistical results of each verification dimension in tabs. The bottom of the interface is the execution log area, recording the execution process of the verification tasks in chronological order, including log entries such as "Field value range verification executed," "Field value range verification completed," "Data quality logic correctness verification executed," "Data quality logic correctness verification completed," and "All verification tasks completed."

[0090] A pop-up window in the center of the interface displays the exception details to be exported. The left side of the window shows the selectable validation items, and the top features a dropdown menu for validation categories. This dropdown is currently expanded, listing all selectable validation categories, including field saturation validation, diagnostic terminology standardization validation, surgical procedure terminology standardization validation, cost logic compliance validation, field value range compliance validation, and data quality logic correctness validation. The currently selected item is diagnostic terminology standardization validation. Below the dropdown is a list of exportable exceptions, displaying the specific field exceptions that can be exported under the current validation category. Four operation buttons are located in the middle of the window: move the selected exception to the export list, move all exceptions to the export list, move the selected exception back from the export list, and move all exceptions back from the export list. The right side of the window shows the export details list area, which currently contains one exportable exception: the main outpatient / emergency diagnosis name under the field saturation validation category. The list items are presented in the format of validation category name plus field name, making it easy for users to distinguish exception data from different validation dimensions. A close window button is located at the bottom left of the window, and a confirm export of selected details button is located on the right. After the user has made their selections, clicking this button will export all selected abnormal detail data.

[0091] This interface corresponds to the result output stage after data quality verification is completed. It supports multiple selection of abnormal fields across verification categories. Users can simultaneously select the abnormal items to be exported from different verification dimensions such as field saturation, standardization of diagnostic terminology, and standardization of surgical operation terminology, and export them as a single detailed data set to meet the needs of medical institutions for centralized tracing and rectification of multi-dimensional quality issues.

[0092] In one implementation, such as Figure 4 As shown, this application also provides an outpatient and emergency medical data quality verification system, including: The data loading and preprocessing module 401 is used to obtain the dataset of outpatient and emergency treatment information pages. This dataset contains multiple treatment records. Each record contains fields for collecting patient basic information, treatment process information, treatment information, and cost information. During loading, the field names are standardized and mapped, and the field names in the data file are mapped one by one with the preset standard field codes. The standard diagnosis, surgical code library, standard value range set, and field index information are preloaded into memory, and the multiple records are batched and verified in parallel accordingly. The field saturation verification module 402 is used to perform non-empty verification on preset core collection fields in batch parallel verification. The core collection fields are fields that have a key impact on the integrity of diagnosis and treatment information. It counts the number of valid records and field saturation of each field. Field saturation is the ratio of the number of valid non-empty records to the total number of cases. It locates abnormal records with empty field values ​​or preset invalid identifiers. When the saturation of a field is lower than a preset threshold, it prompts that there may be batch omissions or abnormal data interface transmission in that field. The diagnostic and surgical terminology standardization verification module 403 is used to construct a bidirectional index relationship between diagnostic names and standard codes, and between standard codes and diagnostic names, based on a pre-loaded standard diagnostic and surgical code library. It performs bidirectional matching verification between diagnostic names and diagnostic codes, and between surgical operation names and surgical operation codes. It identifies abnormal records where the name is not included in the standard terminology library and where the name and code do not match, and calculates the name standardization rate, code standardization rate, and double standardization rate where both the name and code conform to the standard for each diagnostic field. The value range compliance and cost logic verification module 404 is used to compare the values ​​of collected fields with fixed standard value ranges with a predefined set of standard value ranges, identify abnormal records whose values ​​are not within the standard value ranges, and detect extreme value anomalies where all field values ​​are the same to help discover batch filling errors or data interface default value not being updated; it performs verifications for positive total cost, total cost being consistent with the sum of multiple cost items, each cost item not exceeding the total cost, and cost items with parent-child hierarchical relationships where the cost of a sub-item does not exceed the cost of the parent item. For verification rules involving two cost items, at least one cost not being zero is used as the basis for determining valid data. The data quality logical correctness verification module 405 is used for cross-validation of multiple collected fields, including cross-comparing the gender constraint attribute corresponding to the standard code based on the diagnostic name matching with the patient's gender field to identify abnormalities of mutual exclusion between diagnosis and gender; extracting gender information and date of birth information from the ID card number and comparing them with the gender field and date of birth field respectively; verifying whether the document type field corresponds to the document type when the document number conforms to a specific ID card code format; performing linked verification on the surgical name, surgical code, surgical date, and surgeon information, requiring all four surgical information items to be filled in simultaneously or simultaneously empty; verifying whether the surgical name should be filled in accordingly when the surgical-related cost is greater than zero to establish a linkage constraint between cost information and treatment information; and performing sequential logical verification on multiple time fields in the consultation process to identify abnormal records with reversed time order. The verification result summary and output module 406 is used to summarize five types of verification results: field saturation, diagnosis, standardization of surgical terminology, compliance of value range, compliance of cost logic, and correctness of data quality logic. It outputs data quality statistics and automatically generates structured data quality reports. The report content includes data source information, an overview of abnormal data statistics, detailed statistics of each verification dimension, and compliance rate statistics charts. It supports hierarchical selective export of abnormal details. In response to the user's selection of verification dimensions and abnormal types, it exports the corresponding abnormal record details to a multi-worksheet data file. When the number of abnormal records exceeds a preset threshold, it automatically splits the data into multiple worksheets according to the preset number of rows.

[0093] The computer-readable storage medium provided in the above embodiments of this application and the outpatient and emergency medical data quality verification method provided in the embodiments of this application are based on the same inventive concept and have the same beneficial effects as the methods adopted, run or implemented by the applications stored therein.

[0094] The various embodiments in this application are described in a related manner. Similar or identical parts between embodiments can be referred to mutually. Each embodiment focuses on describing the differences from other embodiments. In particular, the embodiments of the outpatient and emergency medical data quality verification system and method, electronic device, and readable storage medium are basically similar to the embodiments of the outpatient and emergency medical data quality verification method described above, so the description is relatively simple. Relevant parts can be referred to in the description of the embodiments of the outpatient and emergency medical data quality verification method described above.

Claims

1. A method for verifying the quality of outpatient and emergency medical data, characterized in that, include: Obtain the dataset of outpatient and emergency department treatment information pages. The dataset contains multiple treatment records. Each record contains fields for collecting patient basic information, treatment process information, treatment information, and cost information. During loading, the field names are standardized and mapped, and standard diagnosis, surgical code library, standard value range set, and field index information are preloaded into memory. Based on this, multiple records are batch-verified in parallel. In batch parallel verification, non-empty verification is performed on the preset core collection fields, the number of valid records and field saturation of each field are counted, and abnormal records with empty field values ​​or preset invalid flags are located. Based on the standard coding library, a two-way matching check is performed on the names and codes of diagnoses and surgeries to identify abnormal records where the names are not included or the names and codes do not match. The fixed value range field values ​​are compared with the standard value range set to identify out-of-bounds values ​​and extreme value anomalies where all field values ​​are the same. The total cost is positive, the total cost is consistent with the sum of the items, the items do not exceed the total cost, and the parent-child level cost inclusion relationship is checked. At least one cost not being zero is used as the valid judgment criterion. Cross-validation of multiple data collection fields includes mutual exclusion verification of gender constraint of diagnosis code and patient gender, consistency verification of ID number with gender and date of birth and verification of document type, verification of the same or same blank of surgical name, code, date, and surgeon, verification of surgical name when surgical fee is greater than zero, and logical verification of the order of consultation time. It summarizes the results of field saturation, diagnostic surgical terminology standardization, value range compliance, cost logic compliance, and data quality logic correctness verification, outputs data quality statistics, generates structured quality reports, and supports selective export of anomaly details by level.

2. The method as described in claim 1, characterized in that, In batch parallel verification, non-empty checks are performed on preset core data collection fields. The number of valid records and field saturation for each field are counted, and abnormal records with empty field values ​​or preset invalid flags are located, including: Combining the data integrity quality control requirements of the outpatient and emergency treatment information page with the batch parallel verification rules, non-empty verification is performed on the preset core collection fields within the field saturation verification unit. The core collection fields are those that have a critical impact on the integrity of the treatment information. Connect the data structure of medical records with the list of core collection fields, count the total number of cases and the number of valid non-empty fields for each field, calculate the saturation of each field based on the ratio of the number of valid non-empty fields to the total number of cases, and establish a quantitative evaluation mechanism for field integrity. Using field saturation as the core evaluation dimension, and integrating the total number of cases, the number of valid non-empty records, and saturation indicators for each field, it automatically locates abnormal records with empty field values ​​or preset invalid labels. The system uses a saturation threshold warning mechanism to identify batch omissions in fields and abnormal data interface transmission. When the saturation of a field is lower than a preset threshold, it indicates that the field may have batch omissions or abnormal data interface transmission, thus forming the basic process for field saturation verification and abnormal source tracing and rectification.

3. The method as described in claim 1, characterized in that, Based on the standard coding library, a two-way matching check is performed on the names and codes of diagnoses and surgeries to identify abnormal records where the name is not included or the name and code do not match, including: By combining the standardization and quality control requirements of diagnostic and surgical terminology based on outpatient and emergency treatment data with national or industry coding standards, a two-way index relationship between diagnostic names and standard codes and diagnostic names is introduced within the standardization verification unit of diagnostic and surgical terminology, so as to realize the two-way matching and verification of diagnostic and surgical names and codes. Connect to the pre-loaded standard diagnostic and surgical coding library, which includes the national or industry-issued standard coding table for disease classification and codes and the standard coding table for surgical operation classification codes. Perform standard verification on the names and codes of major diagnoses and other diagnoses respectively, and distinguish between two types of anomalies: names not included in the standard terminology library and names in the library but the entered codes do not match the standard codes. Using name standardization rate, coding standardization rate and dual standardization rate as the core evaluation indicators, and integrating the number of valid names, the number of names conforming to the standard, the number of valid codes, and the number of codes conforming to the standard for each diagnostic field, we provide data support for medical institutions to identify the standardization of diagnostic and surgical terminology.

4. The method as described in claim 1, characterized in that, The fixed-range field values ​​are compared with the standard range set to identify out-of-bounds values ​​and extreme value anomalies where all field values ​​are identical. Verifications are then performed to check for positive total cost, consistency between total cost and the sum of individual items, individual item costs not exceeding the total cost, and parent-child cost inclusion relationships. A valid criterion is that at least one cost is not zero, including: Combining the data collection standardization requirements for outpatient and emergency treatment with the business logic verification rules for fees, the data collection fields with fixed standard value ranges are compared within the value range compliance verification unit, and the business logic verification of outpatient and emergency treatment fee data is performed within the fee logic compliance verification unit. The fixed standard value range fields are the data collection fields whose values ​​are limited to a preset enumeration range. The system connects to the predefined standard value range set and the outpatient and emergency cost data structure, compares the valid values ​​of each field with the standard value range set one by one, and counts the number of valid values, the number within the value range, and the standardization rate of each field. At the same time, it counts the number of valid data, the number of rules that meet the rules, and the compliance rate for each cost rule. The standardization rate is the ratio of the number within the value range to the number of valid values. With standardization rate and compliance rate as the core evaluation indicators, combined with the comparison results of values ​​of each field, abnormal records with values ​​not within the standard value range are identified. Extreme value anomalies with all fields having the same value are automatically detected to help discover batch filling errors or data interface default values ​​not being updated, and to locate abnormal records that do not meet the fee rules. By using valid data where at least one expense is not zero to determine the benchmark, the statistical caliber of the verification rules involving two expense items is processed to ensure the business rationality of the compliance rate statistics. The verification process includes checking for positive total expenses, consistency between total expenses and the sum of sub-items, sub-items not exceeding total expenses, and sub-items not exceeding parent items in parent-child hierarchical expense projects. This forms the basic process for verifying value range compliance and expense logic compliance.

5. The method as described in claim 1, characterized in that, Cross-validation of multiple data collection fields includes mutual exclusion checks between diagnostic code gender constraints and patient gender, consistency checks between ID number, gender, and date of birth, verification of document type, checks for identical or blank entries of surgery name, code, date, and surgeon, checks for surgery name when surgery cost is greater than zero, and logical checks for the order of visits. Combining the cross-field semantic logic quality control requirements of outpatient and emergency medical data with medical business rules, the multi-collected fields are subjected to linkage cross-validation within the data quality logic correctness verification unit to detect deep logical anomalies that cannot be found by single-field format verification. Based on the bidirectional index relationship between the diagnosis name and the standard diagnosis code, the diagnosis name is converted into the corresponding standard code and the applicable gender constraint information associated with the standard code is called. The association judgment is performed with the patient's gender field to identify medical business logic anomalies where the diagnosis and gender are mutually exclusive. Gender information and date of birth information are extracted from the ID card number according to the coding rules and are compared with the gender field and date of birth field respectively. When the ID card number conforms to a specific ID card coding format, the document type field is checked to see if it corresponds to the document type. The procedure name, procedure code, procedure date and surgeon information are linked and verified. All four pieces of surgical information must be filled in or left blank at the same time to avoid incomplete records with only partial surgical information. When the surgical-related costs are greater than zero, the procedure name is verified to be filled in accordingly. Linkage constraints are established between cost information and diagnosis and treatment information. The system performs sequential logical validation on multiple time fields during the medical visit process, identifies abnormal records with reversed time order, and marks records that do not meet the rules as medical business logic anomalies, thus completing the linkage and cross-validation of multiple data collection fields.

6. A system for verifying the quality of outpatient and emergency medical data, characterized in that, The system is used to execute executable instructions to perform the outpatient and emergency medical data quality verification method according to any one of claims 1 to 5.

7. An electronic device, characterized in that, include: First processor; And a memory for storing executable instructions of the first processor; wherein the first processor is configured to execute the outpatient and emergency medical data quality verification method according to any one of claims 1 to 5 by executing the executable instructions.

8. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the second processor, it implements the outpatient and emergency medical data quality verification method according to any one of claims 1 to 5.