Method, device, equipment and readable medium for automatically generating analysis reports
Through the method of automatically generating analysis reports, using data screening, analysis logic configuration and configurable operator calculation, the problems of high time consumption and error rate during the writing of medical analysis reports are solved, and efficient and accurate report generation is achieved.
Patent Information
- Application Number
- CN202210608697.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-05-31
- Publication Date
- 2025-02-07
- Estimated Expiration
- 2042-05-31
AI Technical Summary
During the writing of medical analysis reports, a lot of time is spent on data processing and compilation, resulting in huge workload, long time and high error rate, affecting the accuracy of the report.
By obtaining medical data tables within the specified range, filtering data and data analysis logic configurations according to the analysis goals, using configurable operators to calculate data, generating operator statistical variables, and integrating them into preset report formats, realizing Automatically generate analysis reports in an intelligent way.
It shortens the time for editing reports, saves labor costs, greatly improves work efficiency, and improves the accuracy of reports, and improves the richness of reports while reducing developer development work.
Smart Images

Figure CN115101157B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of data processing technology, and in particular to a method, device, equipment and readable medium for automatically generating an analysis report. Background Art
[0002] Medical analysis reports are documents and / or pictures that present the analysis data, data analysis process, and data analysis results of a medical-related topic. Medical analysis reports help increase understanding and awareness of medical-related topics. Usually, a large amount of statistical content is required in medical analysis reports, and report writers need to spend a lot of time processing data and compiling reports. In actual report writing, report writers rely on manual computer editing to enter tables, compile data, and other operations to form reports. This cycle is not only huge in workload and time-consuming, but also has a high error rate, which affects the accuracy of the report. Summary of the invention
[0003] In order to solve the above-mentioned problems existing in the background technology, the embodiments of the present application creatively provide a method, apparatus, device and readable medium for automatically generating an analysis report.
[0004] According to a first aspect of an embodiment of the present application, a method for automatically generating an analysis report is provided, the method comprising: obtaining a medical data table from a specified range; screening the medical data table according to an analysis target to determine target analysis data; determining a data analysis logic corresponding to the target analysis data according to the analysis target, configuring a configurable operator according to the data analysis logic to obtain an operator configuration combination; performing data calculation on the target analysis data through the operator configuration combination to obtain an operator statistical variable corresponding to the analysis target; integrating a preset report format and the operator statistical variable to obtain a target analysis report.
[0005] According to one embodiment of the present application, the obtaining of a medical data table from a specified range includes: obtaining original medical data from multiple data sources; and performing consistency processing on the original medical data to obtain the medical data table.
[0006] According to one implementation of the present application, configuring the configurable operators according to the data analysis logic to obtain the operator configuration combination includes: determining the corresponding calculation formula according to the data analysis logic, matching the calculation formula with multiple configurable operators to determine the target operator; determining the target data range corresponding to the target analysis data; combining the target operator and the target data range according to the calculation formula to determine the operator configuration combination.
[0007] According to one embodiment of the present application, after obtaining the target analysis report, the method further includes: when the target analysis data is updated, determining the updated target analysis data according to the target data range; performing data calculation on the updated target analysis data using the operator configuration combination to obtain updated operator statistical variables; and updating the target analysis report using the updated operator statistical variables.
[0008] According to an implementation manner of the present application, after obtaining the target analysis report, the method further includes: binding the operator statistical variable with the operator configuration combination to determine data association information.
[0009] According to an embodiment of the present application, after determining the data association information, the method further includes: generating interpretation information corresponding to the operator statistical variable according to the data association information; determining the positioning information corresponding to the operator statistical variable according to the preset report format; and inserting the interpretation information into the target analysis report according to the positioning information.
[0010] According to one embodiment of the present application, the preset report format and the operator statistical variables are integrated to obtain a target analysis report, including: generating a target report template containing general text and areas to be filled according to the preset report format through a rich text editor; integrating the operator statistical variables with the corresponding areas to be filled to obtain a target analysis report.
[0011] According to the second aspect of the embodiment of the present application, a device for automatically generating an analysis report is also provided, and the device includes: an acquisition module, used to acquire a medical data table from a specified range; a screening module, used to screen the medical data table according to the analysis target, and determine the target analysis data; a configuration module, used to determine the data analysis logic corresponding to the target analysis data according to the analysis target, and configure the configurable operator according to the data analysis logic to obtain an operator configuration combination; a calculation module, used to perform data calculation on the target analysis data through the operator configuration combination to obtain the operator statistical variables corresponding to the analysis target; an integration module, used to integrate a preset report format and the operator statistical variables to obtain a target analysis report.
[0012] According to one embodiment of the present application, the acquisition module includes: obtaining original medical data from multiple data sources; performing consistency processing on the original medical data to obtain the medical data table.
[0013] According to one embodiment of the present application, the configuration module includes: a determination submodule, used to determine the corresponding calculation formula according to the data analysis logic, and match the calculation formula with multiple configurable operators to determine the target operator; the determination submodule is also used to determine the target data range corresponding to the target analysis data; and a combination submodule is used to combine the target operator and the target data range according to the calculation formula to determine the operator configuration combination.
[0014] According to one embodiment of the present application, the device also includes: a determination module, which is used to determine the updated target analysis data according to the target data range when the target analysis data is updated; the calculation module is also used to perform data calculation on the updated target analysis data using the operator configuration combination to obtain updated operator statistical variables; and an update module is used to update the target analysis report using the updated operator statistical variables.
[0015] According to an embodiment of the present application, the device further includes: a binding module, configured to bind the operator statistical variable with the operator configuration combination to determine data association information.
[0016] According to one embodiment of the present application, the device also includes: a generation module, which is used to generate interpretation information corresponding to the operator statistical variable based on the data association information; the determination module is also used to determine the positioning information corresponding to the operator statistical variable according to the preset report format; and an insertion module is used to insert the interpretation information into the target analysis report based on the positioning information.
[0017] According to one embodiment of the present application, the integration module includes: a generation submodule, which is used to generate a target report template containing general text and areas to be filled according to the preset report format through a rich text editor; an integration submodule, which is used to integrate the operator statistical variables with the corresponding areas to be filled to obtain a target analysis report.
[0018] According to a third aspect of an embodiment of the present application, an electronic device is provided, comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes any of the above-described methods when executing the program.
[0019] According to a fourth aspect of the embodiments of the present application, a computer-readable storage medium is provided, wherein the storage medium comprises a set of computer-executable instructions, and when the instructions are executed, the instructions are used to execute any of the methods described above.
[0020] The method, device, equipment and readable medium for automatically generating an analysis report provided by the embodiment of the present application can configure the freely configurable operator according to the data analysis logic corresponding to the analysis target to obtain the operator configuration combination, calculate the target analysis data in the medical data table through the operator configuration combination to obtain the operator statistical variable that characterizes the calculation result, realize the logic analysis and data processing goals of the medical data table through the freely configurable operator, integrate the operator statistical variable into the target analysis report through the preset report format, realize the automatic intelligent generation of the target analysis report, shorten the editing time of the report, save labor costs, greatly improve work efficiency, and also improve the accuracy of the report. This method improves the richness of the report while reducing the development work of the developers.
[0021] It should be understood that the teachings of the present application are not required to achieve all of the beneficial effects described above, but specific technical solutions can achieve specific technical effects, and other embodiments of the present application can also achieve beneficial effects not mentioned above. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] By reading the detailed description below with reference to the accompanying drawings, the above and other purposes, features and advantages of the exemplary embodiments of the present application will become readily understood. In the accompanying drawings, several embodiments of the present application are shown in an exemplary and non-limiting manner, wherein:
[0023] In the drawings, the same or corresponding reference numerals represent the same or corresponding parts.
[0024] Figure 1 A schematic diagram of the implementation process of a method for automatically generating an analysis report according to an embodiment of the present application is shown;
[0025] Figure 2 A schematic diagram of implementation modules of a device for automatically generating an analysis report according to an embodiment of the present application is shown;
[0026] Figure 3 A schematic block diagram of an electronic device according to an embodiment of the present application is shown. DETAILED DESCRIPTION
[0027] The principles and spirit of the present application will be described below with reference to several exemplary embodiments. It should be understood that these embodiments are provided only to enable those skilled in the art to better understand and implement the present application, and are not intended to limit the scope of the present application in any way. On the contrary, these embodiments are provided to make the present application more thorough and complete, and to fully convey the scope of the present application to those skilled in the art.
[0028] The technical solution of the present application is further described in detail below with reference to the accompanying drawings and specific embodiments.
[0029] Figure 1 A schematic diagram of the implementation flow of a method for automatically generating an analysis report according to an embodiment of the present application is shown.
[0030] See also Figure 1 According to the first aspect of the embodiment of the present application, a method for automatically generating an analysis report is provided, and the method includes: operation 101, obtaining a medical data table from a specified range; operation 102, screening the medical data table according to the analysis target, and determining the target analysis data; operation 103, determining the data analysis logic corresponding to the target analysis data according to the analysis target, configuring the configurable operator according to the data analysis logic, and obtaining an operator configuration combination; operation 104, performing data calculation on the target analysis data through the operator configuration combination, and obtaining the operator statistical variables corresponding to the analysis target; operation 105, integrating the preset report format and the operator statistical variables to obtain the target analysis report.
[0031] The embodiment of the present application provides a method for automatically generating an analysis report, which obtains a target analysis report by performing logical analysis, data processing and report integration on a medical data table within a specified range. By using this method, the data analysis logic corresponding to the analysis target can be configured using freely configurable operators to obtain an operator configuration combination, and the target analysis data in the medical data table can be calculated by the operator configuration combination to obtain operator statistical variables that characterize the calculation results. The freely configurable operators can be used to implement data processing processes with different requirements, and the operator statistical variables can be integrated into the target analysis report through a preset report format, so as to realize automatic and intelligent generation of the target analysis report, shorten the editing time of the report, save labor costs, greatly improve work efficiency, and also improve the accuracy of the report. The application of this method can reduce the development work of developers while improving the richness of the report.
[0032] In operation 101 of the present method, the medical data table can come from different data sources. Data sources include, but are not limited to: one's own database, public database, other private databases with which one has a cooperative relationship, etc. Among them, one's own database is used to refer to a local database, and one's own database can store medical data in a fixed data table format; a public database refers to a database that is open to the public and can be accessed, and a public database can also store medical data in a fixed data table format; a private database refers to a database that is not open to the public, that is, a database that can only be accessed if certain conditions are met, and a private database can also store medical data in a fixed data table format. It should be supplemented that in different databases, medical data can be stored in different data table formats. After obtaining the data tables from each database, the data tables from multiple data sources can be integrated to obtain the medical data table of the present application.
[0033] The specified range of this method can specify one or more of the time range, region range and data type of medical data. For example, the medical data of a disease in a specific number of provinces in a specific year. The medical data for the disease may include, but is not limited to, the number of patients, patient age, patient gender, medication status, incidence rate and other data.
[0034] In operation 102 of the present method, when performing data analysis, according to the purpose of analysis, it is necessary to select a certain data or several specific data in the medical data table for analysis. It can be understood that in an analysis report, there are multiple analysis targets that need to be analyzed. The present method screens the content in the medical data table according to each analysis target, thereby obtaining target analysis data that meets the analysis target requirements. For example, when the analysis target is the gender ratio of patients with a certain disease in 2022, the gender column corresponding to all patients with the disease in 2022 in the medical data table can be selected. The total number of patients can be determined by adding the cells, the total number of male patients can be determined by adding the cells with male gender, and the total number of female patients can be determined by adding the cells with female gender, thereby determining the gender ratio of patients with the disease in 2022.
[0035] In the present method 103, the process of analyzing the target analysis data can be converted into data analysis logic, which is used to characterize the analysis process of the target analysis data. The data analysis logic can be converted into a calculation formula for characterization. It can be understood that there are multiple calculation operators in the calculation formula. The configurable operator is a pre-set operator expression used to characterize a single calculation operator or multiple simple calculation operators. The configurable operators can be combined according to the data analysis logic to form an operator configuration combination corresponding to the calculation formula.
[0036] For example, when the analysis goal is to analyze and obtain a monthly change chart of the number of people diagnosed with a certain disease in a certain city in a certain year, the data analysis logic is: first filter the number of people who get the disease every day in the city from the medical data table, then add up the number of people who get the disease each month, and then draw a graph based on the number of people who get the disease each month. Based on this, the operators corresponding to this scenario include operators for summing and operators for mapping, and the summing operator and the mapping operator are combined to obtain an operator configuration combination for analyzing the change chart of the number of people diagnosed with a disease in a certain city in a certain year. Among them, the medical data table in this scenario can be obtained by collecting the number of people who get the disease in the database of each hospital in the city.
[0037] It should be introduced that operators are used to represent the process of performing operations on data within a specified range for different calculation models to obtain the returned results. For example, the expression of the operator used to draw a chart can be written as: LineChart($A2:$A13,$C2:$C13,$D2:$D13,$E2:$E13). In this operator, the specified cell range is in brackets, and "LineChart" is used to indicate that a bar chart or line chart is generated based on the specified data. In the bar chart or line chart, the X axis is determined by "$A2:$A13", and "$C2:$C13,$D2:$D13,$E2:$E13" corresponds to N parameters, which are used to generate N columns in the bar chart or line chart. In one implementation, the expression of the operator for data display can be written as: GetFormat({Double},{%.2f%%},GetOneCell($D28)), which is used to indicate that the corresponding data in the specified cell is displayed in a given format.
[0038] In operation 104 of the present method, the target analysis data is calculated through the operator configuration combination, that is, the target analysis data is calculated through the calculation formula formed by the operator configuration combination to obtain the operator statistical variable, and the operator statistical variable is used to refer to the calculation result obtained by calculating the target analysis data through the operator configuration combination.
[0039] Specifically, the target analysis data corresponding to each operator statistical variable in the medical data table of the present method may be the same or different. For example, in a disease analysis report, one of the analysis goals is to obtain a monthly change chart of the number of people diagnosed with a certain disease in each of the past three years. In this case, the medical data table may contain the number of people diagnosed with a certain disease every day in the past five years, the data range corresponding to the past third year is the number of people diagnosed with a certain disease every day in the medical data table for the past third year, the data range corresponding to the past second year is the number of people diagnosed with a certain disease every day in the medical data table for the past second year, and the data range corresponding to the past first year is the number of people diagnosed with a certain disease every day in the medical data table for the past first year. That is, the operator statistical variables that need to be filled in different positions of the report may be different, and the target analysis data corresponding to different operator statistical variables are also different. It should be added that, according to the actual situation, the operator statistical variables can be represented by other expressions such as numerical values, charts, and text.
[0040] In operation 105 of the method, the method presets a preset report format for the target analysis report. The target report template is a project analysis report containing descriptive text and target analysis data, wherein the descriptive text can be a general text, and a general and modifiable text is preset in the preset report format, and the target analysis data can be obtained by associating or filling in the operator statistical variable at the corresponding position. In one implementation, the preset report format can be "from undefined to undefined years, integrating medical records data from undefined hospitals, the number of confirmed cases for a specific disease in this city is undefined, and the corresponding monthly confirmed number change curve is as follows: undefined". In the target report template, the field marked "undefined" is the position for the operator statistical variable to be associated or filled in.
[0041] Specifically, "undefined to undefined years, integrating medical record data from undefined hospitals" in the preset report format is used to correspond to the data range in the medical data table, and the specific information that needs to be filled in the above content can be determined through the data range.
[0042] In the preset report format, "The number of confirmed cases of a specific disease in this city is undefined, and the corresponding monthly confirmed number change curve is as follows: undefined". The first "undefined" is used to correspond to the operator configuration combination used to characterize "the number of confirmed cases of a specific disease in this city". The first operator configuration combination includes a summation operator. The data within the selected data range is added by the first operator configuration combination to obtain the number of confirmed cases. The operator statistical variable corresponding to this operator combination is represented in the form of a numerical value. The second "undefined" is used to correspond to the operator combination of "the monthly confirmed number change curve". The second operator configuration combination includes a summation operator and a chart drawing operator. The monthly confirmed number is determined by the summation operator, and the monthly confirmed number change curve is determined by the chart drawing operator. The operator statistical variable corresponding to this operator configuration combination is represented in the form of a chart. After filling in the operator statistical variables according to the preset report format, some preset general texts can be modified as needed. After the modification is completed, the target analysis report can be obtained.
[0043] According to an embodiment of the present application, operation 101, obtaining a medical data table from a specified range, includes: first, obtaining original medical data from multiple data sources; then, performing consistency processing on the original medical data to obtain a medical data table.
[0044] The medical data table of this method comes from multiple data sources. The original medical data from different data sources are usually represented in the form of data tables. The data tables from different data sources have different data contents, different table formats, different table items, etc. Based on this, this method needs to perform consistency processing on the original medical data from different data sources to obtain a medical data table that meets the needs of generating a target analysis report.
[0045] Specifically, the original medical data from different data sources in this method may include internal data tables stored locally, public data tables obtained from public databases, private data tables obtained from private databases, etc. Among them, the internal data tables can be stored in the standard data module of the device to which this method is applied; the public data tables can be obtained by writing corresponding data capture scripts and capturing data from third-party web pages through the data capture scripts; the private data tables are different from the public databases, which are usually the target databases, and can be obtained by obtaining the internal interface of the target database and collecting data through the internal interface. It can be understood that this method does not limit the order of capturing the original medical data.
[0046] After obtaining the internal data table, the public data table and the private data table, the method needs to perform consistency processing on the internal data table, the public data table and the private data table so that the data content is a medical data table corresponding to the target analysis report. The consistency processing may include, but is not limited to, data filling, data cleaning, data format unification, etc. For example, the internal data table includes the first disease-related data and the second disease-related data; the public data table includes the first disease-related data and the third disease-related data; the private data table includes the first disease-related data and the fourth disease-related data. The target analysis report needs to analyze the first disease-related data. Through consistency processing, the first disease-related data in the internal data table, the first disease-related data in the public data table, and the first disease-related data in the private data table are integrated to obtain a medical data table. Specifically, the medical data table can form a data table format as a basis for data analysis.
[0047] Furthermore, the format of the data table formed by the medical data table is consistent with the data source format supported by the device applying the method. For example, when the data source format supported by the device applying the method is: json and execl format files, the data table formed by the medical data table needs to be converted into json and execl format files.
[0048] It should be added that, in the process of data integration, the method can first obtain Table 1 corresponding to the first disease-related data in the internal data table, Table 2 corresponding to the first disease-related data in the public data table, and Table 3 corresponding to the first disease-related data in the private data table, and then integrate Table 1, Table 2 and Table 3 to obtain the medical data table. The method can also use the table corresponding to the first disease-related data in the internal data table as the basic table, and then extract the required first disease-related data from the public data table and the private data table and merge them into the basic table. In another implementation scenario, Table 1, Table 2 and Table 3 can be summarized into one file, but the tables are not merged.
[0049] According to one embodiment of the present application, operation 103, configuring the configurable operators according to the data analysis logic to obtain the operator configuration combination, includes: first, determining the corresponding calculation formula according to the data analysis logic, matching the calculation formula with multiple configurable operators to determine the target operator; then, determining the target data range corresponding to the target analysis data; combining the target operator and the target data range according to the calculation formula to determine the operator configuration combination.
[0050] The medical data table of this method is displayed in a table, and the user can determine the target data range of the corresponding target analysis data by selecting in the table. Through user selection, the user can independently select the target data range that needs to correspond to the analysis target. For example, when the medical data table is displayed in Excel format, the user can select a specific execl file by clicking, select a specific sheet in the specific execl file, and select the target analysis data of the target data range in the specific sheet. After determining the target analysis data, the user can determine the calculation formula of the corresponding data analysis logic according to the data analysis logic corresponding to the target analysis data. This application presets a variety of configurable operators, which include but are not limited to operators representing data addition, operators representing data average, operators representing data subtraction, and operators representing drawing data into charts. Match a variety of configurable operators through calculation formulas to obtain target operators that meet the needs of calculation formulas.
[0051] By integrating the target operator and the target data range according to the calculation formula, the operator configuration combination can be obtained. Through the operator configuration combination, the target analysis data corresponding to the target data range can be calculated according to the calculation formula, so as to obtain the operator statistical variables for the analysis target. Among them, the corresponding operator and the operator combination method can be determined by decomposing the calculation formula, and the operator and the target data range can be combined through the operator combination method to obtain the operator configuration combination. The operator configuration combination is used to determine the target analysis data and the calculation order between multiple operators for the target analysis data.
[0052] For example, when the user's data analysis content for the target data range includes data summing, data averaging, and data Figure 3 In the case of an operation, the user first selects the to-be-filled area where the operator statistical variable needs to be filled in the preset report format displayed on the device to which the method is applied, selects the target data range for data analysis in the medical data table, and then selects the operator for summing, the operator for averaging and the operator for mapping according to the data analysis logic, sets the corresponding operator operation order, and the device combines the three operators, the operator operation order and the target data range to obtain an operator configuration combination, which is used to sum, average and map the target data range in turn to obtain a data analysis graph corresponding to the target data range.
[0053] By using the above method for data processing, the corresponding operator configuration combination can be automatically generated and transmitted to the back end through the user's selection and operation on the device, so as to achieve the purpose of processing the target analysis data of the same target data range and complete the production of operator statistical variables. Through the mutual configuration combination of various configurable operators, most of the content that requires data analysis in the target analysis report can be completed, so that the operator can use the configurable operators to calculate the analysis target and quickly obtain the target analysis report.
[0054] In one implementation scenario, if the target data range of this method is selected from an internal data table, that is, the target data range is selected from an execl file, this method can perform structural analysis on the configuration file through antlr to define the target data range, and then perform data selection and reprocessing on the target data range, and then select and combine the required types of operators to form an operator configuration combination, and use the operator configuration combination to screen, calculate, re-screen, and recalculate data until the operator statistical variable, that is, the calculation result, is obtained.
[0055] In another implementation scenario, if the target data range of this method is selected from a public data table or a private data table, that is, if the target data range is selected from interface data or crawled data, it is necessary to perform personalized analysis based on the characteristics of the interface data or crawled data to obtain data that satisfies the operator configuration combination for data processing. Then, the data is processed using the operator configuration combination to obtain operator statistical variables. It should be added that, depending on different operator configuration combinations, the result corresponding to the operator statistical variable can be one or more data.
[0056] According to an implementation manner of the present application, after obtaining the target analysis report, the method further includes: binding the operator statistical variables and the operator configuration combination to determine the data association information.
[0057] Specifically, when there are multiple statistical results for the operator statistical variable corresponding to the same target analysis data, this method can determine the data association information by means of data binding in the target analysis report, and associate multiple statistical results in the operator statistical variable through the data association information. For example, a numerical value and a chart corresponding to the same target analysis data are associated through the data association information. The specific method is as follows: The operator statistical variable that needs to be inserted in each position in the target analysis report can be obtained through the operator configuration combination, and the operator statistical variable is set to a data structure required by a key to represent a corresponding numerical value or a group of corresponding charts. In this way, the numerical value or the corresponding chart corresponding to the key can be displayed in the target analysis report.
[0058] According to one embodiment of the present application, after determining the data association information, the method also includes: first, generating interpretation information corresponding to the operator statistical variable according to the data association information; then, determining the positioning information corresponding to the operator statistical variable according to a preset report format; and then, inserting the interpretation information into the target analysis report according to the positioning information.
[0059] The key used to characterize the data association information is usually non-descriptive data. The method can also generate interpretation information of the corresponding operator statistical variable based on the data association information and the operator statistical variable. The interpretation information is usually used to describe the basis for obtaining the operator statistical variable and the data analysis and processing process. By inserting the interpretation information into the target analysis report, it is helpful for users to better understand the definition of the operator statistical variable and improve the level of detail of the target analysis report. It can be understood that the method can insert the interpretation information into the position corresponding to the operator statistical variable to improve the readability of the report. In other implementations, when there is a special interpretation module in the report, the positioning information corresponding to the interpretation information can also be set on the interpretation module.
[0060] Specifically, the interpretation information is used to represent the interpretation of the operator statistical variable. For example, if the operator statistical variable is a trend graph of the incidence of a specific disease, the interpretation information is "the trend graph of the incidence of a specific disease". The interpretation information is inserted into the position corresponding to the positioning information for representation, thereby achieving the purpose of interpreting the operator statistical variable through the interpretation information. Among them, the positioning information is used to refer to the position corresponding to the operator statistical variable. The positioning information can be set as needed. The set position includes but is not limited to the back of the corresponding operator statistical variable, the front of the corresponding operator statistical variable, and the display of the annotation symbol on the corresponding operator statistical variable.
[0061] According to one embodiment of the present application, operation 105 integrates the preset report format and the operator statistical variables to obtain a target analysis report, including: first, generating a target report template containing general text and areas to be filled according to the preset report format through a rich text editor; then, integrating the operator statistical variables with the corresponding areas to be filled to obtain a target analysis report.
[0062] By presetting the report format in the rich text editor, the preset report format includes general text and the area to be filled that needs to be traversed and inserted for operator statistics. The user can select the corresponding target data range and target operator by clicking on the area to be filled in the rich text editor, and implement the configuration combination of the target data range and the target operator, obtain the operator configuration combination, and calculate through the device according to the operator configuration combination, so as to achieve the purpose of inserting the operator statistical variables in the area to be filled, and obtain a target analysis report that meets the requirements. General text is a text content of conventional description. After completing the report integration, this method can convert the target analysis report into the required format to obtain the required report, for example, converting the target analysis report into word, pdf and other formats. Furthermore, this method can edit HTML as a report direct generation format through a rich text editor.
[0063] Users can use the rich text editor to edit and modify the general descriptive text in the report. For the operator statistical variables inserted in the target analysis report, the rich text editor can provide an option search for the operator statistical variables. Users can determine the operator statistical variables and the corresponding target analysis data through the search, which is conducive to the user's data review, modification and update. For data visualization, the rich text editor can associate and bind the operator statistical variables with the operator configuration combination. The specific operation is to operate the Dom attribute of the rich text editor through JavaScript, encode the Echarts configuration items containing the operator configuration combination and the operator statistical variables through the function encodeURIComponent() provided by JavaScript, and then add the specified DOM attribute to the corresponding HTML tag. When initializing or updating the configuration, read the content of the DOM attribute, decode it with decodeURIComponent(), and then render it through the Echars visualization chart library, so as to achieve the purpose of dynamically displaying multiple types of charts.
[0064] According to one embodiment of the present application, in operation 105, after obtaining the target analysis report, the method also includes: first, when the target analysis data is updated, determining the updated target analysis data according to the data identifier; then, performing data calculation on the updated target analysis data using the operator configuration combination to obtain updated operator statistical variables; and then, updating the target analysis report using the updated operator statistical variables.
[0065] After the target analysis data is processed into operator statistical variables, for each operator statistical variable, when its corresponding target analysis data changes, its operator statistical variable will also change synchronously, thereby achieving the purpose of dynamically updating the operator statistical variable according to the target analysis data.
[0066] To facilitate further understanding of the above implementation, a specific implementation scenario is provided below for illustration.
[0067] In this specific implementation scenario, the method is applied to a report generation device for intelligently processing dynamic data sets and compiling and generating reports.
[0068] Users can obtain the required medical analysis report templates from this device, such as: annual statistical analysis reports for specific diseases. The analysis report template includes descriptive text and statistical variables that need to be filled in with data.
[0069] In this scenario, the medical analysis report template has the following description:
[0070] "In undefined1, undefined2, undefined3 and undefined4 local cases were reported nationwide"
[0071] It should be explained that the descriptions of undefined1, undefined2... in the above description are only used to distinguish the descriptions. In the actual medical analysis report template, undefined1, undefined2... can be replaced by other representations.
[0072] In the target report template, the fields marked with "undefined3" and "undefined4" are the locations that need to be filled with operator statistical variables.
[0073] It is understandable that some annotations can be filled in without the need for operator configuration combinations, and the filling of these parts can be filled in through the target data range, such as "undefined1" and "undefined2".
[0074] When the user operates, he selects "undefined3" and the device interface displays an optional medical data table. In this scenario, the data content is the daily confirmed number of each city. The user can select the data of any day as needed, such as January 1, 2022. By configuring the operator for summation, the daily confirmed number of each city is summed up to obtain "undefined3". The device fills "undefined1" with "2022", "undefined2" with "January 1", and "undefined3" with the result of the summation operator based on the data range and summation operator selected by the user.
[0075] According to the needs, "undefined4" needs to be filled in with the trend chart of the national reported local cases in a certain period of time. When the user operates, select "undefined4", and the device interface displays the optional medical data table. In this scenario, the data content is the daily confirmed number of each city. The user can select the data of any time interval as needed, such as January 1, 2022 to January 31, 2022, by configuring the combined operator of summation and chart drawing. The operator used for summation calculates the sum of the daily confirmed number of each city to determine the number of national reported local cases for each day from January 1, 2022 to January 31, 2022. By configuring the operator for user drawing charts, the number of national reported local cases for each day from January 1, 2022 to January 31, 2022 is charted to determine the trend chart of the national reported local cases from January 1, 2022 to January 31, 2022. And based on the correlation relationship, the interpretation information corresponding to the chart is determined to be "National reported local case change trend chart from January 1, 2022 to January 31, 2022".
[0076] Based on the data range and operator configuration combination selected by the user, the device fills "undefined4" with "chart content" and the interpretation information for the chart content "National reported local case change trend chart from January 1, 2022 to January 31, 2022".
[0077] Figure 2 A schematic diagram of implementation modules of an apparatus for automatically generating an analysis report according to an embodiment of the present application is shown.
[0078] See also Figure 2According to the second aspect of the embodiment of the present application, a device for automatically generating an analysis report is also provided, and the device includes: an acquisition module 201, used to acquire a medical data table from a specified range; a screening module 202, used to screen the medical data table according to the analysis target, and determine the target analysis data; a configuration module 203, used to determine the data analysis logic corresponding to the target analysis data according to the analysis target, and configure the configurable operator according to the data analysis logic to obtain an operator configuration combination; a calculation module 204, used to perform data calculation on the target analysis data through the operator configuration combination to obtain the operator statistical variables corresponding to the analysis target; an integration module 205, used to integrate the preset report format and the operator statistical variables to obtain a target analysis report.
[0079] According to an embodiment of the present application, the acquisition module 201 includes: obtaining original medical data from multiple data sources; performing consistency processing on the original medical data to obtain a medical data table.
[0080] According to one embodiment of the present application, the configuration module 203 includes: a determination submodule 2031, which is used to determine the corresponding calculation formula according to the data analysis logic, and match the calculation formula with multiple configurable operators to determine the target operator; the determination submodule 2031 is also used to determine the data identifier corresponding to the target analysis data; the combination submodule 2032 is used to combine the target operator and the data identifier according to the calculation formula to determine the operator configuration combination.
[0081] According to one embodiment of the present application, the device also includes: a determination module 206, which is used to determine the updated target analysis data according to the data identifier when the target analysis data is updated; a calculation module 204, which is also used to perform data calculation on the updated target analysis data using an operator configuration combination to obtain updated operator statistical variables; an update module 207, which is used to update the target analysis report using the updated operator statistical variables.
[0082] According to an embodiment of the present application, the device further includes: a binding module 208, which is used to bind the operator statistical variable and the operator configuration combination to determine data association information.
[0083] According to one embodiment of the present application, the device also includes: a generation module 209, which is used to generate interpretation information corresponding to the operator statistical variable based on data association information; a determination module 206, which is also used to determine the positioning information corresponding to the operator statistical variable according to a preset report format; and an insertion module 210, which is used to insert the interpretation information into the target analysis report based on the positioning information.
[0084] According to one embodiment of the present application, the integration module 205 includes: a generation sub-module 2051, which is used to generate a target report template containing general text and areas to be filled according to a preset report format through a rich text editor; an integration sub-module 2052, which is used to integrate operator statistical variables with corresponding areas to be filled to obtain a target analysis report.
[0085] It should be noted that the above description of the embodiment of the device for automatically generating an analysis report is different from the above description of the device for automatically generating an analysis report. Figure 1 The description of the method embodiment shown is similar, with the same Figure 1 For technical details not disclosed in the embodiment of the device for automatically generating an analysis report of this application, please refer to the aforementioned Figure 1 The description of the method embodiment shown in the figure can be understood, and in order to save space, it will not be repeated.
[0086] According to an embodiment of the present application, the present application also provides an electronic device and a readable storage medium.
[0087] Figure 3 A schematic block diagram of an example electronic device that can be used to implement an embodiment of the present application is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workbenches, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present application described and / or required herein.
[0088] like Figure 3 As shown, the device 300 includes a computing unit 301, which can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) 302 or a computer program loaded from a storage unit 308 into a random access memory (RAM) 303. In the RAM 303, various programs and data required for the operation of the device 300 can also be stored. The computing unit 301, the ROM 302, and the RAM 303 are connected to each other via a bus 304. An input / output (I / O) interface 305 is also connected to the bus 304.
[0089] A number of components in the device 300 are connected to the I / O interface 305, including: an input unit 306, such as a keyboard, a mouse, etc.; an output unit 307, such as various types of displays, speakers, etc.; a storage unit 308, such as a disk, an optical disk, etc.; and a communication unit 309, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 309 allows the device 300 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0090] The computing unit 301 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the computing unit 301 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The computing unit 301 performs the various methods and processes described above, such as a method for automatically generating an analysis report. For example, in some embodiments, a method for automatically generating an analysis report may be implemented as a computer software program, which is tangibly contained in a machine-readable medium, such as a storage unit 308. In some embodiments, part or all of the computer program may be loaded and / or installed on the device 300 via ROM 302 and / or communication unit 309. When the computer program is loaded into RAM 303 and executed by the computing unit 301, one or more steps of a method for automatically generating an analysis report described above may be performed. Alternatively, in other embodiments, the computing unit 301 may be configured to perform a method for automatically generating an analysis report by any other appropriate means (e.g., by means of firmware).
[0091] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being 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 purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0092] The program code for implementing the method of the present application can be written in any combination of one or more programming languages. These program codes can be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that the program code, when executed by the processor or controller, implements the functions / operations specified in the flow chart and / or block diagram. The program code can be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.
[0093] In the context of the present application, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, 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 disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0094] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer 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 pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user; for example, the 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).
[0095] The systems and techniques described herein may 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 with a graphical user interface or a web browser through which a user can interact with implementations 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 may 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), and the Internet.
[0096] A computer system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The relationship of client and server is generated by computer programs running on respective computers and having a client-server relationship with each other. The server may be a cloud server, a server of a distributed system, or a server combined with a blockchain.
[0097] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps recorded in this disclosure can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution disclosed in this application can be achieved, and this document is not limited here.
[0098] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Therefore, a feature defined as "first" or "second" may explicitly or implicitly include at least one of the features. In the description of this application, the meaning of "plurality" is two or more, unless otherwise clearly and specifically defined.
[0099] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. A method for automatically generating an analysis report, characterized in that: The method comprises: Get medical data tables from the specified range; Screening the medical data table according to the analysis target to determine the target analysis data; Determining a data analysis logic corresponding to the target analysis data according to the analysis target, and configuring a configurable operator according to the data analysis logic to obtain an operator configuration combination; Performing data calculation on the target analysis data through the operator configuration combination to obtain operator statistical variables corresponding to the analysis target; Integrate the preset report format and the operator statistical variables to obtain a target analysis report; Binding the operator statistical variable with the operator configuration combination to determine data association information; Generating interpretation information corresponding to the operator statistical variable according to the data association information; Determining the positioning information corresponding to the operator statistical variable according to the preset report format; The interpretation information is inserted into the target analysis report according to the positioning information.
2. The method according to claim 1, characterized in that The obtaining of medical data tables from a specified range includes: Obtain raw medical data from multiple data sources; The original medical data is processed for consistency to obtain the medical data table.
3. The method according to claim 1, characterized in that The configuring the configurable operators according to the data analysis logic to obtain an operator configuration combination includes: Determine a corresponding calculation formula according to the data analysis logic, match the calculation formula with multiple configurable operators, and determine a target operator; Determine a target data range corresponding to the target analysis data; The target operator and the target data range are combined according to the calculation formula to determine the operator configuration combination.
4. The method according to claim 1, characterized in that: After obtaining the target analysis report, the method further includes: When the target analysis data is updated, determining the updated target analysis data according to the target data range; Using the operator configuration combination to perform data calculation on the updated target analysis data to obtain updated operator statistical variables; The target analysis report is updated using the updated operator statistical variables.
5. The method according to claim 1, characterized in that: The preset report format and the operator statistical variables are integrated to obtain a target analysis report, including: Generate a target report template including common text and areas to be filled according to the preset report format by a rich text editor; The operator statistical variables are integrated with the corresponding area to be filled to obtain a target analysis report.
6. A device for automatically generating an analysis report, characterized in that: The device comprises: An acquisition module, used for acquiring a medical data table from a specified range; A screening module, used to screen the medical data table according to the analysis target and determine the target analysis data; A configuration module, used to determine the data analysis logic corresponding to the target analysis data according to the analysis target, configure the configurable operators according to the data analysis logic, and obtain an operator configuration combination; A calculation module, used to perform data calculation on the target analysis data through the operator configuration combination to obtain operator statistical variables corresponding to the analysis target; An integration module, used to integrate a preset report format and the operator statistical variables to obtain a target analysis report; The binding module is used to bind operator statistical variables and operator configuration combinations to determine data association information; A generation module, used to generate interpretation information corresponding to operator statistical variables according to data association information; The determination module is further used to determine the location information corresponding to the operator statistical variable according to a preset report format; The insertion module is used to insert the interpretation information into the target analysis report according to the positioning information.
7. An electronic device comprising: A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the method according to any one of claims 1 to 5 when executing the program.
8. A storage medium comprising computer executable instructions, which, when executed by a computer processor, are used to perform the method as claimed in any one of claims 1 to 5.
Citation Information
Patent Citations
Medical data mining method and system
CN104820697A
Data analysis task creation method and device in Internet of Things, and storage medium
CN111552470A