Multi-task pipeline data cleaning system and method based on vaccination platform

Through the multi-task pipeline data cleaning system, the problem of insufficient flexibility of existing tools is solved, efficient processing of complex data sources and formats is achieved, implementation and maintenance complexity is reduced, and flexible data cleaning solutions are provided.

CN118363952BActive Publication Date: 2024-10-18NANJING CHISCDC SOFTWARE TECH CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202410788281.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-19
Publication Date
2024-10-18
Estimated Expiration
2044-06-19

AI Technical Summary

Technical Problem

Existing data cleaning tools lack flexibility and are difficult to adapt to complex business scenarios and changing data structures, resulting in high implementation and maintenance complexity.

Method used

A data cleaning system based on multi-task pipeline is adopted, including configuration module, plug-in module, initialization module, scheduling module and storage and push module. It supports serial and parallel modes and performs data cleaning through task manager, step pipeline and step module. Provides extended interfaces to customize cleaning functions or integrate other tools.

Benefits of technology

It realizes the flexible definition of data cleaning process, supports the processing of different data sources and data formats, has efficient and stable data processing capabilities, and is scalable, reducing development and maintenance costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118363952B_ABST
    Figure CN118363952B_ABST
Patent Text Reader

Abstract

The present invention discloses a multi-task pipeline data cleaning system and method based on a vaccination platform. The multi-task pipeline data cleaning system includes: a configuration module, a plug-in module, an initialization module, a scheduling module and a storage and push module. The configuration module performs configuration operations on the plug-in module based on a preset data carry-over configuration file or a data push configuration file, and obtains a configured plug-in module; the initialization module performs initialization operations on the configured plug-in module, and obtains an initialized plug-in module; the scheduling module calls the initialized plug-in module based on the preset carry-over task scheduling parameters or the push task scheduling parameters to perform data cleaning operations on the target data source, and obtains the cleaned data; the storage and push module stores or pushes the cleaned data. This solution adopts a data cleaning plug-in based on a multi-task pipeline, which can efficiently and stably process a large amount of data and has scalability.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the fields of data processing and software development, and in particular to a multi-task pipeline data cleaning system and method based on a vaccination platform. Background Art

[0002] With the continuous deepening of enterprise informatization construction, each business system in the vaccination platform operates independently, resulting in data islands between different systems, data not being shared, business not being integrated, and processes not being interoperable. In order to break this situation, data cleaning technology came into being. The emergence of data cleaning technology enables enterprises to process massive data more efficiently, extract, clean, and convert data from dispersed and heterogeneous data sources and load them into the target system, providing strong data support for enterprise decision-making analysis.

[0003] Traditional data cleaning tools lack flexibility and usually provide fixed conversion rules and processes. They may be difficult to flexibly adapt to complex business scenarios and changing data structures. When faced with new data sources or data formats, additional development work may be required to customize the conversion logic, increasing the complexity of implementation and maintenance.

[0004] As can be seen from the above, the data cleaning tools in the prior art have the problems of insufficient flexibility and high complexity in implementation and maintenance. Summary of the invention

[0005] In view of the above problems, the present invention proposes a multi-task pipeline data cleaning system and method based on a vaccination platform.

[0006] To achieve the purpose of the present invention, a multi-task pipeline data cleaning system based on a vaccination platform is provided, including: a configuration module, a plug-in module, an initialization module, a scheduling module and a storage and push module; the plug-in module adopts a multi-task pipeline-based data cleaning plug-in.

[0007] The configuration module performs configuration operations on the plug-in module based on a preset data carry-over configuration file or a data push configuration file, and obtains a configured plug-in module; the initialization module performs initialization operations on the configured plug-in module, and obtains an initialized plug-in module; the scheduling module calls the initialized plug-in module based on preset carry-over task scheduling parameters or push task scheduling parameters to perform data cleaning operations on the target data source, and obtains the cleaned data; the storage and push module stores or pushes the cleaned data.

[0008] The configuration module mainly configures the task manager module, task module, step pipeline module and step module, and the initialization module also mainly performs initialization operations on the task manager module, task module, step pipeline module and step module.

[0009] Further, the plug-in module includes: a number of task manager modules, a number of task modules, a number of step pipeline modules, a number of step modules, a number of task manager context modules and a number of task context modules;

