CN111768819B - Method, apparatus, device and medium for dynamically displaying or hiding header and footer - Google Patents

Method, apparatus, device and medium for dynamically displaying or hiding header and footer Download PDF

Info

Publication number
CN111768819B
CN111768819B CN202010568138.7A CN202010568138A CN111768819B CN 111768819 B CN111768819 B CN 111768819B CN 202010568138 A CN202010568138 A CN 202010568138A CN 111768819 B CN111768819 B CN 111768819B
Authority
CN
China
Prior art keywords
area
footer
header
page
height
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010568138.7A
Other languages
Chinese (zh)
Other versions
CN111768819A (en
Inventor
杨文龙
周承志
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Synyi Medical Technology Co ltd
Original Assignee
Shanghai Synyi Medical Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanghai Synyi Medical Technology Co ltd filed Critical Shanghai Synyi Medical Technology Co ltd
Publication of CN111768819A publication Critical patent/CN111768819A/en
Application granted granted Critical
Publication of CN111768819B publication Critical patent/CN111768819B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G16INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR SPECIFIC APPLICATION FIELDS
    • G16HHEALTHCARE INFORMATICS, i.e. INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR THE HANDLING OR PROCESSING OF MEDICAL OR HEALTHCARE DATA
    • G16H10/00ICT specially adapted for the handling or processing of patient-related medical or healthcare data
    • G16H10/60ICT specially adapted for the handling or processing of patient-related medical or healthcare data for patient-specific data, e.g. for electronic patient records
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/12Digital output to print unit, e.g. line printer, chain printer
    • G06F3/1201Dedicated interfaces to print systems
    • G06F3/1202Dedicated interfaces to print systems specifically adapted to achieve a particular effect
    • G06F3/1203Improving or facilitating administration, e.g. print management
    • G06F3/1206Improving or facilitating administration, e.g. print management resulting in increased flexibility in input data format or job format or job type
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/12Digital output to print unit, e.g. line printer, chain printer
    • G06F3/1201Dedicated interfaces to print systems
    • G06F3/1223Dedicated interfaces to print systems specifically adapted to use a particular technique
    • G06F3/1237Print job management
    • G06F3/1242Image or content composition onto a page
    • GPHYSICS
    • G16INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR SPECIFIC APPLICATION FIELDS
    • G16HHEALTHCARE INFORMATICS, i.e. INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR THE HANDLING OR PROCESSING OF MEDICAL OR HEALTHCARE DATA
    • G16H15/00ICT specially adapted for medical reports, e.g. generation or transmission thereof

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Epidemiology (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Primary Health Care (AREA)
  • Public Health (AREA)
  • Medical Treatment And Welfare Office Work (AREA)

Abstract

The application provides a method, a device, equipment and a medium for dynamically displaying or hiding a header and a footer, which are used for acquiring an electronic medical record; respectively calculating the heights of a header area and a footer area of each page to obtain the starting positions and the ending positions of the header area and the footer area; respectively screening out a header area and a footer area of each page in the electronic medical record content according to the starting position and the ending position, and putting a buffer svg layer to filter the header area and the footer area; and moving the filtered pages to a preset template for rendering display, so that the header area and the footer area are hidden in the displayed content of each page. The medical record text display method and the medical record text display system can meet the business requirements of hospitals on different medical record text display modes in different business scenes.

Description

Method, apparatus, device and medium for dynamically displaying or hiding header and footer
Technical Field
The invention relates to the technical field of electronic medical record writing, in particular to a method, a device, equipment and a medium for dynamically displaying or hiding headers and footers.
Background
Header and footer are important elements in word processing typesetting software. Header footers are used in word processing software to carry information pertaining to each page, such as page number, document title, etc. The header footer has a specific typesetting position and can squeeze the typesetting position of the text area.
However, in some business scenarios, such as a doctor writing a medical record, the doctor wants to hide the header and the footer when writing the medical record, so that more screen area is provided for the doctor to write. However, when a medical record is printed or browsed, a header and a footer are expected to be displayed, so that the integrity of information is maintained.
Therefore, a dynamic loading mechanism is needed to allow the user to switch between the display and hiding of the header and footer at will.
Disclosure of Invention
In view of the above-mentioned shortcomings in the prior art, it is an object of the present application to provide a method, apparatus, device and medium for dynamically displaying or hiding header footers, so as to solve at least one problem existing in the prior art.
To achieve the above and other related objects, the present application provides a method for dynamically displaying or hiding a header footer, the method comprising: acquiring an electronic medical record; respectively calculating the heights of a header area and a footer area of each page to obtain the starting positions and the ending positions of the header area and the footer area; respectively screening out a header area and a footer area of each page in the electronic medical record content according to the starting position and the ending position, and putting a buffer svg layer to filter the header area and the footer area; and moving the filtered pages to a preset template for rendering display, so that the header area and the footer area are hidden in the displayed content of each page.
In an embodiment of the present application, the calculating heights of the header region and the footer region of each page respectively to obtain the starting positions and the ending positions of the header region and the footer region includes: respectively calculating the height with the maximum content height in one row of the header area and the footer area, and taking the height as the height in the row of the current row; calculating the row height of each row; wherein, the height of each row is the top height + the height in the row + the height at the bottom; header height/footer height being the top margin + all line heights + bottom margin; and finally, respectively obtaining the starting position and the ending position of the header content and the footer content.
In an embodiment of the present application, the top height and the bottom height are obtained according to a line spacing height set by the text content.
In an embodiment of the present application, the filtering out a header area and a footer area of each page of the electronic medical record content according to the starting position and the ending position respectively includes: dividing each page of content of the electronic medical record according to the header end position and the starting position of the footer content; and obtaining a header area, a footer area and a text area of each page through segmentation.
In an embodiment of the present application, the placing a buffer svg layer to filter the header area and the footer area includes: and carrying out filtering processing of XOR calculation of an internal typesetting engine on the content of the first page containing the header area and the footer area to obtain a second page only with text content.
In an embodiment of the present application, moving the filtered pages to a preset template for rendering and displaying, so that a header area and a footer area of each displayed page are hidden, includes: pre-creating a preset template which contains a text area but does not contain a header area and a footer area; adjusting the size of the preset template to the size of the text content; and putting the second page obtained by processing into a created preset template for rendering and displaying so that the header area and the footer area of each page of displayed content are hidden.
In an embodiment of the application, the preset template can be set to respectively display or hide the header area and the footer area during a display or print operation.
To achieve the above and other related objects, the present application provides an apparatus for dynamically displaying or hiding a header footer, the apparatus comprising: the acquisition module is used for acquiring the electronic medical record; the processing module is used for respectively calculating the heights of the header area and the footer area of each page to obtain the starting positions and the ending positions of the header area and the footer area; respectively screening out a header area and a footer area of each page in the electronic medical record content according to the starting position and the ending position, and putting a buffer svg layer to filter the header area and the footer area; and moving the filtered pages to a preset template for rendering display, so that the header area and the footer area are hidden in the displayed content of each page.
To achieve the above and other related objects, the present application provides a computer apparatus, comprising: a memory, and a processor; the memory is to store computer instructions; the processor executes computer instructions to implement the method as described above.
To achieve the above and other related objects, the present application provides a computer readable storage medium storing computer instructions which, when executed, perform the method as described above.
In summary, the method, apparatus, device and medium for dynamically displaying or hiding a header and a footer provided by the present application are implemented by acquiring an electronic medical record; respectively calculating the heights of a header area and a footer area of each page to obtain the starting positions and the ending positions of the header area and the footer area; respectively screening out a header area and a footer area of each page in the electronic medical record content according to the starting position and the ending position, and putting a buffer svg layer to filter the header area and the footer area; and moving the filtered pages to a preset template for rendering display, so that the header area and the footer area are hidden in the displayed content of each page.
Has the following beneficial effects:
the medical record text display method and the medical record text display system can meet the business requirements of hospitals on different medical record text display modes in different business scenes.
Drawings
FIG. 1 is a flowchart illustrating a method for dynamically displaying or hiding a header and a footer according to an embodiment of the present invention.
Fig. 2 is a diagram illustrating a scenario of line height calculation according to an embodiment of the present application.
Fig. 3 is a schematic view illustrating a scene of region segmentation according to an embodiment of the present disclosure.
FIG. 4 is a block diagram illustrating an apparatus for dynamically displaying or hiding header and footer according to an embodiment of the present invention.
Fig. 5 is a schematic structural diagram of a computer device according to an embodiment of the present application.
Detailed Description
The following description of the embodiments of the present application is provided by way of specific examples, and other advantages and effects of the present application will be readily apparent to those skilled in the art from the disclosure herein. The present application is capable of other and different embodiments and its several details are capable of modifications and/or changes in various respects, all without departing from the spirit of the present application. It is to be noted that the features in the following embodiments and examples may be combined with each other without conflict.
It should be noted that the drawings provided in the following embodiments are only schematic and illustrate the basic idea of the present application, and although the drawings only show the components related to the present application and are not drawn according to the number, shape and size of the components in actual implementation, the type, quantity and proportion of the components in actual implementation may be changed at will, and the layout of the components may be more complex.
Consider that in some business scenarios, such as a doctor writing a medical record, it is desirable to hide the header and footer while writing the medical record, thus providing more screen area for writing. The header and footer can be hopefully displayed when the medical record is printed or browsed, and the integrity of the information is kept. In order to solve the above problems, the present application provides a method, an apparatus, a device, and a medium for dynamically displaying or hiding a header and a footer, which enable a user to switch between displaying and hiding of the header and footer at will by designing a set of header and footer dynamic loading mechanism based on svg elements on a web editor.
Fig. 1 is a flow chart illustrating a method for dynamically displaying or hiding a header and a footer according to an embodiment of the present invention. As shown, the method comprises:
step S101: and acquiring the electronic medical record.
In this embodiment, the acquired electronic medical records are preset and universal electronic medical records in hospital systems of a hospital, and have default format and layout characteristics of the hospital systems; in addition, the electronic medical record can be obtained by electronically scanning a paper electronic medical record held by the patient.
Because the formats of the electronic medical records are not uniform, the designs of headers and footers are also different. In order to hide headers and footers, header areas and footer areas need to be divided first in the application, specifically, header areas and footer areas and text areas of each page can be accurately divided according to setting parameters or formats of headers and footers on the back of various electronic medical records and according to a specific calculation mode.
Step S102: the heights of the header region and the footer region of each page are calculated to obtain the starting and ending positions of the header region and the footer region, respectively.
In an embodiment of the present application, the step S102 specifically includes:
A. the height at which the height of the contents in one row of the header area and the footer area is the largest is calculated, respectively, and is taken as the in-row height of the current row.
In the present embodiment, reference may be made to the scenario diagram of line height calculation shown in fig. 2. Characters such as Chinese, English, numbers and the like or characters of various combinations can be written at the positions of headers or footers, and different characters are highly differentiated, for example, English characters in figure 2 are generally shorter than literal characters. For the uniformity and accuracy of the line height calculation, the height with the largest content height in one line of the header area and the footer area is taken as the in-line height of the current line in the present application. Specifically, in determining the height at which the height of the content in one row is the largest, the middle line and the base line as shown in the figure may also be referred to make the determined height in row more accurate.
B. Calculating the row height of each row; wherein, the row height of each row is the top height + the height in the row + the bottom height.
In this embodiment, usually, in the process of editing characters, for the sake of neatness and beauty of the characters, a line space, specifically, a distance before a segment and a distance after a segment, is often set for each line of characters, or a line space multiple, for example, a numerical value such as 1 time, 1.5 times, 2 times, etc., is set, that is, a percentage of a text content height is set. Therefore, the distance before the segment and the distance after the segment or the height between the lines corresponding to each line of content are obtained by obtaining the setting parameter behind the text format, i.e. the height between the lines set by the text content, so as to obtain the top height above or before the text content of the corresponding current line and the bottom height below or after the text content of the corresponding current line, and finally the line height of each line is obtained by adding the line height, the top height and the bottom height, as shown in fig. 2.
C. Header height/footer height is the top margin + all line heights + bottom margin.
In this embodiment, the header/footer area is also usually set to a certain distance from the text area or page boundary, and the distance value is also set by default or user-defined in text editing, for example, the default is typically 3.17 cm. Therefore, the top margin and the bottom margin of the header/footer row height can be obtained by obtaining the corresponding setting parameters, and the header height/footer height in the application can be obtained by adding the margin, all the row heights and the bottom margin.
D. And finally, respectively obtaining the starting position and the ending position of the header content and the footer content.
After the header height/footer height is determined, the starting and ending positions of the header and footer can be determined.
Step S103: and respectively screening out a header area and a footer area of each page in the content of the electronic medical record according to the starting position and the ending position, and putting into a buffer svg layer to filter the header area and the footer area.
In an embodiment of the present application, step S103 specifically includes:
a) dividing each page of content of the electronic medical record according to the header end position and the starting position of the footer content;
b) and obtaining a header area, a footer area and a text area of each page through segmentation.
In this embodiment, a text area is also usually provided with a fixed range or size, and a text page is usually composed of only a header, a text and a footer, so after obtaining the header height or the footer height, or the starting position and the ending position of the header and the footer, the area between the header and the footer is the text area, and the header area, the footer area and the text area of each page can be obtained by dividing according to the starting position and the ending position of the header and the footer.
For example, the end position of the resulting header is recorded as: a1(x1, y1, y2), a2(x2, y1, y 2); the inspired position of the footer is noted as: a3(x3, y3, y4), a4(x4, y3, y 4). Then, the positions of the segmented text areas are: x: x2, y: y2, and thus the height of the text area: y 3-y 2, the width of the body area can be chosen to be the width of the buffer svg layer that is put in, since the width of the application is not affected by the header footer. As shown in fig. 3, corresponding area 1 in the schematic diagram is a header area, area 2 is a body area, and area 3 is a footer area.
c) And carrying out filtering processing of XOR calculation of an internal typesetting engine on the content of the first page containing the header area and the footer area to obtain a second page only with text content.
In this embodiment, after the header area and the footer area of each page of the electronic medical record content are screened, the header area and the footer area of each page of the screened medical record content are placed in a buffer svg layer. The data of each page block is contained in three svg elements, for example, a header, a body and a footer respectively correspond to one svg element, and n pages have 3 × n svg elements. And then carrying out XOR calculation of internal typesetting engines on the contents of the first page P1 placed in the header area and the footer area of the buffer svg layer, namely, filtering or hiding the header area and the footer area by virtue of the buffer svg layer, and finally obtaining a second page P2 only with text contents.
Wherein, svg is an image file format, and is called Scalable Vector Graphics in English, which means Scalable Vector Graphics. It is a language for describing two-dimensional graphics and drawing programs based on xml (extensible Markup language). Strictly speaking, the vector graphics language should be an open standard, and the high-resolution Web graphics page can be designed. The user can directly draw the image with the code, can open the svg image with any word processing tool, make the image have interactive function by changing part of the code, and can insert into HTML at any time to watch through a browser. As an open network standard based on text, svg can gracefully and concisely render graphics of different sizes, and seamlessly connects with other network standards such as CSS, DOM, JavaScript, SMIL, and the like. In essence, svg is relative to an image as if HTML is relative to text.
The svg images and their associated behavior are defined in XML text files, which means that they can be searched, indexed, scripted and compressed. Furthermore, this also means that any text editor and drawing software can be used to create and edit them.
General svg can provide 3 types of graphical objects: vector graphic (for example: a path composed of straight lines and curved lines), image (image), text (text). The graphic objects can also be grouped, added with styles, transformed, combined and the like, and the feature set comprises nested transformations (nested transformations), clipping paths (clipping paths), alpha masks (alpha masks), filter effects (filter effects), template objects (template objects) and other extensions (extensions).
Step S104: and moving the filtered pages to a preset template for rendering display, so that the header area and the footer area are hidden in the displayed content of each page.
In an embodiment of the present application, step S104 specifically includes:
1) pre-creating a preset template which contains a text area but does not contain a header area and a footer area;
2) adjusting the size of the preset template to the size of the text content;
3) and putting the second page obtained by processing into a created preset template for rendering and displaying so that the header area and the footer area of each page of displayed content are hidden.
In this embodiment, a new template is created first, the template does not include a header footer area but only includes a text area, and the size of the template page is the size of the content of the text area, and then the processed P2 page is placed in the created template for rendering and display.
In this embodiment, the preset template can be set to display or hide the header area and the footer area during a display or print operation, respectively.
It should be noted that, because the header area and the footer area are brought into the preset template described in this application, they can independently perform functions such as displaying or printing, and optionally set to display or hide the rendered header area and footer area when performing different functions. The medical record display method can meet the requirements of a doctor on writing medical records, the page header and the page footer are hidden, and the scene displayed by the page header and the page footer is displayed when the medical records are printed or browsed.
Fig. 4 is a block diagram of an apparatus for dynamically displaying or hiding header and footer according to an embodiment of the present invention. As shown, the apparatus 400 includes:
an acquisition module 401, configured to acquire an electronic medical record;
a processing module 402, configured to calculate heights of a header region and a footer region of each page respectively to obtain starting positions and ending positions of the header region and the footer region; respectively screening out a header area and a footer area of each page in the electronic medical record content according to the starting position and the ending position, and putting a buffer svg layer to filter the header area and the footer area; and moving the filtered pages to a preset template for rendering display, so that the header area and the footer area are hidden in the displayed content of each page.
It should be noted that, because the contents of information interaction, execution process, and the like between the modules/units of the apparatus are based on the same concept as the method embodiment described in the present application, the technical effect brought by the contents is the same as the method embodiment of the present application, and specific contents may refer to the description in the foregoing method embodiment of the present application, and are not described herein again.
It should be further noted that the division of the modules of the above apparatus is only a logical division, and the actual implementation may be wholly or partially integrated into one physical entity, or may be physically separated. And these units can be implemented entirely in software, invoked by a processing element; or may be implemented entirely in hardware; and part of the modules can be realized in the form of calling software by the processing element, and part of the modules can be realized in the form of hardware. For example, the processing module 402 may be a separate processing element, or may be integrated into a chip of the apparatus, or may be stored in a memory of the apparatus in the form of program code, and a processing element of the apparatus calls and executes the functions of the processing module 402. Other modules are implemented similarly. In addition, all or part of the modules can be integrated together or can be independently realized. The processing element described herein may be an integrated circuit having signal processing capabilities. In implementation, each step of the above method or each module above may be implemented by an integrated logic circuit of hardware in a processor element or an instruction in the form of software.
For example, the above modules may be one or more integrated circuits configured to implement the above methods, such as: one or more Application Specific Integrated Circuits (ASICs), or one or more microprocessors (DSPs), or one or more Field Programmable Gate Arrays (FPGAs), among others. For another example, when one of the above modules is implemented in the form of a Processing element scheduler code, the Processing element may be a general-purpose processor, such as a Central Processing Unit (CPU) or other processor capable of calling program code. For another example, these modules may be integrated together and implemented in the form of a system-on-a-chip (SOC).
Fig. 5 is a schematic structural diagram of a computer device according to an embodiment of the present application. As shown, the computer device 500 includes: a memory 501 and a processor 502; the memory 501 is used for storing computer instructions; the processor 502 executes computer instructions to implement the method described in fig. 1.
In some embodiments, the number of the memory 501 in the computer device 500 may be one or more, the number of the processor 502 may be one or more, and fig. 5 is taken as an example.
In an embodiment of the present application, the processor 502 in the computer device 500 loads one or more instructions corresponding to processes of an application program into the memory 501 according to the steps described in fig. 1, and the processor 502 executes the application program stored in the memory 501, thereby implementing the method described in fig. 1.
The Memory 501 may include a Random Access Memory (RAM), and may also include a non-volatile Memory (non-volatile Memory), such as at least one disk Memory. The memory 501 stores an operating system and operating instructions, executable modules or data structures, or a subset thereof, or an expanded set thereof, wherein the operating instructions may include various operating instructions for implementing various operations. The operating system may include various system programs for implementing various basic services and for handling hardware-based tasks.
The Processor 502 may be a general-purpose Processor, and includes a Central Processing Unit (CPU), a Network Processor (NP), and the like; the Integrated Circuit may also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, a discrete Gate or transistor logic device, or a discrete hardware component.
In some specific applications, the various components of the computer device 500 are coupled together by a bus system that may include a power bus, a control bus, a status signal bus, etc., in addition to a data bus. But for clarity of explanation the various busses are shown in fig. 5 as a bus system.
In an embodiment of the present application, a computer-readable storage medium is provided, on which a computer program is stored, which when executed by a processor implements the method described in fig. 1.
The computer-readable storage medium, as will be appreciated by one of ordinary skill in the art: the embodiment for realizing the functions of the system and each unit can be realized by hardware related to computer programs. The aforementioned computer program may be stored in a computer readable storage medium. When the program is executed, the embodiment including the functions of the system and the units is executed; and the aforementioned storage medium includes: various media that can store program codes, such as ROM, RAM, magnetic or optical disks.
In summary, the method, apparatus, device and medium for dynamically displaying or hiding a header and a footer provided by the present application are implemented by acquiring an electronic medical record; respectively calculating the heights of a header area and a footer area of each page to obtain the starting positions and the ending positions of the header area and the footer area; respectively screening out a header area and a footer area of each page in the electronic medical record content according to the starting position and the ending position, and putting a buffer svg layer to filter the header area and the footer area; and moving the filtered pages to a preset template for rendering display, so that the header area and the footer area are hidden in the displayed content of each page.
The application effectively overcomes various defects in the prior art and has high industrial utilization value.
The above embodiments are merely illustrative of the principles and utilities of the present application and are not intended to limit the invention. Any person skilled in the art can modify or change the above-described embodiments without departing from the spirit and scope of the present application. Accordingly, it is intended that all equivalent modifications or changes which can be made by those skilled in the art without departing from the spirit and technical spirit of the present invention be covered by the claims of the present application.

