Nursing document style switching method and device, equipment and medium
By preconfiguring the templates of basic nursing document styles for the electronic medical record management system and converting page layouts according to the type and style of the target nursing document, the problem of single nursing document styles in the existing technology is solved, and diversified nursing document style display is achieved, improving adaptability and writing efficiency.
Patent Information
- Application Number
- CN202411959826.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-30
- Publication Date
- 2025-04-18
AI Technical Summary
The visual style of nursing documents provided by the existing electronic medical record management system is relatively single, and it is difficult to meet the diverse needs of different types of nursing documents for styles.
By preconfiguring the basic nursing document templates of basic nursing document styles for different nursing document types, page layout conversion is carried out according to the type and style of the target nursing document, so as to achieve rendering and display from the basic nursing document style to the target nursing document style.
It realizes the diversity of nursing document styles, meets the different user needs, improves the adaptability and flexibility of nursing document templates, and optimizes the writing experience and medical record writing efficiency.
Smart Images

Figure CN119851843A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of electronic medical record management systems, and in particular to a method, device, equipment and medium for switching nursing document styles. Background Art
[0002] With the gradual improvement of basic hospital information construction, all written medical records in clinical nursing, that is, nursing documents, have been completely replaced by manual input and printing by electronic medical record management systems, which effectively improves the efficiency and convenience of clinical nursing. However, the visualization style of nursing documents provided by electronic medical record management systems is relatively simple, lacking flexibility and adaptability, and it is difficult to meet the different needs of different types of nursing documents for visualization styles. Summary of the invention
[0003] The present application provides a method, device, equipment and medium for switching the style of nursing documents, which is used to solve the problem that the visual style of nursing documents in the electronic medical record management system in the prior art is relatively single and difficult to meet different usage requirements. Among them, the technical solutions provided by the present application are as follows:
[0004] On the one hand, the present application provides a method for switching nursing document styles, comprising:
[0005] In response to a visualization request for a target nursing document, a nursing document type corresponding to the target nursing document is determined, and a basic nursing document template of a basic nursing document style pre-configured for the nursing document type is obtained; wherein one nursing document type corresponds to a basic nursing document template of a basic nursing document style; the basic nursing document template of the basic nursing document style records each document paragraph of the target nursing document and each data element in each document paragraph, as well as a sequence number of each document paragraph and a sequence number of each data element in each document paragraph;
[0006] Determine the target nursing document style corresponding to the target nursing document, and when it is determined that the target nursing document style is different from the basic nursing document style, convert the basic nursing document template from the basic nursing document style to the target nursing document style for display based on the sorting number of each document paragraph and the sequence number of each data element in each document paragraph according to the page layout conversion rules between the basic nursing document style and the target nursing document style.
[0007] Optionally, if the basic nursing document style is a form style and the target nursing document style is a horizontal table style, the basic nursing document template is converted from the basic nursing document style to the target nursing document style for display according to the page layout conversion rules between the basic nursing document style and the target nursing document style, based on the sorting number of each document paragraph and the sequence number of each data element in each document paragraph, including:
[0008] Using the flow layout rule, each document paragraph is generated from left to right in the order of the sequence number from small to large, and within each document paragraph, each data element is generated from left to right in the order of the sequence number from small to large, so as to convert the basic nursing document template from a form format to a horizontal table format for display.
[0009] Optionally, if the basic nursing document style is a form style and the target nursing document style is a vertical table style, the basic nursing document template is converted from the basic nursing document style to the target nursing document style for display according to the page layout conversion rules between the basic nursing document style and the target nursing document style, based on the sorting number of each document paragraph and the sequence number of each data element in each document paragraph, including:
[0010] Using the streaming layout rule, each document paragraph is generated from top to bottom in ascending order of the sorting number, and within each document paragraph, each data element is generated from top to bottom in ascending order of the sequence number, so as to convert the basic nursing document template from a form format to a vertical table format for display.
[0011] Optionally, when determining the target nursing document style corresponding to the target nursing document, it also includes:
[0012] Get the current screen resolution;
[0013] Based on the adaptation relationship between the pre-configured nursing document style and the screen resolution, the nursing document style adapted to the current screen resolution is determined as the target nursing document style corresponding to the target nursing document.
[0014] Optionally, before responding to a visualization request for a target nursing document, the process further includes:
[0015] For each nursing document type, in response to a document paragraph creation operation for the nursing document type, each newly created document paragraph for the nursing document type is acquired, and a sequence number of each document paragraph is generated according to a creation order of each document paragraph;
[0016] For each document paragraph, in response to a data element adding operation for the document paragraph, each data element added for the document paragraph is obtained, and a sequence number of each data element is generated according to the order in which each data element is added;
[0017] Based on each document paragraph and each data element in each document paragraph, as well as the sorting number of each document paragraph and the sequence number of each data element in each document paragraph, a basic nursing document template of a basic nursing document style corresponding to the nursing document type is generated and saved.
[0018] Optionally, the nursing document style switching method provided by this application also includes:
[0019] In response to the position adjustment operation on the document paragraph in the basic nursing document template, the sequence number of each document paragraph in the basic nursing document template is updated based on the adjusted position corresponding to the document paragraph;
[0020] In response to the position adjustment operation on the data element in the basic nursing document template, the sequence number of the data element is updated based on the adjusted position corresponding to the data element.
[0021] Optionally, the nursing document style switching method provided by this application also includes:
[0022] Add a data tuple consisting of multiple data elements to each document paragraph;
[0023] Based on the data tuples in each document paragraph, verification calculation operations are performed on each data element in each document paragraph.
[0024] On the other hand, the present application provides a nursing document style switching device, comprising:
[0025] A basic template acquisition unit is used to respond to a visualization request for a target nursing document, determine a nursing document type corresponding to the target nursing document, and acquire a basic nursing document template of a basic nursing document style pre-configured for the nursing document type; wherein one nursing document type corresponds to a basic nursing document template of a basic nursing document style; and the basic nursing document template of the basic nursing document style records each document paragraph of the target nursing document and each data element in each document paragraph, as well as a sequence number of each document paragraph and a sequence number of each data element in each document paragraph;
[0026] The target style display unit is used to determine the target nursing document style corresponding to the target nursing document, and when it is determined that the target nursing document style is different from the basic nursing document style, according to the page layout conversion rules between the basic nursing document style and the target nursing document style, based on the sorting numbers of each document paragraph and the sequence numbers of each data element in each document paragraph, the basic nursing document template is converted from the basic nursing document style to the target nursing document style for display.
[0027] On the other hand, the present application provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the above-mentioned nursing document style switching method is implemented when the processor executes the computer program.
[0028] On the other hand, the present application provides a computer-readable storage medium, which stores computer instructions. When the computer instructions are executed by a processor, the above-mentioned nursing document style switching method is implemented.
[0029] The beneficial effects of this application are as follows:
[0030] The present application pre-configures basic nursing document templates of basic nursing document styles for different nursing document types. When visually displaying nursing documents of different nursing document types, the basic nursing document template of the basic nursing document style can be determined according to the nursing document type corresponding to the target nursing document to be displayed, so that according to the sorting numbers of each document paragraph corresponding to the target nursing document recorded in the basic nursing document template of the basic nursing document style and the sequence numbers of each data element in each document paragraph, rendering display from a basic nursing document template of a basic nursing document style to different nursing document styles can be realized, thereby realizing the diversity of visualization styles of nursing documents and meeting the different usage needs of users.
[0031] Other features and advantages of the present application will be described in the following description, and in part, will become apparent from the description, or will be understood by practicing the present application. The purpose and other advantages of the present application can be realized and obtained by the structures specifically pointed out in the written description and the drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:
[0033] Figure 1 This is a functional structure diagram of the electronic medical record management system in an embodiment of the present application;
[0034] Figure 2 This is a schematic diagram of the general flow of the method for switching the nursing document style in the embodiment of the present application;
[0035] Figure 3 This is a schematic diagram of the general process of the basic nursing document template configuration method in the embodiment of the present application;
[0036] Figure 4 This is a functional structure diagram of a nursing document style switching device in an embodiment of the present application;
[0037] Figure 5 Schematic diagram of the hardware structure of the electronic device in the embodiment of the present application. DETAILED DESCRIPTION
[0038] In order to make the purpose, technical solution and beneficial effects of this application clearer, the technical solution in the embodiment of this application will be clearly and completely described below in conjunction with the drawings in the embodiment of this application. Obviously, the described embodiment is only a part of the embodiment of this application, not all the embodiments. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0039] In order to facilitate those skilled in the art to better understand the present application, the technical terms involved in the present application are briefly introduced below.
[0040] Electronic medical record management system is a system used to manage all nursing documents. In this application, refer to Figure 1 As shown, the electronic medical record management system includes a nursing data center, a case buffer, a document editor and a document rendering engine; wherein the nursing data center is used to save relevant data in the case buffer, the document editor and the document rendering engine; the case buffer is used to cache nursing documents of different nursing document types, including but not limited to record sheets, physical sign sheets, assessment sheets, notices, temperature sheets, etc.; the document editor provides a production and preview entry for basic nursing document templates, and is a technical tool for the production of basic nursing document templates. The document editor can set paragraphs, set data tuples, set data elements and table attributes, and set data element rules, etc., for configuring the document paragraphs, data elements, value domains, data tuples, and page layout rules of different nursing document styles corresponding to the nursing documents; the document rendering engine is used to render the nursing documents into any nursing document style in the form format, horizontal table format, and vertical table format for display.
[0041] Nursing document style is the rendering style of nursing documents. In this application, nursing document styles include but are not limited to form style, horizontal table style and vertical table style. Among them, the basic nursing document style and the target nursing document style can be any one of the form style, horizontal table style and vertical table style. Preferably, in order to facilitate storage and improve rendering efficiency, the basic nursing document style can be a form style.
[0042] Data element is the smallest unit of the basic nursing document template. By parsing the actual nursing document content or manually adding it, the smallest data storage unit, that is, the data element, is obtained. The data element records the data element type, data element value range, classification and other information. The document editor provides a data element definition interface for defining the data element name, code, type, category and other extended attribute settings. It can also standardize the data element according to the writing content and requirements of the nursing document to achieve data prefabrication.
[0043] The value domain is the source of data options for a data element. Common types of data elements, such as single-choice and multiple-choice, need to define their data option sources, i.e., the value domain. The document editor provides a value domain definition and unified maintenance interface to maintain the option source. The same value domain content can be bound to different data elements for reuse. Bind the defined value domain content to the standard data element to achieve data prefabrication, which is convenient for standardized reference in the document editor.
[0044] Tables are a way to record specific data elements in basic nursing document templates. For example, specific data elements such as patient output and input need to be recorded in the basic nursing document template in a tabular form. By maintaining a group of data elements in a tabular form, it is possible to quickly reference and set the editing properties of the table during the rendering of the basic nursing document template. The document editor provides a table maintenance interface, which allows multiple data elements to form a table. It supports setting the component type of the data element items in the table. Defined tables support quick reference in the document editor.
[0045] After introducing the technical terms involved in this application, the technical solutions provided by this application are described in detail.
[0046] The present application embodiment provides a method for switching nursing document styles. Figure 2 As shown, the general process of the nursing document style switching method provided in the embodiment of the present application is as follows:
[0047] Step 201: In response to a visualization request for a target nursing document, determine the nursing document type corresponding to the target nursing document, and obtain a basic nursing document template of a basic nursing document style pre-configured for the nursing document type; wherein one nursing document type corresponds to a basic nursing document template of a basic nursing document style; the basic nursing document template of the basic nursing document style records each document paragraph of the target nursing document and each data element in each document paragraph, as well as the sorting number of each document paragraph and the sequence number of each data element in each document paragraph.
[0048] In an embodiment of the present application, the document editor stores basic nursing document templates of basic nursing document styles that are pre-configured for different types of nursing documents. When a user's visualization request for a target nursing document is received, the nursing document type corresponding to the target nursing document can be determined first, and then the basic nursing document template of the basic nursing document style that is pre-configured for the nursing document type corresponding to the target nursing document can be obtained from the document editor.
[0049] Step 202: Determine the target nursing document style corresponding to the target nursing document, and when it is determined that the target nursing document style is different from the basic nursing document style, convert the basic nursing document template from the basic nursing document style to the target nursing document style for display according to the page layout conversion rules between the basic nursing document style and the target nursing document style, based on the sorting numbers of each document paragraph and the sequence numbers of each data element in each document paragraph.
[0050] In the embodiment of the present application, after determining the target nursing document style corresponding to the target nursing document, the target nursing document can be rendered and displayed according to the target nursing document style through the document renderer. In the specific implementation, if it is determined that the target nursing document style is the same as the basic nursing document style, then according to the page layout method corresponding to the basic nursing document style, based on the sorting number of each document paragraph and the sequence number of each data element in each document paragraph, each document paragraph of the target nursing document recorded in the basic nursing document template and each data element in each document paragraph are rendered to render the basic nursing document template into the basic nursing document style for display; if it is determined that the target nursing document style is different from the basic nursing document style, then according to the page layout conversion rule between the basic nursing document style and the target nursing document style, based on the sorting number of each document paragraph and the sequence number of each data element in each document paragraph, each document paragraph in the basic nursing document template and each data element in each document paragraph are converted from the basic nursing document style to the target nursing document style for display. Specifically, there may be but are not limited to the following two situations:
[0051] The first case: the basic nursing document style is form-based and the target nursing document style is horizontal table-based.
[0052] In this case, when converting the basic nursing document template from the basic nursing document style to the target nursing document style for display according to the page layout conversion rules between the basic nursing document style and the target nursing document style, based on the sorting numbers of each document paragraph and the sequence numbers of each data element in each document paragraph, the following methods may be used but are not limited to:
[0053] Using the flow layout rule, each document paragraph is generated from left to right in the order of the sequence number from small to large, and within each document paragraph, each data element is generated from left to right in the order of the sequence number from small to large, so as to convert the basic nursing document template from a form format to a horizontal table format for display.
[0054] For example: according to the sorting number of the document paragraph, in order from small to large, the flow layout rule is used to generate the first-level title structure from left to right, and the paragraph name of the document paragraph is read as the first-level title content; the data elements and tables and data tuples in the non-table and data tuple in the same document paragraph generate the second-level title structure from left to right according to the sorting number, and the data elements and tables and data tuple names in the non-table and data tuple are read as the second-level title content; the data elements in the same table or data element generate the third-level title structure from left to right according to the sorting number, and the data element name is read as the third-level title content. The first-level, second-level, and third-level titles are laid out in the vertical table format according to the top-middle-bottom structure.
[0055] The second situation: the basic nursing document style is form-based and the target nursing document style is vertical table-based.
[0056] In this case, when converting the basic nursing document template from the basic nursing document style to the target nursing document style for display according to the page layout conversion rules between the basic nursing document style and the target nursing document style, based on the sorting numbers of each document paragraph and the sequence numbers of each data element in each document paragraph, the following methods may be used but are not limited to:
[0057] Using the streaming layout rule, each document paragraph is generated from top to bottom in ascending order of the sorting number, and within each document paragraph, each data element is generated from top to bottom in ascending order of the sequence number, so as to convert the basic nursing document template from a form format to a vertical table format for display.
[0058] For example: according to the sorting number of the document paragraph, in order from small to large, according to the flow layout rules, the first-level title structure is generated from top to bottom, and the paragraph title of the document paragraph is read as the first-level title content; the data elements and tables and data tuples in the non-table and data tuple in the same document paragraph are generated from top to bottom according to the sorting number, and the data elements and tables and data tuple names in the non-table and data tuple are read as the second-level title content; the data elements in the same table or data element are generated from top to bottom according to the sorting number, and the data element names are read as the third-level title content. The first-level, second-level, and third-level titles are laid out in a left-middle-right structure in the vertical table format.
[0059] In addition, in an embodiment of the present application, in order to further improve the screen adaptability of the target nursing document when it is displayed, when determining the target nursing document style corresponding to the target nursing document, the current screen resolution can also be obtained, and based on the adaptation relationship between the pre-configured nursing document style and the screen resolution, the nursing document style adapted to the current screen resolution is determined as the target nursing document style corresponding to the target nursing document.
[0060] In this way, by configuring the adaptation relationship between different nursing document styles and screen resolutions (such as screen resolution range), when loading the target nursing document, after automatically identifying the current screen resolution, it can make adaptive adjustments according to the standard page layout corresponding to the target nursing document style and the current screen resolution. When the current screen resolution is within a certain screen resolution range, the nursing document style corresponding to the screen resolution range is loaded by default. At the same time, it supports switching of nursing document styles by clicking buttons such as forms, horizontal tables, and vertical tables, thereby further realizing the free switching of nursing document styles and improving the visualization effect of nursing documents.
[0061] Next, the configuration method of the basic nursing document template of the basic nursing document style corresponding to different nursing document types is described in detail. In the embodiment of the present application, the basic nursing document template of the basic nursing document style corresponding to different nursing document types can be configured by the document editor in the following manner:
[0062] Step 301: for each nursing document type, in response to a document paragraph creation operation for the nursing document type, each newly created document paragraph for the nursing document type is obtained, and a sequence number for each document paragraph is generated according to the creation order of each document paragraph.
[0063] For example: the nursing document template to be produced provided by the hospital can be decomposed into paragraphs, and the document paragraph titles and the various data element items contained in the document paragraphs can be extracted. According to the position of the document paragraph title in the nursing document template to be produced and the position in the document paragraph, the sorting number of each document paragraph and the sequence number of each data element in each document paragraph can be generated in turn. The document paragraph title can also be defined through the operation of creating a new document paragraph, and the sorting number of the document paragraph can be automatically generated according to the newly created sequence. At the same time, it supports manual adjustment of the sorting of paragraph titles and automatically generates new sorting numbers.
[0064] Step 302: For each document paragraph, in response to the data element adding operation for the document paragraph, obtain each data element added for the document paragraph, and generate a sequence number for each data element according to the order in which each data element is added.
[0065] For example: select the document paragraph to which data elements need to be added, generate the document paragraph structure by checking or dragging the data elements and tables defined in the data element management subsystem, and construct the document paragraph content. In the same document paragraph, the sequence code of the data element in the document paragraph is recorded according to the order in which the data elements are added, and a line break identifier is recorded whether there is a line break. For example, if data element A and data element B are checked respectively, the sequence numbers of data element A and data element B in the document paragraph are recorded as (A, 1, N) and (B, 2, Y), respectively, where 1 and 2 represent sequence codes, and Y and N represent line break identifiers, for example, Y represents line break, and N represents no line break. That is, in an embodiment of the present application, the sequence number of each data element is composed of a sequence code and a line break identifier.
[0066] In addition, in an embodiment of the present application, for each document paragraph, a data tuple consisting of multiple data elements can be added to the document paragraph; and based on the data tuple in the document paragraph, verification calculation operations can be performed between the data elements in the document paragraph; wherein the verification calculation operations include but are not limited to calculation operations, mutual exclusion detection operations, required field detection operations, linkage operations, etc. In the specific implementation, for the data elements in the data tuple, the data elements participating in the calculation and the data elements that need to be assigned values can be selected, and the computer-executable calculation script generated based on the calculation formula and rules can be obtained and run to realize the calculation function; for the data elements in the data tuple, the data elements or data element options participating in the mutual exclusion can be selected, and the computer-executable mutual exclusion script generated based on the mutual exclusion rules can be obtained and run to realize the mutual exclusion detection function; for the data elements in the data tuple, the data elements set as required can be selected, and the computer-executable required script generated based on the required quantity and required text prompt rules can be obtained and run to realize the required detection function; for the data elements in the data tuple, the data elements that serve as triggers for linkage and the data elements that need to be linked can be selected, and the computer-executable linkage rule script generated based on the linkage rules can be obtained and run to realize the linkage function.
[0067] Step 303: Based on each document paragraph and each data element in each document paragraph, as well as the sorting number of each document paragraph and the sequence number of each data element in each document paragraph, a basic nursing document template of a basic nursing document style corresponding to the nursing document type is generated and saved.
[0068] It is worth mentioning that in the embodiment of the present application, in the process of generating a basic nursing document template of a basic nursing document style corresponding to a nursing document type, on the one hand, it is also possible to respond to the position adjustment operation for the document paragraph in the basic nursing document template, based on the adjusted position corresponding to the document paragraph, update the sorting number of each document paragraph in the basic nursing document template. On the other hand, it is also possible to respond to the position adjustment operation for the data element in the basic nursing document template, based on the adjusted position corresponding to the data element, update the sequence number of the data element; for example: the embodiment of the present application supports the layout of the adjustment position of the data element and the table. It supports the rapid selection of a data element to drag it back or quickly move it to a specified position, and records the corresponding coordinate point according to the target position of the drag; then calculates the sequence code of the data element and the subsequent data element according to the sequence code of the previous data element of the coordinate point. If 10 data elements have been dragged, the coordinates of the 10th data element are (A, 10, N). If it is dragged as the 5th data element of the second row, the system calculates its new coordinates as (A, 5, N) in real time after the drag, and recalculates and updates the coordinates of the existing data elements. On the other hand, in response to the verification calculation operation on the data element in the basic nursing document template, the original attribute of the data element in the basic nursing document template can be updated to the adjusted attribute corresponding to the data element; for example: supporting the modification of data elements or table attributes, such as title width, title color, whether it is required, display conditions, etc., to meet the front-end display requirements and functional requirements.
[0069] In addition, regarding the position adjustment of data elements, tables, and data tuples: in the same document paragraph, the data elements and tables, data tuples that are not in tables and data tuples can be moved up and down in the list on the left to adjust the corresponding position relationship, or the position can be adjusted manually by dragging in the template editing area on the right, and the sequence number will be automatically updated at the same time.
[0070] In summary, the beneficial effects of the nursing document style switching method provided in the embodiment of the present application include:
[0071] (1) Improve the adaptability and flexibility of nursing document templates;
[0072] By introducing switchable rendering styles, the adaptability of nursing document templates has been significantly improved. It can automatically or manually adapt the best document writing style according to the writing habits of different users and the display characteristics of different hardware devices. This flexibility effectively solves the problems of single style and inflexibility in existing technologies, allowing the same document to display different styles according to different situations, thereby meeting diverse clinical nursing needs.
[0073] (2) Optimize the writing experience of nursing documents;
[0074] By supporting multiple entry and display styles such as form, horizontal table, and vertical table, it provides a more comfortable writing experience for nursing staff. On high-resolution screens, the horizontal table style provides a more intuitive way to enter data; on low-resolution screens, the form style or vertical table style reduces screen scrolling and improves the convenience of data entry.
[0075] (3) Improve the efficiency of nursing medical record writing;
[0076] By providing a unified template creation tool and a visual data element management page, the template creation and maintenance process is simplified. Nursing staff can quickly switch document styles according to their personal habits, reducing the workload of redrawing templates due to different screen resolutions, thereby significantly improving the efficiency of medical record writing.
[0077] (4) Reduce the operation and maintenance costs of nursing document templates;
[0078] In the traditional mode, in order to meet the writing habits of different users and the differences in hardware devices, it is necessary to maintain multiple templates of different styles, which leads to high operation and maintenance costs. The embodiment of the present application reduces the repeated drawing of templates by implementing the function of supporting multiple style switching of a document template, and effectively reduces the workload and cost of template maintenance.
[0079] (5) Enhance the user-friendliness of the system;
[0080] By providing a memory function for writing operations for nursing document styles, the best nursing document style can be automatically matched according to the user's habits. This personalized setting enhances user friendliness and improves the satisfaction and dependence of nursing staff on the electronic medical record management system.
[0081] Based on the above embodiments, the present application provides a nursing document style switching device, see Figure 4 As shown, the nursing document style switching device 400 provided in the embodiment of the present application at least includes:
[0082] The basic template acquisition unit 401 is used to determine the nursing document type corresponding to the target nursing document in response to the visualization request for the target nursing document, and acquire a basic nursing document template of a basic nursing document style pre-configured for the nursing document type; wherein one nursing document type corresponds to a basic nursing document template of a basic nursing document style; the basic nursing document template of the basic nursing document style records each document paragraph of the target nursing document and each data element in each document paragraph, as well as the sequence number of each document paragraph and the sequence number of each data element in each document paragraph;
[0083] The target style display unit 402 is used to determine the target nursing document style corresponding to the target nursing document, and when it is determined that the target nursing document style is different from the basic nursing document style, according to the page layout conversion rules between the basic nursing document style and the target nursing document style, based on the sorting number of each document paragraph and the sequence number of each data element in each document paragraph, the basic nursing document template is converted from the basic nursing document style to the target nursing document style for display.
[0084] In a possible implementation, if the basic nursing document style is a form style and the target nursing document style is a horizontal table style, the target style display unit 402 is used to adopt a flow layout rule to generate each document paragraph from left to right in ascending order of the sequence number, and within each document paragraph, generate each data element from left to right in ascending order of the sequence number, so as to convert the basic nursing document template from a form style to a horizontal table style for display.
[0085] In a possible implementation, if the basic nursing document style is a form style and the target nursing document style is a vertical table style, the target style display unit 402 is used to adopt a flow layout rule to generate each document paragraph in sequence from top to bottom in ascending order of the sequence number, and within each document paragraph, each data element is generated in sequence from top to bottom in ascending order of the sequence number, so as to convert the basic nursing document template from a form style to a vertical table style for display.
[0086] In a possible implementation, the target style display unit 402 is also used to obtain the current screen resolution; based on the adaptation relationship between the pre-configured nursing document style and the screen resolution, the nursing document style adapted to the current screen resolution is determined as the target nursing document style corresponding to the target nursing document.
[0087] In a possible implementation, the nursing document style switching device provided in the embodiment of the present application further includes:
[0088] The basic template configuration unit 403 is used for, for each nursing document type, in response to a document paragraph creation operation for the nursing document type, obtaining each newly created document paragraph for the nursing document type, and generating a sorting number for each document paragraph according to the creation order of each document paragraph; for each document paragraph, in response to a data element addition operation for the document paragraph, obtaining each data element added to the document paragraph, and generating a sequence number for each data element according to the addition order of each data element; based on each document paragraph and each data element in each document paragraph, as well as the sorting number of each document paragraph and the sequence number of each data element in each document paragraph, generating and saving a basic nursing document template of a basic nursing document style corresponding to the nursing document type.
[0089] In a possible implementation, the nursing document style switching device provided in the embodiment of the present application further includes:
[0090] The basic template adjustment unit 404 is used to respond to the position adjustment operation on the document paragraphs in the basic nursing document template, and update the sorting number of each document paragraph in the basic nursing document template based on the adjusted position of the document paragraph; respond to the position adjustment operation on the data element in the basic nursing document template, and update the sequence number of the data element based on the adjusted position of the data element.
[0091] In a possible implementation, the basic template configuration unit 403 is further used to add a data tuple consisting of multiple data elements to each document paragraph; based on the data tuples in each document paragraph, perform verification calculation operations between data elements in each document paragraph.
[0092] It should be noted that the principle of solving the technical problem by the above-mentioned nursing document style switching device provided in the embodiment of the present application is similar to the above-mentioned nursing document style switching method provided in the embodiment of the present application. Therefore, the implementation of the above-mentioned nursing document style switching device provided in the embodiment of the present application can refer to the implementation of the above-mentioned nursing document style switching method provided in the embodiment of the present application, and the repeated parts will not be repeated.
[0093] After introducing the nursing document style switching method and device provided in the embodiment of the present application, the electronic device provided in the embodiment of the present application is briefly introduced next.
[0094] See also Figure 5 As shown, the electronic device 500 provided in the embodiment of the present application includes at least a processor 501, a memory 502, and a computer program stored in the memory 502 and executable on the processor 501. When the processor 501 executes the computer program, the above-mentioned nursing document style switching method provided in the embodiment of the present application is implemented.
[0095] The electronic device 500 provided in the embodiment of the present application may further include a bus 503 connecting different components (including the processor 501 and the memory 502). The bus 503 represents one or more of several types of bus structures, including a memory bus, a peripheral bus, a local bus, and the like.
[0096] The memory 502 may include a readable medium in the form of a volatile memory, such as a random access memory (RAM) 5021 and / or a cache memory 5022, and may further include a read-only memory (ROM) 5023. The memory 502 may also include a program tool 5025 having a group (at least one) of program modules 5024, and the program modules 5024 include but are not limited to an operating subsystem, one or more application programs, other program modules, and program data, each of which or some combination may include the implementation of a network environment.
[0097] The processor 501 may be a processing element or a collective term for multiple processing elements. For example, the processor 501 may be a microcontroller unit (MCU), or a central processing unit (CPU), or one or more integrated circuits configured to implement the above-mentioned nursing document style switching method provided in the embodiment of the present application. Specifically, the processor 501 may be a general-purpose processor, including but not limited to a CPU, an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc.
[0098] The electronic device 500 can also communicate with one or more devices (such as mobile phones, computers, etc.) that allow users to interact with the electronic device 500, and / or with various external devices 504 such as devices (such as routers, modems, etc.) that allow the electronic device 500 to communicate with one or more other electronic devices. Such communication can be performed through an input / output (I / O) interface 505. In addition, the electronic device 500 can also communicate with one or more networks (such as a local area network (LAN), a wide area network (WAN) and / or a public network, such as the Internet) through a network adapter 506. Figure 5 As shown, the network adapter 506 communicates with other modules of the electronic device 500 via the bus 503. It should be understood that although Figure 5Not shown, other hardware and / or software modules may be used in conjunction with the electronic device 500, including but not limited to microcode, device drivers, redundant processors, external disk drive arrays, disk arrays (Redundant Arrays of Independent Disks, RAID) subsystems, tape drives, and data backup storage subsystems.
[0099] It should be noted that Figure 5 The electronic device 500 shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.
[0100] In addition, the embodiment of the present application further provides a computer-readable storage medium, which stores computer instructions, and when the computer instructions are executed by the processor, the nursing document style switching method provided in the embodiment of the present application is implemented. Specifically, the computer instructions can be built-in or installed in the processor, so that the processor can implement the above-mentioned nursing document style switching method provided in the embodiment of the present application by executing the built-in or installed computer instructions.
[0101] Moreover, the nursing document style switching method provided in the embodiment of the present application can also be implemented as a program product, which includes a program code, and when the program code is executed by a processor, it implements the above-mentioned nursing document style switching method provided in the embodiment of the present application.
[0102] The program product provided in the embodiments of the present application may adopt any combination of one or more readable media, wherein the readable medium may be a readable signal medium or a readable storage medium, and the readable storage medium may be, but is not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus or device, or any combination of the above. Specifically, more specific examples of readable storage media (a non-exhaustive list) include an electrical connection with one or more wires, a portable disk, a hard disk, RAM, ROM, Erasable Programmable Read Only Memory (EPROM), optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above.
[0103] The program product provided in the embodiment of the present application may adopt a CD-ROM and include program code, and may also be run on electronic devices such as computers, tablet computers, and mobile phones. However, the program product provided in the embodiment of the present application is not limited thereto. In the embodiment of the present application, the readable storage medium may be any tangible medium containing or storing a program, and the program may be used by or in combination with an instruction execution system, apparatus, or device.
[0104] It should be noted that, although several units or subunits of the device are mentioned in the above detailed description, this division is merely exemplary and not mandatory. In fact, according to the embodiments of the present application, the features and functions of two or more units described above can be embodied in one unit. Conversely, the features and functions of one unit described above can be further divided into multiple units to be embodied.
[0105] In addition, although the operations of the method of the present application are described in a specific order in the drawings, this does not require or imply that the operations must be performed in this specific order, or that all the operations shown must be performed to achieve the desired results. Additionally or alternatively, some steps may be omitted, multiple steps may be combined into one step, and / or one step may be decomposed into multiple steps.
[0106] Although the preferred embodiments of the present application have been described, those skilled in the art may make additional changes and modifications to these embodiments once they are aware of the basic creative concepts. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications falling within the scope of the present application.
[0107] Obviously, those skilled in the art can make various changes and modifications to the embodiments of the present application without departing from the spirit and scope of the embodiments of the present application. Thus, if these modifications and variations of the embodiments of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.
Claims
1. A method for switching nursing document styles, characterized in that: include: In response to a visualization request for a target nursing document, a nursing document type corresponding to the target nursing document is determined, and a basic nursing document template of a basic nursing document style pre-configured for the nursing document type is obtained; wherein one nursing document type corresponds to one basic nursing document template of the basic nursing document style; the basic nursing document template of the basic nursing document style records each document paragraph of the target nursing document and each data element in each document paragraph, as well as a sequence number of each document paragraph and a sequence number of each data element in each document paragraph; Determine a target nursing document style corresponding to the target nursing document, and when it is determined that the target nursing document style is different from the basic nursing document style, convert the basic nursing document template from the basic nursing document style to the target nursing document style for display according to the page layout conversion rules between the basic nursing document style and the target nursing document style, based on the sorting numbers of each of the document paragraphs and the sequence numbers of each of the data elements in each of the document paragraphs.
2. The method for switching nursing document styles according to claim 1, characterized in that: If the basic nursing document style is a form style and the target nursing document style is a horizontal table style, then according to the page layout conversion rule between the basic nursing document style and the target nursing document style, based on the sorting number of each document paragraph and the sequence number of each data element in each document paragraph, the basic nursing document template is converted from the basic nursing document style to the target nursing document style for display, including: Using the flow layout rule, each of the document paragraphs is generated from left to right in ascending order of the sequence number, and within each of the document paragraphs, each of the data elements is generated from left to right in ascending order of the sequence number, so as to convert the basic nursing document template from the form format to the horizontal table format for display.
3. The method for switching nursing document styles according to claim 1, characterized in that: If the basic nursing document style is a form style and the target nursing document style is a vertical table style, then according to the page layout conversion rule between the basic nursing document style and the target nursing document style, based on the sorting number of each document paragraph and the sequence number of each data element in each document paragraph, the basic nursing document template is converted from the basic nursing document style to the target nursing document style for display, including: Using the flow layout rule, each of the document paragraphs is generated in sequence from top to bottom according to the sequence number from small to large, and within each of the document paragraphs, each of the data elements is generated in sequence from top to bottom according to the sequence number from small to large, so as to convert the basic nursing document template from the form format to the vertical table format for display.
4. The method for switching nursing document styles according to claim 1, characterized in that: When determining the target nursing document style corresponding to the target nursing document, it also includes: Get the current screen resolution; Based on the adaptation relationship between the pre-configured nursing document style and the screen resolution, the nursing document style adapted to the current screen resolution is determined as the target nursing document style corresponding to the target nursing document.
5. The method for switching nursing document styles according to any one of claims 1 to 4, characterized in that: Before responding to a visualization request for a targeted nursing document, also include: For each nursing document type, in response to a document paragraph creation operation for the nursing document type, each newly created document paragraph for the nursing document type is acquired, and a sequence number of each document paragraph is generated according to a creation order of each document paragraph; For each of the document paragraphs, in response to a data element adding operation for the document paragraph, acquiring each data element added for the document paragraph, and generating a sequence number for each data element according to the order in which each data element is added; Based on each of the document paragraphs and each of the data elements in the document paragraphs, as well as the sorting number of each of the document paragraphs and the sequence number of each of the data elements in the document paragraphs, a basic nursing document template of the basic nursing document style corresponding to the nursing document type is generated and saved.
6. The method for switching nursing document styles according to claim 5, characterized in that: Also includes: In response to the position adjustment operation on the document paragraph in the basic nursing document template, updating the sequence number of each document paragraph in the basic nursing document template based on the adjusted position corresponding to the document paragraph; In response to the position adjustment operation on the data element in the basic nursing document template, the sequence number of the data element is updated based on the adjusted position corresponding to the data element.
7. The method for switching nursing document styles according to claim 5, characterized in that: Also includes: Add a data tuple consisting of a plurality of the data elements to each of the document paragraphs; Based on the data tuples in each of the document paragraphs, verification calculation operations are performed on each of the data elements in each of the document paragraphs.
8. A nursing document style switching device, characterized in that: include: A basic template acquisition unit is used to respond to a visualization request for a target nursing document, determine the nursing document type corresponding to the target nursing document, and acquire a basic nursing document template of a basic nursing document style pre-configured for the nursing document type; wherein one nursing document type corresponds to one basic nursing document template of the basic nursing document style; the basic nursing document template of the basic nursing document style records each document paragraph of the target nursing document and each data element in each document paragraph, as well as the sequence number of each document paragraph and the sequence number of each data element in each document paragraph; A target style display unit is used to determine the target nursing document style corresponding to the target nursing document, and when it is determined that the target nursing document style is different from the basic nursing document style, according to the page layout conversion rules between the basic nursing document style and the target nursing document style, based on the sorting numbers of each of the document paragraphs and the sequence numbers of each of the data elements in each of the document paragraphs, convert the basic nursing document template from the basic nursing document style to the target nursing document style for display.
9. An electronic device, characterized in that: The method comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the method for switching the nursing document styles as described in any one of claims 1 to 7 is implemented.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and when the computer instructions are executed by a processor, the nursing document style switching method as described in any one of claims 1-7 is implemented.