A form generation method, device, electronic device and storage medium

The method and apparatus dynamically generate customizable table formats by processing text and graphic areas with specific parameters, addressing the inflexibility of existing table formats and improving diagnostic record usability.

CN115034190BActive Publication Date: 2025-07-15GUAHAO (HANGZHOU) TECH CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202210728729.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-06-24
Publication Date
2025-07-15
Estimated Expiration
2042-06-24

AI Technical Summary

Technical Problem

In the prior art, the form format is single and fixed, and it is difficult to match different business needs, resulting in medical staff not being flexible and convenient enough when recording and viewing diagnosis and treatment information.

Method used

By obtaining the pending area of the form to be generated, the form drawing parameters are determined, and the to be processed is drawn based on these parameters, the to be filled area is generated, and finally the to be filled information is filled to the corresponding area, and the target form is generated to meet business needs.

Benefits of technology

It realizes flexible generation of forms that match business needs, improving the convenience of medical staff in recording and viewing diagnosis and treatment information.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115034190B_ABST
    Figure CN115034190B_ABST
Patent Text Reader

Abstract

The present invention discloses a form generation method, apparatus, electronic device and storage medium. The method includes: obtaining at least one area to be processed corresponding to the form to be generated; where the at least one area to be processed includes a text processing area and / or a drawing area; determining form drawing parameters corresponding to each area to be processed, and performing drawing processing on the corresponding area to be processed based on the form drawing parameters to obtain areas to be filled; filling the information to be filled into the corresponding areas to be filled to obtain a target form, so as to display the target form when a form acquisition instruction is received. The problem that the form format is single and fixed and it is difficult to generate a form that matches different business requirements is solved, and the effect of flexibly generating a form that matches the business requirements is achieved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of data processing, and in particular, to a form generation method, apparatus, electronic device, and storage medium. Background Art

[0002] When making a medical record of a visiting user, in order to facilitate viewing the medical record information of the visiting user, text records can be used, and graphic information can be used as an auxiliary record.

[0003] Currently, when performing corresponding form conversion according to the medical information of a visiting user, it is mostly necessary to download corresponding client software and record and view the medical information based on this client software. However, such a method is not very convenient for medical staff and usually has a weak ability to configure medical information.

[0004] In order to better record medical information, it is necessary to improve the corresponding form generation method. Summary of the Invention

[0005] The present invention provides a form generation method, apparatus, electronic device, and storage medium to solve the problem that the form format is single and fixed and it is difficult to generate a form that matches different business requirements.

[0006] In a first aspect, an embodiment of the present invention provides a form generation method, including:

[0007] Obtaining at least one area to be processed corresponding to the form to be generated; wherein, the at least one area to be processed includes a text processing area and / or a drawing area;

[0008] Determining form drawing parameters corresponding to each area to be processed, and performing drawing processing on the corresponding area to be processed based on the form drawing parameters to obtain an area to be filled;

[0009] Filling the information to be filled into the corresponding area to be filled to obtain a target form, so as to display the target form when a form acquisition instruction is received.

[0010] In a second aspect, an embodiment of the present invention further provides a form generation apparatus, including:

[0011] An area to be processed acquisition module, configured to obtain at least one area to be processed corresponding to the form to be generated; wherein, the at least one area to be processed includes a text processing area and / or a drawing area;

[0012] An area to be filled determination module, configured to determine form drawing parameters corresponding to each area to be processed, and perform drawing processing on the corresponding area to be processed based on the form drawing parameters to obtain an area to be filled;

[0013] A target form determination module, configured to fill the information to be filled into corresponding areas to be filled, so as to obtain a target form, and display the target form when receiving a form acquisition instruction.

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

[0015] At least one processor; and

[0016] A memory communicatively connected to the at least one processor; wherein,

[0017] The memory stores a computer program executable by the at least one processor, and when the computer program is executed by the at least one processor, the at least one processor is enabled to execute the form generation method according to any embodiment of the present invention.

[0018] In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, which stores computer instructions for enabling a processor to implement the form generation method according to any embodiment of the present invention when executed.

[0019] The technical solution of this embodiment obtains at least one area to be processed corresponding to the form to be generated. The area to be processed includes a text processing area and a drawing area. According to the information identifier carried in the information to be used in the form to be generated, the corresponding text processing area and / or drawing area can be retrieved from the target database. Determine the form drawing parameters corresponding to each area to be processed, and perform drawing processing on the corresponding area to be processed based on the form drawing parameters to obtain the areas to be filled. Determine the height parameters and width parameters corresponding to each area to be processed, so as to perform drawing on the area to be processed based on the corresponding height parameters and width parameters to obtain the corresponding areas to be filled. Fill the information to be filled into the corresponding areas to be filled to obtain a target form, and display the target form when receiving a form acquisition instruction. Based on the areas to be filled and the corresponding information to be filled, a target form can be generated, and when receiving a form acquisition instruction, the target form is displayed. It solves the problem that the form format is single and fixed, and it is difficult to generate forms that match different business requirements, and achieves the effect of flexibly generating forms that match business requirements.

