Method and device for generating report document and computer readable storage medium

By obtaining user demand information, determining the target storage path and obtaining report templates, the problem of electronic devices generating fixed format report templates is solved, and the generation of personalized report documents is realized, and flexibility is improved.

CN120299598APending Publication Date: 2025-07-11WUHAN UNITED IMAGING HEALTHCARE SURGICAL TECH CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202410045515.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-01-11
Publication Date
2025-07-11

AI Technical Summary

Technical Problem

The report document templates generated by existing electronic devices are fixed and cannot meet the personalized needs of users. Especially in the medical field, personalized electrocardiogram, gastrointestinal detection and vital sign monitoring reports cannot be output.

Method used

By obtaining user demand information, determine the target storage path of the report template that matches the user demand, obtain the target report template, and generate report documents based on the template import data, supporting templates in fixed formats and custom formats.

Benefits of technology

Improve the flexibility of report documents, can meet users' personalized needs, and avoid the limitations of fixed-format report templates.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120299598A_ABST
    Figure CN120299598A_ABST
Patent Text Reader

Abstract

The invention provides a method and device for generating a report document and a computer readable storage medium, and the method comprises the steps: electronic equipment can obtain user demand information, the electronic equipment can determine a target storage path of a report template matched with the user demand information, different report templates are stored in different storage paths, and the target storage path is used for storing the report document. In the embodiment of the invention, the electronic equipment can obtain the target report template under the target storage path and import the corresponding data to generate the report document according to the target report template, and the user demand information can be the personalized demand information of the user, so that the report document generated by the electronic equipment can meet the personalized demand of the user, and the user experience is improved. A report document in a fixed format is prevented from being generated by adopting a report template in a fixed format, and the flexibility of generating the report document can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of electronic technology, and in particular, to a method, an apparatus, and a computer-readable storage medium for generating a report document in the field of electronic technology. Background Art

[0002] In the field of electronic technology, an electronic device can output a report document to a user. Usually, the template of the report document is fixed, and the report document output by the electronic device cannot meet the personalized needs of the user and is not flexible enough. For example, in the medical field, the template of the electrocardiogram report document output by the electronic device is fixed and cannot meet the need of a certain hospital to output a personalized electrocardiogram report document, making the output electrocardiogram report not flexible enough. Summary of the Invention

[0003] Embodiments of this application provide a method, an apparatus, and a computer-readable storage medium for generating a report document, which can improve the flexibility of generating a report document.

[0004] In a first aspect, a method for generating a report document is provided. The method includes: obtaining user requirement information; determining a target storage path of a report template that matches the user requirement information, where different user requirement information corresponds to different storage paths, and a corresponding report template is stored under each storage path; obtaining the target report template under the target storage path; and generating a report document by importing corresponding data according to the target report template.

[0005] Optionally, the user requirement information includes a report type and user configuration information; where determining the target storage path of the report template that matches the user requirement information includes: determining at least one storage path corresponding to the report type from a plurality of storage paths according to the report type; and determining the target storage path from the at least one storage path according to the user configuration information.

[0006] Optionally, the report type includes an electrocardiogram monitoring report type, a gastrointestinal detection report type, a respiratory monitoring report type, or a blood pressure monitoring report type.

[0007] Optionally, determining the target storage path from the at least one storage path according to the user configuration information includes: determining the at least one storage path of the first type according to the user configuration information indicating that the user's requirement is a report template in a fixed format and the required fixed format, and determining the target storage path of the first type from the at least one storage path of the first type; or, determining the at least one storage path of the second type according to the user configuration information indicating that the user's requirement is a report template in a custom format and the required custom format, and determining the target storage path of the second type from the at least one storage path of the second type; where the first type corresponds to the report template in the fixed format, and the second type corresponds to the report template in the custom format.

[0008] Optionally, obtaining the target report template under the target storage path includes: detecting and determining that the target storage path is of the first type, and obtaining the target report template under the target storage path by means of resource loading; or, detecting and determining that the target storage path is of the second type, and loading and obtaining the target report template under the target storage path by means of a file stream.

[0009] Optionally, before determining the target storage path of the report template that matches the user requirement information, the method further includes: obtaining at least one user-defined requirement; generating a custom report template corresponding to each user-defined requirement in the at least one user-defined requirement according to the at least one user-defined requirement; and storing the custom report template corresponding to each user-defined requirement in a storage path of the second type.

[0010] Optionally, generating a custom report template corresponding to each user-defined requirement in the at least one user-defined requirement according to the at least one user-defined requirement includes: determining a sub-template corresponding to each user-defined requirement in the at least one user-defined requirement; and generating a custom report template corresponding to each user-defined requirement according to the template identifier of the sub-template corresponding to each user-defined requirement.

[0011] In a second aspect, a device for generating a report document is provided, including:

[0012] An obtaining module, configured to obtain user requirement information; a processing module, configured to determine a target storage path of a report template that matches the user requirement information, where different user requirement information corresponds to different storage paths, and a corresponding report template is stored under each storage path; the obtaining module is further configured to obtain the target report template under the target storage path; the processing module is further configured to generate a report document by importing corresponding data according to the target report template:

