CN111126007B - HTM L-based medical record document paging algorithm - Google Patents
HTM L-based medical record document paging algorithm Download PDFInfo
- Publication number
- CN111126007B CN111126007B CN202010226657.5A CN202010226657A CN111126007B CN 111126007 B CN111126007 B CN 111126007B CN 202010226657 A CN202010226657 A CN 202010226657A CN 111126007 B CN111126007 B CN 111126007B
- Authority
- CN
- China
- Prior art keywords
- page
- data
- medical record
- htm
- 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
Links
Images
Classifications
-
- G—PHYSICS
- G16—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR SPECIFIC APPLICATION FIELDS
- G16H—HEALTHCARE INFORMATICS, i.e. INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR THE HANDLING OR PROCESSING OF MEDICAL OR HEALTHCARE DATA
- G16H10/00—ICT specially adapted for the handling or processing of patient-related medical or healthcare data
- G16H10/60—ICT specially adapted for the handling or processing of patient-related medical or healthcare data for patient-specific data, e.g. for electronic patient records
Landscapes
- Health & Medical Sciences (AREA)
- Engineering & Computer Science (AREA)
- Epidemiology (AREA)
- General Health & Medical Sciences (AREA)
- Medical Informatics (AREA)
- Primary Health Care (AREA)
- Public Health (AREA)
- Document Processing Apparatus (AREA)
- Information Transfer Between Computers (AREA)
- Medical Treatment And Welfare Office Work (AREA)
Abstract
The invention relates to the technical field of paging processing, and discloses a paging algorithm based on an HTM L medical record document, which comprises the following steps of inputting medical record text content and page output attributes, obtaining system parameters, segmenting pages through a structural algorithm according to the system parameters, recombining data according to a recombination algorithm, and generating a current page of the recombined data.
Description
Technical Field
The invention relates to the technical field of paging processing, in particular to a paging algorithm based on an HTM L medical record document.
Background
With the rise of the Internet technology, the traditional C/S development mode of medical software has been gradually eliminated, the development direction of the current medical application system is a browser-server structure, the structure is realized based on a browser, so the medical application system is gradually developed by using a system based on the browser, the Word Online plug-in and the hectic editor of google are open-source rich text editors based on what you see is what you get when the browser is used, the rich text editors solve what you see when writing and do not solve the problem of pages, and meanwhile, as the medical record document has the characteristics of the medical industry, the problem of industry requirements cannot be solved, a method is urgently needed to enable the characteristics of the current web rich text editor to be added to the medical industry special requirements, so that the web page of the medical record document can be converted into the required medical record printing preview web page.
Disclosure of Invention
Aiming at the defects of non-specification and incomplete page editing in the prior art, the invention provides a pagination algorithm based on an HTM L medical record document.
In order to solve the above technical problems, the present invention is solved by the following technical solutions.
An HTM L-based medical record document paging algorithm, comprising the following steps:
inputting medical record text content and page output attributes;
acquiring system parameters;
dividing the page through a structural algorithm according to the system parameters;
recombining the data according to a recombination algorithm;
and generating the current page of the recombined data.
Preferably, the output attribute includes a paper type, a content format including a header height, a margin, a line space, and a landscape version.
Preferably, the step of inputting the text content and the page output attribute of the current medical record comprises the following steps: and inputting the current medical record content into text content to be converted as input content, and inputting the output attribute of the setting page.
Preferably, the step of acquiring the system parameter includes: the system identifies and acquires DPI parameters and browser types of the current system to configure the page size.
Preferably, the step of dividing the page by a structural algorithm according to the system parameters comprises:
calculating the height and width of each DIV partition page according to system parameters;
calculating the heights of a header area, a text area and a footer area according to the output attribute of the input page;
and segmenting the medical record text content into header data, body data and footer data according to the data rules.
Preferably, the step of reorganizing the data according to a reorganization algorithm includes:
calculating by using a single processing module, wherein the processing module comprises a table, a cell, a data block, a single character and a single picture, the table, the cell and the data block are marked to be detachable, and the single character and the single picture are marked to be not detachable;
obtaining the current page height, if the height of a single processing module is greater than the current page height, judging whether the single processing module is detachable, if the single processing module is detachable, splitting to the minimum unit until the height and the width of the processing module meet the current page height, and putting the current page, otherwise, switching to the next page; and if the single processing module is not detachable, switching to put in the next page.
If the height of the processing module is smaller than that of the current page, the current page is placed;
and circularly processing all the single processing modules until all the data are processed.
Preferably, the text attributes include font, font size, and line spacing.
Preferably, after the step of generating the current page is performed on the reorganized data, the method further includes the step of checking: checking whether the input data is finished, if so, finishing, and generating the next page data by the unfinished cycle data.
Preferably, the checking step further comprises the step of outputting the completed result to standard HTM L page format data.
Preferably, the page-change rule comprises: judging the filling height of the current page, and entering the next page for continuous calculation if the height of the current filling page is smaller than the filling size; and if the current calculation content contains a page changer, entering the next page for continuing the calculation.
The invention has the obvious technical effects that the invention mainly solves the technical problem that the HTM L medical record document is converted into the standard paginated page display format, and the automatic previewing format does not meet the requirement format of the medical record when the webpage of the medical record document based on the browser is directly printed and the print previewing of the browser is called.
Drawings
FIG. 1 is a flow chart of a pagination algorithm based on HTM L medical record documents according to the present invention;
FIG. 2 is a flowchart illustrating the operation of embodiment 1 of the pagination algorithm based on HTM L medical record documents according to the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples.
As shown in fig. 1 to 2, a pagination algorithm based on HTM L medical record documents includes the following steps:
inputting medical record text content and page output attributes;
acquiring system parameters;
dividing the page through a structural algorithm according to the system parameters;
recombining the data according to a recombination algorithm;
and generating the current page of the recombined data.
The output attributes include paper type, content format including header height, margin, line spacing and horizontal and vertical edition.
The step of inputting the text content and the page output attribute of the current medical record comprises the following steps: and inputting the current medical record content into text content to be converted as input content, and inputting the output attribute of the setting page.
The step of obtaining system parameters comprises: the system identifies and acquires DPI parameters and browser types of the current system to configure the page size.
The process of dividing the page by a structural algorithm according to the system parameters comprises the following steps:
calculating the height and width of each DIV partition page according to system parameters;
calculating the heights of a header area, a text area and a footer area according to the output attribute of the input page;
and segmenting the medical record text content into header data, body data and footer data according to the data rules.
The step of recombining the data according to a recombination algorithm comprises the following steps:
calculating by using a single processing module, wherein the processing module comprises a table, a cell, a data block, a single character and a single picture, the table, the cell and the data block are marked to be detachable, and the single character and the single picture are marked to be not detachable;
obtaining the current page height, if the height of a single processing module is greater than the current page height, judging whether the single processing module is detachable, if the single processing module is detachable, splitting to the minimum unit until the height and the width of the processing module meet the current page height, and putting the current page, otherwise, switching to the next page; and if the single processing module is not detachable, switching to put in the next page.
If the height of the processing module is smaller than that of the current page, the current page is placed;
and circularly processing all the single processing modules until all the data are processed.
The text attributes include font, font size, and line spacing.
After the step of generating the current page of the reorganized data, the method further comprises the following checking step: checking whether the input data is finished, if so, finishing, and generating the next page data by the unfinished cycle data.
And the checking step further comprises an outputting step of outputting the finished result to standard HTM L page format data.
The page-changing rule comprises the following steps: judging the filling height of the current page, and entering the next page for continuous calculation if the height of the current filling page is smaller than the filling size; and if the current calculation content contains a page changer, entering the next page for continuing the calculation.
The invention mainly solves the technical problem that an HTM L medical record document is converted into a standard paginated page display format, and if the medical record document webpage based on a browser is directly printed, when the printing preview of the browser is called, the format of automatic preview does not meet the requirement format of a medical record.
Example 1
S1: the doctor A inputs the webpage content of the current medical record document;
the method comprises the steps of inputting specific content, namely complete information of a current HTM L medical record document, and inputting and requiring output of paper type and format content.
Specific input paper types: a4, vertical, line spacing 1.5, format content: song dynasty style five, no conversion, with margins (top, bottom, left and right): 1.0, 1.0, 1.0, 1.0;
paging rules: no special paging is performed, and paging is performed automatically;
header rule: the header content is a header;
the footer rule is as follows: the footer content is a footer.
S2: automatically acquiring system parameters;
the system parameters are as follows: system DPI =600, operating system = win10, and the browser is google browser.
S3: dividing the page by a structural algorithm;
establishing a page model by the segmentation structure, establishing a page according to the parameter of the entry, and calculating the width of 697.788px, the height of 1120.66px, the height of cut header of 87px, the width of the top of 48px, the width of 793.78px, the height of the page foot of 48.006px and the width of 697.788px by a page transverse algorithm;
note: all the numerical values are relative values calculated by the algorithm according to the environment, and the calculated values are different under different browser operating systems with different resolutions.
S4: the recombination algorithm recombines the data;
the method comprises the steps of taking an original data label node as a circulation basis, performing circulation by using a line unit (line feed p-table label), performing data recombination, calculating pure text characters, calculating the number of single-line characters through character size and font, distinguishing Chinese characters from English symbols, distinguishing special conditions such as upper and lower mark setting and the like, and performing segmentation processing when page changing is performed.
The picture confirms the occupied interval content according to the relative proportion of the picture.
The width position of the table is determined according to the width of the table, the line feed is calculated, and the table is required to be split when page feed is met.
S5: checking and generating the content of the current page;
after the header, the body and the footer are combined to generate one page according to the S4 algorithm, whether the input data is finished or not is checked, if so, the process is finished, and the data of the next page is generated without finishing the cycle data.
S6: outputting a result;
the result outputs standard HTM L page format data.
In summary, the above-mentioned embodiments are only preferred embodiments of the present invention, and all equivalent changes and modifications made in the claims of the present invention should be covered by the claims of the present invention.
Claims (9)
1. A method for paging medical record documents based on HTM L is characterized by comprising the following steps:
inputting medical record text content and page output attributes;
acquiring system parameters;
dividing the page through a structural algorithm according to the system parameters; recombining the data according to a recombination algorithm, the process comprising:
calculating by using a single processing module, wherein the processing module comprises a table, a cell, a data block, a single character and a single picture, the table, the cell and the data block are marked to be detachable, and the single character and the single picture are marked to be not detachable;
obtaining the current page height, if the height of a single processing module is greater than the current page height, judging whether the single processing module is detachable, if the single processing module is detachable, splitting to the minimum unit until the height and the width of the processing module meet the current page height, and putting the current page, otherwise, switching to the next page; if the single processing module is not detachable, switching to put in the next page;
if the height of the processing module is smaller than that of the current page, the current page is placed;
circularly processing all the single processing modules until all the data are processed;
and generating the current page of the recombined data.
2. The method for pagination of medical record documents according to HTM L as claimed in claim 1, wherein the output attributes include paper type, content format including header height, margin, line space and horizontal and vertical version.
3. The method for pagination of medical record documents according to HTM L as claimed in claim 1, wherein the step of entering text content of current medical record and output attribute of page includes entering the text content of current medical record into text content to be converted as input content and entering the output attribute of setting page.
4. The method for pagination of medical records based on HTM L as set forth in claim 1, wherein the step of obtaining system parameters comprises the step of obtaining DPI parameters of the current system and the step of configuring the page size by browser type by system identification.
5. The method for pagination of medical record documents based on HTM L as claimed in claim 1, wherein the step of partitioning the pages by a structural algorithm based on system parameters comprises:
calculating the height and width of each DIV partition page according to system parameters;
calculating the heights of a header area, a text area and a footer area according to the output attribute of the input page;
and segmenting the medical record text content into header data, body data and footer data according to the data rules.
6. The method for pagination of medical record documents according to HTM L as recited in claim 1, wherein the text attributes include font style, font size and line spacing.
7. The method for paging documents based on HTM L medical records according to claim 1, wherein after the step of generating the current page, the step of checking whether the input data is completed, if so, ending, and generating the next page of data by not completing the cycle data.
8. The method for pagination of medical record documents according to HTM L as recited in claim 7, wherein said step of examining further comprises the step of outputting said completed result to standard HTM L page format data.
9. The method for paging medical records based on HTM L as claimed in claim 1, wherein the paging rule includes determining a fillable height of a current page, if the fillable height is less than a fill size, proceeding to the next page for further computation, and if the current computation content includes a page-change symbol, proceeding to the next page for further computation.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010226657.5A CN111126007B (en) | 2020-03-27 | 2020-03-27 | HTM L-based medical record document paging algorithm |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010226657.5A CN111126007B (en) | 2020-03-27 | 2020-03-27 | HTM L-based medical record document paging algorithm |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111126007A CN111126007A (en) | 2020-05-08 |
CN111126007B true CN111126007B (en) | 2020-07-17 |
Family
ID=70493952
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010226657.5A Active CN111126007B (en) | 2020-03-27 | 2020-03-27 | HTM L-based medical record document paging algorithm |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111126007B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114296662B (en) * | 2021-12-28 | 2023-10-13 | 城云科技(中国)有限公司 | Form document paging printing method and device based on webpage and application of form document paging printing method and device |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6370483B1 (en) * | 1998-06-15 | 2002-04-09 | Robert W. Beckwith | Synchronous linear machine for protective relaying |
CN102915328B (en) * | 2012-09-04 | 2016-05-11 | 新浪网技术(中国)有限公司 | Method and the RichText Edition device of editor's rich text |
CN104571978B (en) * | 2015-01-09 | 2017-11-21 | 中科宇图天下科技有限公司 | A kind of method that document print page is carried out based on html tag |
CN105975462A (en) * | 2015-09-11 | 2016-09-28 | 乐视致新电子科技(天津)有限公司 | Method and device for displaying web page and intelligent television system |
CN106845054A (en) * | 2015-12-04 | 2017-06-13 | 北大医疗信息技术有限公司 | Electronic health record edit methods and system based on HTML5 |
-
2020
- 2020-03-27 CN CN202010226657.5A patent/CN111126007B/en active Active
Also Published As
Publication number | Publication date |
---|---|
CN111126007A (en) | 2020-05-08 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US6336124B1 (en) | Conversion data representing a document to other formats for manipulation and display | |
CN100454293C (en) | Document editing method, document editing device | |
CN102779118B (en) | Paper typesetting method and system | |
CN109857670B (en) | Test report automatic generation method based on universal template | |
CN111797630B (en) | PDF-format-paper-oriented biomedical entity identification method | |
CN113609820B (en) | Method, device and equipment for generating word file based on extensible markup language file | |
CN101206639A (en) | Method for indexing complex impression based on PDF | |
CN111507073A (en) | Thesis editing and intelligent typesetting method and platform based on web rich text | |
CN103268340B (en) | Format reflowable file based on hierarchy type index is set up and method for drafting | |
CN101876967A (en) | Method for generating PDF text paragraphs | |
CN105159877A (en) | Cross-media automatic typesetting system and method thereof | |
US20130124684A1 (en) | Visual separator detection in web pages using code analysis | |
CN111126007B (en) | HTM L-based medical record document paging algorithm | |
CN116384356A (en) | Method, device, equipment and medium for creating form row of OFD file | |
JP5950700B2 (en) | Image processing apparatus, image processing method, and program | |
US20240104290A1 (en) | Device dependent rendering of pdf content including multiple articles and a table of contents | |
CN113011129A (en) | General DOC (document management interface), DOCX (document data entry) and INDD (input document description) document typesetting engine and method | |
JPH10222510A (en) | Document converting method | |
CN112749536A (en) | Document generation method, device and equipment | |
CN111444452B (en) | Webpage conversion method and device and storage medium | |
CN114637505A (en) | Page content extraction method and device | |
CN117236282B (en) | Intelligent typesetting method, device, terminal and medium based on XML data | |
CN115934649A (en) | Extensible PDF file content extraction method and system | |
US11416671B2 (en) | Device dependent rendering of PDF content | |
CN111476019B (en) | Automatic typesetting method based on table data one-key book formation |
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 |