[0020] It should be understood that the content described in this part is not intended to identify the key or important features of the embodiments of the present invention, nor is it used to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] To more clearly illustrate the technical solutions in the embodiments of the present invention, the following will briefly introduce the accompanying drawings required for description in the embodiments. Obviously, the accompanying drawings in the following description are only some embodiments of the present invention. For those of ordinary skill in the art, without creative efforts, other accompanying drawings can also be obtained based on these drawings.

[0022] Figure 1 is a flowchart of a form generation method provided in Embodiment 1 of the present invention;

[0023] Figure 2 is a flowchart of a form generation method provided in Embodiment 2 of the present invention;

[0024] Figure 3 is a schematic structural diagram of a form generation device provided in Embodiment 4 of the present invention;

[0025] Figure 4 is a schematic structural diagram of an electronic device for implementing the form generation method of the embodiments of the present invention; Detailed implementation manners

[0026] In order to enable those skilled in the art to better understand the solutions of the present invention, the following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.

[0027] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above accompanying drawings are used to distinguish similar objects, and do not necessarily need to describe a specific order or sequence. It should be understood that such data can be interchanged under appropriate circumstances so that the embodiments of the present invention described herein can be implemented in an order different from those illustrated or described herein.

[0028] Embodiment 1

[0029] Figure 1 This is a flowchart of a form generation method provided in Embodiment 1 of the present invention. This embodiment is applicable to the situation of flexibly generating forms based on business requirements. This method can be executed by a form generation device, which can be implemented in the form of hardware and / or software, and the form generation device can be configured in a computing device capable of executing the form generation method.

[0030] As Figure 1 shown, the method includes:

[0031] S110. Obtain at least one area to be processed corresponding to the form to be generated.

[0032] Herein, the form to be generated can be understood as a form designed according to business requirements. The form to be generated may include text and graphics. For example, it can be a medical information form related to the patient seeking medical treatment, or a form related to customer information in sales work, etc. The area to be processed includes a text processing area and / or a drawing area.

[0033] Specifically, in many scenarios of daily work and life, in order to intuitively view certain information, the method of drawing a form can be adopted to process this information to obtain the corresponding form to be generated, so as to be intuitively reflected through the form to be generated. Generally, the form to be generated includes at least one text processing area and / or at least one drawing area.

[0034] Exemplarily, during the process of diagnosing and treating a patient seeking medical treatment by a medical institution, it is necessary to constantly pay attention to the development and changes of the patient's condition. Therefore, it is necessary to record the various physical signs information of the patient seeking medical treatment. If it is recorded in a simple information recording method, it may not be possible to intuitively see the changes in the various physical signs information of the patient seeking medical treatment. Therefore, according to this information related to the patient seeking medical treatment, a corresponding form can be generated to facilitate medical staff to observe the changes in the patient's condition according to the form. Specifically, in the form related to the patient seeking medical treatment, it may include basic information associated with the patient seeking medical treatment, such as text information such as name, ID number, inpatient department, diagnosis and treatment information, and hospitalization-related information. It may also include image information drawn based on the physical signs information of the patient seeking medical treatment, such as a line graph of the body temperature change of the patient seeking medical treatment. It should be noted that the physical signs information of the patient seeking medical treatment usually includes multiple items, and different physical signs information can be drawn according to the actual situation and expressed accordingly in different image expression methods.

[0035] Optionally, the obtaining of at least one area to be processed corresponding to the form to be generated includes: determining the information to be used in the form to be generated; and retrieving, from the target database, the area to be processed corresponding to the identification to be recognized according to the information identifier carried by the information to be used.

[0036] Herein, the information to be used can be understood as the characteristic information of the form to be processed. For example, taking the medical record form of a patient seeking medical treatment as an example, the information to be used can be any one of the medical record type information, department information, and diagnosis and treatment information in the medical record form information. The information identifier can be the identifying information of the information to be used. For example, it can be the keyword in the information to be used. The target database can be understood as a database for storing different areas to be matched. For example, it can include a text processing area and a drawing area.

[0037] Specifically, according to different information required in the form to be processed, the corresponding areas to be processed need to be retrieved from the target database, including a text processing area and a drawing area. During the retrieval process, the corresponding retrieval can be performed from the target database through the information identifier carried by the information to be used.

[0038] S120. Determine the form drawing parameters corresponding to each area to be processed, and perform drawing processing on the corresponding area to be processed based on the form drawing parameters to obtain the area to be filled.

[0039] Among them, the form drawing parameters can be understood as the size information of each area to be processed, such as width and height. The area to be filled can be understood as the area obtained by performing drawing on the area to be processed based on the corresponding form drawing parameters. It should be noted that the area to be filled can be an area containing cells, an area containing small squares, or a blank area, etc.