[0010] The task manager module is a set of several task modules; the task manager module manages the task registration, task scheduling mode and task execution of the several task modules in the current task manager module;

[0011] The task manager module is a collection of tasks, which is used to manage the task registration, task scheduling (serial / parallel) and task execution of all task modules in the current task manager module. A task manager module can register multiple task modules, and there is no relationship between task modules and they are relatively independent. The types of task manager modules are divided into serial mode and parallel mode. The serial mode executes the tasks in the task manager module in sequence, and the parallel mode opens threads to execute the tasks in the task manager module in parallel.

[0012] The task module is a collection of several step pipeline modules; the several step pipeline modules in the task module have no relationship with each other and are relatively independent; multiple step pipeline modules can be created in one task module, and the step pipeline modules have no relationship with each other and are relatively independent.

[0013] The step pipeline module is a collection of several step modules; the several step modules in the step pipeline module have a superior-subordinate relationship, and the output data type of the superior step module is consistent with the input data type of the subordinate step module; the step pipeline module is a collection of step modules with a superior-subordinate relationship, and the output data type of the superior step module must be consistent with the input data type of the subordinate step module. The step pipeline module definition can be configured as needed according to actual conditions, and can be configured as a simple single-line processing pipeline or a complex multi-line processing pipeline, but for a step pipeline module, there can only be one step at the beginning and no more than one.

[0014] The step module is the smallest execution unit in the plug-in module; the step module includes: a data input module, a processing operation module and a data output module; the input value of the data input module is the output value of the data output module in the upper step module, the processing operation module is used to perform data processing operations in the current step module, and the output value of the data output module is the input value of the data input module in the lower step module;

[0015] The step module is the smallest execution unit in the entire plug-in module. A step module contains three parts: input data, processing and output data. The input data is the output data of the previous step; the processing is the logic of data processing in the current step; and the output data is the data that the current step needs to output to the next step.

[0016] The task manager context module is used for the interaction of data and parameters between the tasks in the same task manager module. The task manager context module exists in the entire life cycle of the task manager module and can be used for the interaction of data, parameters, etc. between all task modules in the same task manager module.

[0017] The task context module is used for the interaction of data and parameters between the several step pipeline modules and the several step modules in the same task module. The task context module exists in the entire task module life cycle and can be used for the interaction of data, parameters, etc. between all step pipeline modules and step modules in the same task module.

[0018] The task scheduling mode includes: a serial mode and a parallel mode; the serial mode is to execute several task modules in the task manager module in sequence; the parallel mode is to open threads and execute several task modules in the task manager in parallel;

[0019] The specific process of the configuration module configuring the plug-in module based on the preset data carry-over configuration file or the data push configuration file includes: configuring the names of several task modules and the task scheduling mode in the current task manager module;

[0020] Configure the names of several step pipeline modules in the current task module;

[0021] Configure the number and execution commands of several step modules in the current step pipeline module;

[0022] In the serial mode:

[0023] The first step module in the current step pipeline module is used to read files from a data source; the last step module in the current step pipeline module is used to transmit the processing result to a database or a third party;

[0024] Several step modules in the middle of the current step pipeline module: each step module receives data output by the previous step module, processes the data, and transmits the processing result to the next step module;

[0025] In the parallel mode:

[0026] The first step module in the current step pipeline module is used to read a file from the data source;

[0027] The last step module in the current step pipeline module is used to transmit the processing result to a database or a third party;

[0028] Several step modules except the last step module in the current step pipeline module: each step module contains several sub-step modules; several sub-step modules under the same step module perform their respective operations simultaneously; each step module receives data output by the previous step module or sub-step module, processes the data, and then transmits the processing result to the next sub-step module.

[0029] Furthermore, the multi-task pipeline data cleaning system further includes: an expansion interface module;

[0030] The extended interface module is used to customize cleaning functions or integrate other data cleaning tools.

[0031] Furthermore, the task scheduling modes include: serial mode and parallel mode;

[0032] The serial mode: executing several task modules in the task manager module in sequence;

[0033] The parallel mode: opening threads and executing several task modules in the task manager in parallel.

[0034] Furthermore, the present invention also provides a data cleaning method based on the multi-task pipeline data cleaning system, the data cleaning method is used for data carry-over, and specifically comprises the following steps:

