[go: up one dir, main page]

CN118468823A - Web version of Tibetan electronic medical record editor based on canvas - Google Patents

Web version of Tibetan electronic medical record editor based on canvas Download PDF

Info

Publication number
CN118468823A
CN118468823A CN202410932113.9A CN202410932113A CN118468823A CN 118468823 A CN118468823 A CN 118468823A CN 202410932113 A CN202410932113 A CN 202410932113A CN 118468823 A CN118468823 A CN 118468823A
Authority
CN
China
Prior art keywords
tibetan
rendering
canvas
module
vowel
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.)
Granted
Application number
CN202410932113.9A
Other languages
Chinese (zh)
Other versions
CN118468823B (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.)
Chengdu Yixing Technology Co ltd
Original Assignee
Chengdu Yixing 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 Chengdu Yixing Technology Co ltd filed Critical Chengdu Yixing Technology Co ltd
Priority to CN202410932113.9A priority Critical patent/CN118468823B/en
Publication of CN118468823A publication Critical patent/CN118468823A/en
Application granted granted Critical
Publication of CN118468823B publication Critical patent/CN118468823B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/166Editing, e.g. inserting or deleting
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/103Formatting, i.e. changing of presentation of documents
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Computational Linguistics (AREA)
  • Artificial Intelligence (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Primary Health Care (AREA)
  • Public Health (AREA)
  • Medical Informatics (AREA)
  • Epidemiology (AREA)
  • Medical Treatment And Welfare Office Work (AREA)

Abstract

本申请提供一种基于画布的Web版藏文电子病历编辑器,涉及电子病历技术领域,包括:藏文录入模块,用于对当前录入信息进行判断;藏文渲染模块,用于根据判断结果对录入信息按藏文规则进行转换渲染后输出;文档渲染模块,用于根据藏文段落书写规范,将藏文渲染模块进行转换渲染后输出的藏文交给画布进行文档渲染,并在文档渲染时实现整词换行、删除拆分,并用于病历控件的注入承载。本申请提供的编辑器支持电子病历中的藏文录入和渲染显示,实现按藏文书写规则构建文档体系,解决了藏文在Web场景下不能进行转换显示的问题。

The present application provides a canvas-based Web version of a Tibetan electronic medical record editor, which relates to the technical field of electronic medical records, including: a Tibetan input module for judging the current input information; a Tibetan rendering module for converting and rendering the input information according to Tibetan rules according to the judgment result and then outputting it; a document rendering module for handing the Tibetan output after conversion and rendering by the Tibetan rendering module to the canvas for document rendering according to the Tibetan paragraph writing specification, and realizing whole word line wrapping, deletion and splitting during document rendering, and for the injection and carrying of medical record controls. The editor provided by the present application supports Tibetan input and rendering display 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 Web scenarios.

Description

基于画布的Web版藏文电子病历编辑器Web version of Tibetan electronic medical record editor based on canvas

技术领域Technical Field

本申请涉及医疗信息化技术,涉及电子病历,尤其涉及一种基于画布的Web版藏文电子病历编辑器。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

随着互联网的不断蓬勃发展,医院信息化建设也在不断完善发展,然而对于民族地区,因为理论体系、文化差异等的不同,在医疗信息化建设方面还处于缓慢阶段。由于电子病历涉及医院信息化的方方面面,具有高度复杂度,因此,建立一个完善的Web版藏文电子病历编辑器存在很大的难度。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.

电子病历编辑器是电子病历系统的核心关键技术,虽然CS体系下已经存在一批相对优秀的电子病历编辑器,但在Web化逐渐成为主流的今天,一款优秀的Web化电子病历编辑器凤毛麟角,更加没有一款完善的Web版藏文电子病历编辑器。藏文作为藏族人民的书面交际工具,历史之悠久,它是一种拼音文字,现代藏字由30个辅音字母和4个元音符号拼写组合而成,既可以前后书写,还可以上下叠加,构成二维的平面文字;由于藏文表现形式的特殊性,如存在元音、辅音,还需要考虑空格或分隔符等,现有技术的画布体系本身不具备直接转换和文档处理的能力。因此,在当前的情形下,要提供一款Web化的藏文电子病历编辑器,需要结合藏文的书写规则规范,突破现有技术,进行Web化文档模式的技术创新。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

针对上述相关现有技术,本申请提供一种基于画布的Web版藏文电子病历编辑器,支持电子病历中的藏文录入和渲染显示,实现按藏文书写规则构建文档体系,解决了藏文在Web场景下不能进行转换显示的问题。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.

为了实现上述目的,本发明采用以下技术:In order to achieve the above object, the present invention adopts the following technologies:

基于画布的Web版藏文电子病历编辑器,包括:Web-based Tibetan electronic medical record editor based on canvas, including:

藏文录入模块,用于对当前录入信息进行判断;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 whole word line wrapping, deletion and splitting during document rendering, and is used for the injection and hosting of medical record controls.

进一步,藏文录入模块用于判断当前录入信息是否为藏文,若否,则结束流程,若是,则藏文录入模块进一步判断是否为藏文元音字母;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.

若不是藏文元音字母,而为藏文辅音字母,则藏文渲染模块直接将藏文字母本身提供给画布以完成渲染;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;

若不存在,则藏文录入模块进一步判断藏文元音字母是i、e、o还是u:If it does not exist, the Tibetan input module further determines whether the Tibetan vowel is i, e, o or u:

若为i或e或o,则藏文渲染模块将i或e或o对应的藏文附加符号标在当前录入位置的前一个位置上已经录入的藏文字母上方以完成渲染;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;

若为u,则藏文渲染模块将u对应的藏文附加符号标在所述已经录入的藏文字母下方以完成渲染。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.

进一步,文档渲染模块在进行文档渲染时实现整词换行,是先对藏文渲染模块进行转换渲染后输出的藏文进行整词界定处理,将处于相邻两个空格之间、或相邻两个分隔符“`”之间、或相邻的一个空格和一个分隔符“`”之间的全部藏文组合作为一个整词并存储为一个数组,再将数组交给画布进行文档渲染,文档渲染中,对当前渲染所在行已使用宽度进行实时监测,当检测到当前渲染的一个数组的宽度与所在行已使用宽度之和大于所在行整行宽度时,则将所述当前渲染的一个数组整体换行到下一个段落进行渲染绘制,否则在当前渲染所在行继续渲染绘制。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.

进一步,文档渲染模块在进行文档渲染时实现删除拆分,是在响应删除指令时,判断当前光标所在位置之前的藏文是否存在藏文附加标号:Furthermore, the document rendering module implements deletion splitting when rendering the document. When responding to the 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.

本发明有益效果在于:The beneficial effects of the present invention are:

提供了一种基于画布并支撑藏文的Web电子病历编辑器,支持电子病历中的藏文录入和渲染显示,实现按藏文书写规则构建文档体系,引入判断模块并结合藏文渲染和文档渲染,实现前后书写、上下标号、整词换行、删除拆分等功能,解决了现有技术的画布体系存在的藏文在Web场景下不能进行转换显示的问题。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

图1是本申请实施例的编辑器结构框图。FIG. 1 is a block diagram of the editor structure of an embodiment of the present application.

图2是本申请实施例的藏文渲染模块依据藏文录入模块的判断结果进行渲染的执行流程。FIG. 2 is an execution flow of the Tibetan rendering module according to the embodiment of the present application performing rendering according to the judgment result of the Tibetan input module.

图3是本申请实施例的文档渲染模块进行整词换行的执行流程。FIG. 3 is an execution flow of the document rendering module performing whole-word line wrapping according to an embodiment of the present application.

图4是本申请实施例的文档渲染模块进行删除拆分的执行流程。FIG. 4 is an execution flow of deletion and splitting performed by the document rendering module of an embodiment of the present application.

具体实施方式DETAILED DESCRIPTION

为使本发明实施例的目的、技术方案和优点更加清楚,下面结合附图对本发明的实施方式进行详细说明,但本发明所描述的实施例是本发明一部分实施例,而不是全部的实施例。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.

藏文在进行渲染显示时,需确定藏文录入时为辅音字母还是元音字母,当元音字母之间和元音字母跟到辅音字母之后,并且没有空格和分隔符“`”的时候,输入的藏文将不再是元音字母本身,而是转换为一个附加符号,添加在辅音字母的上或者下。同时藏文书写规范要求,当藏文录入超出该段落时需要依据段落最后一个空格或者分隔符“`”后面的词整换行到下一个段落,但画布体系本身不具备直接转换和文档处理的能力,针对此,本申请实施例提供一种基于画布的Web版藏文电子病历编辑器,如图1所示,包括藏文录入模块、藏文渲染模块和文档渲染模块。When rendering and displaying Tibetan, it is necessary to determine whether the Tibetan text is entered as a consonant or a vowel. When there is no space or separator "`" between vowels and after vowels, the input Tibetan will no longer be the vowel itself, but 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 is entered beyond the paragraph, it needs to wrap to the next paragraph based on the last space or word after the separator "`" in the paragraph, but 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, as shown in Figure 1, including a Tibetan text entry module, a Tibetan text rendering module, and a document rendering module.

其中,藏文录入模块对当前录入信息进行判断;藏文渲染模块根据判断结果对录入信息按藏文规则进行转换渲染后输出;文档渲染模块根据藏文段落书写规范,将藏文渲染模块进行转换渲染后输出的藏文交给画布进行文档渲染,并在文档渲染时实现整词换行、删除拆分,并用于病历控件的注入承载。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 hosting of medical record controls.

具体的,藏文录入模块判断当前录入信息是否为藏文,是判断当前录入信息的Unicode编码是否处于预定区间范围0x0f00到0x0fff内,在所述预定区间范围内,Unicode编码与藏文之间具有预设的映射关系,若当前录入信息的Unicode编码处于所述预定区间范围内,则判断当前录入信息为藏文字母。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.

若当前录入信息为藏文字母,则藏文录入模块进一步判断是否为藏文元音字母;否则结束流程。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.

具体的,如图2所示,藏文录入模块进一步判断是否为藏文元音字母,具体的,是判断当前录入信息的Unicode编码是否处于所述预定区间范围内的元音字母区间,若处于所述元音字母区间,则判断当前录入信息为藏文元音字母,否则判断为藏文辅音字母。Specifically, as shown in Figure 2, the Tibetan input module further determines whether it is a Tibetan vowel. Specifically, 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.

若不是藏文元音字母,而为藏文辅音字母,则藏文渲染模块直接将藏文字母本身提供给画布以完成渲染,具体是根据当前录入信息的Unicode编码和所述映射关系返回指定的藏文字母给画布以完成渲染。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.

从书写上看,藏文有4个元音字母,对应于i、u、e、o。其中,i、e、o标在字母上方,u标在字母下方,比如i对应在辅音a对应的藏文显示“”上形成上标“”,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 " ”,

u在藏文辅音字母“”上时,最终显示为 "";当元音字母前面不存在辅音字母或者为空格或分隔符“`”时,显示元音字母本身,比如:i显示为“”,e显示为“”,o显示为“”,u显示为“”。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 " ”.

因此,若是藏文元音字母,则藏文录入模块进一步判断藏文元音字母前的录入位置是否存在空格或分隔符“`”: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:

若存在,则藏文渲染模块直接将藏文字母本身提供给画布以完成渲染,具体是根据当前录入信息的Unicode编码和所述映射关系返回指定的藏文字母给画布以完成渲染;If it exists, 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 according to the Unicode encoding of the current input information and the mapping relationship to complete the rendering;

若不存在,则藏文录入模块进一步判断藏文元音字母是i、e、o还是u,具体是根据当前录入信息的Unicode编码和所述映射关系进行判断: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:

若为i或e或o,则藏文渲染模块将i或e或o对应的藏文附加符号标在当前录入位置的前一个位置上已经录入的藏文字母上方以完成渲染;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;

若为u,则藏文渲染模块将u对应的藏文附加符号标在所述已经录入的藏文字母下方以完成渲染。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.

通过本实例的藏文录入模块和藏文渲染模块,可实现藏文的前后书写,还可以上下叠加,为画布实现藏文输入写查看提供可行性技术方案。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.

根据藏文的书写规范要求,当藏文在段落结尾显示不完整时,需要整词进行换行到下一个段落显示,其中词的分界判断为:段落最后一个空格或者分隔符“`”后面的词换行到下一个段落。具体的,如图3所示,文档渲染模块在进行文档渲染时实现整词换行,是先对藏文渲染模块进行转换渲染后输出的藏文进行整词界定处理,将处于相邻两个空格之间、或相邻两个分隔符“`”之间、或相邻的一个空格和一个分隔符“`”之间的全部藏文组合作为一个整词并存储为一个数组,再将数组交给画布进行文档渲染,文档渲染中,对当前渲染所在行已使用宽度进行实时监测,当检测到当前渲染的一个数组的宽度与所在行已使用宽度之和大于所在行整行宽度时,则将所述当前渲染的一个数组整体换行到下一个段落进行渲染绘制,否则在当前渲染所在行继续渲染绘制。According to the writing standard requirements 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 for display, wherein the word boundary is determined as follows: the word after the last space or separator "`" in the paragraph wraps to the next paragraph. Specifically, as shown in FIG3 , the document rendering module implements the wrapping of the whole word when performing document rendering, which is to first perform the whole word boundary processing on the Tibetan text output after the Tibetan text rendering module is converted and rendered, and 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, and then the array is handed over to the canvas for document rendering. During the 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 an array currently rendered and the used width of the row is greater than the width of the entire row, the array currently rendered is wrapped as a whole to the next paragraph for rendering and drawing, otherwise the rendering and drawing are continued in the current rendering row.

在进行藏文删除拆分时,针对有藏文附加标记的情况,需要先依次删除各个标记,再删除藏文,具体的,如图4所示,文档渲染模块在进行文档渲染时实现删除拆分,是在响应删除指令时,判断当前光标所在位置之前的藏文是否存在藏文附加标号:When deleting and splitting Tibetan text, if there are additional Tibetan marks, it is necessary to delete each mark in turn first, and then delete the Tibetan text. Specifically, as shown in FIG4 , the document rendering module implements deletion and splitting when rendering a document. When responding to a delete instruction, it determines whether there is an additional Tibetan 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.

具体的,文档渲染模块支持藏文的各项控件的集成使用,对于藏文输入控件、表格控件、医学公式等都能全面集成使用。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.

本申请实施例的编辑器,实现了Web化的电子病历文书中全面支持藏文书写和显示功能,同时按藏文的书写规则和规范构建整个文档体系,方便医护人员书写病历和藏族地区的患者和家属查看病历记录。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.

以上所述仅为本申请的优选实施例,并不用于限制本申请,显然,本领域的技术人员可以对本申请进行各种改动和变型而不脱离本申请的精神和范围。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 (5)

1.基于画布的Web版藏文电子病历编辑器,其特征在于,包括:1. A canvas-based web version of the Tibetan electronic medical record editor, characterized by: 藏文录入模块,用于对当前录入信息进行判断;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 whole word line wrapping, deletion and splitting during document rendering, and is used for the injection and hosting of medical record controls. 2.根据权利要求1所述的基于画布的Web版藏文电子病历编辑器,其特征在于,藏文录入模块用于判断当前录入信息是否为藏文,若否,则结束流程,若是,则藏文录入模块进一步判断是否为藏文元音字母;2. According to the canvas-based Web version Tibetan electronic medical record editor of claim 1, it is characterized in that the Tibetan input module is used to determine whether the current input information is Tibetan, if not, the process is terminated, and if so, 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; 若不存在,则藏文录入模块进一步判断藏文元音字母是i、e、o还是u:If it does not exist, the Tibetan input module further determines whether the Tibetan vowel is i, e, o or u: 若为i或e或o,则藏文渲染模块将i或e或o对应的藏文附加符号标在当前录入位置的前一个位置上已经录入的藏文字母上方以完成渲染;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; 若为u,则藏文渲染模块将u对应的藏文附加符号标在所述已经录入的藏文字母下方以完成渲染。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. 3.根据权利要求2所述的基于画布的Web版藏文电子病历编辑器,其特征在于,藏文录入模块在判断当前录入信息是否为藏文时,是判断当前录入信息的Unicode编码是否处于预定区间范围内,在所述预定区间范围内,Unicode编码与藏文之间具有预设的映射关系,若当前录入信息的Unicode编码处于所述预定区间范围内,则判断当前录入信息为藏文字母;3. According to the canvas-based Web version Tibetan electronic medical record editor of claim 2, it is characterized in that 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 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; 藏文录入模块在判断是否为藏文元音字母时,是判断当前录入信息的Unicode编码是否处于所述预定区间范围内的元音字母区间,若处于所述元音字母区间,则判断当前录入信息为藏文元音字母,否则判断为藏文辅音字母;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. 藏文录入模块在判断藏文元音字母是i、e、o还是u时,是根据当前录入信息的Unicode编码和所述映射关系进行判断;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; 藏文渲染模块直接将藏文字母本身提供给画布以完成渲染,是根据当前录入信息的Unicode编码和所述映射关系返回指定的藏文字母给画布以完成渲染。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. 4.根据权利要求1所述的基于画布的Web版藏文电子病历编辑器,其特征在于,文档渲染模块在进行文档渲染时实现整词换行,是先对藏文渲染模块进行转换渲染后输出的藏文进行整词界定处理,将处于相邻两个空格之间、或相邻两个分隔符“`”之间、或相邻的一个空格和一个分隔符“`”之间的全部藏文组合作为一个整词并存储为一个数组,再将数组交给画布进行文档渲染,文档渲染中,对当前渲染所在行已使用宽度进行实时监测,当检测到当前渲染的一个数组的宽度与所在行已使用宽度之和大于所在行整行宽度时,则将所述当前渲染的一个数组整体换行到下一个段落进行渲染绘制。4. According to the canvas-based Web version Tibetan electronic medical record editor of claim 1, it is characterized in that the document rendering module realizes whole-word line wrapping when performing document rendering, that is, the Tibetan output after conversion and rendering by the Tibetan rendering module is first 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, and then the array is handed over to the canvas for document rendering. During the 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. 5.根据权利要求1所述的基于画布的Web版藏文电子病历编辑器,其特征在于,文档渲染模块在进行文档渲染时实现删除拆分,是在响应删除指令时,判断当前光标所在位置之前的藏文是否存在藏文附加标号:5. According to the canvas-based Web version Tibetan electronic medical record editor of claim 1, it is characterized in that the document rendering module implements deletion and splitting when rendering the document by, in response to the deletion instruction, determining whether there is a Tibetan additional label 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.
CN202410932113.9A 2024-07-12 2024-07-12 Web version of Tibetan electronic medical record editor based on canvas Active CN118468823B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202410932113.9A CN118468823B (en) 2024-07-12 2024-07-12 Web version of Tibetan electronic medical record editor based on canvas

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202410932113.9A CN118468823B (en) 2024-07-12 2024-07-12 Web version of Tibetan electronic medical record editor based on canvas

Publications (2)

Publication Number Publication Date
CN118468823A true CN118468823A (en) 2024-08-09
CN118468823B CN118468823B (en) 2024-09-10

Family

ID=92170851

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202410932113.9A Active CN118468823B (en) 2024-07-12 2024-07-12 Web version of Tibetan electronic medical record editor based on canvas

Country Status (1)

Country Link
CN (1) CN118468823B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1045308A (en) * 1989-03-03 1990-09-12 航天工业部第七一○研究所 Coding method for input os Tibetan language and keyboard thereof
CN1696880A (en) * 2005-05-08 2005-11-16 卢亚军 General keyboard layout of Tibetan computer, and input method
CN103473222A (en) * 2013-09-16 2013-12-25 中央民族大学 Semantic ontology creation and vocabulary expansion method for Tibetan language
WO2016029729A1 (en) * 2014-08-28 2016-03-03 扎西松宝 Tibetan input method
CN106202027A (en) * 2016-08-12 2016-12-07 南京都昌信息科技有限公司 A kind of Tibetan language electronic medical record system text editor
US20210365708A1 (en) * 2020-05-25 2021-11-25 Northwest Minzu University Method and system for segmenting touching text lines in image of uchen-script tibetan historical document
CN117217171A (en) * 2023-09-14 2023-12-12 成都成电医星数字健康软件有限公司 Web edition documented Mongolian electronic medical record editor

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1045308A (en) * 1989-03-03 1990-09-12 航天工业部第七一○研究所 Coding method for input os Tibetan language and keyboard thereof
CN1696880A (en) * 2005-05-08 2005-11-16 卢亚军 General keyboard layout of Tibetan computer, and input method
CN103473222A (en) * 2013-09-16 2013-12-25 中央民族大学 Semantic ontology creation and vocabulary expansion method for Tibetan language
WO2016029729A1 (en) * 2014-08-28 2016-03-03 扎西松宝 Tibetan input method
CN106202027A (en) * 2016-08-12 2016-12-07 南京都昌信息科技有限公司 A kind of Tibetan language electronic medical record system text editor
US20210365708A1 (en) * 2020-05-25 2021-11-25 Northwest Minzu University Method and system for segmenting touching text lines in image of uchen-script tibetan historical document
CN117217171A (en) * 2023-09-14 2023-12-12 成都成电医星数字健康软件有限公司 Web edition documented Mongolian electronic medical record editor

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
于洪志, 喇秉军, 何向真: "Web环境下藏文信息处理技术", 西北民族大学学报(自然科学版), no. 01, 30 March 2005 (2005-03-30) *
于洪志;何向真;: "基于Web页面的藏文在线输入技术", 计算机工程, no. 18, 20 September 2008 (2008-09-20), pages 2 *

Also Published As

Publication number Publication date
CN118468823B (en) 2024-09-10

Similar Documents

Publication Publication Date Title
US8200475B2 (en) Phonetic-based text input method
JPS6231467A (en) Sentence preparation device
JP5323652B2 (en) Similar word determination method and system
JP3689954B2 (en) Heterogeneous code character string transcription device and electronic dictionary
CN118468823B (en) Web version of Tibetan electronic medical record editor based on canvas
CN101382935A (en) System and method for providing input of edited translated words and sentences
JP2004086621A (en) Electronic device, display control method, program, and recording medium
JP4845523B2 (en) Character processing apparatus, method, program, and recording medium
JP3677016B2 (en) Foreign language electronic dictionary search device
JP3452353B2 (en) Recording medium recording dictionary data structure, dictionary lookup method, phrase acquisition method, dictionary lookup apparatus, phrase acquisition apparatus, recording medium recording program
US5742838A (en) Method for conversion mode selection in hangeul to hanja character conversion
JP3285149B2 (en) Foreign language electronic dictionary search method and apparatus
JPH11328160A (en) Device and method for character code conversion processing and storage medium where character code conversion processing program is recorded
JP2015197697A (en) Character input device, character input method, and character input program
TW594574B (en) Editing method for supporting multiple languages
JPS62295177A (en) Translation supporting word processor
JPH0380363A (en) Document processor
JPH04155569A (en) Kana/kanji converter
TWI430117B (en) E-book editing and displaying methods thereof
JP2018163635A (en) Information processing system, information processing method, and program
JP2005309832A (en) Automatic translation device and program
WO2006051647A1 (en) Text data structure and text data processing method
JP2003099425A (en) Document processing method and document processor
JPS6198475A (en) Japanese text input device
CN108630032A (en) A kind of English teaching auxiliary reading device and its application method

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