[0040] Specifically, the form to be generated includes at least one area to be processed, and the form drawing parameters corresponding to each area to be processed are different. Drawing on the corresponding area to be processed according to the determined form drawing parameters can obtain the corresponding area to be filled.

[0041] Optionally, the area to be filled includes a text filling area. The determining the form drawing parameters corresponding to each area to be processed and performing drawing processing on the corresponding area to be processed based on the form drawing parameters to obtain the area to be filled includes: if the area to be processed is the text processing area, determining the cell drawing parameters corresponding to the cells to be used in the text processing area; performing drawing processing on the cells to be used based on the cell drawing parameters to obtain the text area to be filled corresponding to the text processing area.

[0042] Among them, the text processing area can be understood as all areas to be processed where the information is text information. The cells to be used can be understood as the cells in the text processing area. For example, in the text processing area, there are 2 rows of information corresponding to the visiting user, and each row can include 3 different pieces of information, so there are 6 cells to be used in the cells to be used. The cell drawing parameters include the height and width of the cells to be used. The text area to be filled can be understood as the cell area for filling text information.

[0043] Specifically, the word processing area may contain at least one cell to be used. Generally, the number of cells to be used should be greater than the number of medical user information to be filled, so as to fully display the information related to the medical user according to the filling information in each cell to be used. At the same time, when setting the cells to be used, it is necessary to determine the cell drawing parameters corresponding to the cells to be used, and draw the corresponding cells to be used based on the cell drawing parameters to obtain a text area to be filled corresponding to the word processing area.

[0044] S130. Fill the information to be filled into the corresponding area to be filled to obtain a target form, so as to display the target form when a form acquisition instruction is received.

[0045] Among them, the information to be filled may include text information to be filled and graphic information to be filled. Correspondingly, the area to be filled may include a text filling area and a graphic filling area. The target form can be understood as a form to be generated containing the information to be filled. For example, it can be a medical record form containing the information of the medical user. The form acquisition instruction can be understood as an instruction for acquiring the target form.

[0046] Specifically, after filling the information to be filled into the corresponding area to be filled, a target form is obtained. When the medical user needs to obtain the target form, a corresponding form acquisition instruction can be triggered in the target display interface, and the target form is displayed based on the target display interface.

[0047] Optionally, filling the information to be filled into the corresponding area to be filled includes: determining at least one keyword to be used corresponding to the text area to be filled; retrieving the text information to be filled corresponding to each keyword to be used from the information database, and filling the text information to be filled into the text position to be filled corresponding to each keyword to be used.

[0048] Among them, taking the medical record form of the medical user as an example, the keywords to be used may include the keywords corresponding to the basic information, department information, diagnosis information, and physical sign information associated with the medical user. The information database can be understood as a database for storing various information associated with each medical user. For example, it can be a database used by a medical institution to store the information of medical users. The text information to be filled can be understood as the information corresponding to each keyword to be used. Usually, the corresponding keyword to be used is included in the text information to be filled, so that the corresponding text information to be filled can be obtained according to the keyword to be used. The text position to be filled can be understood as the position in the area to be filled corresponding to the corresponding keyword to be used.

[0049] Specifically, after obtaining the area to be filled, in order to further draw the form to be generated, corresponding keywords to be used can be set in the area to be filled. For example, it can include the height, weight, body temperature, heart rate, respiratory rate, pulse, blood pressure of the visiting user, as well as the situation of defecation and urination. It can also include keywords such as date, length of hospital stay, surgery date, and postoperative date. Usually, this information can be stored in the information database. According to the corresponding keywords to be used, the corresponding text information to be filled can be retrieved from the information database, and each text information to be filled is filled into the text position to be filled corresponding to each keyword to be used.

[0050] Optionally, filling the information to be filled into the corresponding area to be filled to obtain a target form, and when receiving a form acquisition instruction, displaying the target form, includes: generating a target form based on the filled area and the corresponding information to be filled; when receiving a form acquisition instruction corresponding to the target form, sending the target form to the target client to display the target form based on the target client.

[0051] The technical solution of this embodiment obtains at least one area to be processed corresponding to the form to be generated. The area to be processed includes a text processing area and a drawing area. According to the information identifier carried in the information to be used in the form to be generated, the corresponding text processing area and / or drawing area can be retrieved from the target database. Determine the form drawing parameters corresponding to each area to be processed, and perform drawing processing on the corresponding area to be processed based on the form drawing parameters to obtain the area to be filled. Determine the height parameter and width parameter corresponding to each area to be processed, and perform drawing on the area to be processed based on the corresponding height parameter and width parameter to obtain the corresponding area to be filled. Fill the information to be filled into the corresponding area to be filled to obtain a target form, and when receiving a form acquisition instruction, display the target form. Based on the area to be filled and the corresponding information to be filled, a target form can be generated, and when receiving a form acquisition instruction, the target form is displayed. This solves the problem that the form format is single and fixed, and it is difficult to generate forms that match different business requirements, and achieves the effect of flexibly generating forms that match business requirements.