[0013] Optionally, the user requirement information includes a report type and user configuration information; the processing module 420 is specifically configured to: determine at least one storage path corresponding to the report type from multiple storage paths according to the report type; and determine the target storage path from the at least one storage path according to the user configuration information.

[0014] Optionally, the report type includes an electrocardiogram monitoring report type, a gastrointestinal detection report type, a respiratory monitoring report type, or a blood pressure monitoring report type.

[0015] Optionally, the processing module is specifically configured to: determine at least one storage path of the first type according to the user's requirement indicated by the user configuration information as a report template in a fixed format and the required fixed format, and determine the target storage path of the first type from the at least one storage path of the first type; or determine at least one storage path of the second type according to the user's requirement indicated by the user configuration information as a report template in a custom format and the required custom format, and determine the target storage path of the second type from the at least one storage path of the second type; where the first type corresponds to the report template in the fixed format, and the second type corresponds to the report template in the custom format.

[0016] Optionally, the obtaining module is specifically configured to: detect and determine that the target storage path is of the first type, and then obtain the target report template under the target storage path by means of resource loading; or detect and determine that the target storage path is of the second type, and then load and obtain the target report template under the target storage path by means of a file stream.

[0017] Optionally, the obtaining module is further configured to obtain at least one user-defined requirement before determining the target storage path of the report template that matches the user requirement information; the processing module 420 is further configured to generate a custom report template corresponding to each user-defined requirement in the at least one user-defined requirement according to the at least one user-defined requirement; and store the custom report template corresponding to each user-defined requirement under a storage path of the second type.

[0018] Optionally, the processing module is specifically configured to: determine a sub-template corresponding to each user-defined requirement in the at least one user-defined requirement; and generate a custom report template corresponding to each user-defined requirement according to the template identifier of the sub-template corresponding to each user-defined requirement.

[0019] In a third aspect, a device is provided, which has the functions implemented in any one of the above first aspects. The functions can be implemented by hardware or by hardware executing corresponding software. The hardware or software includes one or more modules or units corresponding to the above functions.

[0020] In a fourth aspect, an embodiment of the present application provides a device, including: a memory and a processor, the memory is used to store a computer program; the processor is used to cause the device to execute the method described in any one of the above first aspects when calling the computer program.

[0021] In a fifth aspect, an embodiment of the present application provides a chip system, the chip system includes a processor, the processor is coupled to a memory, and the processor executes a computer program stored in the memory to implement the method described in any one of the above first aspects.

[0022] Wherein, the chip system can be a single chip or a chip module composed of multiple chips.

[0023] In a sixth aspect, an embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, it implements the method described in any one of the above first aspects.

[0024] In a seventh aspect, an embodiment of the present application provides a computer program product, when the computer program product runs on a device, it causes the device to execute the method described in any one of the above first aspects.

[0025] In the embodiments of the present application, an electronic device can obtain user demand information, the electronic device can determine a target storage path of a report template that matches the user demand information, different report templates are stored under different storage paths, the electronic device can obtain the target report template under the target storage path, and generate a report document by importing corresponding data according to the target report template. The user demand information can be the user's personalized demand information. In this way, the report document generated by the electronic device can meet the user's personalized needs, avoid generating a report document in a fixed format using a fixed-format report template, and can improve the flexibility of generating the report document. BRIEF DESCRIPTION OF THE DRAWINGS

[0026] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the following will briefly introduce the drawings required to be used in the description of the embodiments of the present application. Obviously, the drawings in the following description are only some embodiments of the present application. For those of ordinary skill in the art, without creative efforts, other drawings can also be obtained based on these drawings.

[0027] Figure 1It is a schematic diagram of the method for generating a report document provided by an embodiment of the present application;

[0028] Figure 2 It is a schematic diagram of the principle of the process for generating a report document provided by an embodiment of the present application;

[0029] Figure 3 It is a schematic diagram of the principle of the flow for generating a report document provided by an embodiment of the present application;

[0030] Figure 4 It is a schematic block diagram of the device for generating a report document provided by an embodiment of the present application;

[0031] Figure 5 It is a schematic block diagram of another device for generating a report document provided by an embodiment of the present application. Detailed implementation manners

[0032] Next, the technical solutions in the embodiments of the present application will be clearly and completely described in conjunction with the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all the embodiments. All other embodiments obtained by those of ordinary skill in the art based on the embodiments of the present application without creative efforts shall fall within the protection scope of the present application.