[0035] A1: The configuration module performs configuration operations on the plug-in module based on a preset data carry-over configuration file, and obtains the configured plug-in module; the preset data carry-over configuration file includes: data source, cleaning rules, output format and storage method;

[0036] A2: the initialization module performs an initialization operation on the configured plug-in module and obtains the initialized plug-in module;

[0037] A3: configuring the scheduling module with the carry-over task scheduling parameters based on the preset carry-over task scheduling parameters;

[0038] A4: The scheduling module calls the initialized plug-in module, and the initialized plug-in module obtains and obtains the data to be processed from the target data source;

[0039] A5: The scheduling module calls the initialized plug-in module, and the initialized plug-in module performs a filtering operation on the data to be processed and obtains filtered data; and then converts the filtered data into corresponding dimension data;

[0040] A6: The storage and push module stores the corresponding dimension data to the destination data warehouse based on the storage method.

[0041] Furthermore, the carry-over task scheduling parameters include: a scheduling period, an administrative region for indicator carry-over, a data volume for each carry-over operation, and indicator information that needs to be carried forward.

[0042] Furthermore, the present invention also provides a data cleaning method based on a multi-task pipeline data cleaning system, wherein the data cleaning method is used for data push and specifically comprises the following steps:

[0043] B1: The configuration module performs configuration operations on the plug-in module based on a preset data push configuration file, and obtains the configured plug-in module; the preset data push configuration file includes: data source, cleaning rules, push mode and push address;

[0044] B2: the initialization module performs an initialization operation on the configured plug-in module and obtains the initialized plug-in module;

[0045] B3: configuring the push task scheduling parameters for the scheduling module based on the preset push task scheduling parameters;

[0046] B4: the scheduling module calls the initialized plug-in module, and the initialized plug-in module obtains and obtains the data to be processed from the target data source;

[0047] B5: the scheduling module calls the initialized plug-in module, and the initialized plug-in module performs conversion and encapsulation operations on the data to be processed, and obtains the converted and encapsulated data;

[0048] B6: The storage and push module pushes out the converted and packaged data based on the push method.

[0049] Furthermore, the push task scheduling parameters include: scheduling period, list reading method, push timeout time and single processing data volume.

[0050] Furthermore, the push mode includes: asynchronous push and direct push.

[0051] Furthermore, the present invention also provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer instructions and data, and the computer instructions and data are used to enable a computer to execute the data cleaning method.

[0052] Compared with the prior art, the present invention has the following beneficial technical effects:

[0053] This solution uses a multi-task pipeline data cleaning plug-in to define simple or complex data cleaning processes based on the configuration method. It supports obtaining raw data in different data formats from different data sources, supports multiple operating modes such as serial and parallel, can perform data cleaning conveniently and flexibly, can process large amounts of data efficiently and stably, and has scalability.

[0054] The task scheduling module in this solution schedules and executes tasks according to the user's configuration. It will assign task modules to corresponding execution threads for processing according to the type and dependency of task modules. During the execution of task modules, the task scheduling module will perform corresponding cleaning operations on the data according to the cleaning rules defined by the user, and store the cleaning results in the data storage module or push them to a third-party platform. Users can customize cleaning functions or integrate other data cleaning tools through the extended interface module to meet specific business needs. BRIEF DESCRIPTION OF THE DRAWINGS

[0055] Figure 1 is a module schematic diagram of a multi-task pipeline data cleaning system based on a vaccination platform according to an embodiment;

[0056] Figure 2 is a schematic diagram of the operation architecture of a plug-in module of an embodiment;

[0057] Figure 3 is a flow chart of a data cleaning method for data carry-over according to an embodiment;

[0058] Figure 4 is a flow chart of a data cleaning method for data push according to an embodiment;

[0059] Figure 5 The figure is a schematic diagram of the specific usage configuration and execution flow of the plug-in module of an embodiment. DETAILED DESCRIPTION

[0060] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0061] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.

[0062] refer to Figure 1 As shown, Figure 1 A schematic diagram of a module of a multi-task pipeline data cleaning system based on a vaccination platform according to an embodiment, comprising: a configuration module, a plug-in module, an initialization module, a scheduling module, and a storage and push module;

