Medical examination report editing method and device, computer equipment and storage medium
By dynamically editing replicable elements in medical examination reports, the problem of frequent code modification in the existing technology of repetitive fragment content changes is solved, improving report editing efficiency and supporting flexible expansion of complex structures.
Patent Information
- Application Number
- CN202310503742.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-05-04
- Publication Date
- 2024-11-12
AI Technical Summary
During the editing of existing medical examination reports, dynamically adding or deleting the content and expressions of duplicate fragments requires frequent modification of the code, resulting in inefficiency.
By obtaining the target report template corresponding to the medical examination data to be displayed, creating a report instance, and obtaining replicable elements in response to the editing operation, dynamically editing according to the nested relationship of replicable elements, supporting dynamic addition or deletion of duplicated fragments in the report. Avoid code modification.
It realizes flexible editing of medical examination reports, improves editing efficiency, reduces the need for code modification, and supports flexible expansion of complex nested structures.
Smart Images

Figure CN118942611A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the technical field of ultrasonic image processing, and specifically to a medical examination report editing method, apparatus, computer equipment and storage medium (computer-readable storage medium). Background Art
[0002] With the development of medical technology, medical examinations are becoming more and more popular, and patients' requirements for medical examination reports are also getting higher and higher.
[0003] At present, medical examination reports are all composed of free text and stickers, which can no longer meet clinical needs. More and more structured reports are emerging. Structured reports can support editing reports by checking, dragging, etc., and can support multiple forms of expression such as pictures and tables. However, the modification of existing structured reports is relatively complicated. Adding new report content or modifying the presentation form of report content usually requires code modification to achieve. Especially for complex nested structures, it is difficult to support flexible expansion, code modification is complex, and errors are prone to occur. Some reports may contain repeated fragments. There may be multiple repeated fragments in a report, which need to be dynamically added or deleted during the report editing process. For example, a patient has multiple nodules in the liver. The structured description method for the nodules is the same, and the specific situation of each nodule is different. At this time, the structured description fragment of the nodule in the report is a repeated fragment. During the report editing process, several nodules are dynamically added according to the actual situation, and the specific information of different nodules is described. The content and presentation form of such repeated fragments often change, and the code needs to be constantly modified to support it, resulting in low efficiency. Summary of the invention
[0004] The embodiments of the present application provide a medical examination report editing method, apparatus, computer equipment and storage medium, which solve the technical problems that medical personnel currently add or delete medical examination report during the editing process, the content and form of expression in such repeated segments often change, and the code needs to be constantly modified to support it, resulting in low editing efficiency of medical examination reports.
[0005] On the one hand, an embodiment of the present application provides a method for editing a medical examination report, comprising:
[0006] Acquire a target report template corresponding to the medical examination data to be displayed, and create a report instance based on the medical examination data and the target report template;
[0007] In response to a first editing operation on the report instance, obtaining a replicable element associated with the first editing operation, the replicable element comprising at least two dynamically editable report elements having a nested relationship;
[0008] The replicable elements are edited according to the nested relationship of the replicable elements to obtain a medical examination report.
[0009] In one embodiment of the present application, the step of obtaining a target report template corresponding to the medical examination data to be displayed and creating a report instance based on the medical examination data and the target report template includes:
[0010] Querying a preset database to obtain a target report template corresponding to the medical examination data to be displayed, wherein the preset database stores pre-created report templates;
[0011] In response to the template loading request, the target report template is loaded into the memory to generate a report instance;
[0012] The medical examination data is set into the report instance, and the initialization behavior of the report instance is executed to generate an editable report instance.
[0013] In one embodiment of the present application, before querying the preset database to obtain the target report template corresponding to the medical examination data to be displayed, the process includes:
[0014] In response to template creation requests, create report templates based on predefined report content, display parameters, and initialization behaviors;
[0015] In response to a second editing operation on the report template, a preset template editing interface is output; the template editing interface is used to display the association relationship between the report elements in the report template through a tree structure; the report elements include dynamically editable and replicable elements with nested relationships;
[0016] The replicable element is accessed based on the tree structure, the replicable element is edited, and the edited report template is saved to a preset database.
[0017] In one embodiment of the present application, accessing the replicable element based on the tree structure, editing the replicable element, and saving the edited report template to a preset database includes:
[0018] The replicable element is accessed based on the tree structure; the replicable element is a container-type element, the container-type element contains sub-elements, and the sub-elements include: a copy button, a copy list, and a replicable instance; the replicable instance is a container-type element, and the replicable instance includes multiple report elements with a nested relationship;
[0019] In response to an edit operation on the replicable element triggered based on the tree structure, adding the replicable button, the replicable list and the replicable instance to the replicable element;
[0020] The replicable elements in the report template are updated according to the newly added replica button, the replica list and the replicable instance, and the edited report template is saved to a preset database.
[0021] In one embodiment of the present application, accessing the replicable element based on the tree structure, editing the replicable element, and saving the edited report template to a preset database includes:
[0022] Accessing the replicable element based on the tree structure, and in response to an editing operation on the replicable element triggered based on the tree structure, configuring behavior information of a behavior for the replicable element, wherein the behavior refers to reporting a behavior executed during an editing process, and the behavior information includes a behavior identifier and a behavior parameter;
[0023] The replicable element, the behavior information of the behavior corresponding to the replicable element, and the report template are associated and saved in a preset database.
[0024] In one embodiment of the present application, the editing of the replicable elements according to the nested relationship of the replicable elements to obtain a medical examination report includes:
[0025] In response to a request for operating a copy button in the copyable element, obtaining an element path identifier associated with the copy button;
[0026] Obtain a replicable fragment corresponding to the element path identifier, and create a replicable instance according to the replicable fragment;
[0027] Updating the replicable instance and the element path identifier of the inner replicable element nested in the replicable instance;
[0028] The reproducible instance, including the inner reproducible elements nested in the reproducible instance, is inserted into the medical examination report.
[0029] In one embodiment of the present application, the updating of the replicable instance and the element path identifier of the inner replicable element nested in the replicable instance includes:
[0030] If the replicable instance includes an inner replicable element, updating the element path identifier of the inner replicable element in the replicable instance;
[0031] The inner layer replicable fragment corresponding to the inner layer replicable element is replicated, and the element path identifier in the replicated inner layer replicable fragment is updated with the element path identifier of the replicable instance.
[0032] In one embodiment of the present application, before editing the replicable elements according to the nested relationship of the replicable elements, the method includes:
[0033] If the replicable element is associated with an initialization behavior and / or the first editing operation triggers the associated behavior of the replicable element, a request is made to a preset behavior management center to execute the behavior, and the behavior identifier and behavior parameters of the behavior are passed in so that the behavior management center executes the behavior according to the registered behavior identifier and the behavior parameters.
[0034] In one embodiment of the present application, the display content of the report element is displayed through an HTML control, the display parameters of the report element are adjusted through CSS, and the display content and display parameters of the report element generated during the report template editing process are saved in the report template;
[0035] The element attributes of the report element include at least one of: element identification, element path identification, element description, value type, nesting relationship, value, child element, relationship with parent element, display parameter, constraint and behavior;
[0036] The value types of the report element include: container type, description type, button type, list type, free text type, coded string type, picture type and chart type, the value type predefines the display mode, display parameters, constraints and behavior of the report element, and the initial behavior included in the behavior is run through Javascript;
[0037] The report element includes a replicable element, the replicable element is associated with a replicable fragment, and the replicable fragment is saved through the HTML Template.
[0038] On the other hand, the embodiment of the present application also provides a medical examination report editing device, including:
[0039] An acquisition module, used for acquiring a target report template corresponding to the medical examination data to be displayed, and creating a report instance based on the medical examination data and the target report template;
[0040] A response module, configured to respond to a first editing operation on the report instance, and obtain a replicable element associated with the first editing operation, wherein the replicable element includes at least two dynamically editable report elements having a nested relationship;
[0041] The editing module is used to edit the replicable elements according to the nested relationship of the replicable elements to obtain a medical examination report.
[0042] On the other hand, an embodiment of the present application also provides a computer device, which includes a processor, a memory, and a medical examination report editing program stored in the memory and executable on the processor, wherein the processor executes the medical examination report editing program to implement the steps in the above-mentioned medical examination report editing method.
[0043] On the other hand, an embodiment of the present application further provides a computer device readable storage medium, on which a medical examination report editing program is stored, and the medical examination report editing program is executed by a processor to implement the steps in the above-mentioned medical examination report editing method.
[0044] The present application discloses a method, device, computer equipment and storage medium for editing a medical examination report. The method for editing a medical examination report includes: obtaining a target report template corresponding to the medical examination data to be displayed, creating a report instance based on the medical examination data and the target report template; in response to a first editing operation on the report instance, obtaining a reproducible element associated with the first editing operation, the reproducible element comprising at least two dynamically editable report elements with a nested relationship; editing the reproducible element according to the nested relationship of the reproducible element to obtain a medical examination report. In this embodiment, multiple report templates are preset and configured. When editing a report, a target report template corresponding to the medical examination data is obtained, and a report instance is created according to the medical examination data and the target report template. When medical personnel edit the reproducible elements in the report instance, they edit them according to the nested relationship of the reproducible elements. When repeated segments appear in the report and the content in the repeated segments changes, they can be dynamically edited during the report editing process to obtain a structured medical examination report that meets the requirements. In this way, there is no need to modify the code to support it, and the editing of medical examination reports is more convenient. BRIEF DESCRIPTION OF THE DRAWINGS
[0045] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.
[0046] Figure 1 It is a scene schematic diagram of the medical examination report editing method provided in the embodiment of the present application;
[0047] Figure 2 A schematic flow chart of the steps of creating and editing a report template in a method for editing a medical examination report provided in an embodiment of the present application;
[0048] Figure 3A schematic diagram of a scenario for creating a report template in a method for editing a medical examination report provided in an embodiment of the present application;
[0049] Figure 4 A schematic diagram of a scenario in which a report element is newly added in a method for editing a medical examination report provided in an embodiment of the present application;
[0050] Figure 5 A schematic diagram of a scenario for configuring report element behaviors in a medical examination report editing method provided in an embodiment of the present application;
[0051] Figure 6 A schematic flow chart of a step of editing a report template in a method for editing a medical examination report provided in an embodiment of the present application;
[0052] Figure 7 A flowchart of another step of editing a report template in a method for editing a medical examination report provided in an embodiment of the present application;
[0053] Figure 8 A schematic diagram of the steps of editing a report in a method for editing a medical examination report provided in an embodiment of the present application;
[0054] Fig. 9 It is a structural schematic diagram of a medical examination report editing device provided in an embodiment of the present application;
[0055] Fig.10 It is a structural diagram of a computer device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0056] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of the present invention.
[0057] In the embodiments of the present application, the word "exemplary" is used to mean "used as an example, illustration or description". Any embodiment described as "exemplary" in the embodiments of the present application is not necessarily to be construed as being more preferred or advantageous than other embodiments. The following description is given to enable any technician in the field to implement and use the present invention. In the following description, details are listed for the purpose of explanation. It should be understood that a person of ordinary skill in the art can recognize that the present invention can be implemented without using these specific details. In other examples, well-known structures and processes will not be elaborated in detail to avoid obscuring the description of the present invention with unnecessary details. Therefore, the present invention is not intended to be limited to the embodiments shown, but is consistent with the widest range of principles and features disclosed in the embodiments of the present application.
[0058] The embodiments of the present application provide a medical examination report editing method, device, equipment, computer equipment and storage medium readable storage medium, which are described in detail below.
[0059] In the embodiment of the present application, the medical examination report editing method is deployed in the form of a program on a medical examination report editing device, and the medical examination report editing device is installed in a computer device in the form of a processor. The medical examination report editing device in the computer device executes the following steps by running the program corresponding to the medical examination report editing method:
[0060] Acquire a target report template corresponding to the medical examination data to be displayed, and create a report instance based on the medical examination data and the target report template;
[0061] In response to a first editing operation on the report instance, obtaining a replicable element associated with the first editing operation, the replicable element comprising at least two dynamically editable report elements having a nested relationship;
[0062] The replicable elements are edited according to the nested relationship of the replicable elements to obtain a medical examination report.
[0063] like Figure 1 As shown, Figure 1 The schematic diagram of the implementation scenario of the medical examination report editing of the embodiment of the present application includes a medical examination report editing device 100 and a display device 200. The display device 200 is mainly used to visually display the creation of a report template, the editing of a report template, and the editing of a medical examination report, and the computer device storage medium corresponding to the medical examination report editing method in the medical examination report editing device 100 is executed to perform the steps of editing the medical examination report.
[0064] It should be noted that Figure 1The schematic diagram of another scenario of medical examination report editing shown is merely an example. The scenario of medical examination report editing described in the embodiment of the present application is intended to more clearly illustrate the technical solution of the embodiment of the present application, and does not constitute a limitation on the technical solution provided in the embodiment of the present application.
[0065] Based on the above-mentioned implementation scenario diagram of medical examination report editing, a specific embodiment of a method for editing a medical examination report is proposed. In the embodiment of the present application, the method for editing a medical examination report includes the following steps:
[0066] Acquire a target report template corresponding to the medical examination data to be displayed, and create a report instance based on the medical examination data and the target report template;
[0067] In response to a first editing operation on the report instance, obtaining a replicable element associated with the first editing operation, the replicable element comprising at least two dynamically editable report elements having a nested relationship;
[0068] The replicable elements are edited according to the nested relationship of the replicable elements to obtain a medical examination report.
[0069] In the embodiment of the present application, the medical examination report editing method is applied to a medical examination report editing device, and the type of the medical examination report editing device is not limited. For example, the medical examination report editing device can be a server or other terminals. In this embodiment, a computer device is used as an example for illustration. In the embodiment of the present application, before the computer device executes the medical examination report editing method, the computer device pre-creates a report template; that is, the report template can be understood as a basis for a report instance, a semi-finished report, and when a report needs to be written, a new report instance is created based on the report template, and the report instance is edited to generate a complete report.
[0070] That is, the computer device first creates a new report template, and then sets the behavior and display parameters for the report element when editing the report template; the behavior of the report element can be divided into two categories: one is the behavior directly executed during initialization, and the other is the associated behavior triggered during medical report editing; the display parameters are related to the display of the report element, including direct display parameters such as the size, shape and color of the report element. Setting the behavior includes behavior identification and behavior parameters. The behavior parameter can be a string, number, etc. used by the behavior. Another special behavior parameter is the Path ID (Chinese full name: element path identification, English full name: Path Identification, uniquely identifies a report element in a report instance) parameter of the report element. This parameter will read the value of the report element corresponding to the PathIDID when executing the behavior or set the behavior execution result to the report element corresponding to the PathID; during the report editing process, the behavior is scheduled and executed by the behavior manager, and is executed when initialized or triggered by UI operation. The execution of the behavior may include calling the backend service, which can execute various business logics, including reading configuration files, reading databases, performing calculations, calling third-party services, etc.; during the report editing process, the behavior manager implements behavior management based on the registration callback mechanism and supports the extension of the behavior.
[0071] like Figure 2 As shown, Figure 2 A schematic flowchart of the steps for creating and editing a report template in a method for editing a medical examination report provided in an embodiment of the present application.
[0072] 201, in response to the template creation request, a report template is created based on predefined report content, display parameters and initialization behavior.
[0073] The computer device receives a template creation request. There is no specific limitation on the triggering method of the template creation request. The template creation request can be actively triggered by the user or automatically triggered by the computer device. For example, the user enters "template name" on the computer device and clicks the create button to actively trigger the template creation request.
[0074] The computer device responds to the template creation request and outputs a visual report template creation page for the user to predefine report content, display parameters and initialization behavior, etc. The computer device creates a report template according to the predefined report content, display parameters and initialization behavior.
[0075] The report content consists of one or more report elements, which are structured in a tree structure and have a unique root element. Report elements other than the root element have a unique parent element. Report elements contain several attributes: SID (Chinese full name: semantic identification, which is the identifier of concepts in the application field, such as patient gender, liver, etc., English full name: SemanticIdentification), SID semantic description, SID Schema (SID mode), alias, suffix, Path ID (Chinese full name: element path identification, English full name: Path Identification, uniquely identifies a report element in a report instance), value type, value, child element, relationship with parent element, display style parameters, constraints and behaviors, etc. Different report elements have different semantics, which are uniquely identified by SID; in a report, the PathID element path identifier represents the report element. PathID is unique in a report. In a report instance, the nested relationship between report elements in the report can be determined by PathID. The value type defines the element type of the report element, which includes at least one of the following: container type, description type, button type, list type, number type, free text type, coded string type, picture type, and chart type; the report element pre-implements the display mode, effective display parameters, constraints, and executable behaviors according to the value type. The value type can be continuously expanded according to actual needs.
[0076] During the report template editing process of the computer device, the report template is constructed by adding and modifying pre-implemented report elements. The modified content is pre-defined and configurable content. The report element display content can be presented using HTML controls, and the display parameters can be implemented using CSS. During the report template editing process, the display content and display parameters of the report elements are generated and saved in the report template. The display parameters in CSS can also be merged into HTML.
[0077] The display content of the report element is determined by the value type, and includes: element shell, element name, element suffix and element value; the element shell can use HTML Div control, and the element shell contains all the attribute values of the report element; the element name can use HTML Label control, which belongs to the first child control of the Div control; the element suffix can use HTML Label control, and the element suffix belongs to the second child control of the Div control. According to different value types, the element value is implemented using different HTML controls, which belong to the child control of the Div control. For example, the encoded string type can configure the candidate value in the encoded form, use Select control to implement the drop-down single selection, and use Ul+Li+Input+Label to implement the flat single selection and multiple selection; the image type contains an Input button control and a Canvas control to display the image result. When the button is clicked during the report editing process, the image editing behavior will be executed, and the image description record module will be called to complete the image editing and generate the image result, and the image result will be returned and displayed in the Canvas control; the list type contains an Input button control and a Table control to display the list data. When the button is clicked during the report editing process, the list data will be refreshed. The aforementioned behaviors are set in the behavior attributes of the corresponding report elements during the report template editing process.
[0078] Display parameters include display style parameters of report elements, such as display color, display style and display shape.
[0079] The initialization behavior of the report template includes the initialization behavior of each report element in the template; the initialization behavior of the report element is the setting of the report element behavior when configuring the template. The initialization behavior of the report element is divided into two categories: the first category is to bind the control operation and the behavior association, so that the corresponding behavior is executed when the control event is triggered during the report editing process after initialization; the second category is to execute the specified behavior immediately when the report instance is initialized. When executing the behavior, it will contain parameters, including the behavior semantic ID and other parameters. Other parameters usually include one or more input source report element PathID, string, number and other type input parameters, and output target report element PathID.
[0080] Among them, behavior refers to predefined behaviors that can be executed during the report editing process, such as single-select report elements, when clicking an option, the previously selected option is automatically canceled; when a report element value is modified, another report element specified in the behavior parameter is hidden or visible. When different report templates generate report instances, the behavior in the editing process belongs to the behavior. Behavior is common between different report templates and report instances. It can be in the form of Javascript. Behavior is predefined, managed by a registration callback method, and supports extension. During the report editing process, the behavior management method is: the specific behavior implements the predefined access interface, and registers the new behavior ID and access interface with the behavior management center, and the management center saves the behavior ID and access interface. When the report element needs to execute a behavior, it requests the management center to execute the behavior, and passes in the behavior ID and parameters that it wants to execute. The management center matches the target behavior according to the registration status and the behavior ID and executes it.
[0081] 202. In response to a second editing operation on the report template, a preset template editing interface is output; the template editing interface is used to display the association relationship between the report elements in the report template through a tree structure; the report elements include dynamically editable and replicable elements with nested relationships.
[0082] The computer device receives a second editing operation on the report template, and in response to the second editing operation on the report template, the computer device outputs a preset template editing interface; the preset template editing interface is used to display the association relationship between the report elements in the report template through a tree structure; the report elements include dynamically editable and replicable elements with nested relationships.
[0083] like Figure 3 As shown, Figure 3 A schematic diagram of a scenario for creating a report template in a medical examination report editing method provided in an embodiment of the present application. In order to simplify the configuration of the report template in an embodiment of the present application, a visual configuration method is defined: Figure 3 A template editing interface is displayed in the figure, which mainly includes the report element area and the report HTML display area. The left side is the report element area, which is displayed in a tree form and supports adding, deleting, modifying and moving report elements; the right side is the HTML display area, which will present the report template status; when the report template is changed through the report element area, the report template HTML will be generated synchronously and displayed on the right; when a new report template is added, it is generated by saving from the report template master; when the report template is saved, the HTML and CSS are saved; when the report template is modified, the report elements in the HTML are parsed to form the element area on the left side of the above figure; refer to Figure 4 , Figure 4A schematic diagram of a scenario in which a report element is added in a medical examination report editing method provided in an embodiment of the present application; a new report element is created based on a pre-implemented report element generation method, and various parameters are configured; further, referring to Figure 5 , Figure 5 A schematic diagram of a scenario for configuring report element behaviors in a medical examination report editing method provided in an embodiment of the present application; Figure 5 A scenario in which a computer device configures the behavior of a reporting element.
[0084] In an embodiment of the present application, a method is defined for a replicable element to support dynamic increase or decrease of replicable instances contained in the replicable element during report editing: the replicable element is composed of an external container element and sub-elements, and the sub-elements include: a copy button, a copy list, and a replicable instance; during the editing process, replicable instances can be dynamically added through the copy button, and replicable instances can be viewed and deleted through the copy list; the replicable instance is a container-type report element, which contains a subtree structure and can contain multiple elements of a nested structure; specifically: the replicable instance contained in the replicable element can contain child replicable elements; the report elements contained in the replicable element are of multiple types, and the report elements can perform different behaviors.
[0085] During the report editing process, replicable instances can be added and deleted dynamically. When a replicable instance is added, the new replicable instance needs to be inserted into the replicable element sub-element set to form a new subtree fragment. Each report element with a nested structure in the subtree fragment implements behavior binding, parameter binding, etc. In particular, for the child replicable elements contained in the replicable instance, it is necessary to implement the ability to dynamically add and delete child replicable instances of the child replicable element. Specifically, when editing a report template, for a replicable instance, its corresponding display content (HTML fragment) HTML and runtime initialization behavior (Javascript fragment) are separately saved in the Template field in HTML, and the PathID mark of the replicable instance is recorded in the Template attribute, and the same PathID mark is recorded in the copy button attribute contained in the replicable element; the aforementioned display content (HTML fragment) and runtime initialization behavior (Javascript fragment) are called the replicable fragment of the replicable instance of the replicable element; when the report editing is initialized, the replicable element initialization behavior is executed, and the replicable instance in the template is automatically deleted in this behavior; When the copy button is clicked, the correct fragment in the Template is found from the PathID of the aforementioned replicable instance contained in the copy button, and based on this fragment, a new element instance is copied and created, the PathID of the copied instance is updated, and inserted into the sub-element set of the aforementioned replicable element, and the initialization behavior in the tangent Javascript fragment is executed, and the initialization behavior code fragment is inserted into the initialization behavior function of the HTML; at the same time, the replicable fragment Template corresponding to the replicable instances of all child replicable elements contained in the replicable instance is copied and updated to the PathID of the aforementioned new replicable instance to ensure that the copy button of the child replicable element can correspond to the correct replicable fragment.
[0086] The report elements are defined in the preset template editing interface in the embodiment of the present application, which can avoid the process of developers modifying the code and recompiling and publishing when the report template changes. By providing reusable medical report elements and reusable behaviors, the flexible changes of report templates are supported to improve efficiency and quality. At the same time, for replicable elements, the solution can support nesting at any level and replication of any number of replicable elements, and can ensure the uniqueness of the PathID of each element in the report instance, and can ensure that the parameters of the behavior contain the correct reference relationship between different report elements in different replicable instances.
[0087] 203 : Access the replicable element based on the tree structure, edit the replicable element, and save the edited report template to a preset database.
[0088] The computer device accesses the replicable elements in the report template based on the tree structure, and performs editing operations on the replicable elements, wherein the editing operation may be an adding operation, a deleting operation, or an adjusting relative order operation, and the triggering method of the editing operation is not limited. The computer device adds, deletes, or adjusts the target report elements in the report template to obtain the edited report template, and the computer device saves the edited report template to a preset database.
[0089] In this embodiment, when the computer device is editing the structured report, it generates a report instance for editing based on the report template. There can be multiple different report templates, and each report template can generate multiple different report instances. The process of structured report editing is the process of editing the report instance; in this embodiment, the correct report template is first created and maintained for saving, so as to facilitate the later editing of the report template and generate a medical report; for ease of understanding, the report in the embodiment of this application is explained as an example of a medical examination report. In the actual diagnosis and treatment process, according to the examination items, clinical diagnosis and other parameter information, a suitable report template is selected to generate a report instance to obtain the final medical examination report.
[0090] Specifically: when editing a report structured, a report instance is generated based on a structured report template for editing. There can be multiple different report templates, and each report template can generate multiple different report instances. The process of editing a report structured is the process of editing a report instance. First, create and maintain the correct report template. In the actual diagnosis and treatment process, select the appropriate report template based on the examination items, clinical diagnosis and other parameter information, generate a report instance, and edit the report instance to obtain a medical examination report.
[0091] The report template can be in the form of HTML+CSS. HTML contains the display content of the report template, CSS contains display parameters, and the display effect of the report elements in HTML can be adjusted through CSS. HTML contains Javascript code to implement the initialization behavior of the report.
[0092] HTML will introduce common Javascript functions, and the report editing module implements behaviors in the report editing process, and supports various functions in structured report editing through these behaviors; the report initialization behavior in HTML mainly completes: loading the initialization value of the control, setting the status and parameters; associating the control with the behavior, and executing the corresponding behavior when the human-computer interaction event of the HTML control is triggered during the report editing process.
[0093] Behaviors are composed of Javascript files, including: updating candidate values, loading table data, loading chart data, calculation, export, loading history, loading parameters, loading configuration, etc. Behaviors usually contain several parameters, which are divided into three categories: source report element PathID, target report element PathID, and others. The source report element PathID is used to find the report element from the current report instance to extract the latest value. The target report element PathID is used to find the target report element to perform value update, graph drawing and other functions. Others include various extended parameters such as semantic types, which can be strings, numbers and other types. Each type of parameter can contain 0 to multiple parameters. Behaviors are managed by a registration callback mechanism and support extensions.
[0094] The report template contains several report elements; the report elements include: SID, SID semantic description, SID Schema, alias, suffix, PathID, value type, value, child element, relationship with parent element, display style parameters, constraints, behavior, etc.
[0095] SID semantic ID, which indicates unique semantics.
[0096] PathID represents the unique ID of a report element in a report. It is composed of a string consisting of the SIDs of all elements on the path from the root element to the current element, and each element contains the subscript of the element with the same SID under the same parent node, such as: PathID = " / 0000030001[0] / 00000400010001[1] / 00000400010001[0]", which means the root element is 0000030001, with a subscript of 0, the second-level element SID is 00000400010001, and there are two elements with SID 00000400010001 in its sibling elements. This element has a subscript of 1, and the leaf element is 00000400010001 with a subscript of 0.
[0097] The report elements in a report template form a tree with a unique root element.
[0098] Report elements are presented through HTML Div controls. Each report element consists of a Div control. Different types of report elements are implemented through different sub-controls. All attribute values of report elements are saved through custom attributes of Div controls.
[0099] For example, different report elements achieve different effects through sub-controls of Div controls. The specific implementation method is determined by the value type of the report element, and the implementation method can be continuously expanded. The value type can be expanded, and currently supports container type, description type, button type, list type, free text type, encoded string type, image type and chart type, etc.; for example, the implementation of ImageConcept: the first two labels represent the name and suffix, the button indicates that the element of the ImageConcept type contains a button to activate the image editing behavior, and the canvas is used to display the image results.
[0100] like Figure 6 As shown, Figure 6 A flowchart of one step of editing a report template in a method for editing a medical examination report provided in an embodiment of the present application.
[0101] 301. Access the replicable element based on the tree structure; the replicable element is a container-type element, which contains sub-elements, including a copy button, a copy list and a replicable instance; the replicable instance is a container-type element, which includes multiple report elements with a nested relationship.
[0102] The computer device accesses the target report element through the tree structure displayed on the preset template editing interface so that the user can edit the target report element. The template editing interface determines whether the target report element is a replicable element based on the element attributes of the target report element. If the target report element sets the replicable element attribute to true, then the element is a replicable element.
[0103] 302 : In response to an edit operation on the replicable element triggered based on the tree structure, add the replicable button, the replicable list, and the replicable instance to the replicable element.
[0104] In this embodiment, the computer device accesses the replicable elements through the tree structure, and can realize quick editing of the replicable elements. Specifically, in this embodiment, a new addition operation is taken as an example for explanation; the computer device responds to the editing operation based on the replicable elements in the tree structure. If the editing operation performed on the replicable elements is a new addition operation, the computer device adds a copy button, a copy list and / or a replicable instance to the replicable elements to facilitate report editing.
[0105] 303 , updating the replicable elements in the report template according to the newly added replica button, the replica list, and the replicable instance, and saving the edited report template to a preset database.
[0106] The computer device saves the replicable fragment corresponding to the replicable instance, the element path identifier of the replicable instance and the report template to a preset database. In this embodiment, the replicable elements in the report template are edited and saved to the preset database. The computer device first creates a report template and edits the created report template to obtain an accurate report template, so as to select a suitable report template according to the medical examination data and generate a report instance, thereby editing the report instance and generating a medical examination report.
[0107] like Figure 7 As shown, Figure 7 A flowchart of another step of editing a report template in a method for editing a medical examination report provided in an embodiment of the present application.
[0108] 401, accessing the replicable element based on the tree structure, responding to an editing operation on the replicable element triggered based on the tree structure, configuring behavior information of a behavior for the replicable element, wherein the behavior refers to reporting a behavior executed during an editing process, and the behavior information includes a behavior identifier and a behavior parameter.
[0109] The computer device accesses the replicable element based on the tree structure, and the computer device determines whether there is an associated behavior of the replicable element, wherein the behavior is common between different report templates, and the behavior is composed of a Javascript file, including: updating of candidate values, loading of table data, loading of chart data, calculation, export, loading of history, loading of parameters, loading of configuration, etc.; the behavior usually contains several parameters, and the parameters are divided into three categories: source report element PathID, target report element PathID, and others. The source report element PathID is used to find the report element from the current report instance to extract the latest value, and the target report element PathID is used to find the target report element to perform value update, graph drawing and other functions. Others include various extended parameters such as semantic types, which can be strings, numbers and other types; each type of parameter can contain multiple parameters; the behavior is managed by a registration callback mechanism and supports extension.
[0110] During the report editing process, if the target report element is associated with a behavior, the computer device requests the preset behavior management center to execute the behavior, and passes in the behavior identifier of the behavior, so that the behavior management center executes the behavior according to the registered behavior identifier; for example, the behavior is to copy the replicable instance, and the behavior name is: NewConceptRuntime; when the copy button is clicked, the copy replicable instance behavior is executed: read the TargetPathID information saved in the button attributes, query the corresponding replicable fragment Template according to the value, and get the HTML fragment and initialization Javascript fragment of the replicable fragment; based on the replicable fragment, create a new replicable instance and insert it into the sub-element set of the replicable element; dynamically generate a new PathID; use the new PathID to update the PathID of the new replicable instance and its sub-elements; the PathID update method is to replace the previous part of the PathID in the new replicable instance with the new dynamically generated PathID, and the replacement method uses a regular expression, and the replacement target includes the PathID of all controls, including the sub-elements of the new replicable instance, the control ID in the initialization Javascript code fragment, and the parameters of the behavior.
[0111] 402 , the replicable element, the behavior information of the behavior corresponding to the replicable element, and the report template are associated and saved in a preset database.
[0112] The computer device saves the report template corresponding to the replicable element of the execution behavior to a preset database. The preset database here generally refers to a data storage platform, and the database type is not limited.
[0113] like Figure 8 As shown, Figure 8 A flowchart of the steps of report editing in a medical examination report editing method provided in an embodiment of the present application.
[0114] 501 , obtaining a target report template corresponding to the medical examination data to be displayed, and creating a report instance based on the medical examination data and the target report template.
[0115] The computer device obtains medical examination data to be displayed, wherein the medical examination data includes physical examination data, for example, liver examination data. The computer device accesses a preset database, in which different types of pre-created and edited report templates are stored, for example, report templates for liver examination data and report templates for lung examination data; the computer device obtains the target report template corresponding to the medical examination data in the preset database, and the computer device creates a report instance based on the medical examination data and the target report template; and executes the initialization behavior of the report instance. That is, loading the report template into the memory is equivalent to creating a report instance in the memory. The process of adding a new report instance is: 1. Loading the template into the memory to generate an instance; 2. According to the parameters in the template loading request, loading the configuration and updating it to the report instance; 3. Executing the initialization behavior of the instance; that is, the computer device queries the preset database to obtain the target report template corresponding to the medical examination data to be displayed; the computer device executes the initialization behavior of the target report template to create a report instance.
[0116] 502 . In response to a first editing operation on the report instance, obtain a replicable element associated with the first editing operation, wherein the replicable element includes at least two dynamically editable report elements having a nested relationship.
[0117] In response to a first editing operation on a report instance, the computer device obtains a replicable element associated with the first editing operation; the replicable element is at least two dynamically editable report elements having a nested relationship; so that the computer device edits the replicable element.
[0118] 503. Edit the replicable elements according to the nested relationship of the replicable elements to obtain a medical examination report.
[0119] The computer device edits the replicable elements according to the nested relationship of the replicable elements to obtain a medical examination report. In this embodiment, according to the nested relationship of the replicable elements, the medical staff edits the replicable elements in the report instance to obtain a structured medical examination report that meets the requirements. This does not require code modification to support it, and the editing of the medical examination report is more convenient.
[0120] For example, when the user clicks the copy button, the newly added replicable instance information is saved in the copy table element for subsequent viewing, positioning and deletion. The processing process includes: automatically finding the sibling node of the replicable instance to copy the table element; the table is configured with the behavior LoadTableData (NewConceptInsRuntime), which is executed when the report is initialized to automatically load the table header; when a new replicable instance is added, the information of the newly added replicable instance is appended to the table; the operation of deleting the replicable instance is to click the delete button corresponding to the replicable instance in the table, and the processing process includes: deleting all code snippets corresponding to the replicable instance in the HTML page initialization behavior function in the report instance; deleting the control corresponding to the replicable instance in HTML; deleting the replicable fragment Template corresponding to the sub-replicable element contained in the replicable instance copied when the replicable instance is added; the computer device can determine whether it belongs to the replicable instance or its sub-element based on the PathID of the replicable instance. When the computer device is editing a report template, for the nested relationship corresponding to the replicable elements, it will first process the logic of the child elements, and then process the logic of the parent elements. When editing the report, it will first generate a replicable instance of the parent element, and then generate a replicable instance of the child element as needed.
[0121] Specifically: the reproducible element is edited to obtain a medical examination report including:
[0122] 1. In response to a request for operating a copy button in the copyable element, obtain an element path identifier associated with the copy button;
[0123] 2. Obtain a replicable fragment corresponding to the element path identifier, and create a replicable instance according to the replicable fragment;
[0124] 3. Update the replicable instance and the element path identifier of the inner replicable element nested in the replicable instance;
[0125] 4. Insert the replicable instance and the inner replicable elements nested in the replicable instance into the medical examination report.
[0126] That is, the computer device responds to the operation request for the copy button in the replicable element, obtains the element path identifier associated with the copy button, obtains the replicable fragment corresponding to the element path identifier, and the computer device creates a replicable instance according to the replicable fragment; updates the element path identifiers of the replicable instance and its child elements; if the replicable instance contains an inner replicable element, the inner replicable fragment corresponding to the inner replicable element is copied, and the element path identifier of the replicable instance is used to update the element path identifier in the copied inner replicable fragment, so that the PathID stored in the copy button of the child replicable element contained in the replicable instance is the same as the PathID of the copied inner replicable fragment, ensuring that the corresponding replicable fragment can be found when the copy action is executed after the copy button of the child replicable element is clicked; the computer device inserts the replicable instance, the updated inner replicable element, and the updated inner replicable fragment into the medical examination report.
[0127] That is to say: when a computer device creates a new report, the replicable instance in the template will be automatically deleted, because it is uncertain whether the instance exists in the specific report instance; the replicable fragment corresponding to the replicable instance contains the content and behavior of this part of the report, and is placed in the Template field; when the button is clicked to copy, the replicable fragment Template field is found, and based on the Template field, a new replicable instance is created, the behavior is obtained, the behavior is executed, and the behavior is added to the initialization function so that the initialization behavior can be executed the next time it is edited; each replicable instance has its own PathID, which is unique, so when a new replicable instance is added, a new PathID needs to be created, and all child elements in the replicable instance, the PathID of the element and the PathID of the parameter, as well as the PathID in the predefined behavior need to be updated; if the replicable instance contains nested child replicable elements, it is also necessary to copy the replicable fragment corresponding to the replicable instance of the child replicable element, and replace the Template in the copied replicable fragment; when the replicable instance is deleted, the aforementioned copied replicable fragment also needs to be deleted.
[0128] In one embodiment of a medical examination report editing method of the present application, before a computer device edits the replicable elements according to the nested relationship of the replicable elements to obtain a medical examination report, the computer device executes according to the behaviors associated with the replicable elements, specifically:
[0129] If the replicable element is associated with an initialization behavior and / or the first editing operation triggers the associated behavior of the replicable element, a request is made to a preset behavior management center to execute the behavior, and the behavior identifier and behavior parameters of the behavior are passed in so that the behavior management center executes the behavior according to the registered behavior identifier and the behavior parameters.
[0130] That is, in the embodiment of the present application, the computer device is associated with a behavior in the replicable element, and the behavior includes an initialization behavior and a behavior triggered by a medical staff operation. When editing a report, the replicable element is associated with an initialization behavior and / or the first editing operation triggers the associated behavior of the replicable element. The computer device requests the preset behavior management center to execute the behavior, and passes in the behavior identifier and behavior parameters of the behavior, so that the behavior management center executes the behavior according to the registered behavior identifier and the behavior parameters. Report editing is facilitated by the automatic execution of report element behaviors. For example, a liver examination may contain multiple nodules, and the description of the nodules is completed through a series of report elements to form a report segment. This report segment can be dynamically increased or decreased during the report editing process because the number of nodules of the patient is likely to be different.
[0131] A replicable element is a report element that can be dynamically added or deleted during the report editing process. A replicable element is replicated based on predefined content. A replicable element consists of a group of report elements, which first includes an outsourcing container element, which contains three child elements: a copy button that adds the NewConceptRuntime behavior as a click event response; a replica instance table, in which each row contains a delete button, and the table configuration behavior is LoadTableData(NewConceptInsRuntime); a replicable instance, this element adds the behavior: PreProcessNewConceptRuntime.
[0132] When visually editing a template, you can configure the PreProcessNewConceptRuntime behavior of the replicable instance, which is a container type that contains the replicable content and generates the corresponding HTML: Save the HTML of the replicable instance, for example, save the HTML to<tempate type=’HTML’TargetPathID=1234> ; The TargetPathID value is the PathID of the element; Cut the JavaScript code snippet that initializes the element and save it to<tempate type=’script’TargetPathID=1234> ; The TargetPathID value is the PathID of the element; Add initialization behavior: call and execute the PreProcessNewConceptRuntime behavior; When editing a report, when deleting a newly added replicable instance, the corresponding newly added Template needs to be deleted.
[0133] Preprocess the replicable element behavior, behavior name: PreProcessNewConceptRuntime; executed when the report is initialized, delete the replicable elements in the report body; find the copy button element that matches the specified replicable instance, and add a custom attribute TargetPathID to the HTML control contained in the element, with the value being the PathID of the replicable instance.
[0134] The behavior of copying the replicable instance, behavior name: NewConceptRuntime, is bound to the copy button element of the replicable element during initialization. When the copy button is clicked, the behavior of copying the replicable instance is executed: the TargetPathID information saved in the button attribute is read, and the corresponding Template is obtained according to the value, and the HTML fragment and the initialization Javascript fragment of the replicable instance are obtained; a new PathID is dynamically generated; the PathID of the newly generated replicable instance and its child elements are updated with the new PathID; the update method is to replace the first part of the PathID with the new value, and the replacement method uses a regular expression, and the replacement target includes the PathID of the replicable instance, including child elements, the control ID in the initialization Javascript code fragment, and the parameters of the behavior. Copy the Template corresponding to the replicable instance of the child replicable element of the replicable instance, and use the prefix matching method to determine the PathID. After copying the replicable fragment, update all PathIDs to the PathID of the new replicable instance to support the addition of new replicable instances to nested child replicable elements; insert the newly generated replicable instance into the child control collection of the aforementioned replicable element; execute the initialization Javascript fragment; insert the initialization Javascript fragment into the report instance HTML initialization behavior function; generate the replicable instance number, and append it to the name of the new replicable instance, such as Nodule 2, Nodule 3.
[0135] When the Copy button is clicked, the newly added replicable instance information is saved in the replica table element for subsequent viewing, positioning and deletion: the table is configured with LoadTableData (NewConceptInsRuntime), and the table header is automatically loaded when the report is initialized; when a new replicable instance is added, the replicable instance's sibling replica table element is automatically found and data is appended to the table.
[0136] Delete report elements: When you click the delete button corresponding to the replicable instance in the table: delete all code snippets corresponding to the replicable instance in the initialization behavior function in HTML; delete the controls corresponding to the replicable instance in HTML; delete the Template corresponding to the replicable instance of the copied child replicable element; based on PathID, you can determine whether it belongs to the replicable instance element or its child replicable element.
[0137] Nesting of replicable elements: When editing a report template, if there are replicable elements nested, the logic of the child elements will be processed first, and then the logic of the parent element. When editing a report, a replicable instance of the parent element will be generated first, and then a replicable instance of the child element will be generated as needed.
[0138] During the report editing process, after a new replicable instance is added, if an inner replicable element is included, in the PreProcessNewConceptRuntime behavior in the Javascript code snippet, the PathID in the parameter will be replaced with the PathID of the newly added replicable instance. When PreProcessNewConceptRuntime is executed, the TargetPathID of the copy button of the inner replicable element will be set to the PathID of the replicable instance of the child replicable element contained in the new replicable instance. At the same time, the Template of the inner replicable instance will be copied, and the PathID of the new replicable instance will be used to update the first part of the PathID in the copied Template. This ensures that the TargetPathID in the copy button of the replicable element in memory is the same as the PathID of the corresponding replicable fragment Template, so that the correct Template can be found when the replicable instance of the inner replicable element is added; when the third or fourth level of nesting is reached, the corresponding Template is copied for each layer of the copied element, so that the correct Template can always be found for processing; when deleting a replicable instance, the copied Template corresponding to the replicable instance of the corresponding child replicable element needs to be deleted.
[0139] In order to better implement the medical examination report editing method in the embodiment of the present application, based on the medical examination report editing method, a medical examination report editing device is also provided in the embodiment of the present application. Fig. 9 As shown, Fig. 9 It is a structural schematic diagram of a medical examination report editing device provided in an embodiment of the present application.
[0140] The medical examination report editing device comprises:
[0141] An acquisition module 601 is used to acquire a target report template corresponding to the medical examination data to be displayed, and create a report instance based on the medical examination data and the target report template;
[0142] A response module 602 is configured to respond to a first editing operation on the report instance and obtain a replicable element associated with the first editing operation, wherein the replicable element includes at least two dynamically editable report elements having a nested relationship;
[0143] The editing module 603 is used to edit the replicable elements according to the nested relationship of the replicable elements to obtain a medical examination report.
[0144] In some embodiments of the present application, the medical examination report editing device is also used for:
[0145] Querying a preset database to obtain a target report template corresponding to the medical examination data to be displayed, wherein the preset database stores pre-created report templates;
[0146] In response to the template loading request, the target report template is loaded into the memory to generate a report instance;
[0147] The medical examination data is set into the report instance, and the initialization behavior of the report instance is executed to generate an editable report instance.
[0148] In some embodiments of the present application, the medical examination report editing device is also used for:
[0149] In response to template creation requests, create report templates based on predefined report content, display parameters, and initialization behaviors;
[0150] In response to a second editing operation on the report template, a preset template editing interface is output; the template editing interface is used to display the association relationship between the report elements in the report template through a tree structure; the report elements include dynamically editable and replicable elements with nested relationships;
[0151] The replicable element is accessed based on the tree structure, the replicable element is edited, and the edited report template is saved to a preset database.
[0152] In some embodiments of the present application, the medical examination report editing device executes the accessing of the reproducible element based on the tree structure, editing the reproducible element, and saving the edited report template to a preset database, including:
[0153] The replicable element is accessed based on the tree structure; the replicable element is a container-type element, the container-type element contains various sub-elements, and the sub-elements include: a copy button, a copy list and a replicable instance; the replicable instance is a container-type element, and the replicable instance includes multiple report elements with a nested relationship;
[0154] In response to an edit operation on the replicable element triggered based on the tree structure, adding the replicable button, the replicable list and the replicable instance to the replicable element;
[0155] The replicable elements in the report template are updated according to the newly added replica button, the replica list and the replicable instance, and the edited report template is saved to a preset database.
[0156] In some embodiments of the present application, the medical examination report editing device executes the accessing of the reproducible element based on the tree structure, editing the reproducible element, and saving the edited report template to a preset database, including:
[0157] Accessing the replicable element based on the tree structure, and in response to an editing operation on the replicable element triggered based on the tree structure, configuring behavior information of a behavior for the replicable element, wherein the behavior refers to reporting a behavior executed during an editing process, and the behavior information includes a behavior identifier and a behavior parameter;
[0158] The replicable element, the behavior information of the behavior corresponding to the replicable element, and the report template are associated and saved in a preset database.
[0159] In some embodiments of the present application, the medical examination report editing device performs the editing of the reproducible elements according to the nested relationship of the reproducible elements to obtain a medical examination report, including:
[0160] In response to a request for operating a copy button in the copyable element, obtaining an element path identifier associated with the copy button;
[0161] Obtain a replicable fragment corresponding to the element path identifier, and create a replicable instance according to the replicable fragment;
[0162] Updating the replicable instance and the element path identifier of the inner replicable element nested in the replicable instance;
[0163] The replicable instance and the inner replicable elements nested in the replicable instance are inserted into the medical examination report.
[0164] In some embodiments of the present application, the updating of the reproducible instance and the element path identification of the inner layer reproducible element nested in the reproducible instance is performed in the medical examination report editing device, including:
[0165] If the replicable instance includes an inner replicable element, updating the element path identifier of the inner replicable element in the replicable instance;
[0166] The inner layer replicable fragment corresponding to the inner layer replicable element is replicated, and the element path identifier in the replicated inner layer replicable fragment is updated with the element path identifier of the replicable instance.
[0167] In some embodiments of the present application, the medical examination report editing device is also used for:
[0168] If the replicable element is associated with an initialization behavior and / or the first editing operation triggers the associated behavior of the replicable element, a request is made to a preset behavior management center to execute the behavior, and the behavior identifier and behavior parameters of the behavior are passed in so that the behavior management center executes the behavior according to the registered behavior identifier and the behavior parameters.
[0169] In some embodiments of the present application, the medical examination report editing device is also used for:
[0170] The display content of the report element is displayed through HTML controls, the display parameters of the report element are adjusted through CSS, and the display content and display parameters of the report element are generated during the report template editing process and saved in the report template;
[0171] The element attributes of the report element include at least one of: element identification, element path identification, element description, value type, nesting relationship, value, child element, relationship with parent element, display parameter, constraint and behavior;
[0172] The value types of the report element include: container type, description type, button type, list type, free text type, coded string type, picture type and chart type, the value type predefines the display mode, display parameters, constraints and behavior of the report element, and the initial behavior included in the behavior is run through Javascript;
[0173] The report element includes a replicable element, the replicable element is associated with a replicable fragment, and the replicable fragment is saved through an HTML Template.
[0174] In an embodiment of the present application, a target report template corresponding to the medical examination data to be displayed is obtained, and a report instance is created based on the target report template; in response to a first editing operation on the report instance, a replicable element associated with the first editing operation is obtained, and the replicable element includes at least two dynamically editable report elements with a nested relationship; the replicable element is edited according to the nested relationship of the replicable elements to obtain a medical examination report; in this embodiment, multiple report templates are preset and configured, and a target report template corresponding to the medical examination data is obtained when editing the report, and a report instance is created based on the medical examination data and the target report template. When medical personnel edit the replicable elements in the report instance, they edit them according to the nested relationship of the replicable elements. When repeated fragments appear in the report and the content in the repeated fragments changes, they can be dynamically edited during the report editing process to obtain a structured medical examination report that meets the requirements. This does not require code modification to support it, and medical examination report editing is more convenient.
[0175] The present application also provides a computer device, such as Fig.10 As shown, Fig.10 It is a structural diagram of a computer device provided in an embodiment of the present application.
[0176] The computer device includes a memory, a processor, and a medical examination report editing program stored in the memory and executable on the processor. When the processor executes the medical examination report editing program, the steps in the medical examination report editing method provided in any embodiment of the present application are implemented.
[0177] Specifically, the computer device may include one or more processing core processors 701, one or more storage media memories 702, a power supply 703, an input unit 704 and other components. Those skilled in the art will understand that Fig.10 The computer device structure shown in the figure does not constitute a limitation on the computer device, and may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently. Among them:
[0178] The processor 701 is the control center of the computer device. It uses various interfaces and lines to connect various parts of the entire computer device. By running or executing software programs and / or modules stored in the memory 702 and calling data stored in the memory 702, it executes various functions of the computer device and processes data, thereby monitoring the computer device as a whole. Optionally, the processor 701 may include one or more processing cores; preferably, the processor 701 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, and application programs, and the modem processor mainly processes wireless communications. It is understandable that the above-mentioned modem processor may not be integrated into the processor 701.
[0179] The memory 702 can be used to store software programs and modules. The processor 701 executes various functional applications and data processing by running the software programs and modules stored in the memory 702. The memory 702 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area may store data created according to the use of the computer device, etc. In addition, the memory 702 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage devices. Accordingly, the memory 702 may also include a memory controller to provide the processor 701 with access to the memory 702.
[0180] The computer device also includes a power supply 703 for supplying power to various components. Preferably, the power supply 703 can be logically connected to the processor 701 through a power management system, so as to manage charging, discharging, power consumption and other functions through the power management system. The power supply 703 can also include one or more DC or AC power supplies, recharging systems, power failure detection circuits, power converters or inverters, power status indicators and other arbitrary components.
[0181] The computer device may further include an input unit 704, which may be used to receive input digital or character information and generate keyboard, mouse, joystick, optical or trackball signal input related to user settings and function control.
[0182] Although not shown, the computer device may also include a display unit, etc., which will not be described in detail herein. Specifically in this embodiment, the processor 701 in the computer device will load the executable files corresponding to the processes of one or more application programs into the memory 702 according to the following instructions, and the processor 701 will run the application programs stored in the memory 702, thereby implementing the steps in the medical examination report editing method provided in any embodiment of the present application.
[0183] To this end, an embodiment of the present application provides a computer device readable storage medium, which may include: a read-only memory (ROM), a random access memory (RAM), a disk or an optical disk, etc. The computer device readable storage medium stores a medical examination report editing program, and when the medical examination report editing program is executed by a processor, the steps in the medical examination report editing method provided in any embodiment of the present application are implemented.
[0184] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, please refer to the detailed description of other embodiments above, and will not be repeated here.
[0185] In specific implementation, the above units or structures can be implemented as independent entities, or can be arbitrarily combined to be implemented as the same or several entities. The specific implementation of the above units or structures can refer to the previous method embodiments, which will not be repeated here.
[0186] The specific implementation of the above operations can be found in the previous embodiments, which will not be described in detail here.
[0187] The above is a detailed introduction to a medical examination report editing method provided in an embodiment of the present application. Specific examples are used herein to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea; at the same time, for technical personnel in this field, according to the idea of the present invention, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present invention.
Claims
1. A method for editing a medical examination report, characterized in that: include: Acquire a target report template corresponding to the medical examination data to be displayed, and create a report instance based on the medical examination data and the target report template; In response to a first editing operation on the report instance, obtaining a replicable element associated with the first editing operation, the replicable element comprising at least two dynamically editable report elements having a nested relationship; The replicable elements are edited according to the nested relationship of the replicable elements to obtain a medical examination report.
2. The medical examination report editing method according to claim 1, characterized in that: The step of obtaining a target report template corresponding to the medical examination data to be displayed and creating a report instance based on the medical examination data and the target report template includes: Querying a preset database to obtain a target report template corresponding to the medical examination data to be displayed, wherein the preset database stores pre-created report templates; In response to the template loading request, the target report template is loaded into the memory to generate a report instance; The medical examination data is set into the report instance, and the initialization behavior of the report instance is executed to generate an editable report instance.
3. The medical examination report editing method according to claim 2, characterized in that: Before querying the preset database to obtain the target report template corresponding to the medical examination data to be displayed, the method includes: In response to template creation requests, create report templates based on predefined report content, display parameters, and initialization behaviors; In response to a second editing operation on the report template, a preset template editing interface is output; the template editing interface is used to display the association relationship between the report elements in the report template through a tree structure; the report elements include dynamically editable and replicable elements with nested relationships; The replicable element is accessed based on the tree structure, the replicable element is edited, and the edited report template is saved to a preset database.
4. The method for editing a medical examination report according to claim 3, characterized in that: The step of accessing the replicable element based on the tree structure, editing the replicable element, and saving the edited report template to a preset database includes: The replicable element is accessed based on the tree structure; the replicable element is a container-type element, the container-type element contains various sub-elements, and the sub-elements include: a copy button, a copy list and a replicable instance; the replicable instance is a container-type element, and the replicable instance includes multiple report elements with a nested relationship; In response to an edit operation on the replicable element triggered based on the tree structure, adding the replicable button, the replicable list and the replicable instance to the replicable element; The replicable elements in the report template are updated according to the newly added replica button, the replica list and the replicable instance, and the edited report template is saved to a preset database.
5. The method for editing a medical examination report according to claim 3, characterized in that: The step of accessing the replicable element based on the tree structure, editing the replicable element, and saving the edited report template to a preset database includes: Accessing the replicable element based on the tree structure, and in response to an editing operation on the replicable element triggered based on the tree structure, configuring behavior information of a behavior for the replicable element, wherein the behavior refers to reporting a behavior executed during an editing process, and the behavior information includes a behavior identifier and a behavior parameter; The replicable element, the behavior information of the behavior corresponding to the replicable element, and the report template are associated and saved in a preset database.
6. The method for editing a medical examination report according to claim 1, characterized in that: The step of editing the replicable elements according to the nested relationship of the replicable elements to obtain a medical examination report includes: In response to a request for operating a copy button in the copyable element, obtaining an element path identifier associated with the copy button; Obtain a replicable fragment corresponding to the element path identifier, and create a replicable instance according to the replicable fragment; Updating the replicable instance and the element path identifier of the inner replicable element nested in the replicable instance; The replicable instance and the inner replicable elements nested in the replicable instance are inserted into the medical examination report.
7. The method for editing a medical examination report according to claim 6, characterized in that: The updating of the replicable instance and the element path identifier of the inner replicable element nested in the replicable instance includes: If the replicable instance includes an inner replicable element, updating the element path identifier of the inner replicable element in the replicable instance; The inner layer replicable fragment corresponding to the inner layer replicable element is replicated, and the element path identifier in the replicated inner layer replicable fragment is updated with the element path identifier of the replicable instance.
8. The method for editing a medical examination report according to claim 1, characterized in that: Before editing the replicable elements according to the nested relationship of the replicable elements, the method includes: If the replicable element is associated with an initialization behavior and / or the first editing operation triggers the associated behavior of the replicable element, a request is made to a preset behavior management center to execute the behavior, and the behavior identifier and behavior parameters of the behavior are passed in so that the behavior management center executes the behavior according to the registered behavior identifier and the behavior parameters.
9. The method for editing a medical examination report according to any one of claims 1 to 8, characterized in that: The display content of the report element is displayed through HTML controls, the display parameters of the report element are adjusted through CSS, and the display content and display parameters of the report element are generated during the report template editing process and saved in the report template; The element attributes of the report element include at least one of: element identification, element path identification, element description, value type, nesting relationship, value, child element, relationship with parent element, display parameter, constraint and behavior; The value types of the report element include: container type, description type, button type, list type, free text type, coded string type, picture type and chart type, the value type predefines the display mode, display parameters, constraints and behavior of the report element, and the initial behavior included in the behavior is run through Javascript; The report element includes a replicable element, the replicable element is associated with a replicable fragment, and the replicable fragment is saved through an HTML Template.
10. A medical examination report editing device, characterized in that: The medical examination report editing device comprises: An acquisition module, used for acquiring a target report template corresponding to the medical examination data to be displayed, and creating a report instance based on the medical examination data and the target report template; A response module, configured to respond to a first editing operation on the report instance, and obtain a replicable element associated with the first editing operation, wherein the replicable element includes at least two dynamically editable report elements having a nested relationship; The editing module is used to edit the replicable elements according to the nested relationship of the replicable elements to obtain a medical examination report.
11. A computer device, characterized in that: The computer device includes: a processor, a memory, and a medical examination report editing program stored in the memory and executable on the processor, and the processor executes the medical examination report editing program to implement the steps in the medical examination report editing method described in any one of claims 1 to 9.
12. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a medical examination report editing program, and the medical examination report editing program is executed by a processor to implement the steps in the medical examination report editing method according to any one of claims 1 to 9.