[0033] In the field of electronic technology, an electronic device can output a report document to a user. Usually, the template of the report document is fixed, and the report documents output by the electronic device are in a fixed format. The report documents output in this way cannot meet the personalized needs of users and are not flexible enough. For example, in the medical field, the template of the electrocardiogram report document output by the electronic device is fixed and cannot meet the needs of a certain hospital to output a personalized electrocardiogram report document. Therefore, the output electrocardiogram report is not flexible enough, which also limits the use of the electrocardiogram report. Another example is that in the medical field, the template of the gastrointestinal detection report output by the electronic device is fixed and cannot meet the needs of a certain hospital to output a personalized gastrointestinal detection report, making the output gastrointestinal detection report not flexible enough and also limiting the scope of use of the gastrointestinal detection report. Another example is that in the medical field, the templates of report documents for multi-parameter monitoring of vital signs output by the electronic device, such as respiratory monitoring, blood pressure monitoring, blood oxygen monitoring, electroencephalogram monitoring, etc., are fixed and cannot meet the needs of the hospital to issue report documents for different content of physical sign monitoring. Therefore, the output report documents for physical sign monitoring are not flexible enough and also limit the use of the report documents for physical sign monitoring. In order to improve the flexibility of the report document, in the embodiments of the present application, the electronic device can obtain user requirement information, and the electronic device can determine the target storage path of the report template that matches the user requirement information. Different report templates are stored under different storage paths. The electronic device can obtain the target report template under the target storage path and generate a report document by importing corresponding data according to the target report template. The user requirement information can be the personalized requirement information of the user. In this way, the report document generated by the electronic device can meet the personalized needs of the user, avoid generating a report document in a fixed format using a fixed-format report template, and can improve the flexibility of generating the report document.

[0034] The following will combine Figure 1 Yes, describe the method for generating a report document provided by the embodiments of the present application. As Figure 1 shown, the method for generating a report document of the present application includes the following steps. For example, this method can be executed by an electronic device. The following will describe it taking the execution by an electronic device as an example:

[0035] S110, the electronic device obtains user requirement information.

[0036] Optionally, S110 includes: the electronic device receives the user requirement information input by the user. Optionally, the display interface of the electronic device receives the input user requirement information, or the electronic device can receive the user requirement information through other input devices. Optionally, S110 includes: the electronic device can receive the user requirement information sent by other devices.

[0037] Optionally, the electronic device can display preview images of each report template to the user. The user can select the preview image of the corresponding type of report according to their needs, thereby indicating the user demand information for selecting this report template. That is to say, after the user selects the preview image of a certain report, it means that the electronic device has received the user demand information input by the user. In this way, through the preview method, each report template can be more intuitively displayed to the user, so as to facilitate the user to select the preview image, thereby indicating the input of user demand information. Optionally, the electronic device can display preview images of report templates of different report types to the user, and the user can select the preview image in the report type they want. For example, the electronic device can display preview images of each report template of the electrocardiogram report type and preview images of each report template of the gastrointestinal detection report type to the user. If the user wants to output an electrocardiogram report, they can select the target preview image from the preview images of each report template of the electrocardiogram report type, thereby indicating the input of user demand information.

[0038] Optionally, the user demand information includes a report type and user configuration information. The report type is used to indicate which type of report the user needs. For example, it belongs to the electrocardiogram monitoring type or the gastrointestinal detection report type or the vital sign monitoring report type. For example, the vital sign detection report type can include one or more of the respiratory monitoring report type, the blood pressure monitoring report type, the blood oxygen monitoring report type, the electroencephalogram monitoring report type, etc. The user configuration information is used to indicate the configuration of this type of report required by the user. Different configuration information corresponds to different report templates under this report type. For example, the styles of different report templates are different.

[0039] Optionally, the user demand information can be the user's personalized demand information.

[0040] S120. The electronic device determines the target storage path of the report template that matches the user demand information.

[0041] Optionally, the electronic device can save at least one storage path. Optionally, the electronic device can also save the one-to-one correspondence between at least one storage path and at least one user demand information. When the electronic device receives the user demand information in S110, it can obtain the target storage path corresponding to the user demand information in S110 from at least one storage path.

[0042] Optionally, different user requirement information in at least one user requirement information corresponds to different storage paths, and a corresponding report template is stored under each storage path. Optionally, before S110, method 100 further includes: The electronic device can obtain at least one user-defined requirement, and the electronic device can generate a report template in a custom format corresponding to each user-defined requirement according to each user-defined requirement in the at least one user-defined requirement, and store the generated custom report template under the corresponding storage path. Different custom format report templates correspond to different storage paths. In this way, when the electronic device receives user requirement information, if the user requirement information is a custom user requirement information, the corresponding custom format report template can be obtained under the corresponding storage path according to the custom user requirement information. Optionally, one user-defined requirement can correspond to multiple sub-templates. The electronic device can determine multiple required sub-templates according to the user-defined requirement and generate a custom report template according to the multiple sub-templates. Optionally, one sub-template in the multiple sub-templates corresponds to one template identifier, and the electronic device can generate a custom report template through the template identifiers of the multiple sub-templates. For example, the electrocardiogram report corresponds to 19 sub-templates, namely: total report, 24-hour data graph, atrial tachycardia report, ventricular tachycardia report, bradycardia hourly statistical report, heart rate trend graph, atrial flutter and fibrillation, ST event list, ST trend graph, electrocardiogram picture segment, asystole report, scatter plot, QT interval analysis report, heart rate variability report, TWA report. These 19 sub-templates correspond to 19 template identifiers. When the electronic device receives custom user requirement information, it can select 13 sub-templates that match the custom user requirement information from these 19 sub-templates according to the custom user requirement information, and determine the positional relationship of the selected 13 sub-templates according to the custom user requirement information, and adjust the order of these sub-templates according to the template identifiers of the selected 13 sub-templates, so that the positional relationship of the adjusted multiple sub-templates meets the user-defined requirement. The electronic device can generate a custom report template that matches the custom user requirement information according to these 13 sub-templates and store the custom report template under the corresponding storage path. For example, it is stored under the second type of storage path.

