Disclosure of Invention
Based on the above, the invention aims to provide a data acquisition method and system for multiple devices, which are used for solving the problems that in the prior art, when the types and the number of information display devices are increased, a large number of new devices are accessed to cause great performance pressure on the existing database service, and the database service has insufficient resources, resource congestion and the like.
The invention provides a data acquisition system for multiple devices, which comprises a data storage module, a data acquisition scheduling module and a data sharing module;
the data storage module is used for storing patient data to construct a source database, wherein the patient data comprises electronic medical records;
the data acquisition scheduling module comprises a plurality of collectors and schedulers, each scheduler is used for being responsible for counting and dynamically distributing one or more designated collectors and executing internal acquisition logic preset by the collectors to generate a preset data model result, the data acquisition scheduling module is used for reading patient data in a source database, each collector corresponds to a classification standard to classify the read patient data and write the classified patient data into the data sharing module, each collector corresponds to one type of patient data, each type of patient data comprises patient individual data or all patient data in the same disease area, and a data acquisition scheduling pool is constructed through the schedulers and the collectors to perform data scheduling;
the data sharing module is used for receiving the patient data read in by the data acquisition scheduling module and providing a shared data pool for acquiring data for all terminal devices so that each terminal device can acquire the data through the data sharing module;
wherein, in the data acquisition scheduling module, the scheduler includes:
a shared data counter for collecting the called times of different data sets in unit time;
the dynamic distributor is used for dynamically adjusting the frequency of the collector according to the data of the shared data counter;
the time sequence executor is used for executing the internal collection logic preset by the collector according to the preset time interval of the collector or the time interval dynamically adjusted by the dynamic distributor, and generating a preset data model result.
The invention also provides a data acquisition method for multiple devices, which is applied to the data acquisition scheduling module in the data acquisition system for multiple devices, and comprises the following steps:
acquiring a plurality of patient data, dividing the patient data according to patient attributes to obtain a plurality of collectors, wherein each collector corresponds to a data acquisition standard, the patient attributes comprise a patient department, a patient ward and a patient bed number, each collector comprises a data item, and each data item at least comprises one patient data;
and constructing a data acquisition scheduling pool by the collector to perform data scheduling.
In addition, the data acquisition method for multiple devices according to the present invention may further have the following additional technical features:
further, the step of dividing the patient data to obtain a number of collectors comprises:
dividing the patient data according to the individual patients to obtain a plurality of collectors, wherein each collector corresponds to one patient data.
Further, the step of dividing the patient data to obtain a number of collectors comprises:
the patient data is partitioned according to patient ward to obtain a plurality of collectors, each collector including a plurality of patient data.
Further, the step of dividing the patient data to obtain a plurality of collectors may be preceded by:
acquiring registration information, adding collectors according to the registration information, wherein the registration information comprises preset execution time intervals, and each collector is preset with different execution time intervals;
executing respective operation logic by different collectors according to preset execution time intervals to output the collected patient data as different results so as to be stored in a data sharing module;
wherein, in the step of outputting the acquired patient data as different results:
and outputting the acquired patient data into different results according to respective preset execution time intervals.
Another aspect of the present invention provides a data acquisition method for multiple devices, which is applied to the data sharing module in the data acquisition system for multiple devices, and the data acquisition method for multiple devices includes:
acquiring patient data in combination with a collector to construct a data sharing pool from the patient data;
and classifying the patient data by the collector to obtain multiple types of patient data so as to provide the corresponding types of patient data according to the terminal request.
In addition, the data acquisition method for multiple devices according to the present invention may further have the following additional technical features:
further, the step of acquiring patient data in conjunction with the collector to construct a data sharing pool from the patient data includes:
the data corresponding to each collector independently exist in the data sharing pool.
Further, the step of classifying the patient data by the collector to obtain a plurality of types of patient data to provide the corresponding types of patient data according to the terminal request includes:
the same type of data request can only be requested a single time to reduce the resource consumption of the source database service.
According to the data acquisition method and system for the multiple devices, the data storage module, the data acquisition scheduling module and the data sharing module are arranged and used for storing and scheduling data, and then data sharing is provided, so that when a terminal needs to acquire the data, the data acquisition scheduling module can be communicated through the data sharing module, the acquisition of target data is realized, the device only needs to access the data sharing module, the acquisition of resources can be realized through the data sharing module, the processing pressure of a database on the data is greatly reduced, the conditions of insufficient resources and resource congestion of the database service are avoided, and the problems that a large number of new devices are connected to the existing database service to cause great performance pressure when the types and the number of information display devices are increased in the prior art are solved.
Detailed Description
In order that the invention may be readily understood, a more complete description of the invention will be rendered by reference to the appended drawings. Several embodiments of the invention are presented in the figures. This invention may, however, be embodied in many different forms and should not be construed as limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete.
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs. The terminology used herein in the description of the invention is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. The term "and/or" as used herein includes any and all combinations of one or more of the associated listed items.
In order to solve the problems that when the types and the number of information display devices are increased in the prior art, a large amount of new devices are connected to cause great performance pressure on the existing database service, the database service has insufficient resources, resource congestion and the like.
In order to facilitate an understanding of the invention, several embodiments of the invention will be presented below. This invention may, however, be embodied in many different forms and should not be construed as limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete.
Example 1
A first embodiment of the present invention provides a data acquisition system for multiple devices, the system comprising:
and the data storage module is used for storing patient data to construct a source database, and the patient data comprises electronic medical records.
The data acquisition scheduling module comprises a plurality of collectors and schedulers, each scheduler is used for being responsible for counting and dynamically distributing one or more designated collectors and executing internal acquisition logic preset by the collectors to generate a preset data model result, the data acquisition scheduling module is used for reading patient data in a source database, each collector corresponds to a classification standard to classify the read patient data and write the classified patient data into the data sharing module, each collector corresponds to one type of patient data, each type of patient data comprises patient individual data or all patient data in the same disease area, and a data acquisition scheduling pool is constructed through the schedulers and the collectors to perform data scheduling.
And the data sharing module is used for receiving the patient data read in by the data acquisition scheduling module and providing a shared data pool for acquiring data for all the terminal devices so that each terminal device can acquire the data through the data sharing module.
Wherein, in the data acquisition scheduling module, the scheduler comprises a shared data counter, a dynamic distributor and a timing executor.
And the shared data counter is used for collecting the called times of different data sets in unit time.
And the dynamic distributor is used for dynamically adjusting the frequency of the collector according to the data of the shared data counter. Specifically, up-and-down adjustment is performed according to a preset time interval of the collector. For example, the number of times data of a collector is used is very concentrated in a certain time period, which means that the requirement on the real-time property of the data is high, and the dynamic distributor shortens the execution time interval of the collector in the time sequence executor. Otherwise, when the data request times in unit time are reduced, the real-time requirement on the data is indicated as common, the frequency of the collector is adjusted to be a preset time interval, and the system resource expenditure is saved.
The time sequence executor is used for executing the internal collection logic preset by the collector according to the preset time interval of the collector or the time interval dynamically adjusted by the dynamic distributor, and generating a preset data model result.
As a specific example, please refer to fig. 1, a certain data classification rule is confirmed according to the data information to be displayed by the hospital equipment, and the classification rule is added into the data collection scheduling pool, namely, the data collection scheduling module;
executing classification rules in the data acquisition scheduling pool to obtain patient data conforming to the classification rules from a source database; specifically, the classification rules comprise a patient department, a patient ward and a patient bed number, the classification rules are used for classifying patient data in the source database so as to classify and disassemble the patient data in the source database, so that a plurality of groups of sub-databases are obtained, and when the terminal equipment acquires the patient data, the terminal equipment only needs to acquire the corresponding sub-databases according to the classification rules, and does not need to acquire the source database, so that the operating pressure of a processor can be reduced, and the data acquisition efficiency can be improved.
The data acquisition scheduling pool writes or updates the acquired sub-databases into the shared data pool (namely the data sharing module) according to the classification rule of the data structure so as to form a plurality of independent sub-databases in the data sharing module, thereby being convenient for the operation of the data sharing module. Specifically, as a specific example, the sub-databases may include an orthopaedics patient database and a pediatric patient database, when the device a needs to acquire all patient data of orthopaedics for display, the device a only needs to connect with the data sharing module through hardware, and then can acquire all patient data of orthopaedics for display according to the identification and the acquisition of the orthopaedics patient database, so that the device a does not need to identify all patient data in the source database, performance pressure on the source database is avoided, and the problems of resource congestion, overtime of data acquisition, interface blocking and no information on interfaces of the device are avoided.
Different hospital equipment obtains the sub-database from the data sharing module (namely sharing the data pool) according to the equipment business requirements.
In summary, the data acquisition system for multiple devices in the foregoing embodiments of the present invention is configured to store and schedule data by setting a data storage module, a data acquisition and scheduling module, and a data sharing module, and then provide data sharing, so that when a terminal needs to acquire data, the data acquisition and scheduling module may be connected by connecting the data sharing module, thereby implementing acquisition of target data, and the device only needs to access the data sharing module, and the device may implement resource acquisition by using the data sharing module, thereby greatly reducing the processing pressure of the database on the data, avoiding situations of insufficient resources and resource congestion of the database service, and solving the problems in the prior art that when the type and number of information display devices increase, access of a large number of new devices may cause significant performance pressure on the existing database service, and the database service has insufficient resources and resource congestion.
Example two
A second embodiment of the present invention provides a data acquisition method for multiple devices, which is applied to the data acquisition system for multiple devices in the foregoing embodiment, and specifically applied to a data acquisition scheduling module, where the method includes:
the method comprises the steps of obtaining a plurality of patient data, dividing the patient data according to patient attributes to obtain a plurality of collectors, wherein each collector corresponds to a data acquisition standard, the patient attributes comprise a patient department, a patient ward and a patient bed number, each collector comprises a data item, each data item at least comprises one patient data, and a data acquisition scheduling pool is constructed through the collectors to perform data scheduling.
As a specific example, patient data is divided according to attributes of individual patients to obtain a plurality of collectors, each collector corresponding to a patient data. In some alternative embodiments, each collector may also include a plurality of patient data. For example, when the collectors are determined using a hospital department as a partition attribute, patient data of one department is included in each collector, but each department contains a plurality of patient data.
In this embodiment, the step of dividing the patient data to obtain a plurality of collectors is preceded by:
acquiring registration information, adding collectors according to the registration information, wherein the registration information comprises preset execution time intervals, and each collector is preset with different execution time intervals;
and the different collectors execute respective operation logic according to the preset execution time interval to output the collected patient data as different results so as to be stored in the data sharing module.
Specifically, the acquired patient data is output as different results according to respective preset execution time intervals.
The technical scheme of the application is described by taking hospital hospitalization department equipment to acquire information data of a bed of a hospitalized patient as an example. Specifically, three different devices acquire the same data, according to the method of the application, the hospitalized patient bed information is used as a classification standard to be divided to obtain a plurality of collectors, the collectors are added into a data acquisition scheduling pool, the hospitalized patient bed information data is acquired from a source database at regular time and is written into a data sharing pool-hospitalized patient bed information, all the devices only access the data sharing pool-hospitalized patient bed information, and the instantaneous load pressure on the source database is greatly reduced.
Taking a specific department as a specific example, the department contains three different devices and the number is shown in the following table 1:
table 1:
further, as shown in the following table 2, in the conventional data acquisition request manner and the data acquisition request manner of this patent, a single ward instant is shown, and the number of concurrent requests of the same service data is as shown in the following table 2:
table 2:
from the above, under the acquisition requests of the same number of terminal devices, the number of requests of the traditional data acquisition request mode to the source database is 17, namely, the source database is required to be directly requested each time; in this patent, the data acquisition request mode requests the source database 1 time, that is, in this patent, the department attribute of the department is used as a collector to collect all patient data of the department, and all the collected patient data of the department are formed into a sub-database, so that when the patient data of the department needs to be acquired, only the sub-database needs to send out a data request, and the source database is not required to be directly requested, thereby reducing the request times of the source database. According to the technical scheme, the number of source database requests can be greatly reduced to avoid congestion, the problem of resource congestion caused when a large number of hospital devices request database services at the same time can be solved, and the same data do not need to be acquired repeatedly; whereas each device in the prior art has to independently apply resources to the database service.
Further, the technical scheme in the application provides quick data request response for hospital equipment needing to acquire the same data, the same type data request only carries out one resource request to the source database at the same time, the resource consumption of database service is reduced, the problems of data congestion, request waiting and the like are avoided, and the system stability is improved.
In summary, the data acquisition method for multiple devices in the foregoing embodiments of the present invention is configured to store and schedule data by setting a data storage module, a data acquisition and scheduling module, and a data sharing module, and then provide data sharing, so that when a terminal needs to acquire data, the data acquisition and scheduling module may be connected by connecting the data sharing module, thereby implementing acquisition of target data, and the device only needs to access the data sharing module, and the device may implement resource acquisition by the data sharing module, thereby greatly reducing the processing pressure of the database on the data, avoiding situations of insufficient resources and resource congestion of the database service, and solving the problems in the prior art that when the type and number of information display devices increase, access of a large number of new devices may cause significant performance pressure on the existing database service, and the database service has insufficient resources and resource congestion.
Example III
Referring to fig. 2, a data acquisition method for multiple devices according to a third embodiment of the present invention is applied to the data acquisition system for multiple devices in the above embodiment, and specifically applied to a data sharing module, and the method includes S301-S302:
s301, acquiring patient data by combining the collector to construct a data sharing pool through the patient data.
Specifically, the patient data corresponding to each collector exists independently in the data sharing pool.
S302, classifying the patient data through the collector to obtain multiple types of patient data so as to provide the corresponding types of patient data according to the request of the terminal equipment.
As a specific example, the same type of data request can only be requested a single time to reduce the resource consumption of the source database service.
In summary, the data acquisition method for multiple devices in the foregoing embodiments of the present invention is configured to store and schedule data by setting a data storage module, a data acquisition and scheduling module, and a data sharing module, and then provide data sharing, so that when a terminal needs to acquire data, the data acquisition and scheduling module may be connected by connecting the data sharing module, thereby implementing acquisition of target data, and the device only needs to access the data sharing module, and the device may implement resource acquisition by the data sharing module, thereby greatly reducing the processing pressure of the database on the data, avoiding situations of insufficient resources and resource congestion of the database service, and solving the problems in the prior art that when the type and number of information display devices increase, access of a large number of new devices may cause significant performance pressure on the existing database service, and the database service has insufficient resources and resource congestion.
Logic and/or steps represented in the flowcharts or otherwise described herein, e.g., a ordered listing of executable instructions for implementing logical functions, can be embodied in any computer-readable medium for use by or in connection with an instruction execution system, apparatus, or device, such as a computer-based system, processor-containing system, or other system that can fetch the instructions from the instruction execution system, apparatus, or device and execute the instructions. For the purposes of this description, a "computer-readable medium" can be any means that can contain, store, communicate, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device.
More specific examples (a non-exhaustive list) of the computer-readable medium would include the following: an electrical connection (electronic device) having one or more wires, a portable computer diskette (magnetic device), a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disc read-only memory (CDROM). Additionally, the computer-readable medium may even be paper or other suitable medium upon which the program is printed, as the program may be electronically captured, via, for instance, optical scanning of the paper or other medium, then compiled, interpreted or otherwise processed in a suitable manner, if necessary, and then stored in a computer memory.
It is to be understood that portions of the present invention may be implemented in hardware, software, firmware, or a combination thereof. In the above-described embodiments, the various steps or methods may be implemented in software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, may be implemented using any one or combination of the following techniques, as is well known in the art: discrete logic circuits having logic gates for implementing logic functions on data signals, application specific integrated circuits having suitable combinational logic gates, programmable Gate Arrays (PGAs), field Programmable Gate Arrays (FPGAs), and the like.
In the description of the present specification, a description referring to terms "one embodiment," "some embodiments," "examples," "specific examples," or "some examples," etc., means that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the present invention. In this specification, schematic representations of the above terms do not necessarily refer to the same embodiments or examples. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
While embodiments of the present invention have been shown and described, it will be understood by those of ordinary skill in the art that: many changes, modifications, substitutions and variations may be made to the embodiments without departing from the spirit and principles of the invention, the scope of which is defined by the claims and their equivalents.