Data processing method and device, electronic equipment and storage medium

文档序号:1940013 发布日期:2021-12-07 浏览:15次 中文

阅读说明:本技术 数据处理方法、装置、电子设备及存储介质 (Data processing method and device, electronic equipment and storage medium ) 是由 田金海 于 2021-01-29 设计创作,主要内容包括:本发明实施例提供了一种数据处理方法、装置、电子设备及存储介质,该方法包括:获取待处理数据,从预先配置的各数据处理组件中确定与待处理数据相匹配的目标数据处理组件;基于目标数据处理组件对待处理数据进行处理,得到目标数据格式的目标待管理数据;将目标待管理数据发送至与目标数据处理组件相对应的目标数据管理系统,以使目标数据管理系统对目标待管理数据进行管理处理。本发明实施例的技术方案,解决了现有技术中不同药店管理系统记录的数据格式和类型与药监局数据管理数据不匹配时,需要开发每个药店管理系统对应的程序代码,存在开发成本较高以及数据效率较低的技术问题,实现了对待处理数据处理的便捷性和高效性的技术效果。(The embodiment of the invention provides a data processing method, a data processing device, electronic equipment and a storage medium, wherein the method comprises the following steps: acquiring data to be processed, and determining a target data processing component matched with the data to be processed from all 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; and sending the target data to be managed to a target data management system corresponding to the target data processing assembly so that the target data management system manages and processes the target data to be managed. The technical scheme of the embodiment of the invention solves the technical problems of higher development cost and lower data efficiency caused by the fact that program codes corresponding to each pharmacy management system need to be developed when the data formats and types recorded by different pharmacy management systems are not matched with the pharmacy administration data management data in the prior art, and realizes the technical effects of convenience and high efficiency of data processing to be processed.)

1. A data processing method, comprising:

acquiring data to be processed, and determining a target data processing component matched with the data to be processed from all 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;

and each data processing component is generated according to the data processing rule of the corresponding data management system and the data type of the preprocessed data.

2. The method according to claim 1, wherein the obtaining of the data to be processed and the determining of the target data processing component matching the data to be processed from the pre-configured data processing components comprises:

acquiring data to be processed acquired by a data acquisition system, and determining a target data identifier of the data to be processed;

and determining a target data processing component matched with the data to be processed according to the target data identifier.

3. The method according to claim 2, before the 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, further comprising:

and configuring a data source corresponding to each data acquisition system, and acquiring the data to be processed based on the data source.

4. The method according to claim 1, wherein the 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 comprises:

and when the data volume of the data to be processed reaches a preset data volume and/or the time interval between the current time and the historical time of processing the data to be processed at the previous time reaches a preset data processing time, performing data format conversion processing on the data to be processed based on the target data processing assembly to obtain target data to be managed consistent with the output format set by the target data assembly.

5. The method according to claim 4, wherein the 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 comprises:

obtaining data to be used by matching a target data list in the target data processing assembly and a target field in the data list to be processed;

and processing the data to be used based on the target data component to obtain target data to be managed which is consistent with the output format set by the target data component.

6. The method of claim 1, wherein sending the target data to be managed to a target data management system corresponding to the target data processing component comprises:

and 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.

7. The method of claim 1, further comprising:

and determining data processing components matched with the data management systems, so as to determine target data processing components matched with the data to be processed when the data to be processed is received.

8. The method of claim 7, wherein determining the data processing components that match the respective data management system comprises:

aiming at each data management system, determining a data rule corresponding to the current data management system and a data acquisition format of at least one corresponding data acquisition system; the data processing rule comprises the type and format of input data processed by the data management system;

and determining the data processing components corresponding to the data management systems according to the input data types and formats corresponding to the data management systems and the corresponding at least one acquired data format.

9. The method of claim 8, wherein determining the data processing component corresponding to each data management system according to the input data type and format corresponding to each data management system and the corresponding at least one collected data format comprises:

and taking the input data type and format as the output of a data processing assembly to be compiled, taking the at least one acquired data format as the input of the data processing assembly to be compiled, and processing the data processing assembly to be compiled corresponding to each data acquisition system into the data processing assembly.

10. The method of claim 7, further comprising:

writing preset data processing duration and preset data volume of each data processing assembly based on a preset writing language, and processing the data to be processed when detecting that the received data volume to be processed reaches the preset data volume and/or a duration interval between the current time and the historical time of processing the data to be processed at the previous time reaches the preset processing duration.