[0043] Optionally, if the user requirement information includes a report type and user configuration information, S120 includes: The electronic device may determine at least one storage path corresponding to the report type from multiple storage paths according to the report type, and determine a target storage path corresponding to the user configuration information from at least one of the storage paths according to the user configuration information. Optionally, the electronic device may save the storage paths corresponding to different report types. When the electronic device receives the user requirement information, it may determine at least one storage path corresponding to the report type in the user requirement information. For example, the electrocardiogram monitoring report type corresponds to storage paths 1, 2, and 3, and the gastrointestinal detection report type corresponds to storage paths 4 and 5. When the report type in the user requirement information is the electrocardiogram monitoring report type, it may be determined that the storage paths corresponding to the electrocardiogram monitoring report type are storage paths 1, 2, and 3. Then, the electronic device may determine a target storage path that matches the user configuration information from storage paths 1, 2, and 3.

[0044] Optionally, the user configuration information may further indicate that the user's requirement is a report template in a fixed format and the required fixed format. The electronic device may, according to the user's requirement indicated by the user configuration information, which is a report template in a fixed format and the required fixed format, determine at least one storage path of the first type. The electronic device may determine a target storage path of the first type from among the at least one storage path of the first type. Among them, the at least one storage path of the first type is the storage path of the report template in a fixed format. Optionally, the user configuration information may further indicate that the user requirement is a report template in a custom format and the required custom format. The electronic device may, according to the user's requirement indicated by the user configuration information, which is a report template in a custom format and the required custom format, determine at least one storage path of the second type. The electronic device may determine a target storage path of the second type from among the at least one storage path of the second type. Among them, the at least one storage path of the second type is the storage path of the report template in a custom format. That is to say, the electronic device may determine whether the report template required by the user is a report template in a custom format or a report template in a fixed format according to the user configuration information. If the report template required by the user is a report template in a custom format, the electronic device determines a target storage path that matches the custom format required by the user from among the at least one storage path corresponding to the report template in a custom format; if the report template required by the user is a report template in a fixed format, the electronic device determines a target storage path that matches the fixed format required by the user from among the at least one storage path corresponding to the report template in a fixed format. Optionally, the prefix of the at least one storage path corresponding to the report template in a fixed format is different from the prefix of the at least one storage path corresponding to the report template in a custom format. For example, the prefix of the at least one storage path corresponding to the report template in a fixed format includes classpath: The prefix of the at least one storage path corresponding to the report template in a custom format does not include classpath. For example, the at least one storage path corresponding to the report template in a defined format is E: / UIH-ST / REPORTTPL.

[0045] Optionally, the report template in a fixed format includes multiple sub-templates, and each sub-template corresponds to a jrxml file. The electronic device may generate a report template in a fixed format according to the jrxml files corresponding to the multiple sub-templates. For example, the sub-templates included in the report template in a fixed format for an electrocardiogram report are: Home Page, Heart Rate Oscillation Analysis, Heart Rate Variability (HRV) Time Domain Analysis, and Overall Statistics Table. One of the sub-templates corresponds to one xml file. The Overall Statistics Table shown in Table 1 includes: Time, Heartbeat, Heart Rate, Premature Ventricular Contractions, Premature Atrial Contractions, Longest and Pause. Longest represents the longest of a certain parameter, such as the longest heart rate.

[0046] Table 1

[0047]

[0048] S130, the electronic device obtains the target report template under the target storage path.

[0049] Optionally, each storage path stores a corresponding report template, and the electronic device can determine the target report template corresponding to the target storage path according to the target storage path in S120.

[0050] Optionally, if the target storage path is of the first type, that is, the target storage path is the storage path corresponding to the report template with a fixed format, the electronic device can obtain the target report template under the target storage path by means of resource loading. For example, if the prefix of the target storage path is classpath, the electronic device can obtain the target report template under the target storage path by means of resource loading. Optionally, if the target storage path is of the second type, that is, the target storage path is the storage path corresponding to the report template with a custom format, the electronic device can load and obtain the target report template under the target storage path by means of a file stream. For example, if the prefix of the target storage path is not classpath, the electronic device can load and obtain the target report template under the target storage path by means of a file stream. In this way, by obtaining the target report template under the target storage path in different ways, not only can the report template with a custom format be compatible, but also the report template with a custom format can be compatible, which can improve the flexibility of determining the target report template.