[0063] The configuration module performs configuration operations on the plug-in module based on a preset data carry-over configuration file or a data push configuration file, and obtains a configured plug-in module; the initialization module performs initialization operations on the configured plug-in module, and obtains an initialized plug-in module; the scheduling module calls the initialized plug-in module based on preset carry-over task scheduling parameters or push task scheduling parameters to perform data cleaning operations on the target data source, and obtains the cleaned data; the storage and push module stores or pushes the cleaned data.

[0064] like Figure 2 As shown, in one embodiment, the plug-in module includes: a number of task manager modules, a number of task modules, a number of step pipeline modules, a number of step modules, a number of task manager context modules and a number of task context modules;

[0065] The task manager module is a set of several task modules; the task manager module manages the task registration, task scheduling mode and task execution of the several task modules in the current task manager module;

[0066] The task module is a set of several pipeline modules; the pipeline modules in the task module have no relationship and are relatively independent.

[0067] The step pipeline module is a set of several step modules; the several step modules in the step pipeline module have a superior-subordinate relationship, and the output data type of the superior step module is consistent with the input data type of the subordinate step module;

[0068] The step module is the smallest execution unit in the plug-in module; the step module includes: a data input module, a processing operation module and a data output module; the input value of the data input module is the output value of the data output module in the upper step module, the processing operation module is used to perform data processing operations in the current step module, and the output value of the data output module is the input value of the data input module in the lower step module;

[0069] The task manager context module is used for interaction of data and parameters between the tasks in the same task manager module;

[0070] The task context module is used for the interaction of data and parameters between the several step pipeline modules and the several step modules in the same task module.

[0071] The task scheduling mode includes: a serial mode and a parallel mode; the serial mode is to execute several task modules in the task manager module in sequence; the parallel mode is to open threads and execute several task modules in the task manager in parallel;

[0072] The specific process of the configuration module configuring the plug-in module based on the preset data carry-over configuration file or the data push configuration file includes: configuring the names of several task modules and the task scheduling mode in the current task manager module;

[0073] Configure the names of several step pipeline modules in the current task module;

[0074] Configure the number and execution commands of several step modules in the current step pipeline module;

[0075] In the serial mode:

[0076] The first step module in the current step pipeline module is used to read files from a data source; the last step module in the current step pipeline module is used to transmit the processing result to a database or a third party;

[0077] Several step modules in the middle of the current step pipeline module: each step module receives data output by the previous step module, processes the data, and transmits the processing result to the next step module;

[0078] In the parallel mode:

[0079] The first step module in the current step pipeline module is used to read a file from the data source;

[0080] The last step module in the current step pipeline module is used to transmit the processing result to a database or a third party;

[0081] Several step modules except the last step module in the current step pipeline module: each step module contains several sub-step modules; several sub-step modules under the same step module perform their respective operations simultaneously; each step module receives data output by the previous step module or sub-step module, processes the data, and then transmits the processing result to the next sub-step module.

[0082] In one embodiment, Figure 2 As shown, in parallel and serial scenarios, step 1 reads data from a file or database and passes the data to step 2 for the next step of processing. In this way, different operation commands can be replaced in step 2 to meet different scenario requirements, saving development time and cost. Step 1 is defined as a separate read function because sometimes the data source is different (the data source can be a file or database or other method). You can directly replace the corresponding value parameters of the read file in step 1 and replace the data source in the corresponding scenario without changing the entire code. Step X is used to define the output format according to the specific business scenario. For example, you can choose to output to a database or push it to a third party, that is, replace the corresponding code parameters of step X according to the specific business scenario.

[0083] In serial mode: Step 1 reads the data, and then passes the read data to step 2. After step 2 processes it, the processing result is passed to the subsequent serial steps... Finally, it reaches sub-step X and outputs the final result.

[0084] In parallel mode: Step 1 has two sub-steps: sub-step 11 and sub-step 12, and sub-step 12 contains sub-step 121 and sub-step 122... until the final output step Y. The data read in step 1 can be processed by multiple different business logics (that is, processed by the logic of each sub-step under step 1). Each sub-step receives the data of the previous sub-step and processes it, and then transmits the processed data to the next sub-step... Finally, it reaches sub-step Y and outputs the final result.