11. The method according to any one of claims 1 to 10, wherein 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 includes at least one of a drug name, inventory data corresponding to the drug name, supplier data corresponding to the drug name, purchase amount data corresponding to the drug name, shipment amount data corresponding to the drug name, and return amount data corresponding to the drug name.

12. A data processing apparatus, comprising:

the target data processing component determining module is used for acquiring data to be processed and determining a target data processing component matched with the data to be processed from all pre-configured data processing components;

the target data to be managed determining module is used for processing the data to be processed based on the target data processing assembly to obtain target data to be managed in a target data format;

the target data to be managed sending module is used for sending the target data to be managed to a target data management system corresponding to the target data processing assembly so that the target data management system manages and processes the target data to be managed;

and each data processing component is generated according to the data processing rule of the corresponding data management system and the data type of the preprocessed data.

13. An electronic device, characterized in that the electronic device comprises:

one or more processors;

a storage device for storing one or more programs,

when executed by the one or more processors, cause the one or more processors to implement a data processing method as claimed in any one of claims 1-11.

14. A storage medium containing computer-executable instructions for performing the data processing method of any one of claims 1-11 when executed by a computer processor.

Technical Field

The embodiment of the invention relates to the technical field of computers, in particular to a data processing method and device, electronic equipment and a storage medium.

Background

Currently, a pharmacy management system can record ex-warehouse data, in-warehouse data, supplier data, and the like of each pharmacy. Meanwhile, the pharmacy management system needs to be connected to a corresponding pharmacy monitoring system to send the recorded data to the pharmacy monitoring system, so that the pharmacy monitoring system can manage the data of each pharmacy.

When the present invention is implemented based on the above-described embodiments, the inventors have found that the following problems occur:

the types and fields of data acquired by the pharmacy administration systems in different areas are different to a certain extent, and the data formats recorded by different pharmacy management systems are also different to a large extent. If the data recorded by the pharmacy management system needs to be sent to the corresponding pharmacy administration, program codes matched with the pharmacy administration systems in different areas need to be developed so as to access the pharmacy management system to the corresponding pharmacy administration system, and then the recorded data is sent to the pharmacy administration system and processed, so that the problem of high development cost exists.

Disclosure of Invention

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

In a first aspect, an embodiment of the present invention provides a data processing method, where the method includes:

acquiring data to be processed, and determining a target data processing component matched with the data to be processed from all 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;

and each data processing component is generated according to the data processing rule of the corresponding data management system and the data type of the preprocessed data.

In a second aspect, an embodiment of the present invention further provides a data processing apparatus, where the apparatus includes:

the target data processing component determining module is used for acquiring data to be processed and determining a target data processing component matched with the data to be processed from all pre-configured data processing components;

the target data to be managed determining module is used for processing the data to be processed based on the target data processing assembly to obtain target data to be managed in a target data format;

the target data to be managed sending module is used for sending the target data to be managed to a target data management system corresponding to the target data processing assembly so that the target data management system manages and processes the target data to be managed;

and each data processing component is generated according to the data processing rule of the corresponding data management system and the data type of the preprocessed data.

In a third aspect, an embodiment of the present invention further provides an electronic device, where the electronic device includes:

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 the embodiments of the present invention.

In a fourth aspect, the embodiments of the present invention further provide a storage medium containing computer-executable instructions, which when executed by a computer processor, are used for executing the data processing method according to any one of the embodiments of the present invention.

According to the technical scheme of the embodiment of the invention, the target data processing assembly for processing the data to be processed is determined from the pre-configured data processing assemblies, the data to be processed is processed based on the target data processing assembly, the target data to be managed in the target data format can be obtained, and then the target data to be managed is sent to the data management system, so that the technical problems that when the data formats and types recorded by different pharmacy management systems in the prior art are not matched with the data types required by the pharmacy administration data management system, program codes corresponding to each pharmacy management system need to be developed, the development cost is higher and the data efficiency is lower are solved, the pre-configured target data processing assemblies matched with each data management system can be determined when the data to be processed is obtained, and the data to be managed is further processed based on the target data processing assembly, the data processing convenience is improved, and the technical effect of reducing the cost is realized due to the fact that development of multiple sets of program codes is avoided.

Drawings