[0051] S140, the electronic device imports corresponding data according to the target report template to generate a report document.

[0052] Optionally, if the target report template includes multiple sub-templates, the electronic device can import the corresponding data of each sub-template into each sub-template to generate a report document.

[0053] Optionally, in the embodiments of the present application, the types of data imported into the template report are: string or integer, picture type or batch list data. S140 includes: if the type of data is string or integer, the electronic device fills the data into the target report template by using the variable substitution method to obtain a report document; if the type of data is picture type, the electronic device fills the data into the target report template by means of the base64 algorithm to obtain a report document; if the data is batch list data, the electronic device can manage it through a collection data source (CollectionDataSource), and then fill the data into the target report template in the form of a data set (Dataset).

[0054] Optionally, after S140, the electronic device may output a report document, for example, output the report document by printing.

[0055] Optionally, S140 may include: the electronic device may receive an operation of modifying a target report template input by a user, the electronic device may modify the target report template according to the operation to obtain a modified report template, and import corresponding data according to the modified report template, so as to generate a report document. That is to say, in the embodiments of the present application, the requirement of modifying the target report template selected by the electronic device can be supported, so that the diverse requirements of users can be met, and thus the flexibility of using the report template can be improved. Optionally, the electronic device may receive an operation of modifying a target report template input by a user, the electronic device may modify the target report template according to the operation to obtain a modified report template, and import corresponding data according to the modified report template, so as to generate a report document, including: the electronic device may display the target report template, and the user may input an operation of modifying the target report template based on the displayed interface, for example, operations such as dragging, adding, and deleting, and output the modified report template. The user may determine the modified report template. After the electronic device receives the confirmation from the user, it may import corresponding data based on the modified report template.

[0056] Next, taking the generation of an electrocardiogram report document as an example, the method for generating a report document in the embodiments of the present application will be described, but it should not cause any limitation to the embodiments of the present application.

[0057] Step 1: The electronic device receives user-defined requirements. The electronic device generates a report template corresponding to the user-defined requirements according to the user-defined requirements.

[0058] Since the electrocardiogram report document may include these sub-templates: total report, 24-hour data graph, atrial tachycardia report, ventricular tachycardia report, bradycardia hourly statistical report, heart rate trend graph, atrial flutter and fibrillation, ST event list, ST trend graph, electrocardiogram picture segment, asystole report, scatter plot, QT interval analysis report, heart rate oscillation report, TWA report, and other types of report data. Each of these sub-templates may correspond to a jrxml file. After the electronic device receives the user-defined requirements input by the user, it may select sub-templates that meet the matching user-defined requirements from these sub-templates, and adjust the order of the selected sub-templates according to the template identifiers of these selected sub-templates, which can also be understood as adjusting the order of the jrxml files, so that the adjusted sub-templates meet the user-defined requirements input by the user. If the user inputs multiple user-defined requirements, step 1 may be executed in sequence to obtain sub-templates that match each user-defined requirement.

[0059] Step 2: The electronic device generates a report template that meets the user's customized requirements according to the selected sub-template, and stores the report template in the storage path corresponding to the customized report. Different customized requirements correspond to different report templates, and different report templates can be stored in different storage paths. That is to say, multiple jrxml files of sub-templates can be saved under the storage path. For example, the prefix of the storage path does not include classpath.

[0060] Step 3: The electronic device receives user requirement information, which includes the type of electrocardiogram report and the user configuration information corresponding to the type of electrocardiogram report.

[0061] For example, the electronic device can display a preview image of the report template stored under the storage path in Step 2. If the user selects a certain preview image, it means that the user has selected the user configuration information corresponding to the preview image, and the electronic device can determine the report template under the storage path corresponding to the preview image.

[0062] For another example, the electronic device can display both the preview image of the report template stored under the storage path in Step 2 and the preview image of the report template under the storage path with a fixed format. If the user selects a certain preview image and the preview image is the preview image of the report template stored under the storage path in Step 2, it means that the user has selected the user requirement information corresponding to the preview image in the customized format in Step 2; if the user selects a certain preview image and the preview image is the preview image of the report template under the storage path with a fixed format, it means that the user has selected the user requirement information corresponding to the preview image with a fixed format.

[0063] Step 4: The electronic device determines the target storage path of the report template that matches the user requirement information in Step 3, and obtains the target report template under the target storage path.

[0064] Among them, the report template generated in Step 2 can be called a report template in a customized format. When the user requirement information in Step 3 matches the report template in the customized format of the electrocardiogram report, in Step 4, the electronic device can select a report template that meets the user configuration information in the user requirement information from the report templates under the corresponding storage path in Step 2 as the target report template. In addition, if the user requirement information in Step 3 matches the report template in the fixed format of the electrocardiogram report, in Step 4, the electronic device can select a report template that meets the user configuration information in the user requirement information from the report templates under the storage path with a fixed format as the target report template.

[0065] Among them, the report template under the storage path with a fixed format can be generated before Step 1 or Step 2, or can be pre-saved by the electronic device. The embodiment of the present application does not impose any restrictions on the time when the electronic device generates the report template under the storage path with a fixed format.

