Disclosure of Invention
The technical problem to be solved by the invention is to provide a data processing method, device, server, system and computer readable medium, which can automatically trigger corresponding plans according to data input by a user and accurately and efficiently acquire and process data in a complex data acquisition environment.
In order to solve the technical problems, the invention provides a data processing method, which is applied to data processing equipment and comprises the following steps: receiving source data input by a user, and updating a source form according to the source data; querying whether a plan associated with the source form exists; executing the plan when the plan exists; and wherein one or more of the steps of receiving and updating, querying and executing are performed in an offline mode of the data processing apparatus.
Optionally, the method further comprises: after the data processing device is switched from the offline mode to the online mode, the offline data generated in the offline mode is uploaded to the server.
Optionally, the method further comprises, at the server or the data processing device: after the server receives the offline data, judging whether the step which is not executed yet exists; and executing the step which is not executed when the judgment result is yes.
Optionally, querying whether there is a plan associated with the source form includes: inquiring a preset planning rule according to the source form; and when the planning rule associated with the source form exists in the preset planning rules, planning according to the associated planning rule.
Optionally, the execution plan includes one or more of the following steps: obtaining a target form according to a plan; and updating the target form according to the source form.
Optionally, the target form contains a desired execution time; reminding an executive at the expected execution time or a preset time before the expected execution time.
Optionally, the source form, the preset planning rules and the plan are downloaded to the data processing apparatus in advance.
Optionally, the source form is empty or contains historical data.
Optionally, the method further comprises: judging whether the server is receiving offline data from other devices; and when the judgment result is yes, waiting for the server to finish the receiving and uploading.
Optionally, the method further comprises, at the server or the data processing device: after the server receives the offline data, whether the offline data is valid or not is judged.
The invention also provides a data processing device comprising: a first receiving unit for receiving source data input by a user; the updating unit is used for updating the source form according to the source data; a first query unit configured to query whether a plan associated with the source form exists; a plan execution unit configured to execute the plan when the plan exists; and wherein one or more of the first receiving unit, the updating unit, the querying unit and the plan executing unit are operated in an offline mode of the data processing apparatus.
Optionally, the apparatus further comprises: and the uploading unit is used for uploading the offline data generated in the offline mode to the server after the data processing equipment is switched from the offline mode to the online mode.
Optionally, the first query unit further includes: the query module is used for querying a preset planning rule according to the source form; and the planning rule module is used for obtaining a plan according to the association planning rule when the planning rule associated with the source form exists in the preset planning rules.
Optionally, the plan execution unit further includes: the acquisition module is used for acquiring the target form according to the plan; and the updating module is used for updating the target form according to the source form.
Optionally, the target form contains a desired execution time; and reminding the executive personnel at the expected execution time or the preset time before the expected execution time.
Optionally, the source form, the preset planning rules and the plan are downloaded to the data processing device in advance.
Optionally, the source form is empty or contains historical data.
Optionally, the apparatus further comprises: the first judging unit is used for judging whether the server is receiving offline data from other equipment; the uploading unit is further configured to: and when the judgment result is yes, waiting for the server to finish receiving and uploading.
The invention also provides a data processing server for interacting with a data processing device, comprising: and the second receiving unit is used for receiving the offline data generated in the offline mode and transmitted by the data processing equipment.
Optionally, the server further comprises: the second judging unit is used for judging whether the step which is not executed exists or not after the offline data is received; and the step execution unit is used for executing the step which is not yet executed when the judgment result is yes.
Optionally, the server further comprises: and the third judging unit is used for judging whether the offline data is valid or not after receiving the offline data.
The invention also provides a data processing system, comprising: a memory for storing instructions executable by the processor; and a processor for executing instructions to implement the method as described above.
The invention also provides a computer readable medium storing computer program code which, when executed by a processor, implements a method as described above.
Compared with the prior art, the invention has the following advantages:
by automatically triggering the corresponding plan according to the source data input by the user, errors and losses caused by manual operation can be reduced, and the integrity, accuracy and compliance of the data are improved; by carrying out part or all of the steps of the trigger plan in the offline mode, the data processing equipment can be applied to a complex data acquisition scene of a network environment, is convenient to use, greatly improves the efficiency of data acquisition and processing, and enhances the integrity and accuracy of the data.
Detailed Description
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are used in the description of the embodiments will be briefly described below. It is apparent that the drawings in the following description are only some examples or embodiments of the present application, and it is obvious to those skilled in the art that the present application may be applied to other similar situations according to the drawings without inventive effort. Unless otherwise apparent from the context of the language or otherwise specified, like reference numerals in the figures refer to like structures or operations.
As used in this application and in the claims, the terms "a," "an," "the," and/or "the" are not specific to the singular, but may include the plural, unless the context clearly dictates otherwise. In general, the terms "comprises" and "comprising" merely indicate that the steps and elements are explicitly identified, and they do not constitute an exclusive list, as other steps or elements may be included in a method or apparatus.
The relative arrangement of the components and steps, numerical expressions and numerical values set forth in these embodiments do not limit the scope of the present application unless it is specifically stated otherwise. Meanwhile, it should be understood that the sizes of the respective parts shown in the drawings are not drawn in actual scale for convenience of description. Techniques, methods, and apparatus known to one of ordinary skill in the relevant art may not be discussed in detail, but should be considered part of the specification where appropriate. In all examples shown and discussed herein, any specific values should be construed as merely illustrative, and not a limitation. Thus, other examples of the exemplary embodiments may have different values. It should be noted that: like reference numerals and letters denote like items in the following figures, and thus once an item is defined in one figure, no further discussion thereof is necessary in subsequent figures.
Flowcharts are used in this application to describe the operations performed by systems according to embodiments of the present application. It should be understood that the preceding or following operations are not necessarily performed in order precisely. Rather, the various steps may be processed in reverse order or simultaneously. At the same time, other operations are added to or removed from these processes.
Fig. 1 shows a schematic flow chart of a data processing method according to an embodiment of the invention. As shown in fig. 1, an embodiment of the present invention provides a data processing method, which is applied to a data processing device, and includes the following steps:
step 101, receiving source data input by a user, and updating a source form according to the source data;
step 102, inquiring whether a plan associated with the source form exists;
step 103, executing the plan when the plan exists; and
wherein one or more of the steps of receiving and updating, querying and executing are performed in an offline mode of the data processing apparatus.
The data processing device can be portable electronic devices such as palm computers (Personal Digital Assistant, PDA), smart phones, tablet computers and the like, and has the functions of data acquisition, data processing, data transmission and the like. The data processing device may be connected to a network and interact with the data processing server via the network. The data processing device is connected with the network and is in an online mode when interacting with the data processing server; the data processing device is in an offline mode when not connected to the network. The user may switch the data processing apparatus between the online mode and the offline mode by himself.
One or more steps of the receiving and updating steps, the querying steps and the executing steps in the data processing method in the embodiment of the invention are performed by the data processing device in an offline mode of the data processing device. By carrying out part or all of the steps of data acquisition and processing in the off-line mode, the data processing equipment can be applied to a complex data acquisition scene of a network environment, is convenient to use, greatly improves the efficiency of data acquisition and processing, and enhances the integrity and accuracy of the data.
The steps in the data processing method are described in further detail below:
in step 101, source data input by a user is received and a source form is updated according to the source data.
The data processing apparatus receives source data input by a user. The source data refers to data acquired by a user. Taking medical clinical trial data collection as an example, the user may be a nurse performing clinical trial data collection, and the source data may be subject data collected by the nurse. In one example, the nurse can scan the two-dimensional code corresponding to the high-fat meal through the data processing device when the nurse issues the high-fat meal for the subject, the data processing device can acquire the meal time and the high-fat meal content of the subject through the two-dimensional code, and the received data can be displayed to the nurse through the screen so as to confirm whether the data are correct or not or edit the data. After receiving the source data, the data processing apparatus updates the source form based on the source data. The source form is a form for saving source data. When the source form has not been created, the data processing apparatus may create a new source form. Each source form may contain an object identifier (Object Identifier, OID) associated therewith for identifying the source form. Alternatively, the source form may be empty or contain historical data, where the historical data may be source data previously collected by the user. In one example, the source form may be a record of a subject's high fat meal, including the time of the subject's meal and the content of the high fat meal. FIG. 6 shows a source form schematic of a data processing method according to an embodiment of the invention. The data of the content of the high fat meal, the meal type, the actual meal time, etc. of the subject inputted by the nurse are stored in the high fat meal record shown in fig. 6.
In step 102, a query is made as to whether there is a plan associated with the source form.
The data processing apparatus queries whether there is a schema associated with the source form. The schedule may include preset steps. The plan may be pre-configured by the project manager.
Alternatively, querying whether there is a schema associated with the source form may include: inquiring a preset planning rule according to the source form; and when the planning rule associated with the source form exists in the preset planning rules, planning according to the associated planning rule.
The data processing device queries a preset planning rule according to the source form. In one example, the data processing apparatus may query the preset planning rule according to the OID of the source form to improve query efficiency. The preset planning rules may include one or more plans associated with the source form. The preset planning rules may be pre-configured by the project administrator. When the data processing equipment inquires that the planning rules related to the source form exist in the preset planning rules, the planning related to the source form can be obtained according to the related planning rules.
Alternatively, the source form, preset planning rules and plans may be pre-downloaded to the data processing device.
The data processing apparatus may download the source form in advance, preset the planning rules and plans. In one example, the data processing device may be downloaded from a data processing server over a network. Alternatively, the source form may be empty or contain historical data, where the historical data may be historical acquisition data that has been synchronized to the server since the user last acquired. When the data processing apparatus downloads the source form in advance, the source form may be an empty form or a form containing history data. By downloading the source form, preset planning rules and plans in advance, the data processing apparatus can use the source form, preset planning rules and plans in the offline mode.
In step 103, when a plan exists, the plan is executed.
When it is queried that there is a plan associated with the source form, the data processing apparatus executes the plan.
Optionally, the execution plan may include one or more of the following steps: obtaining a target form according to a plan; and updating the target form according to the source form.
When the plan includes the target form, the data processing apparatus may acquire the target form according to the plan. The target form may be empty or contain historical data. When the target form has not been created, the data processing apparatus may create a new target form according to the schedule. After the data processing device acquires the target form, the target form can be displayed to a user through a screen for confirmation or modification. When there is data in the target form associated with data in the source form, the data processing apparatus may update the target form based on the source form. Still taking medical clinical trial data collection as an example, the source form is a high fat meal record of the subject, the target form is a dosing record of the subject, the preset planning rule triggers the dosing record of the subject for the high fat meal record of the subject, and the planning is to update the expected dosing time in the dosing record according to the high fat meal record. When a high fat meal record of the subject is generated or updated, the data processing device triggers the subject's dosing record according to preset planning rules. The data processing device obtains a dosing record of the subject according to the schedule and updates the desired dosing time in the dosing record according to the high fat meal record of the subject. The subject needs to take the medication one hour after a meal, that is, the data processing device may set the desired administration time in the administration record to one hour after the meal time in the high fat meal record. FIG. 4 shows a schematic diagram of a target form of a data processing method according to an embodiment of the invention. The desired administration time has been automatically updated from the high fat meal record in the administration record (i.e., the target form) as shown in fig. 4, without manual input. By automatically updating the target form according to the source form, errors or losses caused by manual operation are effectively avoided, and the integrity, accuracy and compliance of project data are greatly improved.
Alternatively, the target form may contain the desired execution time; the executives may be alerted at the desired execution time or a preset time before the desired execution time.
The data processing device can remind an executive at expected execution time or preset time before the expected execution time, wherein the length of the preset time can be set according to user needs. Still taking medical clinical trial data collection as an example, the target form is a subject's administration record containing the desired administration time, and the user is set to alert the nurse 10 minutes before the desired administration time so that he can have sufficient time to prepare for administration. The data processing device may alert the executive by means of alarm sounds, mails, messages, etc., which the present invention is not limited to. By reminding the executive personnel at the expected execution time or the preset time before the expected execution time, the situation that the executive personnel miss the expected execution time can be greatly reduced, thereby improving the accuracy and the effectiveness of the data and ensuring the smooth proceeding of the project.
Optionally, the method may further include: after the data processing device is switched from the offline mode to the online mode, the offline data generated in the offline mode is uploaded to the server.
After the data processing apparatus is switched from the offline mode to the online mode, the data processing apparatus uploads the offline data generated in the offline mode to the server. The offline data may include data generated by the data processing apparatus when performing one or more steps of the data processing method of the embodiment of the present invention in an offline mode, such as source data, source form, plan query result, plan execution case, target form. The data processing device uploads the offline data to the server, which may receive the data generated by the data processing device in the offline mode.
Optionally, the method may further comprise, at the server or the data processing device: after the server receives the offline data, judging whether the step which is not executed yet exists; and executing the step which is not executed when the judgment result is yes.
After the server receives the offline data, the data processing apparatus or the server determines whether there are steps that have not yet been performed. When the judgment result is yes, the data processing device or the server executes the step which is not executed yet. In one example, the data processing apparatus performs step 101 described previously in the offline mode, and then switches to the online mode. After the data processing device is switched to the online mode, the offline data generated in the offline mode is uploaded to the server. After the server receives the offline data, it can be determined that step 101 has been performed, but steps 102 and 103 have not yet been performed. The server may continue to execute 102 and 103 that have not yet been executed. By judging and executing the steps which are not executed, all the steps can be ensured to be executed, so that the integrity of data processing is ensured.
Optionally, the method may further include: judging whether the server is receiving offline data from other devices; and when the judgment result is yes, waiting for the server to finish the receiving and uploading.
The data processing device may first determine whether the server is receiving offline data from other devices, where other devices refer to other data processing devices used in the same project, before uploading the offline data. The data processing device may begin uploading the offline data when it is determined that the server is not receiving the offline data from the other device. When the server is judged to be receiving the offline data from other devices, the data processing device waits for the server to start uploading after finishing the receiving, so that the server is ensured not to receive the data from the different devices at the same time, and the problem of data collision is avoided.
Optionally, the method may further comprise, at the server or the data processing device: after the server receives the offline data, whether the offline data is valid or not is judged.
After the server receives the offline data, the data processing device or the server may determine whether the offline data is valid. Methods of determining the validity of offline data include, but are not limited to: 1. confirming whether the structure of the data is complete; 2. confirming whether fields and field groups of the data are matched; 3. whether the data type is consistent with the definition; 4. whether the data has been uploaded belongs to the duplicate data. When the offline data is judged to be invalid, the data processing apparatus or the server may take corresponding measures according to circumstances. The data processing device may be caused to re-upload the data, for example when the structure of the data is incomplete. For example, when the data is uploaded and belongs to the repeated data, the time point of the repeated data can be judged, and the data with earlier generation time is adopted.
In summary, according to the data processing method provided by the embodiment of the invention, the corresponding plan is automatically triggered according to the source data input by the user, so that errors and losses caused by manual operation can be reduced, and the integrity, accuracy and compliance of the data are improved.
FIG. 2 shows an architecture diagram of a data processing device according to an embodiment of the invention. As shown in fig. 2, an embodiment of the present invention provides a data processing apparatus 200, which includes a first receiving unit 201, an updating unit 202, a first querying unit 203, and a plan executing unit 204. The first receiving unit 201 is for receiving source data input by a user. The updating unit 202 is configured to update the source form according to the source data. The first querying element 203 is configured to query whether a plan associated with the source form exists. The plan execution unit 204 is configured to execute a plan when the plan exists. The data processing apparatus 200 can communicate and data transfer with the server 211 through a network. When the data processing apparatus 200 is capable of stably communicating and data transmitting with the server 211, the data processing apparatus 200 is in an online mode; when the data processing apparatus 200 cannot stably communicate and data transmission with the server 211, the data processing apparatus 200 is in an offline mode. One or more of the first receiving unit 201, the updating unit 202, the querying unit 203, and the plan executing unit 204 are operated in an online mode and/or an offline mode.
Optionally, the data processing apparatus 200 may further include an uploading unit 205 for uploading the offline data generated in the offline mode to the server 211 after the data processing apparatus 200 is switched from the offline mode to the online mode.
Optionally, the first query unit 203 may further include a query module 206 for querying a preset planning rule according to the source form; and a planning rule module 207, configured to obtain a plan according to the association planning rule when the planning rule associated with the source form exists in the preset planning rules.
Optionally, the plan execution unit 204 may further include an acquisition module 208 for acquiring the target form according to the plan; and an updating module 209, configured to update the target form according to the source form.
Alternatively, the target form may contain the desired execution time; and reminding the executive personnel at the expected execution time or the preset time before the expected execution time.
Alternatively, the source form, preset planning rules and plans may be pre-downloaded to the data processing device 200. The source form, the preset planning rules and the plans may be stored in a memory unit of the data processing device 200. The other units/modules may be retrieved from the storage unit when they need to use the source form, preset planning rules and plans. The source form, preset planning rules and plans may also be directly stored in the corresponding execution units/modules after being downloaded, which is not limited in the present invention.
Alternatively, the source form may be empty or contain historical data.
Optionally, the data processing apparatus 200 may further include a first determining unit 210 for determining whether the server 211 is receiving offline data from other apparatuses; and the uploading unit 205 is further configured to wait for the server 211 to complete the receiving and upload the received signal when the determination result is yes. The first determining unit may communicate with the server 211 through a network, so as to obtain a communication state of the server 211 with other devices to determine whether the server 211 is receiving offline data from the other devices.
The functional description of each unit or module in the data processing apparatus 200 according to the embodiment of the present invention may refer to the corresponding steps in the foregoing data processing method embodiment, but is not limited thereto, and will not be described herein.
FIG. 5 shows an architecture diagram of a data processing server according to an embodiment of the invention. As shown in fig. 5, an embodiment of the present invention provides a data processing server 500, which includes a second receiving unit 501, a second judging unit 502, and a step executing unit 503. The data processing server 500 is configured to interact with the data processing device 510, and may communicate and data transfer with the data processing device via a network. The second receiving unit 501 is configured to receive offline data generated in an offline mode, which is transmitted by the data processing apparatus 510. The data processing device 510 may upload offline data to the data processing server 500 through a network after switching from the offline mode to the online mode. The second determining unit 502 is configured to determine whether there is a step that has not been performed after receiving the offline data. The step execution unit 503 is configured to execute a step that has not yet been executed when the determination result is yes.
Optionally, the data processing server 500 may further include a third determining unit 504, configured to determine, after receiving the offline data uploaded by the data processing apparatus 510, whether the received offline data is valid.
The functional description of each unit in the data processing server 500 according to the embodiment of the present invention may refer to the corresponding steps in the foregoing data processing method embodiment, but is not limited thereto, and will not be described herein.
The invention also provides a data processing system, comprising: a memory for storing instructions executable by the processor; and a processor for executing instructions to implement the data processing method as described above.
FIG. 3 illustrates a system block diagram of a data processing system, according to an embodiment of the invention. Data processing system 300 may include an internal communication bus 301, a Processor (Processor) 302, a Read Only Memory (ROM) 303, a Random Access Memory (RAM) 304, a communication port 305, and a hard disk 307. Internal communication bus 301 may enable data communication among the components of data processing system 300. The processor 302 may make the determination and issue the prompt. In some embodiments, processor 302 may be comprised of one or more processors. Communication port 305 may enable data processing system 300 to communicate with external data. In some embodiments, data processing system 300 may send and receive information and data from a network via communication port 305. Data processing system 300 also may include various forms of program storage units and data storage units, such as hard disk 307, read Only Memory (ROM) 303, and Random Access Memory (RAM) 304, capable of storing various data files for computer processing and/or communication, and possible program instructions for execution by processor 302. The processor executes these instructions to implement the main part of the method. The result processed by the processor is transmitted to the user equipment through the communication port and displayed on the user interface.
The data processing method described above may be implemented as a computer program, stored in the hard disk 307, and recorded in the processor 302 to be executed to implement the method of the present invention.
The invention also provides a computer readable medium storing computer program code which, when executed by a processor, implements a data processing method as above.
When the data processing method is implemented as a computer program, it may also be stored in a computer readable storage medium as an article of manufacture. For example, computer-readable storage media may include, but are not limited to, magnetic storage devices (e.g., hard disk, floppy disk, magnetic strips), optical disks (e.g., compact Disk (CD), digital Versatile Disk (DVD)), smart cards, and flash memory devices (e.g., electrically erasable programmable read-only memory (EPROM), cards, sticks, key drives). Moreover, various storage media described herein can represent one or more devices and/or other machine-readable media for storing information. The term "machine-readable medium" can include, without being limited to, wireless channels and various other media (and/or storage media) capable of storing, containing, and/or carrying code and/or instructions and/or data.
It should be understood that the embodiments described above are illustrative only. The embodiments described herein may be implemented in hardware, software, firmware, middleware, microcode, or any combination thereof. For a hardware implementation, the processing units may be implemented within one or more Application Specific Integrated Circuits (ASICs), digital Signal Processors (DSPs), digital Signal Processing Devices (DSPDs), programmable Logic Devices (PLDs), field Programmable Gate Arrays (FPGAs), processors, controllers, micro-controllers, microprocessors, and/or other electronic units designed to perform the functions described herein, or a combination thereof.
While the basic concepts have been described above, it will be apparent to those skilled in the art that the foregoing disclosure is by way of example only and is not intended to be limiting. Although not explicitly described herein, various modifications, improvements and adaptations of the invention may occur to one skilled in the art. Such modifications, improvements, and modifications are intended to be within the spirit and scope of exemplary embodiments of the present invention.
Meanwhile, the present invention uses specific words to describe embodiments of the present invention. Reference to "one embodiment," "an embodiment," and/or "some embodiments" means that a particular feature, structure, or characteristic is associated with at least one embodiment of the invention. Thus, it should be emphasized and should be appreciated that two or more references to "an embodiment" or "one embodiment" or "an alternative embodiment" in various positions in this specification are not necessarily referring to the same embodiment. Furthermore, certain features, structures, or characteristics of one or more embodiments of the invention may be combined as suitable.
Some aspects of the invention may be performed entirely by hardware, entirely by software (including firmware, resident software, micro-code, etc.) or by a combination of hardware and software. The above hardware or software may be referred to as a "data block," module, "" engine, "" unit, "" component, "or" system. The processor may be one or more Application Specific Integrated Circuits (ASICs), digital Signal Processors (DSPs), digital signal processing devices (DAPDs), programmable Logic Devices (PLDs), field Programmable Gate Arrays (FPGAs), processors, controllers, microcontrollers, microprocessors, or a combination thereof. Furthermore, aspects of the invention may take the form of a computer product, comprising computer-readable program code, embodied in one or more computer-readable media. For example, computer-readable media can include, but are not limited to, magnetic storage devices (e.g., hard disk, floppy disk, tape … …), optical disk (e.g., compact disk CD, digital versatile disk DVD … …), smart card, and flash memory devices (e.g., card, stick, key drive … …).
Similarly, it should be noted that in order to simplify the description of the present disclosure and thereby aid in understanding one or more inventive embodiments, various features are sometimes grouped together in a single embodiment, figure, or description thereof. This method of disclosure, however, is not intended to imply that more features than are required by the subject invention. Indeed, less than all of the features of a single embodiment disclosed above.
While the invention has been described with reference to the specific embodiments presently, it will be appreciated by those skilled in the art that the foregoing embodiments are merely illustrative of the invention, and various equivalent changes and substitutions may be made without departing from the spirit of the invention, and therefore, all changes and modifications to the embodiments are intended to be within the scope of the appended claims.