[0085] In one embodiment, the multi-task pipeline data cleaning system based on the vaccination platform further includes: an expansion interface module;

[0086] The extended interface module is used to customize cleaning functions or integrate other data cleaning tools.

[0087] In one embodiment, the task scheduling mode includes: a serial mode and a parallel mode;

[0088] The serial mode: executing several task modules in the task manager module in sequence;

[0089] The parallel mode: opening threads and executing several task modules in the task manager in parallel.

[0090] like Figure 3 As shown, in one embodiment, a data cleaning method based on the multi-task pipeline data cleaning system is provided, and the data cleaning method is used for data carry-over, and specifically includes the following steps:

[0091] A1: The configuration module performs configuration operations on the plug-in module based on a preset data carry-over configuration file, and obtains the configured plug-in module; the preset data carry-over configuration file includes: data source, cleaning rules, output format and storage method;

[0092] A2: the initialization module performs an initialization operation on the configured plug-in module and obtains the initialized plug-in module;

[0093] A3: configuring the scheduling module with the carry-over task scheduling parameters based on the preset carry-over task scheduling parameters;

[0094] A4: The scheduling module calls the initialized plug-in module, and the initialized plug-in module obtains and obtains the data to be processed from the target data source;

[0095] A5: The scheduling module calls the initialized plug-in module, and the initialized plug-in module performs a filtering operation on the data to be processed and obtains filtered data; and then converts the filtered data into corresponding dimension data;

[0096] A6: The storage and push module stores the corresponding dimension data to the destination data warehouse based on the storage method.

[0097] In one embodiment, a multi-task pipeline-based data cleaning method is used to carry forward indicator data. The specific implementation process is as follows:

[0098] Define the relevant configuration of the data cleaning task in the configuration file, including data source, cleaning rules, output format and storage method.

[0099] The plugin module is loaded and initialized according to the configuration when the project starts.

[0100] Configure task scheduling related parameters on the distributed task scheduling platform, including the scheduling period, the administrative area for indicator carry-over, the amount of data for each carry-over operation, and the indicator information that needs to be carried forward.

[0101] When the scheduling cycle conditions are met (for example, at 1 a.m. every day), the scheduling module is triggered to execute the corresponding pipeline step module.

[0102] 1) Data extraction

[0103] Get the specified amount of immunization history data that needs to be processed from the data source.

[0104] 2) Data cleaning

[0105] Filter out unnecessary records and convert immunization history data into dimensional data.

[0106] 3) Data storage

[0107] Store dimensional data in the data warehouse.

[0108] If there is still immunization history data that needs to be processed, repeat the above three steps. After all data processing is completed, the task module enters a dormant state and waits for the next task scheduling.

[0109] In one embodiment, the carry-over task scheduling parameters include: a scheduling period, an administrative region for indicator carry-over, a data volume for each carry-over operation, and indicator information that needs to be carried forward.

[0110] like Figure 4 As shown, in one embodiment, a data cleaning method based on the multi-task pipeline data cleaning system is also provided. The data cleaning method is used for data push and specifically includes the following steps:

[0111] B1: The configuration module performs configuration operations on the plug-in module based on a preset data push configuration file, and obtains the configured plug-in module; the preset data push configuration file includes: data source, cleaning rules, push mode and push address;

[0112] B2: the initialization module performs an initialization operation on the configured plug-in module and obtains the initialized plug-in module;

[0113] B3: configuring the push task scheduling parameters for the scheduling module based on the preset push task scheduling parameters;

[0114] B4: the scheduling module calls the initialized plug-in module, and the initialized plug-in module obtains and obtains the data to be processed from the target data source;

[0115] B5: the scheduling module calls the initialized plug-in module, and the initialized plug-in module performs conversion and encapsulation operations on the data to be processed, and obtains the converted and encapsulated data;

[0116] B6: The storage and push module pushes out the converted and packaged data based on the push method.

[0117] In one embodiment, a multi-task pipeline-based data cleaning method is used to push data, and the specific implementation process is as follows:

[0118] Define the relevant configuration of the data cleaning task in the configuration file, including data source, cleaning rules, output format and push method.

[0119] The plugin module is loaded and initialized according to the configuration when the project starts.

[0120] Configure task scheduling related parameters on the distributed task scheduling platform, including scheduling cycle, list reading method, push timeout, and amount of data processed each time.

[0121] When the scheduling cycle conditions are met (for example, at 1 a.m. every day), the task execution module is triggered to execute the corresponding pipeline steps.

[0122] 1) Data extraction

[0123] Read the file code according to the list reading method. If it is incremental database reading, get the result of the last execution from the task execution result table. According to the last file code of the last execution and the system update time, get the file code incrementally from the system-wide file update table. If it is a specified list, read the file code directly from the input parameter, file or folder.

[0124] According to the read archive code, batch obtain archive information from the main index table. Query sub-table data such as immunization history according to the system-wide archive update schedule. For example, a file is associated with the children and adult systems, and the obstetrics department is unbound. At this time, the sub-table data of the three systems must be queried to obtain data such as immunization history and migration records from the database. In order to improve query performance, it is necessary to first group the archive codes according to the system, and then query the data in batches in each database.

[0125] 2) Data conversion

[0126] Refer to the user-defined push data structure control dictionary to convert and encapsulate the extracted data.

[0127] 3) Data push

[0128] Asynchronous push or direct push is performed according to the configured push method.

[0129] Direct push, that is, calling a third-party interface to directly push data:

[0130] If there are more than one third-party destinations for this push task, a thread will be started for concurrent push; if there is only one third party, push will be done directly without starting a thread. Then the push status will be updated according to the result returned by the third party. If the push timeouts or any thread fails, it will be considered as a failure of this scheduled task and the execution of this task will be terminated; if the number of successful lists returned by the third party does not match the number of push lists, it will also be considered as a failure and the failure information will be recorded in the log. It must wait until all threads return successfully before it is considered successful and the next round of data push can be entered.

[0131] Asynchronous push: Send the data to be pushed to Kafka (an asynchronous message queue), and then push the data to a third party through asynchronous consumption.

[0132] In one embodiment, the push task scheduling parameters include: scheduling period, list reading method, push timeout time and single processing data volume.

[0133] In one embodiment, the push mode includes: asynchronous push and direct push.

[0134] In one embodiment, a computer-readable storage medium is further provided, wherein the computer-readable storage medium stores computer instructions and data, and the computer instructions and data are used to enable a computer to execute the data cleaning method.

[0135] like Figure 5 As shown, in one embodiment, taking the example of pushing the archive data and immunization history data of the "Immunity System" to the "Electronic Vaccination Certificate System", the implementation process of the data cleaning method based on the multi-task pipeline data cleaning system is explained. The multi-task pipeline data cleaning system is equipped in the planned immune system.

[0136] 1) First, you need to configure the module to configure the plug-in module, including the following configuration:

[0137] Data sources: including the main archive database and four subsystem databases: children, adults, dog injuries and obstetrics;

[0138] Cleaning rules: configure the steps for data cleaning;

[0139] Push method: http direct connection;

[0140] Push address: http interface address provided by the electronic vaccination certificate system;

[0141] 2) Next, configure the data push task on the distributed task scheduling platform, that is, configure the scheduling module. The following parameters will be passed to the plug-in module when calling the task execution interface of the plug-in module. The parameter description is as follows:

[0142] Task scheduling cycle: 1:00 a.m. every day;

[0143] Reading method: read incrementally according to the archive table;

[0144] The amount of data read each time: 100;

[0145] Start time for reading data: 2024-01-01 00:00:00;

[0146] 3) At 1 a.m. the next day, the scheduling module calls the task execution interface of the plug-in module to execute the task. The task execution process is as follows:

[0147] a. Data extraction

[0148] Query archive data from the main archive database. The query condition is that the "data update time" is greater than the "start time of reading data", the amount of data to be read is 100, and it is sorted in ascending order according to the "data update time". If no data is found, the task execution ends and waits for the next scheduling (1 am the next day).

[0149] Start time for reading data: It is obtained from the data push record table first. If the task is executed for the first time and there is no data in the data push record table, it is obtained from the task parameters.

[0150] This configuration is used to control incremental data extraction. For example, when it is executed for the first time, data with a "data update time" greater than "2024-01-01 00:00:00" will be queried. Among the 100 pieces of data queried, the largest "data update time" is "2024-01-02 10:00:00". This largest "data update time" will be saved in the data push record table. The next time it is executed, data with a "data update time" greater than "2024-01-02 10:00:00" will be queried.