[0052] Embodiment 2

[0053] Figure 2 It is a flowchart of a form generation method provided by Embodiment 2 of the present invention. Optionally, the area to be filled includes a graphic filling area, and the determination of the form drawing parameters corresponding to each area to be processed and the drawing processing of the corresponding area to be processed based on the form drawing parameters to obtain the area to be filled are refined.

[0054] As Figure 2 shown, the method includes:

[0055] S210. Obtain at least one area to be processed corresponding to the form to be generated.

[0056] S220. Determine form drawing parameters corresponding to each area to be processed, and perform drawing processing on the corresponding area to be processed based on the form drawing parameters to obtain areas to be filled.

[0057] Taking the area to be filled as a graphic filling area as an example, the determining form drawing parameters corresponding to each area to be processed and performing drawing processing on the corresponding area to be processed based on the form drawing parameters to obtain areas to be filled includes: if the area to be processed is the drawing area, determining the parameter value of the height to be used of the drawing area according to the height to be used of the form to be generated, and determining the parameter value of the width to be used of the drawing area according to the width to be used of the form to be generated; performing drawing processing on the drawing area based on the parameter value of the height to be used and the parameter value of the width to be used to obtain a graphic area to be filled corresponding to the drawing area.

[0058] Among them, the drawing area can be understood as an area for displaying a graphic generated based on data to be drawn. The height to be used can be understood as the height information of the drawing area, and the parameter value of the height to be used can be understood as the parameter value of the height to be used. The width to be used can be understood as the width information of the drawing area, and the parameter value of the width to be used can be understood as the parameter value of the width to be used.

[0059] Specifically, the areas to be filled in the form to be generated can not only include text areas to be filled, but also include graphic areas to be filled. When the area to be filled is the drawing area, it is necessary to preset the parameter value of the height to be used and the parameter value of the width to be used corresponding to the drawing area, and draw the drawing area according to the parameter value of the height to be used and the parameter value of the width to be used to obtain a graphic area to be filled.

[0060] Exemplarily, the parameter value of the height to be used and the parameter value of the width to be used of the graphic area to be filled can be set correspondingly according to the height and width of the form to be generated. For example, the parameter value of the width to be used of the graphic area to be filled can be set according to the width information of the form to be generated, and the parameter value of the height to be used can be set proportionally according to the parameter value of the width to be used, so as to draw the graphic area to be filled based on the parameter value of the height to be used and the parameter value of the width to be used.

[0061] Optionally, the filling the information to be filled into the corresponding area to be filled includes: obtaining at least one data to be drawn corresponding to the graphic area to be filled; performing graphic drawing on the at least one data to be drawn based on a preset drawing method to obtain a graphic to be used, and filling the graphic to be used into the graphic area to be filled.

[0062] Specifically, taking the medical record form to be generated for the visiting user as an example, the medical record form may include the physical signs information of the visiting user, and the physical signs information of the visiting user may be used as the data to be plotted. Since the physical signs information of the visiting user is constantly changing over time, the changes in the physical signs information of the visiting user can be presented in the form of a graph. The graph to be used can be understood as a graph drawn based on the data to be plotted. Among them, the preset plotting methods include at least one of line plotting, dashed-line plotting, and geometric-graph plotting.

[0063] S230. Fill the information to be filled into the corresponding area to be filled to obtain a target form, so as to display the target form when receiving a form acquisition instruction.

[0064] The technical solution of this embodiment is to obtain at least one area to be processed corresponding to the form to be generated. The area to be processed includes a text processing area and a plotting area. According to the information identifier carried in the information to be used in the form to be generated, the corresponding text processing area and / or plotting area can be retrieved from the target database. Determine the form drawing parameters corresponding to each area to be processed, and perform drawing processing on the corresponding area to be processed based on the form drawing parameters to obtain the area to be filled. Determine the height parameter and width parameter corresponding to each area to be processed, so as to perform drawing on the area to be processed based on the corresponding height parameter and width parameter to obtain the corresponding area to be filled. Fill the information to be filled into the corresponding area to be filled to obtain a target form, so as to display the target form when receiving a form acquisition instruction. Based on the area to be filled and the corresponding information to be filled, a target form can be generated, so as to display the target form when receiving a form acquisition instruction. This solves the problem that the form format is single and fixed, and it is difficult to generate a form that matches different business requirements, and achieves the effect of flexibly generating a form that matches the business requirements.

[0065] Embodiment Three

