Form generation method, device, computer equipment and storage medium
By matching the data corresponding to the target form template in the data set and generating the target form, a large number of form management problems are solved, the efficiency of data extraction and form generation is improved, and the form management process is simplified.
Patent Information
- Application Number
- CN202111525472.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-14
- Publication Date
- 2025-05-16
- Estimated Expiration
- 2041-12-14
AI Technical Summary
In business scenarios, a large number of forms need to be created and managed for different objects, which increases the difficulty of data management, especially when there are a large number of objects, the large number of forms is not conducive to management.
By specifying the target form template, the data corresponding to the target form template is matched in the data set, an intermediate data set is formed, and the target form is generated based on the target form template, respectively corresponding to the associated data group, thereby realizing form generation and management of different objects.
This method effectively solves a large number of form management problems, improves the efficiency of data extraction and form generation, and simplifies the form management process for different objects.
Smart Images

Figure CN114155928B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of computer data processing, and in particular to a form generation method, apparatus, computer device and storage medium. Background Art
[0002] With the continuous development of computer technology, the application of electronic forms is also increasing. In the prior art, in some business scenarios, a form is created for different objects and stored in the database. When the number of objects is large, the number of corresponding forms will also be large, which is not conducive to the management of the form of each object. For example, in subject experiments in the medical field, it is necessary to create and store a form for each subject. When the number of subjects is large, the number of forms will also be large, which is not conducive to data management. Summary of the invention
[0003] In view of this, multiple embodiments of this specification are dedicated to providing a form generation method, apparatus, computer device and storage medium to solve the problem in the prior art that forms of different objects need to be stored separately to a certain extent.
[0004] The implementation mode of this specification proposes a form generation method, including: specifying a target form template; matching data corresponding to the target form template in a data set to form an intermediate data set; wherein the intermediate data set includes multiple associated data groups; wherein the associated data group includes multiple associated data; based on the target form template, generating a target form corresponding to each of the associated data groups.
[0005] The implementation mode of this specification proposes a form generation method, including: specifying a target form template; sending a form generation instruction including information of the target form template to a server, so that the server matches data corresponding to the target form template in a data set to form an intermediate data set including multiple associated data groups, and generates target forms corresponding to the associated data groups respectively based on the target form template; wherein the associated data groups include multiple associated data; and receiving multiple target forms generated according to the target form template fed back by the server.
[0006] The implementation mode of this specification proposes a form generation device, including: a form template specifying module, used to specify a target form template; a data matching module, used to match data corresponding to the target form template in a data set to form an intermediate data set; wherein the intermediate data set includes multiple associated data groups; wherein the associated data group includes multiple associated data; a form generating module, used to generate a target form corresponding to each of the associated data groups based on the target form template.
[0007] The embodiment of the present specification proposes a device for form generation, including: a form template specifying module, used to specify a target form template; an instruction sending module, used to send a form generation instruction including information of the target form template to a server, so that the server matches data corresponding to the target form template in a data set to form an intermediate data set including multiple associated data groups, and generates target forms corresponding to the associated data groups respectively based on the target form template; wherein the associated data groups include multiple associated data; and a form receiving module, used to receive multiple target forms generated according to the target form template fed back by the server.
[0008] An embodiment of the present specification proposes a computer device, including a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the method described in the embodiment is implemented.
[0009] The embodiments of this specification provide a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the method described in the embodiments is implemented.
[0010] An intermediate data set including a plurality of associated data groups is generated based on a target form template, and a target form is generated according to the associated data groups, so as to obtain a target form from a data set. BRIEF DESCRIPTION OF THE DRAWINGS
[0011] Figure 1 Shown is a schematic diagram of interactions between different ends in a scenario example provided by an implementation method.
[0012] Figure 2 Shown is a schematic diagram of interactions between different ends in a scenario example provided by an implementation method.
[0013] Figure 3 Shown is a flow chart of a form generation method provided by one embodiment.
[0014] Figure 4 Shown is a flow chart of a form generation method provided by one embodiment.
[0015] Figure 5 Shown is a schematic diagram of a form generating device provided in one embodiment.
[0016] Figure 6 Shown is a schematic diagram of a form generating device provided in one embodiment. DETAILED DESCRIPTION
[0017] In order to enable those skilled in the art to better understand the solution of this specification, the technical solution in the implementation of this specification will be clearly and completely described below in conjunction with the drawings in the implementation of this specification. Obviously, the described implementation is only a part of the implementation of this specification, not all of the implementations. Based on the implementation in this specification, all other implementations obtained by ordinary technicians in this field without creative work are within the scope of protection of this specification.
[0018] See also Figure 1 , Figure 2 In the scenario example of the form generation system provided in this specification, the form generation system may include a client and a server. The user may be a worker in the medical field. In the subject test, it is necessary to extract the data of the specified test items of different subjects from the database for research. In the process of extracting the test item data of the subject, the user may want to extract the data of the blood routine items.
[0019] The user will first input the target subject whose data needs to be extracted and the target form template corresponding to each subject to the client. During the input process, the user can select a form template in the historical form template library as the target form template, or select a form item in the form item library to form a target form template. Of course, the user can also actively input form items to form a form template. Not only that, if the user does not input the target subject, the system will extract the data corresponding to all subjects by default. In addition, if the user does not input the target form template, the system can also specify a default form template.
[0020] In the process of extracting the test item data of the subject, the user can select the standard blood routine form and all subjects. After receiving the target form template and target subject specified by the user, the client will send the information of the target form template and the target subject to the server, and request the server to generate a form. After receiving the form generation request sent by the client, the server will first determine the form items and target subjects in the target form template according to the information sent by the client. Among them, the target form template is a standard blood routine form, and the target subject is all subjects. Then, the server will go to the database and match multiple data tables that record the inspection item data corresponding to the blood routine form. Specifically, it can include a data table that records red blood cell counts, a data table that records white blood cell counts, etc. Then, the server will merge each row of data with the same field value in the multiple data tables according to the fields shared by the multiple data tables and the fields of the form to which the inspection item data belongs, to form an intermediate data table, and constitute an intermediate data set. Subsequently, the server will take out the data rows with the same subject ID value in the intermediate data table based on the field that records the subject ID in the intermediate data table, and take out multiple associated data groups from the intermediate data table. Finally, the data in the multiple associated data groups are filled into the target form templates to form target forms of the number of associated data groups, which are returned to the client. After receiving the target form generated according to the target form template fed back by the server, the client can store the target form in a temporary storage area, and at the same time, display the target form and the corresponding subject information in the human-computer interaction interface, and provide a data export control for the user to further carry out the subject test research.
[0021] The above is only an example scenario provided in this specification and is not intended to limit the present invention. Any modifications, equivalent substitutions, etc. made within the spirit and principles of the present invention should be included in the protection scope of the present invention.
[0022] The implementation method of this specification provides a form generation system. The form generation system may include a client and a server. The client may be an electronic device with network access capability. Specifically, for example, the client may be a desktop computer, a tablet computer, a laptop computer, a smart phone, a digital assistant, a smart wearable device, a shopping guide terminal, a television, a smart speaker, a microphone, etc. Among them, smart wearable devices include but are not limited to smart bracelets, smart watches, smart glasses, smart helmets, smart necklaces, etc. Alternatively, the client may also be software that can be run in the electronic device. The server may be an electronic device with certain computing and processing capabilities. It may have a network communication module, a processor, and a memory, etc. Of course, the server may also refer to software running in the electronic device. The server may also be a distributed server, which may be a system with multiple processors, memories, network communication modules, etc. operating in collaboration. Alternatively, the server may also be a server cluster formed by several servers. Alternatively, with the development of science and technology, the server may also be a new technical means that can realize the corresponding functions of the implementation method of the specification. For example, it may be a new form of "server" based on quantum computing.
[0023] See also Figure 3 , the embodiment of this specification provides a form generation method, which includes the following steps.
[0024] Step S110: Specify the target form template.
[0025] Before generating a form, it is necessary to determine a target form template so as to extract data corresponding to form items in the target form template and generate a target form.
[0026] The form template may be formed by a plurality of form items. The form items may include corresponding form item attributes. For example, the form items may have corresponding default value dictionaries or restriction types of form item data. The target form template is a template used to generate a target form. The target form template may be a form template among historical form templates accumulated in the server history, or a form template formed according to form items input by a user. Of course, the form template may also be a preset default form template. The form items input by the user may be form items selected by the user from historical form items accumulated in the server history, or may be form items input by the user.
[0027] The method for specifying the target form template may be that after the server receives the form template sent by the client, the form template is determined as the target form template. Of course, the method for specifying the target form template may also be that after the server receives the identifier of the form template sent by the client, the form template corresponding to the identifier is matched in the form template set stored in the server, and the matched form template is determined as the target form template. The server and the client may store a form template set respectively, and the identifiers corresponding to the same form template may be consistent. In some embodiments, when the server does not receive the information of the form template sent by the client, the server may also use a preset default form template as the target form template. The method for specifying the target form template may also be that a form template is formed based on the form item information received by the server, and the form template is used as the designated target form. The form item information may be the name of the form item, or the identifiers corresponding to multiple form items.
[0028] Step S120: matching data corresponding to the target form template in the data set to form an intermediate data set; wherein the intermediate data set includes a plurality of associated data groups; wherein the associated data group includes a plurality of associated data.
[0029] After receiving the target form template, to extract the data corresponding to the form template, an intermediate data set can be first formed according to the data, and then a target form can be formed based on the intermediate data set. By constructing the method of extracting the target form data through the intermediate data set, on the one hand, the problem of low extraction efficiency caused by repeatedly extracting data from the data set one by one can be alleviated to a certain extent; on the other hand, by constructing the intermediate data set including multiple associated data groups, the corresponding target form can be determined more conveniently through the associated data groups.
[0030] The data set may represent a whole composed of one or more data. The data in the data set may be stored, organized and accessed through different structures. For example, the data set may be stored, organized and accessed through the structure of a data table, or may be stored, organized and accessed through a dictionary with key-value pairs, or may be stored in a multi-dimensional array and accessed based on an array index. The data set may include multiple groups of data stored in the same structure. Of course, the data set may also include multiple groups of data stored in different structures. Specifically, for example, the data set may include multiple data tables for storing data and multiple three-dimensional arrays.
[0031] The intermediate data set is a data subset formed by the data in the data set corresponding to the target form template. The data of the data subset can be stored and accessed through the structure of the data in the data set described in this embodiment. The intermediate data set includes multiple associated data groups, and the multiple associated data groups can form an intermediate data set by storing them in the same data storage structure. In addition, the data in the same associated data group may not be stored adjacently in the intermediate data set. Specifically, for example, when the intermediate data set includes only one data table, the data in one of the associated data groups may be the data of the alternate rows of the data table.
[0032] The associated data group represents a whole formed by the related data in the intermediate data set. Among them, the related data are the multiple related data in the associated data group. The associated data can represent multiple data that are related between business scenarios. Specifically, for example, the data can be data in the medical field, and the data in the associated data group can be represented as the same examination item data, and accordingly, the connection is that the actual business represented by the data is the same. Alternatively, the data in the associated data group can be data of different examination items corresponding to the same patient, and accordingly, the connection represents that the objects of the actual business corresponding to the data are the same. In some embodiments, the associated data can also be multiple data with related data types. Specifically, for example, in two associated data groups, the data in one associated data group are all numerical values, and the data in the other associated data group can all be strings.
[0033] The method for matching the data corresponding to the target form template in the data set can be based on the identifier used to represent the meaning of the data. Specifically, for example, for data stored in a data table, matching can be performed by the field name of the data, and the data of the field consistent with the form item name in the target form template can be extracted to form the intermediate data set. When the data set is stored in a dictionary with key-value pairs, the form item name in the target form template can be matched with the key of the dictionary, and when the key of the dictionary is consistent with the form item name, the value corresponding to the key is extracted. Among them, the form item name and field name can also be the ID corresponding to the name.
[0034] The method for forming the intermediate data set may be to store the data in a specified structure after extracting the corresponding data. Specifically, for example, the extracted data may be stored in a dictionary in sequence. The key of the dictionary may be an identifier for indicating the meaning of the data, and the value may be a list for storing a plurality of corresponding data. Of course, the intermediate data set may also be stored as a string, wherein different data may be separated by a specified character. In some embodiments, the method for forming the intermediate data set may also be obtained by operating the storage structure of the data in the data set. Specifically, for example, the intermediate data set may be obtained by merging a plurality of data tables in the data set. Of course, in the case where the data in the data set is stored in the form of an array, the intermediate data set may also be obtained by splicing a plurality of arrays. In some embodiments, the data in the data set may be stored in a plurality of strings, and the different data stored in a string may be separated by a specified character. In the case, the method for forming the intermediate data set may be to first extract the corresponding data from a plurality of strings by the specified character, then select the data that can form the associated data group from them, and then splice the intermediate data set by the specified character.
[0035] Step S130: generating target forms corresponding to the associated data groups based on the target form templates.
[0036] After the intermediate data set is obtained, a target form may be generated for each associated data group based on the associated data groups in the intermediate data set.
[0037] The method for generating the target form may be to first split the intermediate data set into multiple related data groups based on the specified fields. Then, according to the form items in the target form template, the corresponding data in the related data groups are matched and filled into the target form template.
[0038] In the process, the target form is formed. Specifically, for example, the intermediate data table includes data of routine blood test items of multiple subjects. In this case, the data table can be split into associated data tables corresponding to multiple associated data groups according to the field of subject name. In some embodiments, the method of generating the target form can also be to determine the associated data group of each data in the intermediate data set according to the record file that records the associated data group identifier corresponding to each data, thereby extracting multiple associated data groups respectively, and generating multiple target forms based on the associated data in the associated data group. Among them, the record file that records the associated data group identifier of each data can be generated in the process of forming the intermediate data set.
[0039] In some implementations, the step of specifying a target form template includes: receiving a target form template identifier for representing a target form template in the form template set; wherein the form template set includes form templates based on historical accumulation; and using the target form template identifier to match and obtain a target form template in the form template set.
[0040] In the process of form generation, when the target form template includes a lot of information, directly transmitting the target form template will occupy relatively more network resources. Therefore, the amount of information of the target form template transmitted in a single time can be reduced by transmitting the identifier of the target form template. In addition, transmitting the unique identifier can also ensure that the information of the target form template will not be leaked during the transmission process or reduce the risk of losing some data to a certain extent.
[0041] The form template collection may include all the form templates accumulated historically. Different form templates may have different form template identifiers. Specifically, the form template identifier may be the name, ID, etc. of the form template. The target form template identifier corresponds to the target form template. In some embodiments, the form template collection may be stored on the client and the server respectively, and when the client or the server obtains a new form template, the form template collection in the corresponding server or the client is synchronously adjusted. In some embodiments, the form template collection stored in the client may also only include nouns or key form items based on all the form templates accumulated historically to reduce the storage pressure on the client.
[0042] The method for receiving the target form template identifier in the form template set may be to receive the target form identifier sent by the client. In some implementations, it may also be to receive a default target form identifier.
[0043] The method for matching and obtaining the target form template in the form template set may be to compare the target form identifier with the form identifier of each preset form target, and to use the form template having the same form identifier as the target form identifier as the target form template. In the process of comparing multiple form identifiers in the form template set with the target form identifier, the target form identifier may be compared with the multiple form identifiers in sequence. Of course, when the form identifier is a number, the form identifier identical to the target form identifier may also be searched in the multiple form identifiers by binary search.
[0044] In some embodiments, the data set includes multiple data tables; the step of matching the data corresponding to the target form template in the data set to form an intermediate data set includes: merging the data tables according to designated common fields between the data tables to form the intermediate data set.
[0045] The data in the data set may be stored through multiple data tables. Among them, the business levels represented by the data in different data tables are different. Specifically, for example, in the scenario of medical trials, among the multiple data tables, some data tables may store the data of the subject trial center, some data tables may store data about the subject visits, and some data tables may store data of the subject trial projects. Therefore, in the process of matching the data corresponding to the target form template in the multiple data tables to form an intermediate data set, it may be first based on the form items in the target form template, matching the data tables corresponding to the form items, and then based on the preset common fields between the data tables, merging the data tables to obtain the intermediate data set. In the matching process, since only the data tables need to be matched instead of each data, the matching rate can be improved to a certain extent.
[0046] The common fields can be pre-specified fields when constructing multiple data tables in a data set. Specifically, for example, in a data table recording information about a subject's visit and information about a subject's trial center, a field for recording information about a center carrying out a subject's trial is included, and the common fields can be fields recording subject's trial center IDs. In the multiple data tables, the common fields between two data tables can be the same or different. The common fields can be determined by the foreign key of the data table, or can be stored in a configuration file and determined by reading the configuration file.
[0047] The method of merging the data tables may be to merge by inner join. The inner join method uses a comparison operator to merge the data of the same rows in the common fields of the data tables. Of course, the method of merging the data tables may also be to merge by outer join. Specifically, the outer join method may be left outer join, right outer join, full outer join, etc.
[0048] In some embodiments, the multiple data tables respectively include data of different categories; the method also includes: determining a target data table corresponding to the target form item in the target form template in the data set; accordingly, merging the data tables according to designated common fields between the data tables to form the intermediate data set comprises: merging the data tables based on designated common fields between the target data tables to form the intermediate data set.
[0049] The multiple data tables can record different categories of business data respectively. Specifically, for example, when recording the data of routine blood test items in the subject test, the same routine blood test items of different subjects can be stored in one data table. For example, the number of red blood cells of different subjects can be stored in a data table about the number of red blood cells, and the data of the amount of hemoglobin of different subjects can be stored in a data table recording the amount of hemoglobin. Recording different categories of business data in multiple data tables can, to a certain extent, avoid the situation where there are too many columns in the data table that is not conducive to storage. Therefore, before merging the data tables, you can first determine the data table that records the corresponding target form item data based on the target form item in the target form template, and then form an intermediate data set through the data table, which can reduce the amount of noise data in the intermediate data set to a certain extent.
[0050] In some implementations, the plurality of associated data groups include identification data with different values, and the data in the associated data groups are associated with the identification data with corresponding values in the associated data groups.
[0051] The multiple associated data groups included in the intermediate data set may include identification data, and the multiple associated data groups can be obtained from the intermediate data set more conveniently through the identification data.
[0052] The identification data can be used to distinguish multiple associated data groups. Identification data with different values can correspond to different associated data groups. Specifically, for example, in the process of studying the blood routine report of the subject, each associated data group corresponds to the blood routine examination items of different subjects. Among them, the intermediate data set can be a data table recording the blood routine examination item data of multiple subjects. The fields of the data table can include examination items such as the subject name, hemoglobin count, white blood cell count and red blood cell count. The identification data can be the subject name or the subject ID, and the intermediate data set can be more conveniently split into associated data groups corresponding to different subjects through the subject name or the subject ID. In some embodiments, in a single associated data group, the identification data can also be multiple. When the multiple identification data are inconsistent, it is considered that the multiple identification data correspond to different associated data groups. Specifically, for example, when the subject name and the subject ID are not the same, the data corresponding to the subject name and the subject ID are split into corresponding associated data groups of different subjects.
[0053] The association relationship may represent the meaning of the association data in the association data group in the business scenario, and the meaning of the identification data corresponding to the association data group in the business scenario is related. Specifically, for example, in the business scenario of physical examination, the information recorded in the association data group may include the name, gender, height, weight, etc. of the examinee. Among them, the name of the examinee may be identification data. Gender, height, and weight are all associated with the examinee of the corresponding name. For example, the examinee named "Zhang San" has a gender of "male", a height of "172cm", and a weight of "55kg". "Male", "172cm", and "55kg" all represent the gender, weight, and height of the examinee named "Zhang San", and have an association relationship. In some embodiments, the association relationship may also represent the relationship between the data types of the records. For example, the data in an association data group are all string types. In this case, any data in the association data group can be used as identification data.
[0054] In some embodiments, the steps of generating target forms corresponding to the associated data groups respectively based on the target form template include: extracting data corresponding to identification data with different values from the intermediate data set through the identification data to form multiple associated data groups; wherein the number of the associated data groups is the same as the number of identification data with different values; and generating corresponding target forms based on the associated data groups.
[0055] In the step of generating a target form corresponding to the associated data groups respectively based on the target form template, the data of the intermediate data set can be first extracted by identification data and split into multiple associated data groups, and the target form can be generated on this basis. The intermediate data set can be more conveniently split into associated data groups by identification data. In some embodiments, the intermediate data set can be a data table including multiple fields. One of the fields can be used to record identification data. In the case, the method of splitting the intermediate data set into multiple associated data groups can be based on the identification field where the identification data is located, taking out each row of data in the data table with the same identification data to form multiple data sub-tables. Each data sub-table can correspond to an associated data group.
[0056] In some embodiments, the form generation method further includes: receiving an identification data set including identification data values; correspondingly, extracting data corresponding to identification data with different values from the intermediate data set through the identification data to form an associated data group, comprising: extracting data corresponding to the identification data values in the identification data set from the intermediate data set through the identification data set to form an associated data group; wherein the number of the associated data groups is the same as the number of identification data with different values in the identification data set.
[0057] In some business scenarios, it is necessary to generate a form for a specified object. Therefore, it is necessary to generate a target form based on the specified identification data to obtain the corresponding associated data group. Through the method, the number of generated target forms can be adjusted more flexibly based on the user's input to a certain extent. At the same time, compared with generating forms for all objects, the rate of generating forms can be improved to a certain extent. The identification data set is a set formed by the target identification data obtained by the server. The method for receiving the identification data set can be that the client sends it to the server and the server receives it. Of course, the receiving method can also include a setting instruction sent by the client for setting default identification data.
[0058] See also Figure 4 The embodiment of this specification provides a form generation method, which can be applied to a client and includes the following steps.
[0059] Step S210: Specify the target form template.
[0060] By specifying the target form template, data corresponding to the target form template can be obtained to generate the target form.
[0061] The method for specifying the target form template may be a form that receives input from the user, or may be a method for displaying a portion of the form templates based on historical accumulation to the user through the client, and receiving the user's instruction to select the form template, thereby specifying the target form template. The portion of the form templates displayed on the client may be arranged based on the number of times the form templates have been selected in history. After selecting a form template that has been accumulated in history, the user may also modify or add form items to the form template. In some implementations, the client may display only a portion of the content of the form template to the user, for example, the name of the form template or key form items may be displayed.
[0062] Step S220: Sending a form generation instruction including information of the target form template to the server, so that the server matches the data corresponding to the target form template in the data set to form an intermediate data set including a plurality of associated data groups, and generating a target form corresponding to the associated data groups respectively based on the target form template; wherein the associated data groups include a plurality of associated data.
[0063] After determining the target form template, the client can request the server for the target form corresponding to the target form template. Therefore, the client needs to send the information of the target form template to the server.
[0064] The form generation instruction may include information of the form template. In some implementations, the form generation instruction may also include specified identification data or other screening information.
[0065] The information of the form template may be the entire content of the target form template, including the name of the target form template, form items, etc. Of course, in some implementations, the information of the form template may also be an identifier corresponding to the target form template. Specifically, for example, the server and the client both store the same form template set. Among them, in the form template sets of the server and the client, the identifiers corresponding to the same form templates are the same. Therefore, the client only needs to send the identifier of the target form template to the server, and the server can determine the target form template and return the corresponding target form.
[0066] Step S230: receiving multiple target forms generated according to the target form template fed back by the server.
[0067] After sending the form generation instruction to the server, it is necessary to receive multiple target forms fed back by the server.
[0068] The method of the feedback may be that the server returns to the client immediately after generating the target form. Of course, the method of the feedback may also be that the client requests the server again before the server returns the corresponding target form.
[0069] In some embodiments, the target form may further include an identification form item. The identification form item may be used to record the identification data, and the name of the identification form item may be the meaning of the identification data in the business scenario. Specifically, for example, in a form in the medical field, the identification form item may be the patient's name, ID number, mobile phone number, etc. Of course, the identification form item may also be the patient's ID. In multiple target forms, the values of the identification form item are not the same. In some embodiments, the identification form item may be formed by multiple form items, and accordingly, the identification data in the same associated data group may also be multiple. When the values of multiple identification form items between two target forms are the same, the values of the identification form items included in the target form are considered to be the same, otherwise they are considered to be different. Specifically, for example, in a form in the medical field, the identification form item includes the patient's name and mobile phone number. When encountering two records of patients named "Zhang San", the system will search for the mobile phone numbers of the two patients named "Zhang San". When the mobile phone numbers of the two records are inconsistent, it can be considered that the names are two records for the two patients named "Zhang San" respectively. In the case, the data of the two patients named "Zhang San" should be filled into two target form templates respectively to form two target forms.
[0070] In some embodiments, the step of specifying the target form template includes: receiving a target form item; and determining the target form template according to the target form item. In the process of specifying the target form template, the client may present historically accumulated form items to the user. The user selects the form items to form the target form template. The presented form items may be a plurality of form items that have been selected the most times in history. In some embodiments, the receiving of the target form item may also be a form item actively input by the user. The form item may be a form item that has not appeared in history or a form item that has appeared in history.
[0071] In some embodiments, the form is a form in the medical field. For example, the form can be a form in a subject trial, including but not limited to a subject form, a center form, a visit form, a field group form, and various forms for checking various signs. The data set can represent a database, and the associated data group can include the examination item data corresponding to the subject. The identification data can be a subject ID, a subject name, a number, etc.
[0072] See also Figure 5 In some implementations, a form generation device 1000 may be provided, comprising: a form template specifying module 1100 , a data matching module 1200 , and a form generation module 1300 .
[0073] The form template specifying module 1100 is used to specify a target form template.
[0074] The data matching module 1200 is used to match the data corresponding to the target form template in the data set to form an intermediate data set; wherein the intermediate data set includes a plurality of associated data groups; wherein the associated data group includes a plurality of associated data.
[0075] The form generating module 1300 is configured to generate target forms corresponding to the associated data groups based on the target form templates.
[0076] See also Figure 6 In some implementations, a form generation device 2000 may be provided, including: a form template specifying module 2100 , an instruction sending module 2200 , and a form receiving module 2300 .
[0077] The form template specifying module 2100 is used to specify a target form template.
[0078] The instruction sending module 2200 is used to send a form generation instruction including information of the target form template to the server, so that the server matches the data corresponding to the target form template in the data set to form an intermediate data set including multiple associated data groups, and generates a target form corresponding to the associated data groups based on the target form template; wherein the associated data groups include multiple associated data.
[0079] The form receiving module 2300 is used to receive multiple target forms generated according to the target form template and fed back by the server.
[0080] The specific functions and effects achieved by the form generation device can be explained with reference to other embodiments of this specification, and will not be repeated here. Each module in the form generation device can be implemented in whole or in part by software, hardware, or a combination thereof. Each module can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute the operations corresponding to each of the above modules.
[0081] In some implementations, a computer device may be provided, including a memory and a processor, wherein a computer program is stored in the memory, and the steps of the method in the implementation are implemented when the processor executes the computer program.
[0082] In some embodiments, a computer-readable storage medium may be provided, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the method in the embodiment are implemented. Regarding the specific functions and effects implemented by the form generation device, reference can be made to other embodiments of this specification for comparative explanation, and no further description is given here. Each module in the form generation device may be implemented in whole or in part by software, hardware, and a combination thereof. Each module may be embedded in or independent of a processor in a computer device in the form of hardware, or may be stored in a memory in a computer device in the form of software, so that the processor can call and execute the operations corresponding to each of the above modules.
[0083] In some implementations, a computer device may be provided, including a memory and a processor, wherein a computer program is stored in the memory, and the steps of the method in the implementation are implemented when the processor executes the computer program.
[0084] In some embodiments, a computer-readable storage medium may be provided, on which a computer program is stored. When the computer program is executed by a processor, the steps of the method in the embodiment are implemented.
[0085] Those of ordinary skill in the art can understand that all or part of the processes in the implementation method can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the implementation methods of the methods described. Among them, any reference to memory, storage, database or other media used in the various implementations provided in this specification may include at least one of non-volatile and volatile memory. Non-volatile memory may include read-only memory (ROM), magnetic tape, floppy disk, flash memory or optical memory, etc. Volatile memory may include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM).
[0086] It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of the processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0087] The descriptions of the various embodiments of this specification are made in a progressive manner. Different embodiments focus on describing the parts that are different from other embodiments. After reading this specification, a person skilled in the art can know that the various embodiments in this specification, as well as the various technical features disclosed in the embodiments, can be combined in more ways. To make the description concise, not all possible combinations of the various technical features in the embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0088] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.
[0089] The above description is only an implementation method of this case and is not intended to limit the scope of protection of the claims of this case. For those skilled in the art, this case may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of this case should be included in the scope of the claims of this case.
Claims
1. A form generation method for medical subject experiments, characterized in that: Applicable to servers, including: Specify the target form template corresponding to the subject; Matching data corresponding to the target form template in a data set to form an intermediate data set; wherein the data set includes multiple data tables; data in different data tables represent different business levels; data in the same data table represent data corresponding to the same actual business; the intermediate data set includes multiple associated data groups; wherein the associated data group includes multiple associated data; the associated data in each associated data group corresponds to the same subject; Based on the target form template, target forms are generated corresponding to the associated data groups respectively, and the target forms and corresponding subject information are displayed in a human-computer interaction interface.
2. The method according to claim 1, characterized in that The step of specifying a target form template includes: Receiving a target form template identifier for representing a target form template in the form template set; wherein the form template set includes form templates based on historical accumulation; The target form template identifier is used to match and obtain a target form template in the form template collection.
3. The method according to claim 1, characterized in that The step of matching the data corresponding to the target form template in the data set to form an intermediate data set includes: The data tables are merged according to the designated common fields between the data tables to form the intermediate data set.
4. The method according to claim 3, characterized in that The multiple data tables respectively include data of different categories; the method further includes: Determining a target data table corresponding to the target form item in the target form template in the data set; Correspondingly, the step of merging the data tables to form the intermediate data set based on the specified common fields between the data tables includes: merging the data tables to form the intermediate data set based on the specified common fields between the target data tables.
5. The method according to claim 1, characterized in that: The plurality of associated data groups include identification data with different values, and the data in the associated data groups are associated with the identification data with corresponding values in the associated data groups.
6. The method according to claim 5, characterized in that The step of generating target forms corresponding to the associated data groups based on the target form templates comprises: By using the identification data, data corresponding to identification data with different values are extracted from the intermediate data set to form a plurality of associated data groups; wherein the number of the associated data groups is the same as the number of identification data with different values; Based on the associated data set, a corresponding target form is generated.
7. The method according to claim 6, characterized in that Also includes: Receiving an identification data set including identification data values; Correspondingly, the step of extracting data corresponding to identification data with different values from the intermediate data set through the identification data to form associated data groups includes: extracting data corresponding to the identification data values in the identification data set from the intermediate data set through the identification data set to form associated data groups; wherein the number of the associated data groups is the same as the number of identification data with different values in the identification data set.
8. A form generation method for medical subject experiments, applied to a client, characterized in that: include: Specify the target form template corresponding to the subject; Sending a form generation instruction including information of the target form template to a server, so that the server matches data corresponding to the target form template in a data set, forms an intermediate data set including a plurality of associated data groups, and generates a target form corresponding to each of the associated data groups based on the target form template; wherein the data set includes a plurality of data tables; data in different data tables represent different business levels; data in the same data table represent data corresponding to the same actual business; the associated data groups include a plurality of associated data; and the associated data in each associated data group corresponds to the same subject; A plurality of target forms generated according to the target form template and fed back by the server are received, and each target form and corresponding subject information are displayed in a human-computer interaction interface.
9. The method according to claim 8, characterized in that The step of specifying a target form template includes: Receive the target form item; According to the target form item, a target form template is determined.
10. The method according to any one of claims 1 to 9, characterized in that The form is a form in the medical field.
11. A device for generating a form for medical subject experiments, characterized in that: include: A form template specifying module, used for specifying a target form template corresponding to a subject; A data matching module is used to match data corresponding to the target form template in a data set to form an intermediate data set; wherein the data set includes multiple data tables; data in different data tables represent different business levels; data in the same data table represent data corresponding to the same actual business; the intermediate data set includes multiple associated data groups; wherein the associated data group includes multiple associated data; the associated data in each associated data group corresponds to the same subject; The form generation module is used to generate target forms corresponding to the associated data groups based on the target form template, and display the target forms and corresponding subject information in a human-computer interaction interface.
12. A device for generating a form for medical subject experiments, characterized in that: include: A form template specifying module, used for specifying a target form template corresponding to a subject; An instruction sending module is used to send a form generation instruction including information of the target form template to a server, so that the server matches data corresponding to the target form template in a data set to form an intermediate data set including a plurality of associated data groups, and generates a target form corresponding to the associated data groups based on the target form template; wherein the data set includes a plurality of data tables; data in different data tables represent different business levels; data in the same data table represent data corresponding to the same actual business; the associated data groups include a plurality of associated data; and the associated data in each associated data group corresponds to the same subject; The form receiving module is used to receive multiple target forms generated according to the target form template and fed back by the server, and display the target forms and corresponding subject information in the human-computer interaction interface.
13. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the method according to any one of claims 1 to 10 is implemented.
14. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 10 is implemented.
Citation Information
Patent Citations
Abnormal sales personnel identification method and device, and processing device
CN108776899A
Data extraction method and device, equipment and storage medium
CN111813849A