[0066] Step 5: The electronic device imports corresponding electrocardiogram data according to the target report template to generate an electrocardiogram report document.

[0067] Optionally, the target report template in Step 4 may include multiple sub-templates. In Step 5, the electronic device may import the data of each sub-template into each sub-template to generate each sub-report, and may generate an electrocardiogram report document according to each sub-report.

[0068] Figure 2 is a schematic diagram of a process for generating a report document shown in an embodiment of the present application. Combining Figure 2 , one report type may correspond to multiple sub-templates. For example Figure 2 Taking sub-template A, sub-template B, sub-template C, and sub-template D as examples, the electronic device may generate a report template in a custom format that meets the user's custom requirements by using some or all of these four sub-templates according to the user's custom requirements. Different user custom requirements may generate different report templates, and the template management library in the electronic device may store these report templates in the storage path corresponding to the custom report. The electronic device may display a preview of the report template in the custom format. For example, if the electronic device generates 3 report templates in the custom format according to 3 user custom requirements, it may display 3 previews of the report templates in the defined format, namely, the preview of report template 1 Figure 1 , the preview of report template 2 Figure 2 and the preview of report template 3 Figure 3 . When the preview of report template 2 Figure 2 is selected, it means that the user input is the user requirement information corresponding to report template 2. The electronic device may import the data of template report 2 into report template 2 to output the report document corresponding to report template 2.

[0069] Figure 3 is a schematic flowchart of a process for generating a report document shown in an embodiment of the present application. Combining Figure 3 , Figure 3It can be a process schematic diagram for generating a type of report document. The electronic device can construct each sub-template, and the template management library can assign a template identifier to each sub-template. The template management library of the electronic device can select sub-templates that meet the user's customized requirements according to the user's customized requirements input by the user and generate a report template in a customized format based on these sub-templates. The template management library can store these report templates under the second type of storage path (also referred to as the storage path in the customized format). In addition, the template management library can also store the report templates in the fixed format under the first type of storage path (also referred to as the storage path in the fixed format). When receiving the user requirement information, it determines the storage path of the report template that matches the user requirement information. If the storage path is the first type of storage path, it determines the storage path that meets the user configuration information in the first type of storage path as the target storage path, and determines the report template under the target storage path. It imports multiple sub-templates that make up the report template under the target storage path into the corresponding data to generate multiple sub-reports, and synthesizes the multiple sub-reports into the report document corresponding to the report template. If the storage path is not the first type of storage path but the second type of storage path, it determines the storage path that meets the user configuration information in the second type of storage path as the target storage path, and determines the report template under the target storage path. It imports multiple sub-templates that make up the report template under the target storage path into the corresponding data to generate multiple sub-reports, and synthesizes the multiple sub-reports into the report document corresponding to the report template.

[0070] In the embodiment of the present application, the electronic device can obtain the user requirement information. The electronic device can determine the target storage path of the report template that matches the user requirement information. Different report templates are stored under different storage paths. The electronic device can obtain the target report template under the target storage path and generate a report document based on the target report template by importing the corresponding data. The user requirement information can be the user's personalized requirement information. In this way, the report document generated by the electronic device can meet the user's personalized requirements, avoiding generating a report document in a fixed format using a fixed-format report template, and improving the flexibility of generating the report document.

[0071] It should be noted that for the method embodiments, for the sake of simple description, they are all expressed as a series of action combinations. However, those skilled in the art should know that the embodiments of the present invention are not limited by the described action sequence, because according to the embodiments of the present invention, certain steps can be performed in other sequences or simultaneously. Secondly, those skilled in the art should also know that the embodiments described in the specification are all preferred embodiments, and the actions involved are not necessarily essential for the embodiments of the present invention.

[0072] The present application also provides a device 400 for generating a report document. As Figure 4As shown in the figure, the device 400 may include an acquisition module 410 and a processing module 420. The acquisition module 410 may implement corresponding acquisition functions, which can be acquired from inside the device 400 or from outside the device 400; the processing module 420 may implement corresponding processing functions. Optionally, the device 400 may further include a storage module, which can be used to store instructions and / or data. The processing module 420 may read the instructions and / or data in the storage module to enable the device to implement the foregoing method embodiments. Among them:

[0073] The acquisition module 410 is used to acquire user requirement information;

[0074] The processing module 420 is used to determine the target storage path of the report template that matches the user requirement information, where different user requirement information corresponds to different storage paths, and each storage path stores the corresponding report template;

[0075] The acquisition module 410 is further used to acquire the target report template under the target storage path;

[0076] The processing module 420 is further used to generate a report document by importing corresponding data according to the target report template.

[0077] Optionally, the user requirement information includes a report type and user configuration information; the processing module 420 is specifically used for: determining at least one storage path corresponding to the report type from multiple storage paths according to the report type; determining the target storage path from the at least one storage path according to the user configuration information.