[0066] In a specific example, taking the temperature sheet to be generated for the visiting user as an example, in the temperature sheet, data can be collected at 6 time points every day with a 7-day cycle as a period. The core data includes body temperature, temperature reduction, pulse, heart rate, respiration, and special events. The additional data information that can be added every day includes: optional content such as the number of urinations, the number of defecations, the fluid intake and output, and drug allergies.

[0067] To facilitate monitoring the condition changes of visiting users based on the temperature sheet, different areas (i.e., areas to be processed) can be set in the temperature sheet, including a text processing area and / or a drawing area. Exemplarily, the text processing area in the temperature sheet can include a top basic display area, a table top display area, and a table bottom display area. Among them, the top basic display area can include the name of the visiting user, admission date, diagnosis, department, etc. (i.e., information to be used), and specific fields can be set according to actual needs. The table top display area can include fields such as date, length of hospital stay, number of days after surgery or childbirth. The table bottom display area includes fields such as blood pressure, fluid intake, urine output, stools, urine, and height. Specifically, when generating the text processing area, at least one cell to be used in the text processing area can be determined according to the number of fields included in the text processing area, and the cell drawing parameters of the cell to be used can be determined, such as the height of the cell to be used, denoted as H1. The text processing area can be used to display basic information and medical treatment information associated with the visiting user, and the drawing area can be used to display the physical sign information (i.e., data to be drawn) that can change for the visiting user, such as the oral temperature, axillary temperature, heart rate, pulse, and temperature after physical cooling of the visiting user. Exemplarily, in the temperature sheet (i.e., the form to be generated), draw a horizontal line with the starting point at the leftmost end of the form to be generated, the starting height being H1, and the ending point at the rightmost end of the table. Repeat drawing each field according to the single and fixed row height spacing and the number of fields. Then, obtain the height information of this text processing area by multiplying the number of fields by the row height, draw a vertical line, and denote the ending height after drawing as H2. Further, start drawing at the H2 height, use 1 / 8 of the total width of the temperature sheet table as the large cell height, denoted as TH. Use TH and H2 as the starting points and the table width as the ending point. Repeat drawing 6 horizontal lines. Then draw a horizontal line with 1 / 5 of TH as the row height. The horizontal line part of the cells in the central area can be obtained. Then use TH as the interval and 1 / 5 of TH as the interval to draw vertical lines, and denote the height at this time as H4. Use 1 / 2 of TH and H2 as the starting points to draw a straight line, and then draw text at the H2 height, and the basic blank temperature sheet can be completed.

[0068] After generating the temperature chart, obtain the corresponding information to be filled in each area to be processed, and fill the information to be filled in the corresponding positions to be filled. Exemplarily, taking the graphical area to be filled as an example, obtain the physical signs information of the visiting user (i.e., the data to be plotted), and display the physical signs information in a line graph. It should be noted that if the height and width of the graphical area to be filled in the temperature chart are single and fixed parameters, when the value of the physical signs information exceeds the pre-set value in the graphical area to be filled, it is necessary to mark the data to be plotted that exceeds the graphical area to be filled. For example, in the graphical area to be filled, the highest body temperature is 40 °C. If the body temperature data of a visiting user is 42 °C at a certain time, since the graphical area to be filled cannot display this value, it is necessary to mark the body temperature value at this place in a special way, such as using an upward arrow and assisting with the specific body temperature value for marking.

[0069] In addition, after generating the target form based on the area to be filled and the corresponding information to be filled, corresponding trigger conditions can also be set in the target form. For example, when the staff or user viewing the target form moves the mouse to a certain point or area, the specific information at this point will be automatically displayed, such as the body temperature data of the visiting user is 42 °C, after physical cooling it is 39 °C, and the time information before and after physical cooling, etc. Further, when receiving a form acquisition instruction, the target form is sent to the corresponding client to display the target form based on the target display interface of the client.

[0070] The technical solution of this embodiment obtains at least one area to be processed corresponding to the form to be generated. The area to be processed includes a text processing area and a drawing area. According to the information identifier carried in the information to be used in the form to be generated, the corresponding text processing area and / or drawing area can be retrieved from the target database. Determine the form drawing parameters corresponding to each area to be processed, and perform drawing processing on the corresponding area to be processed based on the form drawing parameters to obtain the area to be filled. Determine the height parameters and width parameters corresponding to each area to be processed, and perform drawing on the area to be processed based on the corresponding height parameters and width parameters to obtain the corresponding area to be filled. Fill the information to be filled in the corresponding area to be filled to obtain the target form, so as to display the target form when receiving a form acquisition instruction. Based on the area to be filled and the corresponding information to be filled, a target form can be generated, so as to display the target form when receiving a form acquisition instruction. This solves the problem that the form format is single and fixed, and it is difficult to generate forms that match different business requirements, and achieves the effect of flexibly generating forms that match business requirements.

[0071] Embodiment 4

[0072] Figure 3 This is a schematic structural diagram of a form generation device provided in Embodiment 4 of the present invention. As Figure 3As shown in the figure, the device includes: a to-be-processed area acquisition module 310, a to-be-filled area determination module 320, and a target form determination module 330.

[0073] Among them, the to-be-processed area acquisition module 310 is used to acquire at least one to-be-processed area corresponding to the to-be-generated form; among them, the at least one to-be-processed area includes a text processing area and / or a drawing area;

[0074] The to-be-filled area determination module 320 is used to determine form drawing parameters corresponding to each to-be-processed area, and perform drawing processing on the corresponding to-be-processed area based on the form drawing parameters to obtain a to-be-filled area;

[0075] The target form determination module 330 is used to fill the to-be-filled information into the corresponding to-be-filled area to obtain a target form, so as to display the target form when a form acquisition instruction is received.

[0076] The technical solution of this embodiment acquires at least one to-be-processed area corresponding to the to-be-generated form. The to-be-processed area includes a text processing area and a drawing area. According to the information identifier carried in the to-be-used information in the to-be-generated form, the corresponding text processing area and / or drawing area can be retrieved from the target database. Determine the form drawing parameters corresponding to each to-be-processed area, and perform drawing processing on the corresponding to-be-processed area based on the form drawing parameters to obtain a to-be-filled area, and determine the height parameter and width parameter corresponding to each to-be-processed area, so as to perform drawing on the to-be-processed area based on the corresponding height parameter and width parameter to obtain the corresponding to-be-filled area. Fill the to-be-filled information into the corresponding to-be-filled area to obtain a target form, so as to display the target form when a form acquisition instruction is received. Based on the to-be-filled area and the corresponding to-be-filled information, a target form can be generated, so as to display the target form when a form acquisition instruction is received. It solves the problem that the form format is single and fixed, and it is difficult to generate a form that matches different business requirements, and achieves the effect of flexibly generating a form that matches the business requirements.

[0077] Optionally, the to-be-processed area acquisition module includes: a to-be-used information determination sub-module, which is used to determine the to-be-used information in the to-be-generated form;

[0078] The to-be-processed area retrieval sub-module is used to retrieve, from the target database, the to-be-processed area corresponding to the to-be-identified identifier according to the information identifier carried by the to-be-used information; where the target database includes at least one to-be-matched area.

[0079] Optionally, the area to be filled determination module includes: a cell drawing parameter determination sub-module, configured to determine cell drawing parameters corresponding to the cells to be used in the text processing area if the area to be processed is the text processing area; wherein, at least one cell to be used is included in the text processing area, and the cell drawing parameters include the height and width of the cell to be used.

[0080] A text area to be filled determination sub-module, configured to perform a drawing process on the cells to be used based on the cell drawing parameters to obtain a text area to be filled corresponding to the text processing area.

[0081] Optionally, the area to be filled determination module includes: a parameter to be used determination sub-module, configured to determine a height parameter to be used for the drawing area according to the height to be used of the form to be generated, and determine a width parameter to be used for the drawing area according to the width to be used of the form to be generated if the area to be processed is the drawing area.

[0082] A graphic area to be filled determination sub-module, configured to perform a drawing process on the drawing area based on the height parameter to be used and the width parameter to be used to obtain a graphic area to be filled corresponding to the drawing area.

[0083] Optionally, the area to be filled determination module includes: a keyword to be used determination sub-module, configured to determine at least one keyword to be used corresponding to the text area to be filled.

[0084] A text position to be filled determination sub-module, configured to retrieve text information to be filled corresponding to each keyword to be used from an information database, and fill the text information to be filled into the text position to be filled corresponding to each keyword to be used.

[0085] Optionally, the area to be filled determination module includes: a data to be drawn acquisition sub-module, configured to acquire at least one data to be drawn corresponding to the graphic area to be filled.

[0086] A graphic area to be filled determination sub-module, configured to perform graphic drawing on the at least one data to be drawn based on a preset drawing method to obtain a graphic to be used, and fill the graphic to be used into the graphic area to be filled; wherein, the preset drawing method includes at least one of line drawing, dotted line drawing, and geometric graphic drawing.

[0087] Optionally, the target form determination module includes: a target form generation sub-module, configured to generate a target form based on the filled area and the corresponding information to be filled.

[0088] A target form display sub-module, which is configured to send the target form to a target client when receiving a form acquisition instruction corresponding to the target form, so as to display the target form based on the target client.

[0089] The form generation device provided by the embodiments of the present invention can execute the form generation method provided by any embodiment of the present invention, and has functional modules and beneficial effects corresponding to the execution of the method.

[0090] Embodiment Five