In order to more clearly illustrate the technical solutions of the exemplary embodiments of the present invention, a brief description is given below of the drawings used in describing the embodiments. It should be clear that the described figures are only views of some of the embodiments of the invention to be described, not all, and that for a person skilled in the art, other figures can be derived from these figures without inventive effort.

Fig. 1 is a schematic flow chart of a data processing method according to an embodiment of the present invention;

FIG. 2 is a schematic structural diagram of a data processing system for executing a data processing method according to an embodiment of the present invention;

fig. 3 is a schematic interface diagram of a data source determination method according to an embodiment of the present invention;

FIG. 4 is a schematic diagram of an interface for setting a task execution period and a data size according to an embodiment of the present invention;

FIG. 5 is a schematic diagram of a user interface according to an embodiment of the present invention;

fig. 6 is a schematic flow chart illustrating a data processing method according to a second embodiment of the present invention;

fig. 7 is a schematic structural diagram of a data processing assembly according to a third embodiment of the present invention;

fig. 8 is a schematic structural diagram of a drug monitoring and docking system according to a second embodiment of the present invention;

fig. 9 is a schematic structural diagram of a data processing apparatus according to a third embodiment of the present invention;

fig. 10 is a schematic structural diagram of an electronic device according to a fourth embodiment of the present invention.

Detailed Description

The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.

Example one

Fig. 1 is a schematic flow chart of a data processing method according to an embodiment of the present invention, where the embodiment is applicable to a case where collected data to be processed is processed into data to be managed that matches a corresponding data management system, and the method may be executed by a data processing apparatus, where the apparatus may be implemented in the form of software and/or hardware, where the hardware may be an electronic device, and the electronic device may be a mobile terminal, a PC terminal, or the like. The execution of the technical scheme can be executed by the server, the terminal equipment or the cooperation of the server and the terminal equipment.

Before the technical solution of the present embodiment is described, a data processing system framework for executing the technical solution is exemplarily described. Referring to fig. 2, the system includes a data collection subsystem (pharmacy data collection system) for recording data of each pharmacy, such as one or more of a medicine name, a medicine identifier corresponding to the medicine name, inventory data corresponding to the medicine name, supplier data corresponding to the medicine name, purchase amount data corresponding to the medicine name, shipment amount data corresponding to the medicine name, and return amount data corresponding to the medicine name. And the data processing component subsystem (a drug administration docking system), namely a drug store data acquisition system and a drug administration data management system. The data processing component subsystem comprises a plurality of data processing components, each data processing component corresponds to the data management system one by one and is used for acquiring data to be processed acquired by each data acquisition subsystem and further processing the data to be processed. And the data management system (the drug administration data management system) is used for receiving the data to be managed processed by the corresponding data processing component.

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

As shown in fig. 1, the method includes:

s110, acquiring data to be processed, and determining a target data processing component matched with the data to be processed from all pre-configured data processing components.

The data that needs to be processed currently can be used as the data to be processed. The data processing components are generated according to data processing rules of the data management systems and data types of the preprocessed data. The pre-processed data type is the format and type of data collected by the data collection system. The pre-processing data type comprises the data type of the data to be processed. The target data processing component is a component for processing 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 components are matched with the respective data management systems, the target data processing components correspond to the respective target data management systems.

Specifically, the to-be-processed data acquired by each data acquisition system, such as inventory data corresponding to the medicament name, may be acquired at regular time or in real time. After the data to be processed is obtained, a target data processing assembly matched with the data to be processed can be determined from the pre-configured data processing assemblies.

For example, at the time of 00:00 of each day, to-be-processed data acquired by each data acquisition system is acquired, and at this time, if the data management system for processing the to-be-processed data is determined to be a, a target data processing component a' matched with the data management system may be determined.

In this embodiment, the determining of the target data processing component for processing the data to be processed may be: the acquiring of the data to be processed and the determining of the target data processing component matched with the data to be processed from the pre-configured data processing components comprise: acquiring data to be processed acquired by a data acquisition system, and determining a target data identifier of the data to be processed; and determining a target data processing component matched with the data to be processed according to the target data identifier.

The data acquisition system can be a pharmacy management system used by each pharmacy. Each pharmacy management system may be a pre-developed application that may be installed on a terminal, such as a PC terminal and/or a mobile terminal. The data acquisition system may record all data related to the pharmacy, optionally, incoming data, outgoing data, inventory energy data, and the like. The target data identifier may be an identifier corresponding to a data management system that processes the data to be processed, or may be an identifier that represents which data processing component corresponding to the data management system needs to process the data to be processed.

