Web version of Tibetan electronic medical record editor based on canvas
By introducing Tibetan input, rendering and document rendering modules into the Web version of the Tibetan electronic medical record editor, the problem of Tibetan conversion and display in the Web scenario is solved, whole word line wrapping and deletion and splitting functions are implemented, and a system that supports Tibetan writing is built. The regular document system meets the editing needs of Tibetan electronic medical records.
Patent Information
- Application Number
- CN202410932113.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-12
- Publication Date
- 2024-09-10
- Estimated Expiration
- 2044-07-12
AI Technical Summary
Existing technology is difficult to effectively convert and display Tibetan in Web scenarios, resulting in the lack of a complete Web version of Tibetan electronic medical record editor.
A canvas-based Web version of the Tibetan electronic medical record editor is designed, which includes a Tibetan input module, a Tibetan rendering module and a document rendering module. By judging and converting Tibetan characters, it can realize word wrapping and deletion and splitting functions. It supports Tibetan front and rear writing and upper and lower marking processing.
It has realized Tibetan input and rendering display in the Web scene, built a document system according to Tibetan writing rules, solved the problem that Tibetan cannot be converted and displayed in the Web scene, and provided a complete electronic medical record editor function.
Smart Images

Figure CN118468823B
Abstract
Description
Technical Field
[0001] The present application relates to medical information technology, to electronic medical records, and in particular to a canvas-based Web version of a Tibetan electronic medical record editor. Background Art
[0002] With the rapid development of the Internet, hospital information construction is also constantly improving and developing. However, for ethnic regions, due to differences in theoretical systems and cultural differences, the construction of medical information is still in a slow stage. Since electronic medical records involve all aspects of hospital informationization and are highly complex, it is very difficult to establish a complete web version of Tibetan electronic medical record editor.
[0003] Electronic medical record editor is the core key technology of electronic medical record system. Although there are a number of relatively excellent electronic medical record editors under the CS system, today when web-based technology has gradually become the mainstream, there are very few excellent web-based electronic medical record editors, let alone a complete web-based Tibetan electronic medical record editor. Tibetan, as a written communication tool for Tibetan people, has a long history. It is a phonetic language. Modern Tibetan characters are composed of 30 consonant letters and 4 vowel symbols. They can be written forward and backward, and can also be superimposed up and down to form two-dimensional plane text. Due to the particularity of Tibetan expression, such as the existence of vowels and consonants, spaces or separators need to be considered, etc. The canvas system of the existing technology itself does not have the ability to directly convert and process documents. Therefore, in the current situation, to provide a web-based Tibetan electronic medical record editor, it is necessary to combine the writing rules and specifications of Tibetan, break through the existing technology, and carry out technical innovation of the web-based document mode. Summary of the invention
[0004] In response to the above-mentioned related prior art, the present application provides a canvas-based Web version of the Tibetan electronic medical record editor, which supports the input and rendering display of Tibetan in electronic medical records, realizes the construction of a document system according to Tibetan writing rules, and solves the problem that Tibetan cannot be converted and displayed in a Web scenario.
[0005] In order to achieve the above object, the present invention adopts the following technologies:
[0006] Web-based Tibetan electronic medical record editor based on canvas, including:
[0007] Tibetan input module, used to judge the current input information;
[0008] The Tibetan rendering module is used to convert and render the input information according to Tibetan rules based on the judgment result and then output it;
[0009] The document rendering module is used to convert and render the Tibetan text output by the Tibetan rendering module according to the Tibetan paragraph writing standard and hand it over to the canvas for document rendering. It also implements word wrapping, deletion and splitting during document rendering, and is used for the injection and hosting of medical record controls.
[0010] Furthermore, the Tibetan input module is used to determine whether the current input information is Tibetan. If not, the process ends. If yes, the Tibetan input module further determines whether it is a Tibetan vowel letter.
[0011] If it is not a Tibetan vowel letter but a Tibetan consonant letter, the Tibetan rendering module directly provides the Tibetan letter itself to the canvas to complete the rendering;
[0012] If it is a Tibetan vowel, the Tibetan input module further determines whether there is a space or a separator "`" at the input position before the Tibetan vowel:
[0013] If it exists, the Tibetan rendering module directly provides the Tibetan letters themselves to the canvas to complete the rendering;
[0014] If it does not exist, the Tibetan input module further determines whether the Tibetan vowel is i, e, o or u:
[0015] If it is i, e, or o, the Tibetan rendering module marks the Tibetan diacritical marks corresponding to i, e, or o above the Tibetan letter that has been entered at the previous position of the current entry position to complete the rendering;
[0016] If it is u, the Tibetan rendering module marks the Tibetan diacritical mark corresponding to u below the entered Tibetan letter to complete the rendering.
[0017] Furthermore, the document rendering module implements whole-word line wrapping when performing document rendering. The Tibetan output after conversion and rendering by the Tibetan rendering module is firstly subjected to whole-word delimitation processing, and all Tibetan combinations between two adjacent spaces, or between two adjacent separators "`", or between an adjacent space and a separator "`" are regarded as a whole word and stored as an array. The array is then handed over to the canvas for document rendering. During document rendering, the used width of the current rendering row is monitored in real time. When it is detected that the sum of the width of the currently rendered array and the used width of the row is greater than the entire row width, the currently rendered array is wrapped as a whole to the next paragraph for rendering and drawing, otherwise the rendering and drawing continues on the current rendering row.
[0018] Furthermore, the document rendering module implements deletion splitting when rendering the document. When responding to the deletion instruction, it determines whether there is a Tibetan additional mark before the current cursor position:
[0019] If it does not exist, the Tibetan text before the current cursor position will be deleted directly. Each time the delete command is triggered, one Tibetan text will be deleted.
[0020] If it exists, first delete the Tibetan additional labels above and / or below the Tibetan text in turn. Each time the delete command is triggered, one Tibetan additional label is deleted until all the Tibetan additional labels are deleted. The delete command is triggered again to delete the Tibetan text.
[0021] The beneficial effects of the present invention are:
[0022] The invention provides a Web electronic medical record editor based on canvas and supporting Tibetan, which supports Tibetan input and rendering display in electronic medical records, realizes the construction of document system according to Tibetan writing rules, introduces judgment module and combines Tibetan rendering and document rendering, realizes functions such as front and back writing, upper and lower scripts, whole word line break, deletion and splitting, etc., and solves the problem that Tibetan in the canvas system of the prior art cannot be converted and displayed in Web scenarios. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] Figure 1 This is a block diagram of the editor structure of an embodiment of the present application.
[0024] Figure 2 This is the execution process of the Tibetan rendering module of the embodiment of the present application performing rendering according to the judgment result of the Tibetan input module.
[0025] Figure 3 This is the execution process of the document rendering module of the embodiment of the present application for whole-word line wrapping.
[0026] Figure 4 This is the execution process of deletion and splitting by the document rendering module of the embodiment of the present application. DETAILED DESCRIPTION
[0027] To make the objectives, technical solutions and advantages of the embodiments of the present invention more clear, the implementation modes of the present invention are described in detail below with reference to the accompanying drawings. However, the embodiments described in the present invention are only part of the embodiments of the present invention, rather than all the embodiments.
[0028] When rendering and displaying Tibetan, it is necessary to determine whether the Tibetan text is entered as a consonant or a vowel. When there are no spaces or separators "`" between vowels and after vowels, the input Tibetan will no longer be the vowel itself, but will be converted into an additional symbol added above or below the consonant. At the same time, the Tibetan writing standard requires that when the Tibetan text entry exceeds the paragraph, it needs to wrap to the next paragraph based on the last space or word after the separator "`" in the paragraph. However, the canvas system itself does not have the ability to directly convert and process documents. In view of this, the embodiment of the present application provides a canvas-based Web version of the Tibetan electronic medical record editor, such as Figure 1 As shown, it includes a Tibetan input module, a Tibetan rendering module and a document rendering module.
[0029] Among them, the Tibetan input module judges the current input information; the Tibetan rendering module converts and renders the input information according to Tibetan rules based on the judgment result and then outputs it; the document rendering module converts and renders the Tibetan output by the Tibetan rendering module according to the Tibetan paragraph writing specifications and hands it to the canvas for document rendering, and implements whole word line wrapping, deletion and splitting during document rendering, and is used for the injection and carrying of medical record controls.
[0030] Specifically, the Tibetan input module determines whether the current input information is Tibetan by determining whether the Unicode code of the current input information is within a predetermined interval range of 0x0f00 to 0x0fff. Within the predetermined interval range, there is a preset mapping relationship between the Unicode code and Tibetan. If the Unicode code of the current input information is within the predetermined interval range, it is determined that the current input information is Tibetan letters.
[0031] If the current input information is a Tibetan letter, the Tibetan input module further determines whether it is a Tibetan vowel letter; otherwise, the process ends.
[0032] Specifically, Figure 2 As shown, the Tibetan input module further determines whether it is a Tibetan vowel. Specifically, it determines whether the Unicode encoding of the current input information is in the vowel interval within the predetermined interval. If it is in the vowel interval, the current input information is determined to be a Tibetan vowel, otherwise it is determined to be a Tibetan consonant.
[0033] If it is not a Tibetan vowel but a Tibetan consonant, the Tibetan rendering module directly provides the Tibetan letter itself to the canvas to complete the rendering, specifically, returning the specified Tibetan letter to the canvas to complete the rendering according to the Unicode encoding of the current input information and the mapping relationship.
[0034] From the perspective of writing, Tibetan has 4 vowel letters, corresponding to i, u, e, and o. Among them, i, e, and o are marked above the letters, and u is marked below the letters. For example, the Tibetan text corresponding to i in the consonant a is displayed as " " forms a superscript " ”,
[0035] u in the Tibetan consonant " ", the final display is " "; When there is no consonant before a vowel, or it is a space or separator "`", the vowel itself is displayed, for example: i is displayed as " ", e is displayed as " ", o is displayed as " ", u is displayed as " ”.
[0036] Therefore, if it is a Tibetan vowel, the Tibetan input module further determines whether there is a space or a separator "`" at the input position before the Tibetan vowel:
[0037] If it exists, the Tibetan rendering module directly provides the Tibetan letter itself to the canvas to complete the rendering, specifically, according to the Unicode encoding of the current input information and the mapping relationship, returns the specified Tibetan letter to the canvas to complete the rendering;
[0038] If it does not exist, the Tibetan input module further determines whether the Tibetan vowel is i, e, o or u, specifically based on the Unicode encoding of the current input information and the mapping relationship:
[0039] If it is i, e, or o, the Tibetan rendering module marks the Tibetan diacritical marks corresponding to i, e, or o above the Tibetan letter that has been entered at the previous position of the current entry position to complete the rendering;
[0040] If it is u, the Tibetan rendering module marks the Tibetan diacritical mark corresponding to u below the entered Tibetan letter to complete the rendering.
[0041] Through the Tibetan input module and Tibetan rendering module of this example, Tibetan can be written forward and backward, and can also be superimposed up and down, providing a feasible technical solution for the canvas to realize Tibetan input, writing and viewing.
[0042] According to the writing standards of Tibetan, when the Tibetan text is not displayed completely at the end of a paragraph, the whole word needs to be wrapped to the next paragraph. The word boundary is determined as follows: the word after the last space or separator "`" in the paragraph wraps to the next paragraph. Figure 3 As shown, the document rendering module realizes whole-word line wrapping when performing document rendering. It first performs whole-word delimitation processing on the Tibetan output after conversion and rendering by the Tibetan rendering module, and regards all Tibetan combinations between two adjacent spaces, or between two adjacent separators "`", or between an adjacent space and a separator "`" as a whole word and stores them as an array. The array is then handed over to the canvas for document rendering. During document rendering, the used width of the current rendering line is monitored in real time. When it is detected that the sum of the width of an array currently being rendered and the used width of the line is greater than the entire line width of the line, the array currently being rendered is wrapped as a whole to the next paragraph for rendering and drawing, otherwise the rendering and drawing continues on the current rendering line.
[0043] When deleting and splitting Tibetan text, if there are Tibetan additional marks, you need to delete each mark in turn first, and then delete the Tibetan text. For example, Figure 4 As shown, the document rendering module implements deletion splitting when rendering a document. When responding to a delete instruction, it determines whether there is a Tibetan additional mark before the current cursor position:
[0044] If it does not exist, the Tibetan text before the current cursor position will be deleted directly. Each time the delete command is triggered, one Tibetan text will be deleted.
[0045] If it exists, first delete the Tibetan additional labels above and / or below the Tibetan text in turn. Each time the delete command is triggered, one Tibetan additional label is deleted until all the Tibetan additional labels are deleted. The delete command is triggered again to delete the Tibetan text.
[0046] Specifically, the document rendering module supports the integrated use of various Tibetan controls, and can fully integrate and use Tibetan input controls, table controls, medical formulas, etc.
[0047] The editor of the embodiment of the present application realizes full support for Tibetan writing and display functions in Web-based electronic medical records, and at the same time constructs the entire document system according to Tibetan writing rules and specifications, making it convenient for medical staff to write medical records and for patients and their families in Tibetan areas to view medical records.
[0048] The above description is only a preferred embodiment of the present application and is not intended to limit the present application. Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the spirit and scope of the present application.
Claims
1. A canvas-based web version of the Tibetan electronic medical record editor, characterized by: include: Tibetan input module, used to judge the current input information; The Tibetan rendering module is used to convert and render the input information according to Tibetan rules based on the judgment result and then output it; The document rendering module is used to convert and render the Tibetan text output by the Tibetan rendering module according to the Tibetan paragraph writing standard and hand it over to the canvas for document rendering. It also implements word wrapping, deletion and splitting during document rendering, and is used for the injection and carrying of medical record controls. The Tibetan input module is used to determine whether the current input information is Tibetan. If not, the process ends. If yes, the Tibetan input module further determines whether it is a Tibetan vowel letter. If it is not a Tibetan vowel letter but a Tibetan consonant letter, the Tibetan rendering module directly provides the Tibetan letter itself to the canvas to complete the rendering; If it is a Tibetan vowel, the Tibetan input module further determines whether there is a space or a separator "`" at the input position before the Tibetan vowel: If it exists, the Tibetan rendering module directly provides the Tibetan letters themselves to the canvas to complete the rendering; If it does not exist, the Tibetan input module further determines whether the Tibetan vowel is i, e, o or u: If it is i, e, or o, the Tibetan rendering module marks the Tibetan diacritical marks corresponding to i, e, or o above the Tibetan letter that has been entered at the previous position of the current entry position to complete the rendering; If it is u, the Tibetan rendering module marks the Tibetan diacritical mark corresponding to u under the input Tibetan letter to complete the rendering; When the Tibetan input module determines whether the current input information is Tibetan, it determines whether the Unicode code of the current input information is within a predetermined range. Within the predetermined range, there is a preset mapping relationship between the Unicode code and the Tibetan. If the Unicode code of the current input information is within the predetermined range, it is determined that the current input information is Tibetan letters. When the Tibetan input module determines whether the information is a Tibetan vowel, it determines whether the Unicode code of the current input information is in the vowel interval within the predetermined interval. If it is in the vowel interval, the current input information is determined to be a Tibetan vowel; otherwise, it is determined to be a Tibetan consonant. When the Tibetan input module determines whether the Tibetan vowel is i, e, o or u, it makes the determination based on the Unicode encoding of the current input information and the mapping relationship; The Tibetan rendering module directly provides the Tibetan letters themselves to the canvas to complete the rendering, and returns the specified Tibetan letters to the canvas to complete the rendering according to the Unicode encoding of the current input information and the mapping relationship; The document rendering module implements whole-word line wrapping when rendering a document. The Tibetan text output after conversion and rendering by the Tibetan rendering module is firstly processed as a whole-word delimitation. All Tibetan text combinations between two adjacent spaces, or between two adjacent separators "`", or between an adjacent space and a separator "`" are regarded as a whole word and stored as an array. The array is then handed over to the canvas for document rendering. During document rendering, the used width of the current rendering line is monitored in real time. When it is detected that the sum of the width of an array currently being rendered and the used width of the line is greater than the width of the entire line, the array currently being rendered is wrapped as a whole to the next paragraph for rendering and drawing. The document rendering module implements deletion splitting when rendering a document. When responding to a delete instruction, it determines whether there is a Tibetan additional mark before the current cursor position: If it does not exist, the Tibetan text before the current cursor position will be deleted directly. Each time the delete command is triggered, one Tibetan text will be deleted. If it exists, first delete the Tibetan additional labels above and / or below the Tibetan text in turn. Each time the delete command is triggered, one Tibetan additional label is deleted until all the Tibetan additional labels are deleted. The delete command is triggered again to delete the Tibetan text.
