[go: up one dir, main page]

CN113536732A - Date and time data formatted display method applied to electronic medical record - Google Patents

Date and time data formatted display method applied to electronic medical record Download PDF

Info

Publication number
CN113536732A
CN113536732A CN202110707576.1A CN202110707576A CN113536732A CN 113536732 A CN113536732 A CN 113536732A CN 202110707576 A CN202110707576 A CN 202110707576A CN 113536732 A CN113536732 A CN 113536732A
Authority
CN
China
Prior art keywords
data
formatted
date
hour
suffix
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.)
Pending
Application number
CN202110707576.1A
Other languages
Chinese (zh)
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.)
Beijing Tianjian Source Technology Co ltd
Original Assignee
Beijing Tianjian Source 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 Beijing Tianjian Source Technology Co ltd filed Critical Beijing Tianjian Source Technology Co ltd
Priority to CN202110707576.1A priority Critical patent/CN113536732A/en
Publication of CN113536732A publication Critical patent/CN113536732A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/103Formatting, i.e. changing of presentation of documents
    • G06F40/106Display of layout of documents; Previewing
    • 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)
  • Health & Medical Sciences (AREA)
  • Theoretical Computer Science (AREA)
  • General Health & Medical Sciences (AREA)
  • Public Health (AREA)
  • Primary Health Care (AREA)
  • Medical Informatics (AREA)
  • Artificial Intelligence (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Computational Linguistics (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Epidemiology (AREA)
  • Medical Treatment And Welfare Office Work (AREA)

Abstract

本发明实施例涉及一种应用于电子病历的日期时间数据格式化显示方法,所述方法包括:从电子病历脚本文件中获取第一日期时间信息;对第一日期时间信息进行数据项分拆处理生成第一日期时间数据组;生成第一年格式化数据;生成第一月格式化数据;生成第一日格式化数据;生成第一小时格式化数据;生成第一分格式化数据;生成第一秒格式化数据;将第一年、月、日、小时、分、秒格式化数据组成第一日期时间格式化数据组;根据预设的显示标志位集合和第一日期时间格式化数据组,进行第一日期时间数据的格式化显示处理。本发明方法既可以在电子病历脚本文件中保留最完整的日期时间数据,又可以根据不同配置进行个性化显示。

Figure 202110707576

The embodiment of the present invention relates to a method for formatting and displaying date and time data applied to an electronic medical record. The method includes: acquiring first date and time information from an electronic medical record script file; and performing data item splitting processing on the first date and time information Generate first date time data group; generate first year formatted data; generate first month formatted data; generate first day formatted data; generate first hour formatted data; generate first minute formatted data; generate first minute formatted data; One-second formatted data; the first year, month, day, hour, minute, second formatted data is formed into the first date and time formatted data group; according to the preset display flag set and the first date and time formatted data group , to perform format display processing of the first date and time data. The method of the invention can not only retain the most complete date and time data in the electronic medical record script file, but also can perform personalized display according to different configurations.

Figure 202110707576

Description

Date and time data formatting display method applied to electronic medical record
Technical Field
The invention relates to the technical field of data information processing, in particular to a date-time data formatting display method applied to an electronic medical record.
Background
In a conventional electronic medical record script, date and time data are generally stored in a standard format of year, month, day, hour, minute and second. When the electronic medical record scripts are called through an electronic medical record browser to browse and edit the electronic medical record, date time data are displayed according to the storage format of the date time data. However, in practical applications, it is found that different medical structures may adopt a customized date and time display mode, for example, only year + month is displayed, or only day + time is displayed; in addition, it is also possible to insert specific characters, such as 2021&12,2021&12&23, etc., between date-time data of different units. If the personalized requirements are realized according to the traditional processing method, the storage formats of the date time data in the electronic medical record scripts of different medical institutions need to be modified according to the display format requirements of different medical institutions. The processing method is time-consuming and labor-consuming, and can also cause the problem that the date time data information in the electronic medical record script is incomplete.
Disclosure of Invention
The invention aims to provide a date and time data formatting display method applied to an electronic medical record, which still adopts a standard year, month, day, time, minute and second format to store date and time data in an electronic medical record script file, and assembles a final display result by configuring related prefix and suffix display parameters and display flag bits. Therefore, the most complete date and time data can be reserved, personalized display and assembly can be carried out according to the configuration information of each family, and the display processing flow does not need to be customized according to the requirements of each family.
In order to achieve the above object, an embodiment of the present invention provides a date and time data formatting display method applied to an electronic medical record, where the method includes:
acquiring first date time information from an electronic medical record script file;
performing data item splitting processing of date and time on the first date and time information to generate a first date and time data group; the first date time data group at least comprises first year data, first month data, first day data, first hour data, first minute data and first second data;
performing first year data formatting treatment according to a preset first year suffix data group and the first year data to generate first year formatted data;
carrying out monthly data formatting treatment according to a preset monthly before and after data group and the monthly data to generate monthly formatted data;
performing first-day data formatting treatment according to a preset first-day prefix and suffix data group and the first-day data to generate first-day formatted data;
performing first-hour data formatting treatment according to a preset first-hour prefix-suffix data group and the first-hour data to generate first-hour formatted data;
performing first branch data formatting treatment according to a preset first branch prefix suffix data group and the first branch data to generate first branch formatted data;
performing first-second data formatting treatment according to a preset first-second prefix-suffix data group and the first-second data to generate first-second formatted data;
forming a first date time formatted data set from the first year formatted data, the first month formatted data, the first day formatted data, the first hour formatted data, the first minute formatted data and the first second formatted data;
and carrying out formatting display processing on the first date time data according to a preset display zone bit set and the first date time formatting data set.
Preferably, the generating a first date and time data group by performing data item splitting processing of date and time on the first date and time information specifically includes:
performing year information extraction processing on the first date time information to generate the first year data;
carrying out month information extraction processing on the first date time information to generate the first month data;
performing single-day information extraction processing on the first date time information to generate the first date data;
performing hour information extraction processing on the first date time information; carrying out corresponding format data conversion on the extraction processing result according to a preset hour expression format, if the hour expression format is a twelve-hour format, carrying out twelve-hour format data conversion on the extraction processing result to generate the first-hour data, and if the hour expression format is a twenty-four-hour format, carrying out twenty-four-hour format data conversion on the extraction processing result to generate the first-hour data;
performing minute information extraction processing on the first date and time information to generate first sub data;
second information extraction processing is performed on the first date time information to generate first second data;
and the first year data, the first month data, the first day data, the first hour data, the first minute data and the first second data are combined into the first date and time data group.
Preferably, the first year prefix data group includes first year prefix data and first year suffix data;
the first month prefix-suffix data group includes first month prefix data and first month suffix data;
the first prefix-suffix data group includes first prefix-suffix data and first suffix-suffix data;
the first hour prefix-suffix data set includes first hour prefix data and first hour suffix data;
the first prefix-suffix-data-group includes first prefix-suffix-data and first suffix-data;
the first-second prefix-suffix-data group includes first-second prefix data and first-second suffix data.
Preferably, the generating of the year-first formatted data by performing year-first data formatting processing according to a preset year-first suffix data set and the year-first data specifically includes:
generating the year one formatted data from the year one prefix data, the year one data, and the year one suffix data by stitching.
Preferably, the formatting the monthly data according to a preset monthly before and after data group and the monthly data to generate the monthly formatted data specifically includes:
and splicing the first month prefix data, the first month data and the first month suffix data to generate the first month formatted data.
Preferably, the performing a first-day data formatting process according to a preset first-day prefix and suffix data group and the first-day data to generate first-day formatted data specifically includes:
and splicing the first daily prefix data, the first month data and the first daily suffix data to generate the first daily formatted data.
Preferably, the performing a first-hour data formatting process according to a preset first-hour prefix and prefix data group and the first-hour data to generate first-hour formatted data specifically includes:
and splicing the first hour prefix data, the first hour data and the first hour postfix data to generate the first hour formatted data.
Preferably, the performing a first packet formatting process according to a preset first packet prefix-suffix data set and the first packet data to generate first packet formatted data specifically includes:
and splicing the first prefix data, the first branch data and the first branch postfix data to generate the first branch formatted data.
Preferably, the performing a first-second data formatting process according to a preset first-second prefix-suffix data group and the first-second data to generate first-second formatted data specifically includes:
and splicing the first second prefix data, the first second data and the first second postfix data to generate the first second formatted data.
Preferably, the formatting display processing of the first date time data according to a preset display flag bit set and the first date time formatting data group specifically includes:
identifying the sub-zone bits of the display zone bit set, and arranging the sub-zone bits which are not empty according to the sequence from high to low of a date-time unit to generate a first display zone bit set; the display marker bit set comprises a year marker bit, a month marker bit, a day marker bit, an hour marker bit, a molecule marker bit and a second marker bit;
extracting corresponding formatted data from the first date time formatted data set according to the sub-flag bits of the first display flag bit set; sorting all the extracted formatted data according to the sorting sequence of the sub-zone bits of the first display zone bit set to generate first formatted display data;
and performing display processing on the first formatted display data.
According to the date and time data formatting display method applied to the electronic medical record, the date and time data are still stored in the electronic medical record script file in a standard year, month, day, hour, minute and second format, and the final display result is assembled by configuring relevant prefix and suffix display parameters and display flag bits. Therefore, the most complete date and time data can be reserved, personalized display and assembly can be carried out according to the configuration information of each family, and the display processing flow does not need to be customized according to the requirements of each family.
Drawings
Fig. 1 is a schematic diagram illustrating a date-time data formatting display method applied to an electronic medical record according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention clearer, the present invention will be described in further detail with reference to the accompanying drawings, and it is apparent that the described embodiments are only a part of the embodiments of the present invention, not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
As shown in fig. 1, which is a schematic diagram of a date and time data formatting display method applied to an electronic medical record provided by an embodiment of the present invention, the method mainly includes the following steps:
step 1, acquiring first date time information from an electronic medical record script file.
Here, the file format of the electronic medical record script file is an eXtensible Markup Language (XML) file, and multiple types of original information can be stored in the electronic medical record script file; when the electronic medical record browser calls an electronic medical record script file and displays date and time information in the electronic medical record script file, firstly, the original content with the display property, namely first date and time information, is obtained from the script; the data format of the first date time information stored in the electronic medical record script file is a complete year, month, day, hour, minute and second format, and the format is a 24-hour format in which small and medium time defaults.
Step 2, carrying out data item splitting processing of date and time on the first date and time information to generate a first date and time data group;
wherein the first date time data group at least comprises first year data, first month data, first day data, first hour data, first minute data and first second data;
here, the electronic medical record browser splits the obtained first date time information according to the time, hour, minute and second units of the year, the month, the day and the minute;
the method specifically comprises the following steps: step 21, carrying out year information extraction processing on the first date time information to generate first year data;
for example, the first date-time information is 2021/12/3114: 50:19, the first year data is 2021;
step 22, carrying out month information extraction processing on the first date time information to generate first month data;
for example, if the first date time information is 2021/12/3114: 50:19, the first month data is 12;
step 23, performing single-day information extraction processing on the first date time information to generate first date data;
for example, the first date time information is 2021/12/3114: 50:19, the first date data is 31;
step 24, carrying out hour information extraction processing on the first date time information; carrying out corresponding format data conversion on the extraction processing result according to a preset hour expression format, if the hour expression format is a twelve-hour format, carrying out twelve-hour format data conversion on the extraction processing result to generate first-hour data, and if the hour expression format is a twenty-four-hour format, carrying out twenty-four-hour format data conversion on the extraction processing result to generate first-hour data;
the hour expression format is a system parameter preset by an electronic medical record browser, and the hour expression format comprises two set formats, namely a twelve-hour format and a twenty-four-hour format; if the hour expression format is a twelve-hour format, the format of the first-hour data obtained by the electronic medical record browser is in a morning/afternoon + numerical mode, and the numerical value range is 0-11; if the hour expression format is twenty-four hour format, the format of the first hour data obtained by the electronic medical record browser is numerical mode, and the numerical value range is 0-24;
for example, the first date-and-time information is 2021/12/3114: 50:19, and if the hour expression format is a twelve-hour format, the first hour data is 2 pm; if the hour expression format is a twenty-four hour format, the first hour data is 14 hours;
step 25, performing minute information extraction processing on the first date and time information to generate first sub data;
for example, if the first date time information is 2021/12/3114: 50:19, the first score data is 50;
step 26, performing second information extraction processing on the first date time information to generate first second data;
for example, the first date-time information is 2021/12/3114: 50:19, the first second data is 19;
and 27, combining the first year data, the first month data, the first day data, the first hour data, the first minute data and the first second data into a first date and time data group.
For example, the first date time information is 2021/12/3114: 50:19, and if the hour expression format is a twelve-hour format, the first date time data set is {2021,12,31, 2,50,19 pm }; if the hour expression format is a twenty-four hour format, then the first date time data set is {2021,12,31,14,50,19 }.
Step 3, formatting the data of the first year according to a preset data group of the suffix before the first year and the data of the first year to generate formatted data of the first year;
wherein the first year prefix data group includes first year prefix data and first year suffix data.
The method specifically comprises the following steps: and splicing the first year prefix data, the first year data and the first year suffix data to generate first year formatted data.
Here, the suffix data group before the first year is a system parameter preset by an electronic medical record browser; the first year prefix data group comprises two subdata of first year prefix data and first year suffix data; the first year prefix data and the first year suffix data may be null, may be one character, or may be a character string composed of multiple characters; the first year prefix data is used for prefix decoration of the first year data, and the first year suffix data is used for suffix decoration of the first year data.
For example, the first year data is 2021, the first year prefix data is a character string "notary", the first year suffix data is a character "year", and the first year formatted data after concatenation is "notary 2021 year";
for another example, the first year data is 2021, the first year prefix data is null, and the first year suffix data is the character "year", and the first year formatted data after concatenation is "2021 year".
Step 4, formatting the monthly data according to a preset monthly data group and monthly data to generate monthly formatted data;
the first month prefix and suffix data group comprises first month prefix data and first month suffix data;
the method specifically comprises the following steps: and splicing the first month prefix data, the first month data and the first month suffix data to generate the first month formatted data.
Here, the first month prefix and suffix data group is a system parameter preset by an electronic medical record browser; the first month prefix and suffix data group comprises two subdata of first month prefix data and first month suffix data; the prefix data of the first month and the suffix data of the first month can be empty, can also be a character string composed of multiple characters; the first month prefix data is used for carrying out prefix decoration on the first month data, and the first month suffix data is used for carrying out suffix decoration on the first month data.
For example, the data of the first month is 12, the prefix data of the first month is null, the suffix data of the first year is the character "month", and the formatted data of the spliced first month is "12 months";
for another example, if the first month data is 12, the first month prefix data is a character string "solar calendar", and the first month suffix data is a character "month", the concatenated first month formatted data is "solar calendar 12 months".
Step 5, carrying out first-day data formatting treatment according to a preset first-day prefix and suffix data group and first-day data to generate first-day formatted data;
wherein the first prefix-suffix-of-day data group includes first prefix-of-day data and first suffix-of-day data;
the method specifically comprises the following steps: and splicing the first-day prefix data, the first-month data and the first-day suffix data to generate first-day formatted data.
Here, the first affix data set is a system parameter preset by an electronic medical record browser; the first prefix-suffix-of-day data group comprises two subdata of first prefix-of-day data and first suffix-of-day data; the first daily prefix data and the first daily suffix data may be null, may be one character, or may be a character string composed of multiple characters; the first date prefix data is used for prefix decoration of the first date data, and the first date suffix data is used for suffix decoration of the first date data.
For example, if the first day data is 31, the first day prefix data is "yes", and the first day suffix data is the character "day", the first day formatted data after concatenation is "31 days";
for another example, if the first day data is 31, the first day prefix data is a character "-", and the first day suffix data is null, the first day formatted data after concatenation is "-31".
Step 6, carrying out first-hour data formatting treatment according to a preset first-hour prefix-suffix data group and first-hour data to generate first-hour formatted data;
wherein the first hour pre-suffix data set comprises first hour prefix data and first hour suffix data;
the method specifically comprises the following steps: and splicing the first hour prefix data, the first hour data and the first hour postfix data to generate first hour formatted data.
Here, the affix data set before and after the first hour is a system parameter preset by an electronic medical record browser; the first-hour prefix-suffix data group comprises two subdata of first-hour prefix data and first-hour suffix data; the first hour prefix data and the first hour suffix data may be null, may be one character, or may be a character string composed of multiple characters; the first hour prefix data is used for prefix decoration of the first hour data, and the first hour suffix data is used for suffix decoration of the first hour data.
For example, when the preset hour expression format is a twelve-hour format, the first-hour data is "2 pm", the first-hour prefix data is "yes", the first-hour suffix data is a character "dot", and the spliced first-hour formatted data is "2 pm";
for another example, if the preset hour expression format is a twenty-four hour format, the first hour data is 14, the first hour prefix data is null, and the first hour suffix data is the character "time", then the spliced first hour formatted data is "14 time".
Step 7, performing first branch data formatting treatment according to a preset first branch prefix and suffix data group and first branch data to generate first branch formatted data;
wherein the first prefix suffix data group includes first prefix data and first suffix data;
the method specifically comprises the following steps: and splicing the first prefix division data, the first division data and the first division postfix data to generate first division formatted data.
Here, the first prefix-suffix data set is a system parameter preset by an electronic medical record browser; the first prefix-suffix-divided data group comprises two subdata of first prefix division data and first suffix division data; the first prefix data and the first suffix data may be null, may be a character, or may be a character string composed of multiple characters; the first prefix data is used for performing prefix decoration on the first branch data, and the first suffix data is used for performing suffix decoration on the first branch data.
For example, if the first division data is 50, the first prefix data is null, and the first division suffix data is the character "division", the concatenated first division formatted data is "50 division".
Step 8, performing first-second data formatting treatment according to a preset first-second prefix-suffix data group and first-second data to generate first-second formatted data;
wherein the first-second prefix-suffix data group includes first-second prefix data and first-second suffix data;
the method specifically comprises the following steps: and splicing the first second prefix data, the first second data and the first second postfix data to generate first second formatted data.
Here, the first-second prefix-suffix data set is a system parameter preset by an electronic medical record browser; the first-second prefix-suffix data group comprises two subdata of first-second prefix data and first-second suffix data; the first second prefix data and the first second suffix data may be null, may be a character, or may be a character string composed of multiple characters; the first-second prefix data is used for prefix decoration of the first-second data, and the first-second suffix data is used for suffix decoration of the first-second data.
For example, if the first-second data is 19 seconds, the first-second prefix data is null, and the first-second suffix data is the character "second", the concatenated first-second formatted data is "19 seconds".
And 9, forming a first date time formatted data group by the first year formatted data, the first month formatted data, the first day formatted data, the first hour formatted data, the first minute formatted data and the first second formatted data.
Step 10, carrying out formatting display processing on the first date time data according to a preset display zone bit set and a first date time formatting data set;
the display marker bit set comprises a year marker bit, a month marker bit, a day marker bit, an hour marker bit, a molecule marker bit and a second marker bit;
here, the display zone bit set is a system parameter preset by an electronic medical record browser, wherein the system parameter comprises 6 sub zone bits of year, month, day, hour, minute and second; if each sub-zone bit is set to be null, the corresponding formatted data is not displayed when the corresponding formatted data is displayed, otherwise, the corresponding formatted data is required to be displayed when the corresponding formatted data is not displayed; the display sequence is determined according to the high-low arrangement sequence of the sub-flag bits which are not empty;
the method specifically comprises the following steps: step 101, identifying the sub-zone bits of the display zone bit set, and arranging the sub-zone bits which are not empty according to the sequence from high to low of a date-time unit to generate a first display zone bit set;
here, the year of the year, month, day, hour, minute and second is the highest, and the order of year, month, day, hour, minute and second from left to right is the order of date and time units from high to low;
for example, the set of display flag bits is: the year flag bit is null, the month flag bit is not null, the day flag bit is not null, the hour flag bit is not null, the molecular flag bit is null, and the second flag bit is null; then, the first set of display flags shall be { month flag, day flag, hour flag };
102, extracting corresponding formatted data from a first date time formatted data group according to the sub-zone bits of the first display zone bit set; sorting all the extracted formatted data according to the sorting sequence of the sub-zone bits of the first display zone bit set to generate first formatted display data;
for example, the first date time formatted data set is: first year formatted data "2021 year", first month formatted data "12 months", first day formatted data "31 days", first hour formatted data "14 hours", first minute formatted data "50 minutes", and first second formatted data "19 seconds"; the first display zone bit set is { month zone bit, day zone bit, hour zone bit };
then the corresponding formatted data extracted from the first date time formatted data set based on the sub-bits of the first set of display bits has: first month formatted data "12 months", first day formatted data "31 days", first hour formatted data "14 hours";
the sequencing order of the sub-flag bits of the first display flag bit set is month-day-hour, all the extracted formatted data are sequenced according to month-day-hour, and the obtained first formatted display data is first month formatted data of 12 months, + first day formatted data of 31 days, + first hour formatted data of 14 hours, namely 12 months of 31 days of 14 hours;
and 103, performing display processing on the first formatted display data.
Here, the electronic medical record browser finally displays the first date and time information acquired from the electronic medical record script file on the display device in a display mode preset by the user, and the displayed content is the first formatted display data converted from the first date and time information.
For example, the first date and time information is 2021/12/3114: 50:19, and the first formatted display data obtained after the conversion in the steps 2-10 is 12 months, 31 days and 14 hours, then on the display interface of the electronic medical record browser, the user only sees 12 months, 31 days and 14 hours instead of 2021/12/3114: 50: 19.
In summary, the electronic medical record browser, through the method for displaying date and time data in a formatted manner applied to the electronic medical record provided by the embodiment of the invention, not only does not need to modify the original electronic medical record script file, but also can perform configuration management of suffixes and suffixes on the display content of each unit of the date and time data, and also can perform configuration management of display/hidden items on each unit of the date and time data, and configuration files are formed by summarizing various configurations of the electronic medical record browser, so that display solutions in different formats can be provided for different clients, and the method does not need to be additionally developed with time and labor, thereby greatly improving the working efficiency.
According to the date and time data formatting display method applied to the electronic medical record, the date and time data are still stored in the electronic medical record script file in a standard year, month, day, hour, minute and second format, and the final display result is assembled by configuring relevant prefix and suffix display parameters and display flag bits. Therefore, the most complete date and time data can be reserved, personalized display and assembly can be carried out according to the configuration information of each family, and the display processing flow does not need to be customized according to the requirements of each family.
Those of skill would further appreciate that the various illustrative components and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative components and steps have been described above generally in terms of their functionality in order to clearly illustrate this interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied in hardware, a software module executed by a processor, or a combination of the two. A software module may reside in Random Access Memory (RAM), memory, Read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
The above-mentioned embodiments are intended to illustrate the objects, technical solutions and advantages of the present invention in further detail, and it should be understood that the above-mentioned embodiments are merely exemplary embodiments of the present invention, and are not intended to limit the scope of the present invention, and any modifications, equivalent substitutions, improvements and the like made within the spirit and principle of the present invention should be included in the scope of the present invention.

Claims (10)

1.一种应用于电子病历的日期时间数据格式化显示方法,其特征在于,所述方法包括:1. a date and time data formatted display method applied to electronic medical records, is characterized in that, described method comprises: 从电子病历脚本文件中获取第一日期时间信息;Obtain the first date and time information from the electronic medical record script file; 对所述第一日期时间信息进行日期与时间的数据项分拆处理,生成第一日期时间数据组;所述第一日期时间数据组至少包括第一年数据、第一月数据、第一日数据、第一小时数据、第一分数据和第一秒数据;The first date and time information is divided into data items of date and time to generate a first date and time data group; the first date and time data group at least includes first year data, first month data, first day data data, first hour data, first minute data and first second data; 根据预设的第一年前后缀数据组和所述第一年数据,进行第一年数据格式化处理,生成第一年格式化数据;According to the preset first-year prefix and suffix data group and the first-year data, format the first-year data to generate the first-year formatted data; 根据预设的第一月前后缀数据组和所述第一月数据,进行第一月数据格式化处理,生成第一月格式化数据;According to the preset first-month prefix and suffix data group and the first-month data, format the first-month data to generate the first-month formatted data; 根据预设的第一日前后缀数据组和所述第一日数据,进行第一日数据格式化处理,生成第一日格式化数据;According to the preset first day suffix data group and the first day data, format the first day data to generate the first day formatted data; 根据预设的第一小时前后缀数据组和所述第一小时数据,进行第一小时数据格式化处理,生成第一小时格式化数据;According to the preset first hour suffix data group and the first hour data, format the first hour data to generate the first hour formatted data; 根据预设的第一分前后缀数据组和所述第一分数据,进行第一分数据格式化处理,生成第一分格式化数据;According to the preset first sub-suffix data group and the first sub-data, format the first sub-data to generate the first sub-formatted data; 根据预设的第一秒前后缀数据组和所述第一秒数据,进行第一秒数据格式化处理,生成第一秒格式化数据;According to the preset first second prefix and suffix data group and the first second data, format the first second data to generate the first second formatted data; 将所述第一年格式化数据、所述第一月格式化数据、所述第一日格式化数据、所述第一小时格式化数据、所述第一分格式化数据和所述第一秒格式化数据,组成第一日期时间格式化数据组;The first year formatted data, the first month formatted data, the first day formatted data, the first hour formatted data, the first minute formatted data and the first Second formatted data to form the first datetime formatted data group; 根据预设的显示标志位集合和所述第一日期时间格式化数据组,进行第一日期时间数据的格式化显示处理。The formatted display processing of the first date and time data is performed according to the preset display flag bit set and the first date and time formatted data group. 2.根据权利要求1所述的应用于电子病历的日期时间数据格式化显示方法,其特征在于,所述对所述第一日期时间信息进行日期与时间的数据项分拆处理,生成第一日期时间数据组,具体包括:2. The method for formatting and displaying date and time data applied to electronic medical records according to claim 1, wherein the first date and time information is subjected to data item splitting processing of date and time to generate the first Datetime data group, including: 对所述第一日期时间信息进行年份信息提取处理,生成所述第一年数据;Performing year information extraction processing on the first date and time information to generate the first year data; 对所述第一日期时间信息进行月份信息提取处理,生成所述第一月数据;performing month information extraction processing on the first date and time information to generate the first month data; 对所述第一日期时间信息进行单日信息提取处理,生成所述第一日数据;Performing single-day information extraction processing on the first date and time information to generate the first day data; 对所述第一日期时间信息进行小时信息提取处理;并对提取处理结果按预设的小时表达格式进行对应的格式数据转换,若所述小时表达格式为十二小时格式,则并对所述提取处理结果进行十二小时格式数据转换生成所述第一小时数据,若所述小时表达格式为二十四小时格式,则对所述提取处理结果进行二十四小时格式数据转换生成所述第一小时数据;Perform hourly information extraction processing on the first date and time information; and perform corresponding format data conversion on the extraction processing result according to the preset hourly expression format, if the hourly expression format is a twelve-hour format, then The extraction processing result is subjected to twelve-hour format data conversion to generate the first hour data, and if the hour expression format is a twenty-four-hour format, the extraction processing result is subjected to twenty-four-hour format data conversion to generate the first hour data. one hour data; 对所述第一日期时间信息进行分钟信息提取处理,生成所述第一分数据;Perform minute information extraction processing on the first date and time information to generate the first minute data; 对所述第一日期时间信息进行秒钟信息提取处理,生成所述第一秒数据;performing second information extraction processing on the first date and time information to generate the first second data; 将所述第一年数据、所述第一月数据、所述第一日数据、所述第一小时数据、所述第一分数据和所述第一秒数据,组成所述第一日期时间数据组。Composing the first year data, the first month data, the first day data, the first hour data, the first minute data and the first second data into the first date and time data set. 3.根据权利要求1所述的应用于电子病历的日期时间数据格式化显示方法,其特征在于,3. the date and time data formatted display method applied to electronic medical record according to claim 1 is characterized in that, 所述第一年前后缀数据组包括第一年前缀数据和第一年后缀数据;The first-year prefix data group includes first-year prefix data and first-year suffix data; 所述第一月前后缀数据组包括第一月前缀数据和第一月后缀数据;The first month prefix and suffix data group includes first month prefix data and first month suffix data; 所述第一日前后缀数据组包括第一日前缀数据和第一日后缀数据;The first day suffix data group includes first day prefix data and first day suffix data; 所述第一小时前后缀数据组包括第一小时前缀数据和第一小时后缀数据;The first hour suffix data group includes first hour prefix data and first hour suffix data; 所述第一分前后缀数据组包括第一分前缀数据和第一分后缀数据;The first sub-prefix data group includes first sub-prefix data and first sub-suffix data; 所述第一秒前后缀数据组包括第一秒前缀数据和第一秒后缀数据。The first second prefix and suffix data group includes first second prefix data and first second suffix data. 4.根据权利要求3所述的应用于电子病历的日期时间数据格式化显示方法,其特征在于,所述根据预设的第一年前后缀数据组和所述第一年数据,进行第一年数据格式化处理,生成第一年格式化数据,具体包括:4. The date-time data formatted display method applied to electronic medical records according to claim 3, characterized in that, according to the preset first suffix data group and the first year data, the first Year data format processing to generate formatted data for the first year, including: 由所述第一年前缀数据、所述第一年数据和所述第一年后缀数据,拼接生成所述第一年格式化数据。The first-year formatted data is generated by splicing the first-year prefix data, the first-year data, and the first-year suffix data. 5.根据权利要求3所述的应用于电子病历的日期时间数据格式化显示方法,其特征在于,所述根据预设的第一月前后缀数据组和所述第一月数据,进行第一月数据格式化处理,生成第一月格式化数据,具体包括:5. The date-time data formatted display method applied to electronic medical records according to claim 3, characterized in that, according to the preset first month prefix and suffix data group and the first month data, the first Formatting monthly data to generate formatted data for the first month, including: 由所述第一月前缀数据、所述第一月数据和所述第一月后缀数据,拼接生成所述第一月格式化数据。The first month formatted data is generated by splicing the first month prefix data, the first month data and the first month suffix data. 6.根据权利要求3所述的应用于电子病历的日期时间数据格式化显示方法,其特征在于,所述根据预设的第一日前后缀数据组和所述第一日数据,进行第一日数据格式化处理,生成第一日格式化数据,具体包括:6. The date-time data formatted display method applied to electronic medical records according to claim 3, characterized in that, according to the preset first suffix data group and the first day data, the first day Data formatting processing to generate the first-day formatted data, including: 由所述第一日前缀数据、所述第一月数据和所述第一日后缀数据,拼接生成所述第一日格式化数据。The first-day formatted data is generated by splicing the first-day prefix data, the first-month data, and the first-day suffix data. 7.根据权利要求3所述的应用于电子病历的日期时间数据格式化显示方法,其特征在于,所述根据预设的第一小时前后缀数据组和所述第一小时数据,进行第一小时数据格式化处理,生成第一小时格式化数据,具体包括:7. The date and time data formatted display method applied to electronic medical records according to claim 3, wherein, according to the preset first hour suffix data group and the first hour data, the first Formatting of hourly data to generate formatted data for the first hour, including: 由所述第一小时前缀数据、所述第一小时数据和所述第一小时后缀数据,拼接生成所述第一小时格式化数据。The first hour formatted data is generated by splicing the first hour prefix data, the first hour data and the first hour suffix data. 8.根据权利要求3所述的应用于电子病历的日期时间数据格式化显示方法,其特征在于,所述根据预设的第一分前后缀数据组和所述第一分数据,进行第一分数据格式化处理,生成第一分格式化数据,具体包括:8. The date-time data formatted display method applied to electronic medical records according to claim 3, wherein, according to the preset first sub-suffix data group and the first sub-data, the first sub-data is performed. Formatting the sub-data to generate the first sub-formatted data, including: 由所述第一分前缀数据、所述第一分数据和所述第一分后缀数据,拼接生成所述第一分格式化数据。The first sub-formatted data is generated by splicing the first sub-prefix data, the first sub-data and the first sub-suffix data. 9.根据权利要求3所述的应用于电子病历的日期时间数据格式化显示方法,其特征在于,所述根据预设的第一秒前后缀数据组和所述第一秒数据,进行第一秒数据格式化处理,生成第一秒格式化数据,具体包括:9. The date-time data formatted display method applied to electronic medical records according to claim 3, wherein, according to the preset first second suffix data group and the first second data, the first Second-second data formatting processing to generate the first-second formatted data, including: 由所述第一秒前缀数据、所述第一秒数据和所述第一秒后缀数据,拼接生成所述第一秒格式化数据。The first second formatted data is generated by splicing the first second prefix data, the first second data and the first second suffix data. 10.根据权利要求1所述的应用于电子病历的日期时间数据格式化显示方法,其特征在于,所述根据预设的显示标志位集合和所述第一日期时间格式化数据组,进行第一日期时间数据的格式化显示处理,具体包括:10. The date and time data formatted display method applied to electronic medical records according to claim 1, wherein, according to the preset display flag bit set and the first date and time formatted data group, the first Formatting and display processing of date and time data, including: 对所述显示标志位集合的子标志位进行识别,将不为空的子标志位按从日期时间单元从高到低的顺序进行排列生成第一显示标志位集合;所述显示标志位集合包括年子标志位、月子标志位、日子标志位、小时子标志位、分子标志位和秒子标志位;Identify the sub-flags of the set of display flags, and arrange the sub-flags that are not empty in the order from high to low from the date and time unit to generate the first set of display flags; the set of display flags includes: Year sign, month sign, day sign, hour sign, numerator sign and second sign; 根据所述第一显示标志位集合的子标志位,从所述第一日期时间格式化数据组中提取对应的格式化数据;并按所述第一显示标志位集合的子标志位排序顺序,对提取出的所有格式化数据进行排序,生成第一格式化显示数据;Extract corresponding formatted data from the first date-time formatted data group according to the sub-flags of the first display flag set; and according to the sorting order of the sub-flags of the first display flag set, Sort all the extracted formatted data to generate the first formatted display data; 对所述第一格式化显示数据进行显示处理。Display processing is performed on the first formatted display data.
CN202110707576.1A 2021-06-24 2021-06-24 Date and time data formatted display method applied to electronic medical record Pending CN113536732A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110707576.1A CN113536732A (en) 2021-06-24 2021-06-24 Date and time data formatted display method applied to electronic medical record

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110707576.1A CN113536732A (en) 2021-06-24 2021-06-24 Date and time data formatted display method applied to electronic medical record

Publications (1)

Publication Number Publication Date
CN113536732A true CN113536732A (en) 2021-10-22

Family

ID=78096741

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110707576.1A Pending CN113536732A (en) 2021-06-24 2021-06-24 Date and time data formatted display method applied to electronic medical record

Country Status (1)

Country Link
CN (1) CN113536732A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1295758A (en) * 1998-04-03 2001-05-16 美商·提维股份有限公司 Method and apparatus implementing random access and time-based functions on continuos stream of formatted digital data
CN106933783A (en) * 2015-12-31 2017-07-07 远光软件股份有限公司 A kind of method and device on the intelligent extraction date from text
CN108334622A (en) * 2018-02-08 2018-07-27 竞技世界(北京)网络技术有限公司 A method of it obtains and formats complex data
CN110852105A (en) * 2019-11-06 2020-02-28 天津开心生活科技有限公司 Time data normalization method, device, medium and electronic equipment
CN111651338A (en) * 2020-05-28 2020-09-11 杭州迪普科技股份有限公司 Log formatting time acquisition system and method thereof

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1295758A (en) * 1998-04-03 2001-05-16 美商·提维股份有限公司 Method and apparatus implementing random access and time-based functions on continuos stream of formatted digital data
CN106933783A (en) * 2015-12-31 2017-07-07 远光软件股份有限公司 A kind of method and device on the intelligent extraction date from text
CN108334622A (en) * 2018-02-08 2018-07-27 竞技世界(北京)网络技术有限公司 A method of it obtains and formats complex data
CN110852105A (en) * 2019-11-06 2020-02-28 天津开心生活科技有限公司 Time data normalization method, device, medium and electronic equipment
CN111651338A (en) * 2020-05-28 2020-09-11 杭州迪普科技股份有限公司 Log formatting time acquisition system and method thereof

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
PYTHON哔哩哔哩: "python time格式化处理输入中文的年月日,一看就明白怎么回事", Retrieved from the Internet <URL:blog.csdn.net/qq_39905859/article/details/104601795> *

Similar Documents

Publication Publication Date Title
Smith When is a nation
WO2015162737A1 (en) Transcription task support device, transcription task support method and program
CN108766513B (en) Intelligent health medical data structured processing system
CN113536732A (en) Date and time data formatted display method applied to electronic medical record
CN106648618B (en) Text information generation method and device for virtual application
JPS5949062A (en) Information storing system
O’Regan Requiems by Giovanni Croce and Giovanni Rovetta: The Requiem Mass at St. Mark’s, Venice, in the Seventeenth Century. Jonathan R. J Drennan
JPH0236476A (en) Displaying system for period of data base
Li et al. Funeral arrangements requested by suicide decedents in Shanghai and Wuhan, China
JP2000259165A (en) Data reading device and recording medium
Madrid Listening through the Colonial Noise: Things, Sound Objects, and Legacy at the Berliner Phonogramm-Archiv’s Konrad T. Preuss Collection
Ramsey Mythic Progenitors in Chinese and Sumerian Rhetorical Culture: A Short Primer
Brady An analogue to Wulf and Eadwacer in the Life of St Bertellin of Stafford
Wood Crying the News: A History of America's Newsboys
CN113268283B (en) Batch processing method based on file materials
Ngoepe et al. Converting oral narratives into written literature: Lessons from the heritage projects in Makgabeng villages in the Limpopo province of South Africa
Rennick Religion in the Ranks: Religion in the Canadian Forces in the 21st Century
Potter Asia Pacific: New Geographies of the Pacific Rim
Kohlmann Glyn Salton-Cox. Queer Communism and the Ministry of Love: Sexual Revolution in British Writing of the 1930s
Kooi Charles Caspers and Peter Jan Margry. The Miracle of Amsterdam: The Biography of a Contested Devotion.
JPH02294714A (en) C.E. century identification method and device
Keynes 5.1 FRED Excel add-in
Masuda The Idea of “Old England”: Music in EM Forster’s Arctic Summer and Abinger Pageant
Sivakumar et al. Open health: Immediate effect of mud pack on resting cardiovascular parameters in hypertensive individuals–A single-arm pilot study
Matovina Juan Francisco Martínez. Sea la Luz: The Making of Mexican Protestantism in the American Southwest, 1829–1900.(Al Filo: Mexican American Studies Series, number 4.) Denton: University of North Texas Press. 2006. Pp. xii, 196. $24.95

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20211022