It should be noted that, the data management systems (drug administration data management systems) corresponding to different areas are different, and accordingly, the data formats and data contents received by the data management systems are different, so that the data processing components corresponding to the data management systems are different.

Specifically, the to-be-processed data acquired by the data acquisition system can be acquired in a timed or real-time manner, and the target data identifier in the to-be-processed data is determined. According to the target data identification, a 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 with the target data management system, a target data processing component corresponding to the target data management system may be determined, so that the target data processing component may process the data to be processed to obtain the target data to be managed received by the target data management system.

It should be noted that, before the acquiring data to be processed and determining a target data processing component matched with the data to be processed from pre-configured data processing components, the method further includes: and configuring a data source corresponding to each data acquisition system, and acquiring the data to be processed based on the data source.

Each pharmacy can correspond to one data acquisition system, or a plurality of pharmacies correspond to one data acquisition system, so that before the data acquisition system acquires data, a data source can be configured, that is, a service from which to-be-processed data is acquired is configured.

Specifically, the data sources that each data acquisition system can acquire may be preset, for example, which servers, ports, and data sources corresponding to names may be acquired, and the data to be processed may be acquired based on the data sources.

For example, the data source that the data acquisition system can acquire may be data in a local database, that is, data in a client to which software corresponding to the data acquisition system belongs, or data in a remote database, for example, a database that is bound to the data acquisition system in advance. The data sources that can be acquired by the data acquisition system can be configured in advance, the schematic interface diagram of the configuration is shown in fig. 3, corresponding editing contents can be edited in the content editing controls corresponding to the names, types, servers, ports, users, passwords and databases of the data sources respectively, the data sources that can be acquired by the data acquisition system can be determined according to the editing contents, and therefore corresponding data to be processed can be acquired.

And S120, 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.

The target data processing component corresponds to the data management system and is used for processing the data to be processed into the data required by the target data management system. For example, the target data management system may need a data field B and a data format C, and the target-based data processing component may process the data with the field B in the data to be processed into the data to be managed with the data format C.

It should be noted that fields and data types required by different data management systems are different, and different data acquisition systems are provided by different manufacturers, so that the acquired data formats and data fields are different, but a data processing component corresponding to the same data management system can process data to be processed acquired by any data acquisition system in the area.

Specifically, after the target data processing component for processing the data to be processed is determined, the data to be processed may be processed based on the target data processing component, so as to obtain the target data to be managed that may be received by the target data management system.

Optionally, the 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 includes: and when the data volume of the data to be processed reaches a preset data volume and/or the time interval between the current time and the historical time of processing the data to be processed at the previous time reaches a preset data processing time, performing data format conversion processing on the data to be processed based on the target data processing assembly to obtain target data to be managed consistent with the output format set by the target data assembly.

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

The data volume may be understood as a data volume of to-be-processed data that is currently acquired and is not processed. The preset data amount refers to a data amount that can process data. If the preset data volume is 200M, when the data volume of the data to be processed reaches the preset data volume 200M, it indicates that the processing condition for processing the data to be processed is reached, and at this time, the data to be processed may be processed based on the target data processing component. The preset data processing duration is a preset processing period for processing the data to be processed, and optionally, the period is one day. The historical time may be the time when the data to be processed was processed the previous time. The output format is a format required by the data management system when receiving data, namely, the target data processing assembly outputs the data to be managed with uniform format no matter which data format is processed, and the format of the data to be managed is matched with the target data management system.

Specifically, when it is detected that the data volume of the acquired to-be-processed data reaches a preset data volume, the to-be-processed data can be processed based on the target data processing assembly; and/or when the current time and the previous time for processing the data to be processed are detected to reach the preset processing duration, processing the data to be processed based on the target data processing assembly to obtain the target data to be managed.

For example, referring to fig. 4, the size of the data amount, for example, the size of the data packet corresponding to control 1, may be set on the data exchange display interface of the application program. The method can be realized through a task scheduler in specific application, and the task scheduler can periodically acquire the to-be-processed data collected by the pharmacy management system. The user can also set the corresponding data processing component in the login page of the application program, optionally, a shop can be selected, the corresponding area can be determined according to the shop, and then the corresponding data management system is determined. Of course, a user name and password also need to be entered, see fig. 5.