Claims (10)

1. A method for dynamically displaying or hiding header and footers, the method comprising:
acquiring an electronic medical record;
respectively calculating the heights of a header area and a footer area of each page to obtain the starting positions and the ending positions of the header area and the footer area;
respectively screening out a header area and a footer area of each page in the electronic medical record content according to the starting position and the ending position, and putting a buffer svg layer to filter the header area and the footer area;
and moving the filtered pages to a preset template for rendering display, so that the header area and the footer area are hidden by the displayed content of each page, and the header area and the footer area are displayed during the printing operation.
2. The method of claim 1, wherein calculating the height of the header region and the footer region of each page to obtain the starting position and the ending position of the header region and the footer region respectively comprises:
respectively calculating the height with the maximum content height in one row of the header area and the footer area, and taking the height as the height in the row of the current row;
calculating the row height of each row; wherein, the height of each row is the top height + the height in the row + the height at the bottom;
header height/footer height being the top margin + all line heights + bottom margin;
and finally, respectively obtaining the starting position and the ending position of the header content and the footer content.
3. The method of claim 2, wherein the top and bottom heights are derived from line spacing heights set by the text content.
4. The method according to claim 1, wherein the filtering out a header area and a footer area of each page of the electronic medical record content according to the start position and the end position respectively comprises:
dividing each page of content of the electronic medical record according to the header end position and the starting position of the footer content;
and obtaining a header area, a footer area and a text area of each page through segmentation.
5. The method of claim 1, wherein said placing a buffer svg layer to filter header and footer regions comprises:
and carrying out filtering processing of XOR calculation of an internal typesetting engine on the content of the first page containing the header area and the footer area to obtain a second page only with text content.
6. The method according to claim 5, wherein moving the filtered pages into a preset template for rendering display, so that the header area and the footer area are hidden in each page of displayed content, comprises:
pre-creating a preset template which contains a text area but does not contain a header area and a footer area;
adjusting the size of the preset template to the size of the text content;
and putting the second page obtained by processing into a created preset template for rendering and displaying so that the header area and the footer area of each page of displayed content are hidden.
7. The method of claim 6, wherein the preset template is configurable to enable display or hiding of a header region and a footer region, respectively, during a display or print operation.
8. An apparatus for dynamically displaying or hiding header and footer, the apparatus comprising:
the acquisition module is used for acquiring the electronic medical record;
the processing module is used for respectively calculating the heights of the header area and the footer area of each page to obtain the starting positions and the ending positions of the header area and the footer area; respectively screening out a header area and a footer area of each page in the electronic medical record content according to the starting position and the ending position, and putting a buffer svg layer to filter the header area and the footer area; and moving the filtered pages to a preset template for rendering display, so that the header area and the footer area are hidden by the displayed content of each page, and the header area and the footer area are displayed during the printing operation.
9. A computer device, the device comprising: a memory, and a processor; the memory is to store computer instructions; the processor executes computer instructions to implement the method of any one of claims 1 to 7.
10. A computer-readable storage medium having stored thereon computer instructions which, when executed, perform the method of any one of claims 1 to 7.
CN202010568138.7A 2020-06-04 2020-06-19 Method, apparatus, device and medium for dynamically displaying or hiding header and footer Active CN111768819B (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202010501444 2020-06-04
CN2020105014449 2020-06-04

Publications (2)

Publication Number Publication Date
CN111768819A CN111768819A (en) 2020-10-13
CN111768819B true CN111768819B (en) 2021-04-27

Family

ID=72721228

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010568138.7A Active CN111768819B (en) 2020-06-04 2020-06-19 Method, apparatus, device and medium for dynamically displaying or hiding header and footer

Country Status (1)

Country Link
CN (1) CN111768819B (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101233504A (en) * 2005-01-05 2008-07-30 希尔克瑞斯特实验室公司 Distributed software construction for user interfaces
CN105677267A (en) * 2014-11-19 2016-06-15 珠海金山办公软件有限公司 Page display method and device
CN106843777A (en) * 2016-12-30 2017-06-13 贵州联科卫信科技有限公司 A kind of electronic health record content continues the method beaten
CN109255046A (en) * 2018-08-21 2019-01-22 浙江浙大中控信息技术有限公司 The dynamic realizing method of vector graphical element
CN109791803A (en) * 2016-09-14 2019-05-21 爱克发医疗保健公司 For the system and method from Internet-browser printing medical image
CN109960787A (en) * 2017-12-14 2019-07-02 北大方正集团有限公司 The generation method and device of format template
CN110413954A (en) * 2019-07-29 2019-11-05 北京北大软件工程股份有限公司 Standard file printout method for previewing, device, equipment and storage medium
CN110704570A (en) * 2019-08-13 2020-01-17 北京众信博雅科技有限公司 Continuous page layout document structured information extraction method

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4235369B2 (en) * 2000-06-23 2009-03-11 キヤノン株式会社 Information processing apparatus, method, program, and storage medium
KR100628572B1 (en) * 2004-12-10 2006-09-26 삼성전자주식회사 Editing method for printing image and the apparatus thereof
JP2016175307A (en) * 2015-03-20 2016-10-06 株式会社リコー Right identification information printing device, right identification information printing method and right identification information printing system
CN109634992B (en) * 2019-02-20 2019-10-15 北京虹晟信息科技有限公司 A kind of structure of report decomposition method, report form generation method, device

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101233504A (en) * 2005-01-05 2008-07-30 希尔克瑞斯特实验室公司 Distributed software construction for user interfaces
CN105677267A (en) * 2014-11-19 2016-06-15 珠海金山办公软件有限公司 Page display method and device
CN109791803A (en) * 2016-09-14 2019-05-21 爱克发医疗保健公司 For the system and method from Internet-browser printing medical image
CN106843777A (en) * 2016-12-30 2017-06-13 贵州联科卫信科技有限公司 A kind of electronic health record content continues the method beaten
CN109960787A (en) * 2017-12-14 2019-07-02 北大方正集团有限公司 The generation method and device of format template
CN109255046A (en) * 2018-08-21 2019-01-22 浙江浙大中控信息技术有限公司 The dynamic realizing method of vector graphical element
CN110413954A (en) * 2019-07-29 2019-11-05 北京北大软件工程股份有限公司 Standard file printout method for previewing, device, equipment and storage medium
CN110704570A (en) * 2019-08-13 2020-01-17 北京众信博雅科技有限公司 Continuous page layout document structured information extraction method

Also Published As

Publication number Publication date
CN111768819A (en) 2020-10-13

Similar Documents

Publication Publication Date Title
US8386957B2 (en) Method for dynamically scaling an original background layout
US10388045B2 (en) Generating a triangle mesh for an image represented by curves
RU2405204C2 (en) Creation of diagrams using figures
JP6093873B2 (en) Typesetting method, apparatus, program and recording medium
JP4079087B2 (en) Layout system
US8134553B2 (en) Rendering three-dimensional objects on a server computer
WO2023098447A1 (en) Method for converting layout data stream file into ofd file
CN116383546B (en) File processing method, system, computer device and computer readable storage medium
US10204187B1 (en) Method and system for implementing data reduction for waveform data
US10795620B2 (en) Image processing apparatus and layout method
CN111768819B (en) Method, apparatus, device and medium for dynamically displaying or hiding header and footer
CN111768822A (en) Continuous printing method, device, equipment and storage medium for electronic medical record documents
US8332749B2 (en) Adjusting tables in a document to avoid overlap with last page graphics
CN111768823B (en) SVG element-based medical expression editing method, device, equipment and medium
CN103488619B (en) Method and device for processing document file
US20120102394A1 (en) Application of path-fill algorithm to text layout around objects
CN112818642B (en) Method and device for converting PDF (Portable document Format) file into form file, computer equipment and storage medium
CN113505572B (en) Method, device, equipment and medium for converting typesetting file into XML data
CN112818655B (en) Excel data processing method and tool based on template and file additional writing
CN117079084B (en) Sample image generation method, device, computer equipment and storage medium
CN113703699B (en) Real-time output method and device for electronic file
CN114579658A (en) Data table processing method and device
CN115408989A (en) Variable graph description method and device and electronic equipment
CN117688916A (en) Method, device, equipment and storage medium for inserting form in layout document
CN115186642A (en) Method for extending electronic mark information using HTML language

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant