Data processing method, device, electronic device and storage medium

By determining the target data processing component from the pre-configured data processing components, the data of the pharmacy management system is processed and format converted, which solves the problem of data type mismatch between the Food and Drug Administration system and the pharmacy management system, and improves the convenience of data processing. efficiency and reduced development costs.

CN113764110BActive Publication Date: 2024-09-24BEIJING JINGDONG TUOXIAN TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110127492.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-01-29
Publication Date
2024-09-24
Estimated Expiration
2041-01-29

AI Technical Summary

Technical Problem

There are differences in the data types and fields obtained by the food and drug administration systems and pharmacy management systems in different regions, resulting in the need to develop multiple sets of program codes to match each system, which increases development costs and data processing costs.

Method used

By obtaining the data to be processed and determining the matching target data processing component from the pre-configured data processing components, the data is processed, the target data to be managed is generated in the target data format, and sent to the corresponding data management system to avoid The need to develop multiple sets of program code.

Benefits of technology

It improves the convenience of data processing and reduces development costs, and achieves seamless matching and processing of data and various data management systems.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113764110B
    Figure CN113764110B
Patent Text Reader

Abstract

The embodiment of the present invention provides a data processing method, device, electronic device and storage medium, the method comprising: obtaining data to be processed, determining a target data processing component that matches the data to be processed from pre-configured data processing components; processing the data to be processed based on the target data processing component to obtain target data to be managed in a target data format; sending the target data to be managed to a target data management system corresponding to the target data processing component, so that the target data management system manages and processes the target data to be managed. The technical solution of the embodiment of the present invention solves the technical problems that when the data format and type recorded by different pharmacy management systems in the prior art do not match the data management data of the drug administration bureau, it is necessary to develop the program code corresponding to each pharmacy management system, which has high development cost and low data efficiency, and achieves the technical effect of convenience and high efficiency in processing the data to be processed.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] Embodiments of the present invention relate to the field of computer technology, and in particular, to a data processing method, device, electronic device, and storage medium. Background Art

[0002] At present, the pharmacy management system can record the outbound data, inbound data and supplier data of each pharmacy. At the same time, the pharmacy management system also needs to be connected to the corresponding drug administration system to send the recorded data to the drug administration system so that the drug administration system can manage the data of each pharmacy.

[0003] When implementing the technical solution based on the above method, the inventor found the following problems:

[0004] There are certain differences in the data types and fields obtained by the drug administration systems in different regions, and there are also large differences in the data formats recorded by different pharmacy management systems. If the data recorded by the pharmacy management system needs to be sent to the corresponding drug administration, it is necessary to develop program codes that match the drug administration systems in different regions with each pharmacy management system, so as to connect the pharmacy management system to the corresponding drug administration system, and then send the recorded data to the drug administration system and process it. There is a problem of high development cost. Correspondingly, when using this method to send data to the drug administration system, there is also a problem of high data processing cost. Summary of the invention

[0005] The present invention provides a data processing method, device, electronic device and storage medium to achieve the technical effect of accurately, conveniently and efficiently processing data to be processed.

[0006] In a first aspect, an embodiment of the present invention provides a data processing method, the method comprising:

[0007] Acquire data to be processed, and determine a target data processing component that matches the data to be processed from pre-configured data processing components;

[0008] Processing the data to be processed based on the target data processing component to obtain target data to be managed in a target data format;

[0009] Sending the target data to be managed to a target data management system corresponding to the target data processing component, so that the target data management system manages and processes the target data to be managed;

[0010] Among them, each data processing component is generated according to the data processing rules of the corresponding data management system and the data type of the pre-processed data.

[0011] In a second aspect, an embodiment of the present invention further provides a data processing device, the device comprising:

[0012] A target data processing component determination module is used to obtain the data to be processed and determine the target data processing component that matches the data to be processed from the pre-configured data processing components;

[0013] A target data to be managed determining module, used for processing the data to be processed based on the target data processing component to obtain the target data to be managed in a target data format;

[0014] A target data to be managed sending module, used for sending the target data to be managed to a target data management system corresponding to the target data processing component, so that the target data management system manages and processes the target data to be managed;

[0015] Among them, each data processing component is generated according to the data processing rules of the corresponding data management system and the data type of the pre-processed data.

[0016] In a third aspect, an embodiment of the present invention further provides an electronic device, the electronic device comprising:

[0017] one or more processors;

[0018] a storage device for storing one or more programs,

[0019] When the one or more programs are executed by the one or more processors, the one or more processors implement the data processing method as described in any one of the embodiments of the present invention.

[0020] In a fourth aspect, an embodiment of the present invention further provides a storage medium comprising computer executable instructions, wherein the computer executable instructions, when executed by a computer processor, are used to execute a data processing method as described in any one of the embodiments of the present invention.

[0021] The technical solution of the embodiment of the present invention obtains the data to be processed and determines the target data processing component for processing the data to be processed from the pre-configured data processing components. The target data to be managed in the target data format can be obtained by processing the data to be processed based on the target data processing component, and then the target data to be managed is sent to the data management system. This solves the technical problem that when the data formats and types recorded by different pharmacy management systems in the prior art do not match the data types required by the data management system of the drug administration bureau, it is necessary to develop program codes corresponding to each pharmacy management system, which results in high development costs and low data efficiency. This realizes that when the data to be processed is obtained, a pre-configured target data processing component matching each data management system can be determined, and then the data to be managed is obtained by processing the data to be processed based on the target data processing component. This improves the convenience of data processing and achieves the technical effect of reducing costs by avoiding the development of multiple sets of program codes. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] In order to more clearly illustrate the technical solutions of the exemplary embodiments of the present invention, the following briefly introduces the drawings required to describe the embodiments. Obviously, the drawings introduced are only drawings of a part of the embodiments to be described in the present invention, rather than all the drawings. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0023] Figure 1 A schematic diagram of a data processing method provided in Embodiment 1 of the present invention;

[0024] Figure 2 A schematic diagram of the structure of a data processing system for executing a data processing method provided in Embodiment 1 of the present invention;

[0025] Figure 3 A schematic diagram of an interface for a data source determination method provided in the first embodiment of the present invention;

[0026] Figure 4 A schematic diagram of an interface for setting a task execution cycle and data volume provided in the first embodiment of the present invention;

[0027] Figure 5 A schematic diagram of a user interface provided in Embodiment 1 of the present invention;

[0028] Figure 6 A schematic diagram of a data processing method provided in Embodiment 2 of the present invention;

[0029] Figure 7 A schematic diagram of the structure of a data processing component provided in Embodiment 3 of the present invention;

[0030] Figure 8A schematic diagram of the structure of a drug monitoring docking system provided in Embodiment 2 of the present invention;

[0031] Fig. 9 A schematic diagram of the structure of a data processing device provided in Embodiment 3 of the present invention;

[0032] Fig.10 This is a schematic diagram of the structure of an electronic device provided in Embodiment 4 of the present invention. DETAILED DESCRIPTION

[0033] The present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It is to be understood that the specific embodiments described herein are only used to explain the present invention, rather than to limit the present invention. It should also be noted that, for ease of description, only parts related to the present invention, rather than all structures, are shown in the accompanying drawings.

[0034] Embodiment 1

[0035] Figure 1 This is a flow chart of a data processing method provided in Embodiment 1 of the present invention. This embodiment is applicable to the case where the collected data to be processed is processed into data to be managed that matches the corresponding data management system. The method can be executed by a data processing device, which can be implemented in the form of software and / or hardware. The hardware can be an electronic device, and the electronic device can be a mobile terminal, a PC, etc. The execution of this technical solution can be executed by a server, by a terminal device, or by a server and a terminal device in cooperation.

[0036] Before introducing the technical solution of this embodiment, the data processing system framework for executing this technical solution is first exemplarily described. Figure 2 The system includes a data collection subsystem (drug store data collection system), which is used to record the data of each drug store, such as the drug name, the drug identifier corresponding to the drug name, the inventory data corresponding to the drug name, the supplier data corresponding to the drug name, the purchase data corresponding to the drug name, the shipment data corresponding to the drug name, and the return data corresponding to the drug name. The data processing component subsystem (drug supervision docking system) is a pharmacy data collection system and a drug supervision data management system. The data processing component subsystem includes multiple data processing components, each of which corresponds to the data management system one by one, and is a subsystem used to obtain the data to be processed collected by each data collection subsystem and further process the data to be processed. The data management system (Drug Administration Data Management System) is used to receive the data to be managed after being processed by the corresponding data processing component.

[0037] It should be noted that the data processing component can be integrated into an application, that is, the data processing component subsystem can correspond to an application, which can be installed on a terminal, such as a PC or a mobile terminal, and the user can edit the corresponding information in the editable page or control in the application.

[0038] like Figure 1 As shown, the method includes:

[0039] S110: Acquire data to be processed, and determine a target data processing component that matches the data to be processed from pre-configured data processing components.

[0040] Among them, the data that currently needs to be processed can be used as the data to be processed. The data processing component is generated according to the data processing rules of each data management system and the data type of the pre-processed data. The pre-processed data type is the data format and type collected by the data acquisition system. The pre-processed data type includes the data type of the data to be processed. The target data processing component is a component that processes the data to be processed to obtain the data type required by the corresponding data management system. The number of data processing components is the same as the number of data management systems. Since the data processing component is matched with the corresponding data management system, the target data processing component corresponds to the corresponding target data management system.

[0041] Specifically, the data to be processed collected by each data collection system can be obtained regularly or in real time, such as the inventory data corresponding to the drug name. After obtaining the data to be processed, the target data processing component matching the data to be processed can be determined from the pre-configured data processing components.

[0042] Exemplarily, at 00:00 every day, the data to be processed collected by each data collection system is obtained. At this time, if the data management system for processing the data to be processed is determined to be A, the target data processing component A' that matches the data management system can be determined.

[0043] In this embodiment, determining the target data processing component for processing the data to be processed can be: obtaining the data to be processed, and determining the target data processing component that matches the data to be processed from the pre-configured data processing components, including: obtaining the data to be processed collected by the data acquisition system, and determining the target data identifier of the data to be processed; and determining the target data processing component that matches the data to be processed based on the target data identifier.

[0044] The data acquisition system may be a pharmacy management system used by each pharmacy. Each pharmacy management system may be a pre-developed application, which may be installed on a terminal, such as a PC and / or a mobile terminal. The data acquisition system may record all data related to the pharmacy, optionally including purchase data, shipment data, inventory energy data, etc. The target data identifier may be an identifier corresponding to the data management system that processes the data to be processed, or an identifier indicating which data management system's corresponding data processing component is required to process the data to be processed.

[0045] It should be noted that different regions correspond to different data management systems (drug supervision data management systems). Accordingly, the data formats and data contents received by each data management system will be different, so the data processing components corresponding to each data management system are also different.

[0046] Specifically, the data to be processed collected by the data collection system can be obtained periodically or in real time, and the target data identifier in the data to be processed can be determined. According to the target data identifier, the target data management system for processing the data to be processed can be determined. In order to make the format of the data to be processed match the target data management system, the target data processing component corresponding to the target data management system can be determined, so that the target data processing component can process the data to be processed and obtain the target data to be managed received by the target data management system.

[0047] It should be noted that before obtaining the data to be processed and determining the target data processing component matching the data to be processed from the pre-configured data processing components, it also includes: configuring the data source corresponding to each data acquisition system and acquiring the data to be processed based on the data source.

[0048] Among them, each pharmacy can correspond to one data collection system, or multiple pharmacies can correspond to one data collection system. Therefore, before the data collection system collects data, the data source can be configured first, that is, which services are configured to obtain the data to be processed.

[0049] Specifically, the data sources that can be collected by each data collection system can be preset, such as which servers, ports, and data source names correspond to data that can be obtained, and the data to be processed can be collected based on the data source.

[0050] For example, the data source that the data acquisition system can collect can be data in a local database, that is, data in the client to which the software corresponding to the data acquisition system belongs, or data in a remote database, such as a database pre-bound to the data acquisition system. The data source that the data acquisition system can collect can be pre-configured, and the interface diagram of the configuration is as follows: Figure 3As shown, the corresponding editing contents can be edited in the content editing controls corresponding to the data source name, type, server, port, user, password, and database, and the data sources that can be collected by the data collection system can be determined based on the editing contents, thereby collecting the corresponding data to be processed.

[0051] S120: Process the data to be processed based on the target data processing component to obtain target data to be managed in a target data format.

[0052] The target data processing component corresponds to the data management system and is used to process the data to be processed into the data required by the target data management system. For example, the data field required by the target data management system is B and the data format is C. Based on the target data processing component, the data with field B in the data to be processed can be processed into the data to be managed with data format C.

[0053] It should be noted that there are certain differences in the fields and data types required by different data management systems, and different data acquisition systems are provided by different manufacturers, so the collected data formats and data fields are also different. However, the data processing components corresponding to the same data management system can process the data to be processed collected by any data acquisition system in the area.

[0054] Specifically, after determining the target data processing component for processing the data to be processed, the data to be processed may be processed based on the target data processing component to obtain target data to be managed that can be received by the target data management system.

[0055] Optionally, the target data processing component processes the data to be processed to obtain target data to be managed in a target data format, including: when it is detected that the data volume of the data to be processed reaches a preset data volume and / or the time interval between the current moment and the previous historical moment of processing the data to be processed reaches a preset data processing time, the target data processing component is used to convert the data format of the data to be processed to obtain target data to be managed that is consistent with the output format set by the target data component.

[0056] In order to improve the data processing efficiency and resource utilization, the data to be processed may be processed when it is detected that the processing volume or processing cycle of the data to be processed reaches a preset condition.

[0057] Among them, the data volume can be understood as the data volume of the pending data that is currently acquired and has not been processed. The preset data volume refers to the data volume that can be processed. If the preset data volume is 200M, when the data volume of the pending data reaches the preset data volume of 200M, it means that the processing conditions for processing the pending data are met, and the pending data can be processed based on the target data processing component. The preset data processing duration is a pre-set processing cycle for processing the pending data, and optionally, the cycle is one day. The historical moment can be the moment when the pending data was processed last time. The output format is the format required by the data management system when receiving data, that is, no matter which data format the target data processing component processes the pending data, the output is the data to be managed in a unified format, and the format of the data to be managed matches the target data management system.

[0058] Specifically, when it is detected that the amount of data to be processed reaches a preset amount of data, the data to be processed can be processed based on the target data processing component; and / or, when it is detected that the current moment and the previous moment of processing the data to be processed reach a preset processing time, the data to be processed is processed based on the target data processing component to obtain the target data to be managed.

[0059] For example, see Figure 4 , you can set the data volume on the data exchange display interface of the application, such as the data packet size corresponding to control 1. In specific applications, it can be implemented through a task scheduler, which can periodically obtain the data to be processed collected by the pharmacy management system. Users can also set the corresponding data processing component on the login page of the application. Optionally, you can select a store, and determine its corresponding area based on the store, and then determine the corresponding data management system. Of course, you also need to enter your username and password, see Figure 5 .

[0060] Optionally, the data to be processed is processed based on the target data processing component to obtain target data to be managed in a target data format, including: obtaining data to be used by matching the target data list in the target data processing component and the target fields in the data list to be processed; and the data to be used is processed based on the target data component to obtain target data to be managed that is consistent with the output format set by the target data component.

[0061] It should be noted that before the data to be processed is processed into target data to be managed based on the target data processing component, the target field in the data to be processed needs to be matched. This is because the identifier corresponding to the same drug name in the pharmacy management system is not consistent with the data identifier corresponding to the drug administration system. Therefore, before processing the data to be processed, the target field matching process is performed first.

[0062] Among them, the target data list is a list of drug names and data used in the data management system, which includes drug names, identifiers corresponding to drug names, and other data related to drug names. The list of data to be processed refers to a list of data related to drug names in the data acquisition system. The data to be used is the data after the target field is matched and processed. For example, a menu area can be pre-configured, and the name of the item to be configured, that is, the target field, can be displayed in the menu area. The data to be used is the data obtained after the target field is matched and processed. The target data to be managed is the data obtained after processing based on the data processing component.

[0063] Specifically, if the item matching strategy is set in advance in the menu area, the target data list in the target data processing component and the target field of the data list in the data collection system can be matched to obtain the data to be used. Further, based on the data processing component processing the data to be used, the target data to be managed in the format required by the data management system can be obtained.

[0064] S130: Send the target data to be managed to a target data management system corresponding to the target data processing component, so that the target data management system manages and processes the target data to be managed.

[0065] The target data management system is a system that receives the data to be processed. Optionally, after the regional division, the target data management system that processes the data to be processed can be determined.

[0066] Specifically, after the target data to be managed is obtained, the target data to be processed can be sent to the target data management system. At this time, the data received by the target data management system is data consistent with the specifications required by it.

[0067] Optionally, sending the target data to be managed to a target data management system corresponding to the target data processing component includes: sending the target data to be managed to a target data management system corresponding to the target data processing component in real time or periodically.

[0068] Specifically, after obtaining the target data to be managed, it can be sent to the target data management system, that is, sent to the target data management system in real time, or, after obtaining the target data to be processed, determine whether the time between the current moment and the last moment of sending the target management data reaches a cycle. If so, the target data to be managed can be sent to the target data management system, that is, the target data to be processed can be sent to the target data management system periodically.

[0069] Exemplarily, after obtaining the target data to be managed in the format required by the target data management system, the data can be sent to the data management system by uploading the data on the COM component, or directly sent to the target data management system.

[0070] It should be noted that, in order to improve the ease of use for users, the data processing components corresponding to each data management system can be integrated into the application, which can be installed on the terminal. The user can set a "manual exchange" button on the display interface of the terminal application so that the user can report the target data to be managed to the data management system at any time. After combining the manual reporting and automatic reporting methods, the flexibility of data reporting can be improved.

[0071] The technical solution of the embodiment of the present invention obtains the data to be processed and determines the target data processing component for processing the data to be processed from the pre-configured data processing components. The target data to be managed in the target data format can be obtained by processing the data to be processed based on the target data processing component, and then the target data to be managed is sent to the data management system. This solves the technical problem that when the data formats and types recorded by different pharmacy management systems in the prior art do not match the data types required by the data management system of the drug administration bureau, it is necessary to develop program codes corresponding to each pharmacy management system, which results in high development costs and low data efficiency. This realizes that when the data to be processed is obtained, a pre-configured target data processing component matching each data management system can be determined, and then the data to be managed is obtained by processing the data to be processed based on the target data processing component. This improves the convenience of data processing and achieves the technical effect of reducing costs by avoiding the development of multiple sets of program codes.

[0072] Embodiment 2

[0073] Figure 6 A flow chart of a data processing method provided in Embodiment 2 of the present invention. Based on the above embodiments, it is also necessary to configure data processing components that match each data management system so that when the data to be processed is received, the data to be processed can be processed based on the corresponding data processing components. Among them, the technical terms that are the same as or corresponding to the above embodiments are not repeated here.

[0074] like Figure 6 As shown, the method includes:

[0075] S210: For each data management system, determine the data rules corresponding to the current data management system and the data collection format of the corresponding at least one data collection system.

[0076] Among them, the data management system can be a drug supervision management system, and the drug supervision management systems corresponding to different regions are different. At the same time, there are certain differences in the data format and data content required by different drug supervision management systems. Therefore, the data rules of each data management system can be obtained in advance so as to determine the corresponding data processing components according to the data rules. The data rules can be the form and content that the received data must meet, etc. The data acquisition system can be a pharmacy data acquisition system, which mainly collects the associated data corresponding to the names of each drug in its pharmacy. There are multiple manufacturers corresponding to the pharmacy data acquisition system, and there will be certain differences in the data format and data type collected by each manufacturer. Therefore, in order to determine the data processing components that process the data corresponding to each pharmacy data acquisition system into the data required by the data management system, the data rules of each data management system and the acquisition data format collected by each pharmacy data acquisition system can be obtained first.

[0077] It should be noted that, for each drug supervision management system, the method of determining the corresponding data processing component is the same, so this embodiment is introduced by taking the determination of the data processing component corresponding to one of the drug supervision management systems as an example.

[0078] Specifically, the data rules corresponding to the current data management system are obtained, such as which data type and field of data can be received. At the same time, the categories of pharmacy management systems included in the area corresponding to the current data management system are determined, that is, which manufacturers provide each pharmacy management system, and what are the data types, data formats, and data contents collected by the pharmacy management systems provided by each manufacturer, that is, the data collection format.

[0079] S220: Determine data processing components corresponding to each data management system according to the input data type and format corresponding to each data management system and at least one corresponding acquisition data format.

[0080] Specifically, for the current data management system, the data processing component corresponding to the current data management system can be determined according to the input data type and format required by the current data management system and the data collection format corresponding to each data collection system.

[0081] It should be noted that the data currently required by various drug supervision management systems are mostly drug data, supplier data, procurement data, inventory data, shipment data, return data, and inventory data, etc. Among this type of data, it is usually necessary to match drug data and supplier needs. Therefore, based on the above needs, a common interface can be established, and different implementation strategies can be used to meet the data required by different drug supervision management systems. When matching and processing the above data, it is necessary to use scripts in the database to meet the user's personalized needs. The designed database script template editor and general data script executor can write different script templates for different drug supervision data management systems to meet the personalized needs of processing the data to be processed. Among them, the structural diagram of the data processing component can be seen in Figure 7 The general interface implementation logic is to set up a general interface, which can include logic for processing different pharmacy data collection systems. SQL is a writing language. The SQL script template editor and executor can change pre-written statements and determine the specific execution method. For example, after the amount of data to be processed meets the corresponding conditions, the data to be processed can be processed.

[0082] In this embodiment, the data processing components corresponding to each data management system are determined according to the input data type and format corresponding to each data management system, and the corresponding at least one acquisition data format, including: taking the input data type and format as the output of the data processing component to be written, taking the at least one acquisition data format as the input of the data processing component to be written, and processing the data processing components to be written corresponding to each data acquisition system into the data processing components.

[0083] The data processing component to be written is a data processing component that is not assigned any function.

[0084] Specifically, the data type required by the data management system can be used as the input data type and format, the input data type and format can be used as the output of the data processing component to be written, and the data format and type output by each data acquisition system can be used as the input of the data processing component to be written. According to the corresponding input and output, the data processing component matching each data management system can be obtained.

[0085] On the basis of the above-mentioned technical solutions, the method also includes: writing the preset data processing time and preset data volume of each data processing component based on a preset writing language, so as to process the data to be processed when it is detected that the received amount of data to be processed reaches the preset data volume and / or the time interval between the current moment and the previous historical moment for processing the data to be processed reaches the preset processing time.

[0086] Among them, the preset writing language can be SQL language, or C language, and of course, it can also be other languages ​​that can write corresponding logic. The preset data processing time and preset data volume in the data processing component can be set. Optionally, a task scheduler is set, and the task scheduler includes the data processing time and preset data volume. It is also possible to use a flexible execution cycle and number of customization methods to report the target data to be managed to the corresponding data management system at a specified time using a specified data generation strategy. That is, the task caller includes the reporting cycle and reporting method of the target data to be managed.

[0087] Based on S210 to S220, data processing components corresponding to various drug supervision data management systems can be obtained. Each data processing component can be integrated into an application, such as drug supervision docking software, that is, software for docking the pharmacy data collection system and the drug supervision data management system. The drug supervision docking software includes a drug supervision docking system. Figure 8 As shown, the drug supervision docking system includes at least one drug supervision docking component and a task scheduler. Users can configure the corresponding data strategy on the user interface, that is, to which drug supervision bureau the data to be processed needs to be uploaded; the task scheduler can be the upload cycle for uploading the target data to be managed to the drug supervision data management system and the processing cycle for processing the data to be processed; at least one drug supervision docking component (data processing component), and each drug supervision docking component corresponds to a drug supervision data management system.

[0088] S230: Acquire data to be processed, and determine a target data processing component that matches the data to be processed from pre-configured data processing components.

[0089] S240: Process the data to be processed based on the target data processing component to obtain target data to be managed in a target data format.

[0090] S250: Send the target data to be managed to a target data management system corresponding to the target data processing component, so that the target data management system manages and processes the target data to be managed.

[0091] The technical solution of the embodiment of the present invention determines the data processing components matching each data management system by the collected data corresponding to at least one data collection system and the data required by each data management system, so that when the data to be processed is obtained, the target data processing component for processing the data to be processed can be determined from multiple data processing components, so that the data to be processed is processed based on the target data processing component to obtain the target data to be managed and sent to the data management system. This solves the technical problem that when the data format and type recorded by different pharmacy management systems in the prior art do not match the data type required by the data management system of the drug administration bureau, it is necessary to develop program codes corresponding to each pharmacy management system, which has high development costs and low data efficiency. This realizes that when the data to be processed is obtained, the pre-configured target data processing components matching each data management system can be determined, and then the data to be processed is processed based on the target data processing component to obtain the data to be managed, which improves the convenience of data processing and achieves the technical effect of reducing costs by avoiding the development of multiple sets of program codes.

[0092] Embodiment 3

[0093] Fig. 9 This is a schematic diagram of the structure of a data processing device provided by Embodiment 3 of the present invention. Fig. 9 As shown, the device includes: a target data processing component determination module 310, a target to-be-managed data determination module 320 and a target to-be-managed data sending module 330.

[0094] Among them, the target data processing component determination module is used to obtain the data to be processed and determine the target data processing component that matches the data to be processed from the pre-configured data processing components; the target data to be managed determination module is used to process the data to be processed based on the target data processing component to obtain the target data to be managed in the target data format; the target data to be managed sending module is used to send the target data to be managed to the target data management system corresponding to the target data processing component, so that the target data management system manages and processes the target data to be managed; wherein each data processing component is generated according to the data processing rules of the corresponding data management system and the data type of the pre-processed data.

[0095] On the basis of the above technical solutions, the target data processing component module includes:

[0096] The data identification determination unit is used to obtain the data to be processed collected by the data collection system and determine the target data identification of the data to be processed; the target data processing component determination unit is used to determine the target data processing component matching the data to be processed according to the target data identification.

[0097] On the basis of the above-mentioned technical solutions, the target data processing component determination module is used to obtain the data to be processed and determine the target data processing component that matches the data to be processed from the pre-configured data processing components. It is also used to: configure the data source corresponding to each data acquisition system, and acquire the data to be processed based on the data source.

[0098] On the basis of the above-mentioned technical solutions, the target data to be managed determination module is also used for: when it is detected that the data volume of the data to be processed reaches a preset data volume and / or the time interval between the current moment and the previous historical moment for processing the data to be processed reaches a preset data processing time, the data to be processed is converted into a data format based on the target data processing component to obtain the target data to be managed that is consistent with the output format set by the target data component.

[0099] On the basis of the above technical solutions, the target data to be managed determination module includes:

[0100] The data to be used determination unit is used to obtain the data to be used by matching the target data list in the target data processing component and the target field in the data list to be processed; the target data to be managed determination unit is used to process the data to be used based on the target data component to obtain the target data to be managed that is consistent with the output format set by the target data component.

[0101] On the basis of the above technical solutions, the target data to be managed sending module is further used to: send the target data to be managed to the target data management system corresponding to the target data processing component in real time or periodically.

[0102] Based on the above technical solutions, the device also includes: a data processing component determination module, which is used to determine the data processing components that match each data management system, so as to determine the target data processing components that match the data to be processed when receiving the data to be processed.

[0103] Based on the above technical solutions, the data processing component determines the module, including:

[0104] A data acquisition unit is used to determine, for each data management system, the data rules corresponding to the current data management system and the data acquisition format of at least one corresponding data acquisition system; the data processing rules include the input data types and formats processed by the data management system; a data processing component configuration unit is used to determine the data processing components corresponding to each data management system based on the input data types and formats corresponding to each data management system, and the corresponding at least one acquisition data format.

[0105] On the basis of the above-mentioned technical solutions, the data processing component configuration unit is used to use the input data type and format as the output of the data processing component to be written, use the at least one acquisition data format as the input of the data processing component to be written, and process the data processing components to be written corresponding to each data acquisition system into the data processing components.

[0106] On the basis of the above-mentioned technical solutions, the device also includes: a parameter configuration module, which is used to write the preset data processing time and preset data volume of each data processing component based on a preset writing language, so as to process the data to be processed when it is detected that the received amount of data to be processed reaches the preset data volume and / or the time interval between the current moment and the previous historical moment for processing the data to be processed reaches the preset processing time.

[0107] Based on the above technical solutions, the data acquisition system is a pharmacy management system, the data management system is a drug administration bureau data management system, and the data to be processed include at least one of the drug name, inventory data corresponding to the drug name, supplier data corresponding to the drug name, purchase quantity data corresponding to the drug name, shipment quantity data corresponding to the drug name, and return quantity data corresponding to the drug name.

[0108] The technical solution of the embodiment of the present invention obtains the data to be processed and determines the target data processing component for processing the data to be processed from the pre-configured data processing components. The target data to be managed in the target data format can be obtained by processing the data to be processed based on the target data processing component, and then the target data to be managed is sent to the data management system. This solves the technical problem that when the data formats and types recorded by different pharmacy management systems in the prior art do not match the data types required by the data management system of the drug administration bureau, it is necessary to develop program codes corresponding to each pharmacy management system, which results in high development costs and low data efficiency. This realizes that when the data to be processed is obtained, a pre-configured target data processing component matching each data management system can be determined, and then the data to be managed is obtained by processing the data to be processed based on the target data processing component. This improves the convenience of data processing and achieves the technical effect of reducing costs by avoiding the development of multiple sets of program codes.

[0109] The data processing device provided in the embodiment of the present invention can execute the data processing method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.

[0110] It is worth noting that the various units and modules included in the above-mentioned device are only divided according to functional logic, but are not limited to the above-mentioned division, as long as the corresponding functions can be achieved; in addition, the specific names of the functional units are only for the convenience of distinguishing each other, and are not used to limit the protection scope of the embodiments of the present invention.

[0111] Embodiment 4

[0112] Fig.10 A schematic diagram of the structure of an electronic device provided in Embodiment 4 of the present invention. Fig.10 A block diagram of an exemplary electronic device 40 suitable for implementing exemplary embodiments of the present invention is shown. Fig.10 The electronic device 40 shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.

[0113] like Fig.10 As shown, the electronic device 40 is in the form of a general computing device. The components of the electronic device 40 may include but are not limited to: one or more processors or processing units 401, a system memory 402, and a bus 403 connecting different system components (including the system memory 402 and the processing unit 401).

[0114] Bus 403 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processor or a local bus using any of a variety of bus structures. For example, these architectures include but are not limited to Industry Standard Architecture (ISA) bus, Micro Channel Architecture (MAC) bus, Enhanced ISA bus, Video Electronics Standards Association (VESA) local bus and Peripheral Component Interconnect (PCI) bus.

[0115] The electronic device 40 typically includes a variety of computer system readable media. These media can be any available media that can be accessed by the electronic device 40, including volatile and non-volatile media, removable and non-removable media.

[0116] System memory 402 may include computer system readable media in the form of volatile memory, such as random access memory (RAM) 404 and / or cache memory 405. Electronic device 40 may further include other removable / non-removable, volatile / non-volatile computer system storage media. By way of example only, storage system 406 may be used to read and write non-removable, non-volatile magnetic media ( Fig.10 not shown, usually called a "hard drive"). Although Fig.10Not shown in the figure, a disk drive for reading and writing to a removable non-volatile disk (e.g., a "floppy disk"), and an optical disk drive for reading and writing to a removable non-volatile optical disk (e.g., a CD-ROM, a DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to bus 403 via one or more data medium interfaces. Memory 402 may include at least one program product having a set (e.g., at least one) of program modules that are configured to perform the functions of various embodiments of the present invention.

[0117] A program / utility 408 having a set (at least one) of program modules 407 may be stored, for example, in memory 402, such program modules 407 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment. Program modules 407 generally perform the functions and / or methods of the embodiments described herein.

[0118] The electronic device 40 may also communicate with one or more external devices 409 (e.g., keyboards, pointing devices, displays 410, etc.), may communicate with one or more devices that enable a user to interact with the electronic device 40, and / or may communicate with any device that enables the electronic device 40 to communicate with one or more other computing devices (e.g., a network card, a modem, etc.). Such communication may be performed via an input / output (I / O) interface 411. Furthermore, the electronic device 40 may also communicate with one or more networks (e.g., a local area network (LAN), a wide area network (WAN), and / or a public network, such as the Internet) via a network adapter 412. As shown, the network adapter 412 communicates with other modules of the electronic device 40 via the bus 403. It should be understood that although Fig.10 Not shown, other hardware and / or software modules may be used in conjunction with the electronic device 40, including but not limited to microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.

[0119] The processing unit 401 executes various functional applications and data processing by running the programs stored in the system memory 402, such as implementing the data processing method provided by the embodiment of the present invention.

[0120] Embodiment 6

[0121] Embodiment 6 of the present invention further provides a storage medium comprising computer executable instructions, wherein the computer executable instructions are used to execute a data processing method when executed by a computer processor.

[0122] The method includes:

[0123] Acquire data to be processed, and determine a target data processing component that matches the data to be processed from pre-configured data processing components;

[0124] Processing the data to be processed based on the target data processing component to obtain target data to be managed in a target data format;

[0125] Sending the target data to be managed to a target data management system corresponding to the target data processing component, so that the target data management system manages and processes the target data to be managed;

[0126] Among them, each data processing component is generated according to the data processing rules of the corresponding data management system and the data type of the pre-processed data.

[0127] The computer storage medium of the embodiment of the present invention can adopt any combination of one or more computer-readable media. The computer-readable medium can be a computer-readable signal medium or a computer-readable storage medium. The computer-readable storage medium can be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples (non-exhaustive list) of computer-readable storage media include: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this document, a computer-readable storage medium can be any tangible medium containing or storing a program, which can be used by an instruction execution system, device or device or used in combination with it.

[0128] Computer-readable signal media may include data signals propagated in baseband or as part of a carrier wave, which carry computer-readable program code. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device.

[0129] Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.

[0130] Computer program code for performing the operation of embodiments of the present invention may be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" or similar programming languages. The program code may be executed entirely on a user's computer, partially on a user's computer, as an independent software package, partially on a user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0131] Note that the above are only preferred embodiments of the present invention and the technical principles used. Those skilled in the art will understand that the present invention is not limited to the specific embodiments described herein, and that various obvious changes, readjustments and substitutions can be made by those skilled in the art without departing from the scope of protection of the present invention. Therefore, although the present invention has been described in more detail through the above embodiments, the present invention is not limited to the above embodiments, and may include more other equivalent embodiments without departing from the concept of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims

1. A data processing method, characterized in that: include: Acquire data to be processed, and determine a target data processing component that matches the data to be processed from pre-configured data processing components; Processing the data to be processed based on the target data processing component to obtain target data to be managed in a target data format; Sending the target data to be managed to a target data management system corresponding to the target data processing component, so that the target data management system manages and processes the target data to be managed; Wherein, each data processing component is generated according to the data processing rules of the corresponding data management system and the data type of the preprocessed data; The processing of the data to be processed based on the target data processing component to obtain target data to be managed in a target data format includes: When it is detected that the data volume of the data to be processed reaches a preset data volume and / or the time interval between the current moment and the previous historical moment of processing the data to be processed reaches a preset data processing time, the data to be processed is subjected to data format conversion processing based on the target data processing component to obtain target data to be managed that is consistent with the output format set by the target data processing component; wherein the output format is the format required by the target data management system when receiving the data; The target data processing component is a component that processes the data to be processed to obtain the data type required by the target data management system; The data processing method further includes: Determine a data processing component that matches each data management system, so as to determine a target data processing component that matches the data to be processed when receiving the data to be processed; The step of determining the data processing components that match the respective data management systems includes: For each data management system, determine the data processing rules corresponding to the current data management system and the data collection format of at least one corresponding data collection system; the data processing rules include the input data type and format processed by the data management system; According to the input data type and format corresponding to each data management system, and at least one corresponding acquisition data format, the data processing components corresponding to each data management system are determined.

2. The method according to claim 1, characterized in that The step of obtaining the data to be processed and determining a target data processing component matching the data to be processed from pre-configured data processing components includes: Acquire the data to be processed collected by the data collection system, and determine the target data identifier of the data to be processed; According to the target data identifier, a target data processing component matching the data to be processed is determined.

3. The method according to claim 2, characterized in that Before obtaining the data to be processed and determining the target data processing component matching the data to be processed from the pre-configured data processing components, the method further includes: The data sources corresponding to the various data collection systems are configured, and the data to be processed are collected based on the data sources.

4. The method according to claim 1, characterized in that: The processing of the data to be processed based on the target data processing component to obtain target data to be managed in a target data format includes: Obtaining the data to be used by matching the target data list in the target data processing component with the target fields in the list of data to be processed; The data to be used is processed based on the target data processing component to obtain target data to be managed that is consistent with the output format set by the target data processing component.

5. The method according to claim 1, characterized in that The step of sending the target data to be managed to a target data management system corresponding to the target data processing component includes: The target data to be managed is sent in real time or periodically to a target data management system corresponding to the target data processing component.

6. The method according to claim 1, characterized in that The step of determining the data processing components corresponding to each data management system according to the input data type and format corresponding to each data management system and at least one corresponding acquisition data format includes: The input data type and format are used as the output of the data processing component to be written, the at least one acquisition data format is used as the input of the data processing component to be written, and the data processing components to be written corresponding to each data acquisition system are processed into the data processing components.

7. The method according to claim 1, characterized in that Also includes: The preset data processing duration and preset data volume of each data processing component are written based on a preset writing language, so that the data to be processed is processed when it is detected that the received amount of data to be processed reaches the preset data volume and / or the time interval between the current moment and the previous historical moment for processing the data to be processed reaches the preset data processing duration.

8. The method according to any one of claims 1 to 7, characterized in that: The data collection system is a pharmacy data collection system, the data management system is a drug administration data management system, and the data to be processed include at least one of the drug name, inventory data corresponding to the drug name, supplier data corresponding to the drug name, purchase volume data corresponding to the drug name, shipment volume data corresponding to the drug name, and return volume data corresponding to the drug name.

9. A data processing device, characterized in that: include: A target data processing component determination module is used to obtain the data to be processed and determine the target data processing component that matches the data to be processed from the pre-configured data processing components; A target data to be managed determining module, used for processing the data to be processed based on the target data processing component to obtain the target data to be managed in a target data format; A target data to be managed sending module, used for sending the target data to be managed to a target data management system corresponding to the target data processing component, so that the target data management system manages and processes the target data to be managed; Wherein, each data processing component is generated according to the data processing rules of the corresponding data management system and the data type of the preprocessed data; The target data to be managed determination module is further used for: when it is detected that the data volume of the data to be processed reaches a preset data volume and / or the time interval between the current moment and the previous historical moment of processing the data to be processed reaches a preset data processing time, then based on the target data processing component, performing data format conversion processing on the data to be processed to obtain target data to be managed that is consistent with the output format set by the target data processing component; wherein the output format is the format required by the target data management system when receiving data; the target data processing component is a component that processes the data to be processed to obtain the data type required by the target data management system; The data processing device further includes: A data processing component determination module is used to determine the data processing components that match each data management system, so as to determine the target data processing components that match the data to be processed when receiving the data to be processed; The data processing component determination module includes: A data acquisition unit is used to determine, for each data management system, the data processing rules corresponding to the current data management system and the acquisition data format of at least one corresponding data acquisition system; the data processing rules include the input data types and formats processed by the data management system; a data processing component configuration unit is used to determine the data processing components corresponding to each data management system based on the input data types and formats corresponding to each data management system, and the corresponding at least one acquisition data format.

10. An electronic device, characterized in that: The electronic device comprises: one or more processors; a storage device for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors implement the data processing method according to any one of claims 1 to 8.

11. A storage medium comprising computer executable instructions, wherein the computer executable instructions are used to perform the data processing method according to any one of claims 1 to 8 when executed by a computer processor.