[0091] Figure 4 FIG. shows a schematic structural diagram of an electronic device 10 according to an embodiment of the present invention. The electronic device is intended to represent various forms of digital computers, such as, for example, a laptop computer, a desktop computer, a workbench, a personal digital assistant, a server, a blade server, a mainframe computer, and other suitable computers. The electronic device may also represent various forms of mobile devices, such as, for example, a personal digital processor, a cellular phone, a smart phone, a wearable device (such as a helmet, glasses, a watch, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely illustrative and are not intended to limit the implementation of the present invention described and / or claimed herein.

[0092] As Figure 4 shown, the electronic device 10 includes at least one processor 11, and a memory communicatively connected to the at least one processor 11, such as a read-only memory (ROM) 12, a random access memory (RAM) 13, etc. The memory stores a computer program executable by the at least one processor. The processor 11 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 12 or the computer program loaded from the storage unit 18 into the random access memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the electronic device 10 can also be stored. The processor 11, the ROM 12, and the RAM 13 are connected to each other via a bus 14. The input / output (I / O) interface 15 is also connected to the bus 14.

[0093] A plurality of components in the electronic device 10 are connected to the I / O interface 15, including: an input unit 16, such as a keyboard, a mouse, etc.; an output unit 17, such as various types of displays, speakers, etc.; a storage unit 18, such as a magnetic disk, an optical disc, etc.; and a communication unit 19, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.

[0094] Processor 11 may be various general-purpose and / or special-purpose processing components with processing and computing capabilities. Some examples of processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any suitable processor, controller, microcontroller, etc. Processor 11 executes the various methods and processes described above, such as the form generation method.

[0095] In some embodiments, the form generation method may be implemented as a computer program tangibly embodied in a computer-readable storage medium, such as storage unit 18. In some embodiments, part or all of the computer program may be loaded and / or installed onto the electronic device 10 via ROM 12 and / or communication unit 19. When the computer program is loaded into RAM 13 and executed by processor 11, one or more steps of the form generation method described above may be executed. Alternatively, in other embodiments, processor 11 may be configured to execute the form generation method by any other suitable means (e.g., by means of firmware).

[0096] The various embodiments of the systems and techniques described above herein can be implemented in digital electronic circuitry, integrated circuit systems, field programmable gate arrays (FPGA), application specific integrated circuits (ASIC), application specific standard products (ASSP), system-on-chip systems (SOC), complex programmable logic devices (CPLD), computer hardware, firmware, software, and / or combinations thereof. These various embodiments can include: implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special or general-purpose programmable processor that receives data and instructions from a storage system, at least one input device, and at least one output device, and transmits the data and instructions to the storage system, the at least one input device, and the at least one output device.

[0097] The computer program for implementing the form generation method of the present invention can be written in any combination of one or more programming languages. These computer programs can be provided to the processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, such that when the computer program is executed by the processor, the functions / operations specified in the flowchart and / or block diagram are implemented. The computer program can be executed entirely on the machine, partially on the machine, as a stand-alone software package partially on the machine and partially on a remote machine, or entirely on a remote machine or server.

[0098] In the context of the present invention, a computer-readable storage medium can be a tangible medium that can contain or store a computer program for use by or in connection with an instruction execution system, apparatus, or device. The computer-readable storage medium can include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatuses, or devices, or any suitable combination of the foregoing. Alternatively, the computer-readable storage medium can be a machine-readable signal medium. More specific examples of the machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or Flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0099] To provide for interaction with a user, the systems and techniques described herein can be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or a trackball) by which the user can provide input to the electronic device. Other kinds of devices can also be used to provide for interaction with the user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).

[0100] The systems and techniques described herein can be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., a user computer having a graphical user interface or a web browser through which the user can interact with an implementation of the systems and techniques described herein), or a computing system that includes any combination of such back-end components, middleware components, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.

[0101] A computing system may include a client and a server. The client and the server are generally far from each other and usually interact via a communication network. The client-server relationship is created by computer programs running on respective computers and having a client-server relationship with each other. The server can be a cloud server, also known as a cloud computing server or a cloud host, which is a host product in the cloud computing service system, and solves the defects of difficult management and weak business scalability existing in traditional physical hosts and VPS services.

[0102] It should be understood that various forms of processes shown above can be used, steps can be reordered, added or deleted. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and no limitations are imposed herein.

[0103] The above specific embodiments do not constitute a limitation on the protection scope of the present invention. Those skilled in the art should understand that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principle of the present invention shall be included within the protection scope of the present invention.

Claims