Optionally, the 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 includes: obtaining data to be used by matching a target data list in the target data processing assembly and a target field in the data list to be processed; and processing the data to be used based on the target data component to obtain target data to be managed which is consistent with the output format set by the target data component.

It should be noted that, before the data to be processed is processed into the 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, because the identifier corresponding to the same drug name in the pharmacy management system is not uniform with the data identifier corresponding to the same drug name in the pharmacy administration system, and therefore, before the data to be processed is processed, the target field matching process is performed.

The target data list is a list of drug names and data used in the data management system, and the list includes drug names, identifiers corresponding to the drug names, other data related to the drug names, and the like. The list of data to be processed refers to the list of data in the data acquisition system related to the name of the medicament. The data to be used is the data after the matching processing of the target field, for example, a menu area can be configured in advance, and the name of the article to be configured, that is, the target field, can be displayed in the menu area. The data to be used is data obtained after the target field is matched. The target data to be managed is based on data obtained after processing by the data processing component.

Specifically, if an article matching policy is set in the menu area in advance, matching processing may be performed on a target data list in the target data processing component and a target field of a data list of the data to be processed in the data acquisition system, so as to obtain the data to be used. Further, the data to be used is processed based on the data processing component, and the target data to be managed in the format required by the data management system can be obtained.

S130, 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 the target data management system is a system that receives data to be processed. Optionally, after the area division, a target data management system for processing the data to be processed may be determined.

Specifically, after the target data to be managed is obtained, the target data to be processed may be sent to the target data management system, where the data received by the target data management system is data consistent with the required specification.

Optionally, the sending the target data to be managed to a target data management system corresponding to the target data processing component includes: and 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.

Specifically, after the target data to be managed is obtained, the target data to be managed can be sent to the target data management system, that is, the target data management system is sent in real time, or after the target data to be processed is obtained, whether the time length between the current time and the previous time when the target management data is sent reaches a period is determined, and if the time length reaches the period, the target data to be managed can be sent to the target data management system, that is, the target data to be processed is sent to the target data management system periodically.

For example, after the target data to be managed in the format required by the target data management system is obtained, the data on the COM component may be uploaded and sent to the data management system, or the data may be directly sent to the target data management system.

In order to improve usability for the user, the data processing components corresponding to the respective data management systems may be integrated into an application program, and the application program may be installed in a terminal. The user can set a 'manual exchange' key on the display interface of the application program of the terminal, so that the user can report the target data to be managed to the data management system at any time. After the manual reporting mode and the automatic reporting mode are combined together, the flexibility of data reporting can be improved.

According to the technical scheme of the embodiment of the invention, the target data processing assembly for processing the data to be processed is determined from the pre-configured data processing assemblies, the data to be processed is processed based on the target data processing assembly, the target data to be managed in the target data format can be obtained, and then the target data to be managed is sent to the data management system, so that the technical problems that when the data formats and types recorded by different pharmacy management systems in the prior art are not matched with the data types required by the pharmacy administration data management system, program codes corresponding to each pharmacy management system need to be developed, the development cost is higher and the data efficiency is lower are solved, the pre-configured target data processing assemblies matched with each data management system can be determined when the data to be processed is obtained, and the data to be managed is further processed based on the target data processing assembly, the data processing convenience is improved, and the technical effect of reducing the cost is realized due to the fact that development of multiple sets of program codes is avoided.

Example two

Fig. 6 is a flowchart illustrating a data processing method according to a second embodiment of the present invention. On the basis of the foregoing embodiment, it is further necessary to configure data processing components matched with the respective data management systems, so that when receiving data to be processed, the data to be processed can be processed based on the corresponding data processing components. The technical terms that are the same as or corresponding to the above embodiments are not repeated herein.

As shown in fig. 6, the method includes:

s210, aiming at each data management system, determining a data rule corresponding to the current data management system and a data acquisition format of at least one corresponding data acquisition system.

The data management system can be a medicine administration management system, and the medicine administration management systems corresponding to different areas are different. Meanwhile, different medicine administration management systems have certain differences in required data formats and data contents. Therefore, the data rule of each data management system may be acquired in advance so as to determine the corresponding data processing component according to the data rule. The data rules may be the form and content, etc., that the received data needs to satisfy. The data acquisition system can be a pharmacy data acquisition system and mainly acquires associated data corresponding to the names of various medicaments in a pharmacy. The pharmacy data acquisition systems can correspond to a plurality of manufacturers, and the data formats and data types acquired by each manufacturer have certain differences, so that the data rules of each data management system and the acquired data formats acquired by each pharmacy data acquisition system can be acquired before data corresponding to each pharmacy data acquisition system is processed into data processing components of data required by the data management system.