[0078] Optionally, the report type includes an electrocardiogram monitoring report type or a gastrointestinal detection report type or a respiratory monitoring report type or a blood pressure monitoring report type.

[0079] Optionally, the processing module 420 is specifically used for: determining at least one storage path of the first type according to the fixed format of the report template and the required fixed format indicated by the user configuration information, and determining the target storage path of the first type from the at least one storage path of the first type; or, determining at least one storage path of the second type according to the custom format of the report template and the required custom format indicated by the user configuration information, and determining the target storage path of the second type from the at least one storage path of the second type; where the first type corresponds to the fixed format report template, and the second type corresponds to the custom format report template.

[0080] Optionally, the obtaining module 410 is specifically configured to: detect and determine that the target storage path is of the first type, and then obtain the target report template under the target storage path by means of resource loading; or, detect and determine that the target storage path is of the second type, and then load and obtain the target report template under the target storage path by means of a file stream.

[0081] Optionally, the obtaining module 410 is further configured to obtain at least one user-defined requirement before determining the target storage path of the report template that matches the user requirement information; the processing module 420 is further configured to generate a custom report template corresponding to each user-defined requirement in the at least one user-defined requirement according to the at least one user-defined requirement; and store the custom report template corresponding to each user-defined requirement in a storage path of the second type.

[0082] Optionally, the processing module 420 is specifically configured to: determine a sub-template corresponding to each user-defined requirement in the at least one user-defined requirement; and generate a custom report template corresponding to each user-defined requirement according to the template identifier of the sub-template corresponding to each user-defined requirement.

[0083] It should be understood that the "module" in the apparatus 400 can be implemented by hardware, or by software, or by hardware executing corresponding software. For example, the obtaining module 410 can be replaced by an obtaining circuit (for example, including a receiving circuit and a sending circuit), and the processing module 420 can be replaced by a processor or a processing circuit.

[0084] Figure 5 FIG. shows a schematic block diagram of another apparatus 500 for generating a report document provided by an embodiment of the present application. The apparatus 500 can be an electronic device, or a chip, a chip system, or a processor, etc. that supports the electronic device to implement the above method. The apparatus can be used to implement the method described in the above method embodiment, and specific reference can be made to the description in the above method embodiment.

[0085] The apparatus 500 may include one or more processors 510, and the processor 510 may also be referred to as a processing module, which can implement certain control functions. The processor 510 can be a general-purpose processor or a dedicated processor, etc.

[0086] Optionally, the processor 510 may also store instructions and / or data, and the instructions and / or data can be run by the processor 510, so that the apparatus 500 executes the method described in the above method embodiment. Optionally, the processing module 420 in the apparatus 400 may be the processor 510.

[0087] Optionally, the device 400 may include a communication interface 520 for implementing at least one function such as receiving, sending, or obtaining. For example, the communication interface 520 may be a transceiver circuit, an interface, an interface circuit, or a transceiver, etc. Optionally, the obtaining unit 410 in the communication device 400 may be the communication interface 520.

[0088] Optionally, the device 500 may include one or more memories 530, on which instructions may be stored, and the instructions may be run on the processor 510, so that the device 500 executes the methods described in the above method embodiments. Optionally, data may also be stored in the memory 530. Optionally, instructions and / or data may also be stored in the processor 510. The processor 510 and the memory 530 may be provided separately or integrated together.

[0089] Those skilled in the art can understand that for the sake of convenience of description, Figure 5 only one memory and one processor are shown. In an actual device, there may be multiple processors and memories. The memory may also be referred to as a storage medium or a storage device, etc., and the embodiments of the present application do not limit this.

[0090] For the device embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and for the relevant parts, please refer to the partial description of the method embodiments.

[0091] Based on the same inventive concept, the present application also provides a computer program product, which includes: computer program code, when the computer program code runs on a computer, it causes the computer to execute each step or process executed by the electronic device in any of the above method embodiments.

[0092] Based on the same inventive concept, the present application also provides a computer-readable storage medium, which stores program code, and when the program code runs on a computer, it causes the computer to execute each step or process executed by the electronic device in any of the above method embodiments.

[0093] Those skilled in the art should understand that the embodiments of the present invention may be provided as a method, a device, or a computer program product. Therefore, the embodiments of the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware aspects. Moreover, the embodiments of the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk memories, CD-ROMs, optical memories, etc.) containing computer-usable program code.

[0094] Embodiments of the present invention are described with reference to the flowcharts and / or block diagrams of methods, terminal devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of 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 the processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing terminal devices to generate a machine, such that the instructions executed by the processor of the computer or other programmable data processing terminal devices generate a device for implementing the functions specified in one process Figure 1 or more processes and / or blocks Figure 1 or a device for implementing the functions specified in one block or more blocks.

[0095] These computer program instructions can also be stored in a computer-readable memory that can direct a computer or other programmable data processing terminal device to work in a specific manner, such that the instructions stored in the computer-readable memory generate a manufactured article including an instruction device, and the instruction device implements the functions specified in one process Figure 1 or more processes and / or blocks Figure 1 or a device for implementing the functions specified in one block or more blocks.

[0096] These computer program instructions can also be loaded onto a computer or other programmable data processing terminal device, such that a series of operation steps are executed on the computer or other programmable terminal device to generate a computer-implemented process, and thus the instructions executed on the computer or other programmable terminal device provide steps for implementing the functions specified in one process Figure 1 or more processes and / or blocks Figure 1 or a device for implementing the functions specified in one block or more blocks.

[0097] Although the preferred embodiments of the embodiments of the present invention have been described, those skilled in the art can make additional changes and modifications to these embodiments once they know the basic creative concepts. Therefore, the appended claims are intended to be construed as including the preferred embodiments and all changes and modifications falling within the scope of the embodiments of the present invention.

[0098] Finally, it should also be noted that in this article, the term "comprising", "including" or any other variant thereof is intended to cover non-exclusive inclusion, such that a process, method, article or terminal device including a series of elements not only includes those elements, but also includes other elements not explicitly listed, or further includes elements inherent to such process, method, article or terminal device. Without further limitation, an element defined by the statement "including one..." does not exclude the existence of additional identical elements in the process, method, article or electronic device including the element.

[0099] The above has introduced in detail the method, electronic device, and computer-readable storage medium for generating a report document provided by the present invention. Specific examples are used in this article to elaborate on the principle and implementation manner of the present invention. The description of the above embodiments is only used to help understand the method and its core idea of the present invention; at the same time, for those of ordinary skill in the art, according to the idea of the present invention, there will be changes in the specific implementation manner and application scope. In summary, the content of this specification should not be construed as a limitation to the present invention.

Claims

1. A method for generating a report document, characterized in that, The method includes: Obtaining user requirement information; Determining a target storage path of a report template that matches the user requirement information, where different user requirement information corresponds to different storage paths, and a corresponding report template is stored under each storage path; Obtaining the target report template under the target storage path; Generating a report document by importing corresponding data according to the target report template.

2. The method according to claim 1, wherein The user requirement information includes a report type and user configuration information; The determining the target storage path of the report template that matches the user requirement information includes: Determining at least one storage path from multiple storage paths according to the report type; Determining the target storage path from the at least one storage path according to the user configuration information.

3. The method according to claim 2, characterized in that, The report type includes an electrocardiogram monitoring report type, a gastrointestinal detection report type, a respiratory monitoring report type, or a blood pressure monitoring report type.

4. The method according to claim 2, wherein The determining the target storage path from the at least one storage path according to the user configuration information includes: Determining the at least one storage path of the first type according to the user's requirement for a report template with a fixed format and the required fixed format indicated by the user configuration information, and determining the target storage path of the first type from the at least one storage path of the first type; or, Determining the at least one storage path of the second type according to the user's requirement for a report template with a custom format and the required custom format indicated by the user configuration information, and determining the target storage path of the second type from the at least one storage path of the second type; Wherein, the first type corresponds to the report template with a fixed format, and the second type corresponds to the report template with a custom format.

5. The method according to claim 4, characterized in that The obtaining the target report template under the target storage path includes: If it is detected and determined that the target storage path is of the first type, obtaining the target report template under the target storage path by means of resource loading; or, If it is detected and determined that the target storage path is of the second type, loading and obtaining the target report template under the target storage path by means of a file stream.

6. The method according to any one of claims 1 to 5, characterized in that Before the determining the target storage path of the report template that matches the user requirement information, the method further includes: Obtaining at least one user-defined requirement; Generating a custom report template corresponding to each user-defined requirement in the at least one user-defined requirement according to the at least one user-defined requirement; Storing the custom report template corresponding to each user-defined requirement in a storage path of the second type.

7. The method according to claim 6, wherein The generating a custom report template corresponding to each user-defined requirement in the at least one user-defined requirement according to the at least one user-defined requirement includes: Determining a sub-template corresponding to each user-defined requirement in the at least one user-defined requirement; Generating a custom report template corresponding to each user-defined requirement according to the template identifier of the sub-template corresponding to each user-defined requirement.

8. A device for generating a report document, characterized in that, Includes: An obtaining module, configured to obtain user requirement information; A processing module, configured to determine a target storage path of a report template that matches the user requirement information, wherein different user requirement information corresponds to different storage paths, and a corresponding report template is stored under each storage path; The obtaining module is further configured to obtain a target report template under the target storage path; The processing module is further configured to generate a report document by importing corresponding data according to the target report template.

9. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program, and when the computer program is run, the method described in any one of claims 1 to 7 is implemented.

10. A chip, characterized in that, It includes a processor, the processor is coupled to a memory, the memory is used to store a computer program, and the processor is used to execute the computer program stored in the memory so that the chip executes the method described in any one of claims 1 to 7.

11. An electronic device, characterized in that, It includes: A memory and a processor, the memory is used to store a computer program; the processor is used to cause the electronic device to execute the method described in any one of claims 1 to 7 when calling the computer program.

Citation Information

Cited By

  • Report display method and report display device based on docx format

    CN120724970A