A multi-agency data reporting adaptive verification and agency-level fusing method and system
By employing an adaptive verification and institution-level circuit breaker method for multi-institutional data reporting, and utilizing deterministic hash coding and inverted bitmap indexing, the problem of institution-level fault isolation and anomaly tracing in regional medical informatization is solved, achieving efficient data verification and anomaly isolation.
Patent Information
- Application Number
- CN202611051008.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-07-15
- Publication Date
- 2026-11-24
AI Technical Summary
In the construction of regional medical informatization, the existing ETL data verification technology has problems such as lack of institutional-level fault isolation, high cost of anomaly tracing, and single verification dimension, which leads to the preemption of computing resources, excessive database load, and data governance bottlenecks.
We adopt an adaptive verification and institution-level circuit breaker method for multi-institution data reporting. We generate composite hash tuples through deterministic hash encoding and construct an inverted bitmap index to achieve fast circuit breaker isolation at the institution level and dictionary category level, reducing the complexity of duplicate verification and anomaly location.
It improves data verification efficiency, reduces redundant verification overhead, supports fast circuit breaking and isolation at the institution and dictionary category levels, reduces the complexity of isolating and tracing abnormal data, and is suitable for medical data governance scenarios with concurrent reporting from multiple institutions.
Smart Images

Figure CN123157696A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of medical big data processing and regional medical information technology, and in particular to a method and system for adaptive verification and institution-level circuit breaking of multi-institution data reporting. Background Technology
[0002] With the deepening implementation of county-level medical and health community (hereinafter referred to as "medical community") construction, the focus of regional medical informatization construction has shifted from the informatization upgrade of individual hospitals to the interconnection and centralized management of data across multiple institutions and levels. In a typical medical community data center architecture, the central integration platform needs to receive incremental business data (such as outpatient and emergency visits, prescription details, electronic medical records, etc.) from the leading county-level hospital, multiple township health centers, and village clinics (i.e., multiple institutions) on a regular daily basis. After entering the front-end buffer table of the central platform, this data must undergo unified ETL (extract, transform, load) cleaning and data dictionary verification (such as national standard ICD-10 coding, standardized department codes, etc.) before entering the regional clinical or operational data center.
[0003] However, when faced with concurrent reporting scenarios from primary healthcare institutions within a region that include numerous heterogeneous HIS (Hospital Information System) systems, existing ETL data verification technologies reveal the following three major problems: Lack of institutional-level fault isolation: A single grassroots institution's HIS failure or unauthorized update can generate a large amount of dirty data. The existing rule engine uses streaming verification, which processes this invalid data one by one, causing computing resources to be preempted, leading to network and processor congestion, and ultimately hindering the data synchronization task of the entire platform.
[0004] Anomaly tracing is costly: Traditional systems rely on incremental time intervals to locate errors, requiring combined queries using both organization identifiers and time intervals. With tens of millions of daily data entries, such full table scans or joins based on time ranges can cause a surge in database data inflows and outflows, becoming a major bottleneck in data governance.
[0005] The current validation methods are limited in scope: they only focus on the compliance of field values, lacking consideration for the organizational context. This makes it difficult to build a comprehensive assessment view of the organization, dictionary, and errors at the underlying level, hindering the implementation of targeted data quality assessments and interventions for specific organizations. Summary of the Invention
[0006] To address the aforementioned deficiencies in existing technologies, this invention provides a method and system for adaptive verification and institution-level circuit breaking of multi-institution data reporting. This system can construct a lightweight index at the underlying level that includes institution attributes and strictly maps the order of incremental business data for multi-institution reporting scenarios. Based on this, intelligent circuit breaking isolation for single institutions and single dictionary categories is implemented, thereby enabling rapid location of abnormal data without affecting overall business operations.
[0007] In order to achieve the objectives of this invention, the following technologies are proposed: A method for adaptive verification and institution-level circuit breaking of multi-institution data reporting includes the following steps: S100: Receives incremental business data reported by various medical institutions and writes the incremental business data into a front buffer table. When writing, a unique batch serial number is assigned to each incremental business data. S200: Extract the organization identifier, dictionary category identifier, and dictionary value from each incremental business data, perform deterministic hash encoding on each, generate a fixed-length composite hash tuple, and concatenate them in a preset high-low order; S300: Perform unique value projection on all composite hash tuples in the current batch to generate a set of unique values to be verified. Then, construct an inverted bitmap index corresponding to the batch serial number for each unique value H to be verified in the set. These inverted bitmap indexes are used to record the row position of the incremental business data corresponding to H in the front buffer table. S400: Perform dictionary validity checks on the set of unique values to be verified, and statistically analyze anomaly indicators according to the organization identifier and dictionary category identifier. The anomaly indicators include at least one of the following: the proportion of anomaly unique values, the number of rows covered by anomalies, the anomaly coverage rate, and the number of consecutive anomalies. S500: When any medical institution's abnormal index under any dictionary category exceeds the preset fault tolerance threshold, generate a prefix matching rule corresponding to the medical institution and the dictionary category, and then filter the remaining H according to the rule, and block all subsequent verification requests of the institution identifier and dictionary category corresponding to H that hit the prefix matching rule. S600: For all unique values H to be verified that fail verification or are blocked by circuit breakers, extract their corresponding inverted bitmap indexes and decode them to obtain the corresponding batch serial number set. In the front buffer table, perform anomaly isolation marking on all incremental business data corresponding to the batch serial number set.
[0008] Furthermore, in S200, the high and low order from high to low is the organization identifier hash segment, the dictionary category identifier hash segment, and the dictionary value hash segment. In S500, a prefix matching rule is generated based on the organization identifier hash segment and the dictionary category identifier hash segment corresponding to the medical institution whose abnormal index exceeds the fault tolerance threshold.
[0009] Furthermore, in S300, the construction process of a single inverted bitmap index includes: Initialize the inverted bitmap index corresponding to the number of incremental business data rows in the current batch; Iterate through each incremental business data entry in the front buffer table sequentially; When traversing each incremental business data, determine the composite hash tuple corresponding to that incremental business data; In the current inverted bitmap index, for all incremental business data whose composite hash tuples are the same as the current unique value H to be verified, the bit corresponding to the batch serial number is set to 1, and the remaining bits are kept to 0.
[0010] Furthermore, in S400, anomaly coverage is used to statistically analyze anomalies. The anomaly coverage is calculated as the ratio between the number of bits set to 1 in the inverted bitmap index corresponding to the H that failed the verification and the total number of rows in the front buffer table corresponding to the current organization under the current dictionary category.
[0011] Furthermore, in S500, the steps for filtering the remaining H include: Let the total length of the composite hash tuple be L bits. The organization identifier hash segment and the dictionary category identifier hash segment together occupy the first P bits. When the fault tolerance threshold is triggered, a prefix mask is constructed, with the first P bits set to 1 and the last LP bits set to 0. Simultaneously construct the target prefix value FusePattern, whose first P bits are the concatenation value of the institution identifier hash segment of the medical institution that triggers the fault tolerance threshold and the dictionary category identifier hash segment of the dictionary category, and the last LP bits are 0; For any H, if (H AND PrefixMask) = FusePattern, then the H is determined to have matched the prefix rule and is subject to circuit breaking.
[0012] Furthermore, in S600, when executing the abnormal isolation marking, the batch status update is performed on the front buffer table based on the batch serial number set, the corresponding incremental business data is marked as abnormal isolation status, and the corresponding institutional-level circuit breaker reason or dictionary verification failure reason is recorded.
[0013] Furthermore, the composite hash tuples are encoded using a fixed length of 64 bits or 128 bits.
[0014] A multi-agency data reporting adaptive verification and agency-level circuit breaker system includes: The composite hash tuple generation module is used to receive incremental business data reported by various medical institutions, write it into the pre-buffer table, assign batch serial numbers, and perform deterministic hash encoding and concatenation on the institution identifier, dictionary category identifier, and dictionary value to generate composite hash tuples. The unique value projection and inverted bitmap construction module is used to receive composite hash tuples from the composite hash tuple generation module, project unique values onto them, generate a set of unique values to be verified, and construct an inverted bitmap index. The rule validation and anomaly indicator statistics module is used to receive the set of unique values to be validated from the unique value projection and inverted plot construction module, perform dictionary validity validation on them, and count anomaly indicators. The institutional-level prefix circuit breaker module is used to receive verification and statistical results from the rule verification and anomaly indicator statistics module, and when the anomaly indicator exceeds the fault tolerance threshold, generate a prefix matching rule and block subsequent verification requests according to the prefix matching rule. The bitmap decoding and anomaly marking module is used to extract the inverted bitmap index and decode all H that failed the verification in the rule verification and anomaly indicator statistics module or were blocked by the circuit breaker in the organization-level prefix circuit breaker module. After obtaining the corresponding batch serial number set, the corresponding incremental business data is marked as abnormal.
[0015] Furthermore, the rule validation and anomaly statistics module calls a rule validation engine during operation to perform dictionary validity checks.
[0016] The beneficial effects of this technical solution are as follows: 1. Reduce duplicate verification overhead and improve rule verification efficiency: This invention first projects unique values onto composite hash tuples, and then performs rule verification on the unique values to be verified. This can merge a large amount of incremental business data with duplicate content into a limited number of unique values to be verified, thereby avoiding duplicate dictionary verification of the same error values and reducing the system's computational load.
[0017] 2. Preserving the original row-level mapping relationship while performing deduplication verification: In existing technologies, deduplication operations often break the mapping relationship between the verification object and the original record, and subsequent anomaly location still requires complex queries based on conditions such as organization identifier and time interval. This invention constructs an inverted bitmap index corresponding to the batch serial number for each unique value to be verified, so that the unique value and the original data row maintain a reversible mapping relationship. This allows for direct decoding to obtain the corresponding original record position after verification failure, thereby reducing the complexity of anomaly location.
[0018] 3. Supports fast circuit breaking and isolation at the organization and dictionary category levels: This invention places the organization identifier hash segment and the dictionary category identifier hash segment in the high-order bits of the composite hash tuple, and constructs a prefix mask (PrefixMask) and a target prefix value (FusePattern) based on the high-order prefix, enabling fast prefix matching for abnormal organizations and abnormal dictionary categories. This allows for direct interception of the corresponding subsequent unique values to be verified when concentrated anomalies occur in a single organization or a single dictionary category, preventing them from continuously consuming rule engine resources and slowing down the normal data processing of other organizations.
[0019] 4. Improve the efficiency of isolation and traceability of abnormal data: For unique values to be verified that fail verification or are blocked by circuit breakers, this invention can directly obtain the corresponding batch serial number set through inverted bitmap index decoding, and perform batch anomaly tagging on the front buffer table. There is no need to rely on the organization identifier and time interval for full table scan or complex association query, thereby significantly improving the efficiency of abnormal data isolation and rectification closed loop.
[0020] 5. Applicable to medical data governance scenarios with concurrent reporting by institutions: This invention incorporates institution identifiers, dictionary category identifiers, and dictionary values into a unified composite coding structure, enabling the underlying index to naturally possess the ability to classify and verify institution affiliation. It is particularly suitable for dictionary quality control, anomaly isolation, and data governance tasks in scenarios with concurrent reporting by multiple institutions, such as regional medical integration platforms and medical consortium data centers.
[0021] 6. Forming a collaborative closed loop of unique value projection, prefix circuit breaking, and inverted bitmap index tracing: First, unique value projection reduces the number of rule checks; then, prefix circuit breaking controls abnormal institutions from continuing to consume check resources; finally, the inverted bitmap index recovers the set of incremental business data and completes rapid tagging. These steps work together to ensure the system maintains stable processing capabilities for other institutions' data even when faced with a large number of duplicate error reports. Attached Figure Description
[0022] Figure 1 The flowchart illustrates the main steps of the adaptive verification and mechanism-level circuit breaker method for multi-mechanism data reporting in an embodiment of this application.
[0023] Figure 2 This illustration shows a deterministic hash encoding diagram of the adaptive verification and institution-level circuit breaker method for multi-institution data reporting in an embodiment of this application.
[0024] Figure 3 This illustration shows the correspondence between batch serial number, incremental business data, and inverted bitmap index in the adaptive verification and institution-level circuit breaker method for multi-institution data reporting according to an embodiment of this application.
[0025] Figure 4 The main structural diagram of the multi-mechanism data reporting adaptive verification and mechanism-level circuit breaker system according to an embodiment of this application is shown. Detailed Implementation
[0026] The present application will be further described below with reference to the accompanying drawings and embodiments.
[0027] like Figures 1-3 The multi-agency data reporting adaptive verification and agency-level circuit breaker method shown is operated according to the following steps: S100: The regional healthcare integration platform receives incremental business data reported by various medical institutions within a preset time window and writes the incremental business data into a front buffer table. When writing, a unique batch serial number is assigned to each incremental business data to represent the relative position of the data in the current batch.
[0028] Batch serial numbers can be incremented from 1 according to the writing order. If the current batch receives a total of M incremental business data, the batch serial number range is from 1 to M.
[0029] If the system has concurrent multi-batch write scenarios, a combined primary key method of "global batch ID + batch serial number" can be used to ensure absolute isolation of batch serial numbers between different concurrent batches.
[0030] S200: Extract the institution identifier (indicating the medical institution from which the data originates), dictionary category identifier (indicating the dictionary type to which the verification belongs), and dictionary value (indicating the actual encoded value to be verified) from each incremental business data entry, and perform the following steps respectively: Figure 2 The deterministic hash encoding shown generates a fixed-length composite hash tuple, which is then concatenated in a preset high-low order. In this embodiment, the high-low order, from high to low, is the organization identifier hash segment, the dictionary category identifier hash segment, and the dictionary value hash segment.
[0031] Optionally, the composite hash tuple can use 64-bit, 96-bit, 128-bit, or other fixed-length encoding methods, for example, it can be set as follows: The organization identifier hash field occupies 16 bits (e.g., in 64-bit fixed-length encoding) to 32 bits (e.g., in 128-bit fixed-length encoding). The dictionary category identifier hash field occupies 8 bits (e.g., in 64-bit fixed-length encoding) to 16 bits (e.g., in 128-bit fixed-length encoding). The dictionary value hash segment occupies the remaining bits.
[0032] Setting the organization identifier hash segment and dictionary category identifier hash segment in the high-order bits allows subsequent circuit breaker processing to quickly identify the object to be verified that belongs to a specific organization and a specific dictionary category by using high-order prefix matching.
[0033] S300: Perform unique value projection on all composite hash tuples in the current batch to generate a set of unique values to be verified. Unique value projection means that for completely identical composite hash tuples, only one unique value to be verified is retained to reduce duplicate rule verification.
[0034] Then, for each unique value H to be verified in the set, an inverted bitmap index is constructed that corresponds one-to-one with the batch serial number. This index is used to record the row position of the incremental business data corresponding to H in the pre-buffer table. In this embodiment, as shown... Figure 3The process of constructing a single inverted bitmap index, as shown, includes: Initialize the inverted bitmap index corresponding to the number of incremental business data rows in the current batch, with all bits initialized to 0; Iterate through each incremental business data entry in the front buffer table sequentially; When traversing each incremental business data, determine the composite hash tuple corresponding to that incremental business data; In the current inverted bitmap index, for all incremental business data whose composite hash tuples are the same as the current unique value H to be verified, the bit corresponding to the batch serial number is set to 1, and the remaining bits are kept to 0.
[0035] Therefore, each H corresponds to an inverted bitmap index that reflects its original set of occurrence positions. This structure can not only support merging duplicate values, but also directly restore the original data row position when subsequent verification fails, without having to rely on complex queries based on institutional identifiers, time intervals, and other conditions.
[0036] S400: Perform dictionary validity checks on the set of unique values to be verified, and statistically analyze anomaly indicators according to the organization identifier and dictionary category identifier. The anomaly indicators include at least one of the following: the proportion of abnormal unique values, the number of abnormally covered rows, the anomaly coverage rate, and the number of consecutive anomalies. In this embodiment, the anomaly coverage rate is preferred for statistical analysis of anomaly indicators. The anomaly coverage rate is calculated as the ratio between the number of bits set to 1 in the inverted bitmap index corresponding to the failed verification H and the total number of rows in the front buffer table corresponding to the current organization under the current dictionary category. The number of abnormally covered rows is the next preferred method for statistical analysis of anomaly indicators. The number of abnormally covered rows refers to the sum of the number of bits set to 1 in the inverted bitmap index corresponding to all failed verification H under the current organization and the current dictionary category. In addition, the proportion of abnormal unique values is the ratio of the number of failed verification H to the total number of H, and the number of consecutive anomalies is the maximum number of consecutive failed verifications of H.
[0037] Compared to using only the number of errors as a criterion, this invention uses bitmap statistics to count the coverage of abnormal records, which can more accurately reflect the scope of an institution's abnormal impact under a certain dictionary category.
[0038] S500: When any medical institution's abnormal index under any dictionary category exceeds the preset fault tolerance threshold, a prefix matching rule is generated based on the institution identifier hash segment corresponding to the medical institution and the dictionary category identifier hash segment corresponding to the dictionary category. Then, the remaining H are filtered according to the rule, and the circuit breaker intercepts all subsequent verification requests of the institution identifier and dictionary category corresponding to the H that hit the prefix matching rule.
[0039] In this embodiment, the step of filtering the remaining H includes: Let the total length of the composite hash tuple be L bits. The organization identifier hash segment and the dictionary category identifier hash segment together occupy the first P bits. When the fault tolerance threshold is triggered, a prefix mask is constructed, with the first P bits set to 1 and the last LP bits set to 0. Simultaneously construct the target prefix value FusePattern, whose first P bits are the concatenation value of the institution identifier hash segment of the medical institution that triggers the fault tolerance threshold and the dictionary category identifier hash segment of the dictionary category, and the last LP bits are 0; For any H, if (H AND PrefixMask) = FusePattern, then the H is determined to have matched the prefix rule and is subject to circuit breaking.
[0040] It should be noted that the circuit breaker object in this embodiment is H, rather than each incremental business data in the front buffer table. Therefore, when an institution experiences a concentrated anomaly under a certain dictionary category, it is not necessary to stop and judge all the original data of the institution one by one. Instead, the interception is performed directly at the level of the unique value H to be verified, thereby significantly reducing the resource consumption of rule verification.
[0041] The method in this embodiment also supports manual or automatic circuit breaker recovery mechanism. When the abnormal isolated data is rectified, the corresponding prefix matching rule can be revoked. For the previously blocked H, all batch serial numbers corresponding to its inverted bitmap index are reread, reset to the pending verification state, and re-verification processing is performed.
[0042] S600: For all H that fail verification or are blocked by the circuit breaker, extract their corresponding inverted bitmap index and decode it to obtain the corresponding batch serial number set. In the front buffer table, perform anomaly isolation marking on all incremental business data corresponding to the batch serial number set. Specifically, perform batch status update on the front buffer table based on the batch serial number set, mark the corresponding incremental business data as anomaly isolation state, and record the corresponding institutional-level circuit breaker reason or dictionary verification failure reason.
[0043] In this embodiment, the abnormal isolation marker may record at least one of the following information: reason for dictionary verification failure, identification of the organization to which it belongs, identification of the dictionary category to which it belongs, whether it is an organization-level circuit breaker interception, circuit breaker trigger time, and subsequent rectification status.
[0044] Optionally, in addition to being stored in memory, the inverted bitmap index can also be synchronously and persistently stored in a database, key-value storage system, file system, or object storage, which is mainly suitable for asynchronous tracing across batches, fault recovery, or subsequent anomaly auditing.
[0045] The method of the present invention will be described below with reference to a specific scenario.
[0046] 1. Basic Scene Setting: A county-level medical consortium's data integration platform receives daily outpatient volume data reported by its subordinate medical institutions at midnight, based on the previous day's figures. In this example, data is received from two medical institutions: Org_01: County People's Hospital, reported 50,000 outpatient data entries; Org_02: A township health center reported 10,000 outpatient data entries.
[0047] The aforementioned 60,000 incremental business data entries are uniformly written into the front buffer table, and batch serial numbers 1 to 60,000 are generated according to the writing order.
[0048] 2. Abnormal scenarios Because Org_02's HIS system underwent an abnormal upgrade the previous day, all 10,000 incremental business data entries it reported had their dictionary values for the dictionary category "Department Code" incorrectly entered as the default invalid value "9999". In other words, for this batch of data under the dictionary category "Department Code" for Org_02, there were 10,000 incremental business data entries, and the corresponding dictionary values were completely identical.
[0049] 3. Generation of composite hash tuples The above 60,000 incremental business data entries are extracted, and the organization identifier, dictionary category identifier, and dictionary value are subjected to deterministic hash encoding and concatenated in a preset order to form a composite hash tuple. For example, for 10,000 erroneously entered incremental business data from Org_02, the system encodes and concatenates the organization identifier (Org_02), dictionary category identifier (Dept), and dictionary value 9999 to form a composite hash tuple. The resulting tuple is [Org_02's organization identifier hash segment] + [Dept's dictionary category identifier hash segment] + [9999's dictionary value hash segment]. Since these 10,000 incremental business data entries have identical values in the above three dimensions, their corresponding composite hash tuples all share the same unique value H to be verified. For the composite hash tuple in the example above, the unique value to be verified is denoted as H1.
[0050] 4. Unique value projection and inverted plot index construction Perform unique value projection on the composite hash tuples corresponding to all 60,000 data entries. For the abnormal data mentioned above (Org_02), although there are 10,000 incremental business data entries, only one H is retained after unique value projection. Simultaneously, an inverted bitmap index of length 60,000 is constructed for H. Since the original data corresponding to the unique value H to be verified is located between batch serial numbers 50001 and 60000, the inverted bitmap index contains: The bits corresponding to batch serial numbers 1 to 50000 are 0; The bit corresponding to batch serial numbers 50001 to 60000 is 1.
[0051] Using this inverted bitmap index, the system can accurately record the positions of 10,000 original abnormal data entries while retaining only one H.
[0052] 5. Prefix matching rule validation and anomaly coverage statistics Dictionary validity verification is performed on H. Specifically, taking H1 as an example, it is found that the dictionary category "department code" does not contain code 9999, so H1 is determined to have failed verification. Subsequently, the number of abnormal coverage rows is calculated based on the inverted bitmap index corresponding to H1. Since there are 10,000 bits set to 1 in this inverted bitmap index, the number of abnormal coverage rows corresponding to H1 is 10,000.
[0053] Since Org_02 also has 10,000 rows of original data in this batch and under the dictionary category "department code", its anomaly coverage rate is: 10,000 / 10,000 = 100%.
[0054] In this embodiment, if the preset institutional fault tolerance threshold is: the abnormal coverage rate is greater than or equal to 80%, or the number of abnormal coverage rows is greater than or equal to 5000, then Org_02 has met the circuit breaker triggering condition under the dictionary category "department code".
[0055] 6. Institution-level prefix circuit breaker handling After the fault tolerance threshold is triggered, the system constructs a prefix matching rule for the target organization Org_02 and the target dictionary category Dept, generates a PrefixMask with the first P bit set to 1 and the last LP bit set to 0, and generates a FusePattern with the first P bit set to [Org_02's organization identifier hash segment] + [Dept's dictionary category identifier hash segment] and the last LP bit set to 0.
[0056] For the remaining H, perform the judgment (H AND PrefixMask) = FusePattern. If true, the institution of the incremental business data corresponding to H belongs to Org_02 and its dictionary category is Dept. Instead of sending the object to the rule validation engine, it is directly marked as hitting the institution-level circuit breaker range.
[0057] This method allows for the immediate cessation of rule validation for subsequent unique values within the same institution and dictionary category after a large-scale anomaly is detected in the "Department Code" dictionary category of Org_02. This prevents the abnormal institution from continuing to consume rule engine resources. Meanwhile, data from other institutions, such as Org_01, can still proceed normally through the rule validation process, unaffected by the abnormal data from Org_02.
[0058] 7. Bitmap Decoding and Tagging of Raw Anomalous Data For H1 that failed verification, and H that was subsequently blocked by the circuit breaker and belonged to Org_02 with the dictionary category Dept, their corresponding inverted bitmap indices were extracted and decoded to obtain the corresponding batch serial number set.
[0059] For H1, the bitmap decoding result is batch serial numbers 50001 to 60000. Therefore, a batch status update is performed on the incremental business data corresponding to the batch serial numbers in the pre-buffer table, marking them as an abnormal isolation state and recording the reason for the abnormality, for example: Dictionary category: Department code; Reason for failure: The dictionary value 9999 is not in the standard dictionary database; Organization ID: Org_02; Handling method: Isolate after the institution-level prefix circuit breaker is triggered.
[0060] Therefore, without needing to perform complex queries based on institutional identifiers and time intervals, the corresponding original abnormal data can be directly located and isolated and tagged.
[0061] Although the above explanation uses the "department code" verification in outpatient data as an example, this invention is not limited to this field. In other embodiments, it can also be applied to scenarios such as disease code verification, drug code verification, medical insurance item code verification, laboratory item code verification, surgical code verification, and medical staff category code verification.
[0062] like Figure 4 As shown, a multi-agency data reporting adaptive verification and agency-level circuit breaker system is disclosed. The system includes a composite hash tuple generation module, a unique value projection and inverted bitmap construction module, a rule verification and anomaly indicator statistics module, an agency-level prefix circuit breaker module, and a bitmap decoding and anomaly labeling module.
[0063] The composite hash tuple generation module is used to receive incremental business data reported by various medical institutions, write it into the pre-buffer table, assign batch serial numbers, and perform deterministic hash encoding and concatenation on the institution identifier, dictionary category identifier, and dictionary value to generate composite hash tuples.
[0064] The unique value projection and inverted bitmap construction module is used to receive composite hash tuples from the composite hash tuple generation module, project unique values onto them, generate a set of unique values to be verified, and construct an inverted bitmap index.
[0065] Specifically, inverted bitmap indexes can be implemented using various data structures suitable for bitwise operations and fast decoding, including fixed-length bitmaps, sparse bitmaps, compressed bitmaps, etc.
[0066] The rule validation and anomaly indicator statistics module is used to receive the set of unique values to be validated from the unique value projection and inverted bitmap construction module, perform dictionary validity validation on them, and count anomaly indicators.
[0067] Specifically, the rule validation and anomaly indicator statistics module calls a rule validation engine to perform dictionary validity validation. This invention does not limit the specific implementation form of the rule validation engine, and the forms that can be adopted include: a local embedded validation module, a remote dictionary validation service, a cache-based dictionary matching module, and a distributed rule computing cluster.
[0068] The institutional-level prefix circuit breaker module receives verification and statistical results from the rule verification and anomaly indicator statistics module, and generates prefix matching rules when the anomaly indicator exceeds the fault tolerance threshold, and then circuit breaks the subsequent verification requests based on the prefix matching rules.
[0069] The bitmap decoding and anomaly marking module is used to extract the inverted bitmap index and decode all H entries that failed the verification in the rule validation and anomaly indicator statistics module or were blocked by the circuit breaker in the organization-level prefix circuit breaker module. After obtaining the corresponding batch serial number set, the corresponding incremental business data is marked as abnormal.
[0070] This invention is not limited to county-level medical consortium scenarios; it is equally applicable to multi-source medical data reporting environments such as regional health platforms, specialist alliance platforms, and multi-hospital group hospital data centers.
[0071] The above are only some of the embodiments listed in this application and are not intended to limit this application.
Claims
1. A method for adaptive verification and mechanism-level circuit breaking of multi-mechanism data reporting, characterized in that, Including the following steps: S100: Receives incremental business data reported by various medical institutions and writes the incremental business data into a front buffer table. When writing, a unique batch serial number is assigned to each incremental business data. S200: Extract the organization identifier, dictionary category identifier, and dictionary value from each incremental business data, perform deterministic hash encoding on each, generate a fixed-length composite hash tuple, and concatenate them in a preset high-low order; S300: Perform unique value projection on all composite hash tuples in the current batch to generate a set of unique values to be verified. Then, construct an inverted bitmap index corresponding to the batch serial number for each unique value H to be verified in the set. These inverted bitmap indexes are used to record the row position of the incremental business data corresponding to H in the front buffer table. S400: Perform dictionary validity checks on the set of unique values to be verified, and statistically analyze anomaly indicators according to the organization identifier and dictionary category identifier. The anomaly indicators include at least one of the following: the proportion of anomaly unique values, the number of rows covered by anomalies, the anomaly coverage rate, and the number of consecutive anomalies. S500: When any medical institution's abnormal index under any dictionary category exceeds the preset fault tolerance threshold, generate a prefix matching rule corresponding to the medical institution and the dictionary category, and then filter the remaining H according to the rule, and block all subsequent verification requests of the institution identifier and dictionary category corresponding to H that hit the prefix matching rule. S600: For all unique values H to be verified that fail verification or are blocked by circuit breakers, extract their corresponding inverted bitmap indexes and decode them to obtain the corresponding batch serial number set. In the front buffer table, perform anomaly isolation marking on all incremental business data corresponding to the batch serial number set.
2. The adaptive verification and mechanism-level circuit breaker method for multi-mechanism data reporting according to claim 1, characterized in that, In S200, the high and low order of the bits are, from high to low, the organization identifier hash segment, the dictionary category identifier hash segment, and the dictionary value hash segment. In S500, a prefix matching rule is generated based on the organization identifier hash segment and the dictionary category identifier hash segment corresponding to the medical institution whose abnormal index exceeds the fault tolerance threshold.
3. The adaptive verification and mechanism-level circuit breaker method for multi-mechanism data reporting according to claim 1, characterized in that, In S300, the process of constructing a single inverted bitmap index includes: Initialize the inverted bitmap index corresponding to the number of incremental business data rows in the current batch; Iterate through each incremental business data entry in the front buffer table sequentially; When traversing each incremental business data, determine the composite hash tuple corresponding to that incremental business data; In the current inverted bitmap index, for all incremental business data whose composite hash tuples are the same as the current unique value H to be verified, the bit corresponding to the batch serial number is set to 1, and the remaining bits are kept to 0.
4. The adaptive verification and mechanism-level circuit breaker method for multi-mechanism data reporting according to claim 1, characterized in that, In S400, anomaly coverage is used to statistically analyze anomalies. The anomaly coverage is calculated as the ratio between the number of bits set to 1 in the inverted bitmap index corresponding to the H that failed the verification and the total number of rows in the front buffer table corresponding to the current organization under the current dictionary category.
5. The adaptive verification and mechanism-level circuit breaker method for multi-mechanism data reporting according to claim 1, characterized in that, In S500, the steps for filtering the remaining H include: Let the total length of the composite hash tuple be L bits. The organization identifier hash segment and the dictionary category identifier hash segment together occupy the first P bits. When the fault tolerance threshold is triggered, a prefix mask is constructed, with the first P bits set to 1 and the last LP bits set to 0. Simultaneously construct the target prefix value FusePattern, whose first P bits are the concatenation value of the institution identifier hash segment of the medical institution that triggers the fault tolerance threshold and the dictionary category identifier hash segment of the dictionary category, and the last LP bits are 0; For any H, if (H AND PrefixMask) = FusePattern, then the H is determined to have matched the prefix rule and is subject to circuit breaking.
6. The adaptive verification and mechanism-level circuit breaker method for multi-mechanism data reporting according to claim 1, characterized in that, In S600, when executing the abnormal isolation marking, the batch status update is performed on the front buffer table based on the batch serial number set, the corresponding incremental business data is marked as abnormal isolation status, and the corresponding institutional-level circuit breaker reason or dictionary verification failure reason is recorded.
7. The adaptive verification and mechanism-level circuit breaker method for multi-mechanism data reporting according to claim 1, characterized in that, Composite hash tuples are encoded using 64-bit or 128-bit fixed-length encoding.
8. A multi-agency data reporting adaptive verification and agency-level circuit breaker system, characterized in that, include: The composite hash tuple generation module is used to receive incremental business data reported by various medical institutions, write it into the pre-buffer table, assign batch serial numbers, and perform deterministic hash encoding and concatenation on the institution identifier, dictionary category identifier, and dictionary value to generate composite hash tuples. The unique value projection and inverted bitmap construction module is used to receive composite hash tuples from the composite hash tuple generation module, project unique values onto them, generate a set of unique values to be verified, and construct an inverted bitmap index. The rule validation and anomaly indicator statistics module is used to receive the set of unique values to be validated from the unique value projection and inverted plot construction module, perform dictionary validity validation on them, and count anomaly indicators. The institutional-level prefix circuit breaker module is used to receive verification and statistical results from the rule verification and anomaly indicator statistics module, and when the anomaly indicator exceeds the fault tolerance threshold, generate a prefix matching rule and block subsequent verification requests according to the prefix matching rule. The bitmap decoding and anomaly marking module is used to extract the inverted bitmap index and decode all H that failed the verification in the rule verification and anomaly indicator statistics module or were blocked by the circuit breaker in the organization-level prefix circuit breaker module. After obtaining the corresponding batch serial number set, the corresponding incremental business data is marked as abnormal.
9. The multi-agency data reporting adaptive verification and agency-level circuit breaker system according to claim 8, characterized in that, The rule validation and anomaly statistics module calls a rule validation engine during operation to perform dictionary validity checks.