It should be noted that, for each medication administration system, the manner of determining the data processing component corresponding to the medication administration system is the same, so the present embodiment is described by taking the determination of the data processing component corresponding to one of the medication administration systems as an example.

Specifically, the data rule corresponding to the current data management system is obtained, for example, which data type data can only be received, which field data, and the like. Meanwhile, the type of the pharmacy management system included in the area corresponding to the current data management system is determined, that is, which manufacturers each pharmacy management system provides, what the data type, data format, and data content of the pharmacy management system provided by each manufacturer are, that is, the data acquisition format.

S220, determining data processing components corresponding to the data management systems according to the input data types and formats corresponding to the data management systems and at least one corresponding acquired data format.

Specifically, for the current data management system, the data processing component corresponding to the current data management system may be determined according to the type and format of input data required by the current data management system and the data acquisition format corresponding to each data acquisition system.

It should be noted that, most of the data required by the present medication administration and management systems are medicine data, supplier data, purchase data, inventory data, shipment data, return quantity data, inventory data, and the like. In such data, it is often necessary to match the drug data with the supplier needs. Therefore, based on the above requirements, a universal interface can be established, and different implementation strategies can be used for meeting the data required by different drug administration management systems. When the data are matched, the user personalized requirements need to be met through scripts in the database, and different script templates can be compiled for different drug administration data management systems by the designed database script template editor and the universal data script executor so as to meet the personalized requirements for processing the data to be processed. The schematic structural diagram of the data processing assembly can be seen in fig. 7. The general interface implementation logic is to set a general interface, which may include logic to process different pharmacy data acquisition systems. SQL is a programming language, and the SQL script template editor and executor may modify pre-programmed statements and determine the specific execution mode of execution, for example, after the amount of data to be processed satisfies the corresponding condition, may execute processing on the data to be processed.

In this embodiment, the determining, according to the input data type and format corresponding to each data management system and the corresponding at least one collected data format, a data processing component corresponding to each data management system includes: and taking the input data type and format as the output of a data processing assembly to be compiled, taking the at least one acquired data format as the input of the data processing assembly to be compiled, and processing the data processing assembly to be compiled corresponding to each data acquisition system into the data processing assembly.

Wherein, the data processing component to be written is a data processing component without any function.

Specifically, the data type required by the data management system may be used as the input data type and format, the input data type and format may be used as the output of the data processing component to be compiled, and the data format and type output by each data acquisition system may be used as the input of the data processing component to be compiled. Based on the corresponding inputs and outputs, data processing components that match the respective data management systems are available.

On the basis of the above technical solutions, the method further includes: writing preset data processing duration and preset data volume of each data processing assembly based on a preset writing language, and processing the data to be processed when detecting that the received data volume to be processed reaches the preset data volume and/or a duration interval between the current time and the historical time of processing the data to be processed at the previous time reaches the preset processing duration.

The preset writing language may be SQL language, C language, or other languages that can write corresponding logic. The preset data processing duration and the preset data volume in the data processing component can be set, and optionally, a task scheduler is set, wherein the task scheduler comprises the data processing duration and the preset data volume. Or, the target data to be managed is reported to the corresponding data management system by using the specified generated data strategy at the specified time in a flexible execution cycle and frequency customization mode. That is, the task invoker includes a reporting period and a reporting mode of the target data to be managed.

Based on S210 to S220, data processing components corresponding to the respective drug administration data management systems can be obtained. The data processing components may be integrated into an application, such as a drugstore docking software, i.e., a software that interfaces a drugstore data collection system and a drugstore data management system, including a drugstore docking system. As shown in fig. 8, the druggy docking system includes at least one druggy docking component and a task scheduler, and a user can configure a corresponding data policy on a user interface, that is, to which druggy bureau data to be processed needs to be uploaded; the task scheduler can be an uploading period for uploading target data to be managed to the drug monitoring data management system and a processing period for processing the data to be processed; at least one drug administration interface component (data processing component), each drug administration interface component corresponds to a drug administration data management system.

And S230, acquiring data to be processed, and determining a target data processing component matched with the data to be processed from the pre-configured data processing components.

S240, processing the data to be processed based on the target data processing assembly to obtain target data to be managed in a target data format.

And S250, 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.

According to the technical scheme of the embodiment of the invention, the data processing component matched with each data management system is determined by the acquired data corresponding to at least one data acquisition system and the data required by each data management system, so that when the data to be processed is acquired, the target data processing component for processing the data to be processed can be determined from the plurality of data processing components, the data to be processed is processed based on the target data processing component, the target data to be managed which is sent to the data management system is obtained, the technical problems that when the data formats and types recorded by different pharmacy management systems are not matched with the data types required by the pharmacy bureau data management system in the prior art, the program code corresponding to each pharmacy management system needs to be developed, the development cost is high and the data efficiency is low are solved, and when the data to be processed is acquired, the target data processing components which are configured in advance and matched with the data management systems can be determined, and then the data to be processed are processed based on the target data processing components to obtain the data to be managed, so that the convenience of data processing is improved, and the technical effect of reducing the cost is realized due to the fact that multiple sets of program codes are prevented from being developed.

EXAMPLE III

Fig. 9 is a schematic structural diagram of a data processing apparatus according to a third embodiment of the present invention. As shown in fig. 9, the apparatus includes: a target data processing component determining module 310, a target data to be managed determining module 320, and a target data to be managed sending module 330.

The target data processing component determining module is used for acquiring data to be processed and determining a target data processing component matched with the data to be processed from all pre-configured data processing components; the target data to be managed determining module is used for processing the data to be processed based on the target data processing assembly to obtain target data to be managed in a target data format; the target data to be managed sending module is used for sending the target data to be managed to a target data management system corresponding to the target data processing assembly so that the target data management system manages and processes the target data to be managed; and each data processing component is generated according to the data processing rule of the corresponding data management system and the data type of the preprocessed data.

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

the data identification determining unit is used for acquiring to-be-processed data acquired by a data acquisition system and determining a target data identification of the to-be-processed data; and the target data processing component determining unit is used for determining a target data processing component matched with the data to be processed according to the target data identifier.

On the basis of the above technical solutions, before the target data processing component determining module is configured to obtain data to be processed and determine a target data processing component matching the data to be processed from pre-configured data processing components, the target data processing component determining module is further configured to: and configuring a data source corresponding to each data acquisition system, and acquiring the data to be processed based on the data source.

On the basis of the above technical solutions, the target data to be managed determination module is further configured to: and when the data volume of the data to be processed reaches a preset data volume and/or the time interval between the current time and the historical time of processing the data to be processed at the previous time reaches a preset data processing time, performing data format conversion processing on the data to be processed based on the target data processing assembly to obtain target data to be managed consistent with the output format set by the target data assembly.

On the basis of the above technical solutions, the target data to be managed determining module includes:

the data to be used determining unit is used for obtaining data to be used by matching a target data list in the target data processing assembly and a target field in the data list to be processed; and the target data to be managed determining unit is used for processing the data to be used based on the target data component to obtain the target data to be managed consistent with the output format set by the target data component.

On the basis of the above technical solutions, the target to-be-managed data sending module is further configured to: and 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.

On the basis of the above technical solutions, the apparatus further includes: and the data processing component determining module is used for determining the data processing components matched with the data management systems so as to determine the target data processing components matched with the data to be processed when the data to be processed is received.

On the basis of the above technical solutions, the data processing component determining module includes:

the data acquisition unit is used for determining a data rule corresponding to the current data management system and an acquisition data format of at least one corresponding data acquisition system aiming at each data management system; the data processing rule comprises the type and format of input data processed by the data management system; and the data processing component configuration unit is used for determining the data processing components corresponding to the data management systems according to the input data types and formats corresponding to the data management systems and at least one corresponding acquired data format.

On the basis of the above technical solutions, the data processing component configuration unit is configured to use the input data type and format as output of a data processing component to be compiled, use the at least one collected data format as input of the data processing component to be compiled, and process the data processing component to be compiled corresponding to each data collection system into the data processing component.

On the basis of the above technical solutions, the apparatus further includes: and the parameter configuration module is used for compiling the preset data processing time length and the preset data volume of each data processing assembly based on a preset compiling language so as to process the data to be processed when detecting that the received data volume to be processed reaches the preset data volume and/or the time length interval between the current time and the historical time of processing the data to be processed at the previous time reaches the preset processing time length.