[0151] According to the subsystem to which the archive data belongs, the immunization history data corresponding to the archive is queried from the four subsystem databases of children, adults, dog bites, and obstetrics.

[0152] b. Data cleaning

[0153] 1) Name of the vaccination route in the supplementary immunization history

[0154] 2) Age at vaccination in supplementary immunization history (number of months between vaccination date and birth date)

[0155] 3) Name of the vaccination site in the supplementary immunization history

[0156] 4) Abbreviation of vaccines in supplementary immunization history

[0157] 5) Vaccination method in supplementary immunization history

[0158] 6) Organization of vaccination in supplementary immunization history

[0159] 7) Abbreviation of vaccine manufacturer in the history of supplementary immunization

[0160] 8) Abbreviation of vaccination unit in supplementary immunization history

[0161] 9) Full name of the vaccination unit in the supplementary immunization history

[0162] 10) Abbreviation of the unit in the supplementary immunization history

[0163] 11) Full name of the unit where supplementary immunization history is entered

[0164] 12) Convert archive and immunization history data into the data structure of electronic vaccination certificate

[0165] c. Data push and storage

[0166] Save the file code to be pushed to the database;

[0167] Call the http interface of the electronic vaccination certificate to push data;

[0168] According to the push interface, the result is returned. If the push timeout occurs, it is considered that the scheduled task has failed and the execution of this task is terminated; if the number of successful lists returned by the push interface does not match the number of pushed lists, it is also considered a failure and the failure information is recorded in the log.

[0169] After the push is successful, the push status is updated and the maximum data update time in this batch of archive data is saved in the data push record table.

[0170] d. Entering the next round, repeat the data extraction, data cleaning, data push and storage.

[0171] The technical features of the above embodiments may be arbitrarily combined. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0172] It should be noted that the terms "first\second\third" involved in the embodiments of the present application are only used to distinguish similar objects, and do not represent a specific order for the objects. It is understandable that the specific order or sequence of "first\second\third" can be interchanged where permitted. It should be understood that the objects distinguished by "first\second\third" can be interchanged where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein.

[0173] The terms "including" and "having" and any variations thereof in the embodiments of the present application are intended to cover non-exclusive inclusions. For example, a process, method, device, product, or equipment that includes a series of steps or modules is not limited to the listed steps or modules, but may optionally include steps or modules that are not listed, or may optionally include other steps or modules that are inherent to these processes, methods, products, or equipment.

[0174] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent of the present application shall be subject to the attached claims.

Claims

1. A multi-task pipeline data cleaning system based on a vaccination platform, characterized in that: include: Configuration module, plug-in module, initialization module, scheduling module and storage and push module; The configuration module performs a configuration operation on the plug-in module based on a preset data carry-over configuration file or a data push configuration file, and obtains a configured plug-in module; the initialization module performs an initialization operation on the configured plug-in module, and obtains an initialized plug-in module; The scheduling module calls the initialized plug-in module to perform data cleaning operation on the target data source based on the preset carry-over task scheduling parameters or push task scheduling parameters, and obtains the cleaned data; The storage and push module stores or pushes the cleaned data; The plug-in modules include: a number of task manager modules, a number of task modules, a number of step pipeline modules, a number of step modules, a number of task manager context modules and a number of task context modules; The task manager module is a set of several task modules; the task manager module manages the task registration, task scheduling mode and task execution of the several task modules in the current task manager module; The task module is a set of several pipeline modules; the pipeline modules in the task module have no relationship and are relatively independent. The step pipeline module is a set of several step modules; the several step modules in the step pipeline module have a superior-subordinate relationship, and the output data type of the superior step module is consistent with the input data type of the subordinate step module; The step module is the smallest execution unit in the plug-in module; the step module includes: a data input module, a processing operation module and a data output module; the input value of the data input module is the output value of the data output module in the upper step module, the processing operation module is used to perform data processing operations in the current step module, and the output value of the data output module is the input value of the data input module in the lower step module; The task manager context module is used for interaction of data and parameters between the tasks in the same task manager module; The task context module is used for the interaction of data and parameters between the several step pipeline modules and the several step modules in the same task module; The task scheduling mode includes: a serial mode and a parallel mode; the serial mode is to execute several task modules in the task manager module in sequence; the parallel mode is to open threads and execute several task modules in the task manager in parallel; The specific process of the configuration module performing configuration operations on the plug-in module based on the preset data carry-over configuration file or the data push configuration file includes: Configure the names of several task modules and the task scheduling mode in the current task manager module; Configure the names of several step pipeline modules in the current task module; Configure the number and execution commands of several step modules in the current step pipeline module; In the serial mode: The first step module in the current step pipeline module is used to read a file from a data source; The last step module in the current step pipeline module is used to transmit the final processing result to a database or a third party; Several step modules in the middle of the current step pipeline module: each step module receives data output by the previous step module, processes the data, and transmits the processing result to the next step module; In the parallel mode: The first step module in the current step pipeline module is used to read a file from the data source; The last step module in the current step pipeline module is used to transmit the final processing result to the database or a third party; The other several step modules except the last one in the current step pipeline module: each step module contains several sub-step modules; several sub-step modules under the same step module perform their respective operations at the same time; each sub-step module receives the data output by the previous step module or the sub-step module, processes the data, and transmits the processing result to the next sub-step module.