1. A form generation method, characterized in that, including: obtaining at least one area to be processed corresponding to the form to be generated; wherein, the at least one area to be processed includes a text processing area and a drawing area; determining form drawing parameters corresponding to each area to be processed, and performing drawing processing on the corresponding area to be processed based on the form drawing parameters to obtain areas to be filled; filling the information to be filled into the corresponding areas to be filled to obtain a target form, so as to display the target form when a form acquisition instruction is received; The obtaining at least one area to be processed corresponding to the form to be generated includes: determining the information to be used in the form to be generated; retrieving, from a target database, the area to be processed corresponding to the information identifier according to the information identifier carried by the information to be used; wherein, at least one area to be matched is included in the target database; The area to be filled includes a text filling area. The determining form drawing parameters corresponding to each area to be processed, and performing drawing processing on the corresponding area to be processed based on the form drawing parameters to obtain areas to be filled includes: if the area to be processed is the text processing area, determining cell drawing parameters corresponding to the cells to be used in the text processing area; wherein, at least one cell to be used is included in the text processing area, and the cell drawing parameters include the height and width of the cell to be used; performing drawing processing on the cells to be used based on the cell drawing parameters to obtain a text area to be filled corresponding to the text processing area; The area to be filled includes a graphic filling area. The determining form drawing parameters corresponding to each area to be processed, and performing drawing processing on the corresponding area to be processed based on the form drawing parameters to obtain areas to be filled includes: if the area to be processed is the drawing area, determining a height parameter to be used for the drawing area according to the height to be used of the form to be generated, and determining a width parameter to be used for the drawing area according to the width to be used of the form to be generated; performing drawing processing on the drawing area based on the height parameter to be used and the width parameter to be used to obtain a graphic area to be filled corresponding to the drawing area; The filling the information to be filled into the corresponding areas to be filled includes: obtaining at least one data to be drawn corresponding to the graphic area to be filled; performing graphic drawing on the at least one data to be drawn based on a preset drawing method to obtain a graphic to be used, and filling the graphic to be used into the graphic area to be filled.

2. The method according to claim 1, characterized in that, The filling the information to be filled into the corresponding areas to be filled includes: determining at least one keyword to be used corresponding to the text area to be filled; retrieving the text information to be filled corresponding to each keyword to be used from an information database, and filling the text information to be filled into the text filling positions corresponding to each keyword to be used.

3. The method according to claim 1, wherein The filling the information to be filled into the corresponding areas to be filled to obtain a target form, so as to display the target form when a form acquisition instruction is received includes: Generate a target form based on the filled area and corresponding information to be filled; When receiving a form acquisition instruction corresponding to the target form, send the target form to a target client to display the target form based on the target client.

4. A form generation device, characterized in that, Including: A to-be-processed area acquisition module, configured to acquire at least one to-be-processed area corresponding to a form to be generated; wherein, the at least one to-be-processed area includes a text processing area and a drawing area; A to-be-filled area determination module, configured to determine form drawing parameters corresponding to each to-be-processed area, and perform drawing processing on the corresponding to-be-processed area based on the form drawing parameters to obtain a to-be-filled area; A target form determination module, configured to fill the information to be filled into the corresponding to-be-filled area to obtain a target form, so as to display the target form when receiving a form acquisition instruction; The to-be-processed area acquisition module includes: A to-be-used information determination sub-module, configured to determine the to-be-used information in the form to be generated; A to-be-processed area retrieval sub-module, configured to retrieve, from a target database, a to-be-processed area corresponding to the information identifier carried by the to-be-used information according to the information identifier; wherein, the target database includes at least one to-be-matched area; The to-be-filled area determination module includes: A cell drawing parameter determination sub-module, configured to, if the to-be-processed area is the text processing area, determine cell drawing parameters corresponding to the to-be-used cells in the text processing area; wherein, the text processing area includes at least one to-be-used cell, and the cell drawing parameters include the height and width of the to-be-used cell; A text to-be-filled area determination sub-module, configured to perform drawing processing on the to-be-used cells based on the cell drawing parameters to obtain a text to-be-filled area corresponding to the text processing area; The to-be-filled area determination module includes: A to-be-used parameter determination sub-module, configured to, if the to-be-processed area is the drawing area, determine a to-be-used height parameter of the drawing area according to the to-be-used height of the form to be generated, and determine a to-be-used width parameter of the drawing area according to the to-be-used width of the form to be generated; A graphic to-be-filled area determination sub-module, configured to perform drawing processing on the drawing area based on the to-be-used height parameter and the to-be-used width parameter to obtain a graphic to-be-filled area corresponding to the drawing area; A to-be-drawn data acquisition sub-module, configured to acquire at least one to-be-drawn data corresponding to the graphic to-be-filled area; A graphic to-be-filled area determination sub-module, configured to perform graphic drawing on the at least one to-be-drawn data based on a preset drawing method to obtain a to-be-used graphic, and fill the to-be-used graphic into the graphic to-be-filled area.

5. An electronic device, characterized in that, The electronic device includes: At least one processor; and A memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor to enable the at least one processor to execute the form generation method according to any one of claims 1-3.

6. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer instructions for implementing the form generation method according to any one of claims 1-3 when the instructions are executed by a processor.

Citation Information

Patent Citations

  • Test report generation method and device, equipment and storage medium

    CN109726103A

  • Table dynamic drawing method based on Android platform

    CN113391861A

  • Form generation method and device based on dual-channel neural network model

    CN113487698A