On the basis of the technical schemes, the data acquisition system is a pharmacy management system, the data management system is a drug administration data management system, and the data to be processed comprises at least one of a medicament name, inventory data corresponding to the medicament name, supplier data corresponding to the medicament name, purchase quantity data corresponding to the medicament name, shipment quantity data corresponding to the medicament name and return quantity data corresponding to the medicament name.

According to the technical scheme of the embodiment of the invention, the target data processing assembly for processing the data to be processed is determined from the pre-configured data processing assemblies, the data to be processed is processed based on the target data processing assembly, the target data to be managed in the target data format can be obtained, and then the target data to be managed is sent to the data management system, so that the technical problems that when the data formats and types recorded by different pharmacy management systems in the prior art are not matched with the data types required by the pharmacy administration data management system, program codes corresponding to each pharmacy management system need to be developed, the development cost is higher and the data efficiency is lower are solved, the pre-configured target data processing assemblies matched with each data management system can be determined when the data to be processed is obtained, and the data to be managed is further processed based on the target data processing assembly, the data processing convenience is improved, and the technical effect of reducing the cost is realized due to the fact that development of multiple sets of program codes is avoided.

The data processing device provided by the embodiment of the invention can execute the data processing method provided by any embodiment of the invention, and has corresponding functional modules and beneficial effects of the execution method.

It should be noted that, the units and modules included in the apparatus are merely divided according to functional logic, but are not limited to the above division as long as the corresponding functions can be implemented; in addition, specific names of the functional units are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the embodiment of the invention.

Example four

Fig. 10 is a schematic structural diagram of an electronic device according to a fourth embodiment of the present invention. FIG. 10 illustrates a block diagram of an exemplary electronic device 40 suitable for use in implementing embodiments of the present invention. The electronic device 40 shown in fig. 10 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiment of the present invention.

As shown in fig. 10, electronic device 40 is embodied in the form of a general purpose computing device. The components of 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 that couples the various system components (including the system memory 402 and the processing unit 401).

Bus 403 represents one or more of any of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, and a processor or local bus using any of a variety of bus architectures. By way of example, such 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.

Electronic device 40 typically includes a variety of computer system readable media. Such media may be any available media that is accessible by electronic device 40 and includes both volatile and nonvolatile media, removable and non-removable media.

The 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. The electronic device 40 may further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, storage system 406 may be used to read from and write to non-removable, nonvolatile magnetic media (not shown in FIG. 10, and commonly referred to as a "hard drive"). Although not shown in FIG. 10, a magnetic disk drive for reading from and writing to a removable, nonvolatile magnetic disk (e.g., a "floppy disk") and an optical disk drive for reading from or writing to a removable, nonvolatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to the bus 403 by one or more data media 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 carry out the functions of embodiments of the invention.

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 examples or some combination thereof may comprise an implementation of a network environment. Program modules 407 generally perform the functions and/or methods of the described embodiments of the invention.

The electronic device 40 may also communicate with one or more external devices 409 (e.g., keyboard, pointing device, display 410, etc.), with one or more devices that enable a user to interact with the electronic device 40, and/or with any devices (e.g., network card, modem, etc.) that enable the electronic device 40 to communicate with one or more other computing devices. Such communication may be through input/output (I/O) interface 411. Also, the electronic device 40 may 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 the network adapter 412. As shown, the network adapter 412 communicates with the other modules of the electronic device 40 over the bus 403. It should be appreciated that although not shown in FIG. 10, other hardware and/or software modules may be used in conjunction with 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, among others.

The processing unit 401 executes various functional applications and data processing, for example, implementing a data processing method provided by an embodiment of the present invention, by executing a program stored in the system memory 402.

EXAMPLE six

An embodiment of the present invention also provides a storage medium containing computer-executable instructions, which when executed by a computer processor, perform a data processing method.

The method comprises the following steps:

acquiring data to be processed, and determining a target data processing component matched with the data to be processed from all 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;

and each data processing component is generated according to the data processing rule of the corresponding data management system and the data type of the preprocessed data.

Computer storage media for embodiments of the invention may employ any combination of one or more computer-readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, 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 disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.

A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.

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.

Computer program code for carrying out operations for embodiments of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).

It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

20页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:消息轮次的确定方法和装置

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!