2. The multi-task pipeline data cleaning system based on the vaccination platform according to claim 1 is characterized in that: Also includes: Extension interface module; The extended interface module is used to customize cleaning functions or integrate other data cleaning tools.

3. The data cleaning method based on the multi-task pipeline data cleaning system according to claim 2, characterized in that: The data cleaning method is used for data carry-over, and specifically comprises the following steps: A1: The configuration module performs a configuration operation on the plug-in module based on a preset data carry-over configuration file, and obtains the configured plug-in module; The preset data carry-over configuration file includes: data source, cleaning rules, output format and storage method; A2: the initialization module performs an initialization operation on the configured plug-in module and obtains the initialized plug-in module; A3: configuring the scheduling module with the carry-over task scheduling parameters based on the preset carry-over task scheduling parameters; A4: The scheduling module calls the initialized plug-in module, and the initialized plug-in module obtains and obtains the data to be processed from the target data source; A5: The scheduling module calls the initialized plug-in module, and the initialized plug-in module performs a filtering operation on the data to be processed and obtains filtered data; and then converts the filtered data into corresponding dimension data; A6: The storage and push module stores the corresponding dimension data to the destination data warehouse based on the storage method.

4. The data cleaning method according to claim 3, characterized in that: The carry-over task scheduling parameters include: a scheduling period, an administrative region for indicator carry-over, a data volume for each carry-over operation, and indicator information that needs to be carried forward.

5. The data cleaning method based on the multi-task pipeline data cleaning system of claim 2, characterized in that: The data cleaning method is used for data push, and specifically includes the following steps: B1: The configuration module performs configuration operations on the plug-in module based on a preset data push configuration file, and obtains the configured plug-in module; the preset data push configuration file includes: data source, cleaning rules, push mode and push address; B2: the initialization module performs an initialization operation on the configured plug-in module and obtains the initialized plug-in module; B3: configuring the push task scheduling parameters for the scheduling module based on the preset push task scheduling parameters; B4: the scheduling module calls the initialized plug-in module, and the initialized plug-in module obtains and obtains the data to be processed from the target data source; B5: the scheduling module calls the initialized plug-in module, and the initialized plug-in module performs conversion and encapsulation operations on the data to be processed, and obtains the converted and encapsulated data; B6: The storage and push module pushes out the converted and packaged data based on the push method.

6. The data cleaning method according to claim 5, characterized in that: The push task scheduling parameters include: scheduling period, list reading method, push timeout time and single processing data volume.

7. The data cleaning method according to claim 6, characterized in that: The push modes include: asynchronous push and direct push.

8. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions and data, and the computer instructions and data are used to enable a computer to execute the data cleaning method according to any one of claims 3 to 7.

Citation Information

Patent Citations

  • Center control type business process dispatching management system and realizing method

    CN104063273A

  • Transaction flow distributed batch processing method and system

    CN111930760A

  • Heterogeneous multi-source multi-purpose data synchronization method and device, computer and storage medium

    CN117149906A

  • Running method for embedded type virtual device and system

    WO2018072445A1