CN107015949B - Medical data standard conversion method - Google Patents

Medical data standard conversion method Download PDF

Info

Publication number
CN107015949B
CN107015949B CN201611266224.2A CN201611266224A CN107015949B CN 107015949 B CN107015949 B CN 107015949B CN 201611266224 A CN201611266224 A CN 201611266224A CN 107015949 B CN107015949 B CN 107015949B
Authority
CN
China
Prior art keywords
format
medical data
template
nodes
data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201611266224.2A
Other languages
Chinese (zh)
Other versions
CN107015949A (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.)
Huanya Data Technology Co.,Ltd.
Original Assignee
Suzhou Huanya Data 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 Suzhou Huanya Data Technology Co ltd filed Critical Suzhou Huanya Data Technology Co ltd
Priority to CN201611266224.2A priority Critical patent/CN107015949B/en
Publication of CN107015949A publication Critical patent/CN107015949A/en
Application granted granted Critical
Publication of CN107015949B publication Critical patent/CN107015949B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/12Use of codes for handling textual entities
    • G06F40/151Transformation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/80Information retrieval; Database structures therefor; File system structures therefor of semi-structured data, e.g. markup language structured data such as SGML, XML or HTML
    • G06F16/84Mapping; Conversion
    • G06F16/88Mark-up to mark-up conversion
    • 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
    • G16H40/00ICT specially adapted for the management or administration of healthcare resources or facilities; ICT specially adapted for the management or operation of medical equipment or devices
    • G16H40/20ICT specially adapted for the management or administration of healthcare resources or facilities; ICT specially adapted for the management or operation of medical equipment or devices for the management or administration of healthcare resources or facilities, e.g. managing hospital staff or surgery rooms

Abstract

The invention discloses a medical data standard conversion method, which is used for converting medical data with different formats and comprises the following steps: acquiring medical data in a first format, wherein the medical data in the first format comprises nodes, relationships among the nodes, node attributes and attribute values of the node attributes; acquiring a set of second-format medical data templates, wherein the second-format medical data templates comprise nodes, relationships among the nodes and node attributes; acquiring a mapping relation between a set of first format medical data templates and a set of second format medical data templates; obtaining a second format data template corresponding to the first format medical data according to the mapping relation; and extracting the attribute value of the medical data in the first format according to the object, and assigning values to the corresponding medical data template in the second format to obtain the medical data in the second format. The method has simple conversion process between data in different formats, and greatly improves the conversion efficiency.

Description

Medical data standard conversion method
Technical Field
The invention relates to a data conversion method, in particular to a medical data standard conversion method.
Background
Medical data stored in medical institutions vary in format due to different standards. For example, the medical data formats are HL7V2, HL7V3, etc., and HL7V2 is a messaging format issued by the international health care organization for exchanging information with medical systems, which starts with < SB > and ends with < SE >, and the message information of each line starts with an identifier represented by three capital english letters, and the messages are separated by symbols of |, &, -, \\ or the like. And HL7V3 is an extended version of HL7V2 standard, the standard is mainly based on tree-shaped and hierarchical structure of XML format, each node has a closed identification and a unique root value, and the hierarchical structure has better extensibility.
Due to the difference of medical data formats, readability of different formats is different, and format data with poor readability is often converted into format data with good readability in the using process. However, in the data format conversion, format conversion is often performed after all information of format data with poor readability is completely read, and the relationship between the data is complex, error is prone to occur in the conversion process, and the conversion efficiency is low, and time and labor are wasted.
Disclosure of Invention
Aiming at the defects of the prior art, the invention aims to provide a method for converting medical data in different formats, which improves the efficiency.
In order to achieve the purpose, the invention adopts the following technical scheme:
a medical data standard conversion method is used for converting medical data in different formats, and is characterized by comprising the following steps: acquiring medical data in a first format, wherein the medical data in the first format comprises nodes, relationships among the nodes, node attributes and attribute values of the node attributes; acquiring a set of second-format medical data templates, wherein the second-format medical data templates comprise nodes, relationships among the nodes and node attributes; acquiring a mapping relation between a set of first format medical data templates and a set of second format medical data templates; obtaining a second format data template corresponding to the first format medical data according to the mapping relation; and extracting the attribute value of the medical data in the first format according to the object, and assigning values to the corresponding medical data template in the second format to obtain the medical data in the second format.
As a further improvement of the present invention, the second-format medical data template further includes a node flag bit, and the step of obtaining the second-format data template corresponding to the first-format medical data according to the mapping relationship includes the following steps: setting the node marking bit in the second format medical data template as a default value; traversing nodes of the medical data in the first format, and changing the numerical value of the corresponding node marking bit of the medical data template in the second format according to the nodes of the medical data in the first format and the relationship among the nodes; and obtaining a corresponding medical data template in a second format.
As a further improvement of the present invention, the step of extracting the attribute value of the medical data in the first format according to the subject and assigning a value to the corresponding medical data template in the second format to obtain the medical data in the second format includes the following steps: acquiring attribute values of node attributes in the medical data in the first format; extracting attribute values of node attributes in the first-format medical database according to the object; and assigning the extracted attribute value to obtain the corresponding attribute of the second database template.
As a further improvement of the present invention, in the step of obtaining the second format medical data template corresponding to the first format medical data according to the mapping relationship, the method includes the steps of: traversing nodes of the first format medical data; and acquiring a corresponding second-format medical data template according to the mapping relation and the nodes of the first-format medical data.
As a further improvement of the present invention, in the step of obtaining the second format medical data template corresponding to the first format medical data according to the mapping relationship, the method includes the steps of: acquiring mapping between the serial number of the medical data template in the first format and the serial number of the medical data template in the second format; and obtaining the template number of the medical data in the second format according to the template number of the medical data in the first format, and generating a corresponding medical data template in the second format.
As a further improvement of the invention, the first format medical data is HL7V2 format data, and the second format medical data is HL7V3 format data.
As a further improvement of the invention, the object content is added manually.
The invention has the beneficial effects that: compared with the prior art, the method and the device can perform data conversion without completely reading and writing the information of the medical data in the first format, so that the conversion efficiency between the medical data in different formats is greatly improved.
The foregoing description is only an overview of the technical solutions of the present invention, and in order to make the technical means of the present invention more clearly understood, the present invention may be implemented in accordance with the content of the description, and in order to make the above and other objects, features, and advantages of the present invention more clearly understood, the following preferred embodiments are described in detail with reference to the accompanying drawings.
Drawings
FIG. 1 is a schematic flow chart of a first embodiment of the present invention;
FIG. 2 is a schematic flow chart of a second embodiment of the present invention;
FIG. 3 is a schematic flow chart of a third embodiment of the present invention;
FIG. 4 is a schematic flow chart of a fourth embodiment of the present invention;
fig. 5 is a schematic flow chart in a fifth embodiment of the present invention.
Detailed Description
The invention will be further described with reference to the accompanying drawings and the detailed description below:
referring to fig. 1, in a first embodiment, the medical data standard conversion method includes the following steps:
s110, acquiring medical data in a first format, wherein the medical data in the first format comprises nodes, relationships among the nodes, node attributes and attribute values of the node attributes.
Specifically, in the present embodiment, the HL7V2 format is described as a specific example of the first format medical data. An example of data in the format of HL7V2 is now given:
MSH|^~\&|NIS||HIS||20151214164326||RAS^O17|NIS_978125592798|P|2.4
PID 000157882601|0000377419| Li Whitmanian (infant 1) |20151204102400| M,
the message information of each line starts with an identifier represented by three capital English letters and represents a node, the messages are separated by symbols of |, &, \\ and the like, different attributes are represented among the separators, the values are the attribute values, and the nodes have certain relations. In the above data, if a part in which basic information on inpatients is mainly used, in the parsing process, basic information on patients is mainly obtained from a combination of prefix characters PID of the information and | symbols in the message, and attributes of the information on the patients are assigned, a patient visit number, patientNo, is defined as 00015788260, a patient visit card number, cardNo, is defined as 0000377419, a patient name, li huimin, a patient visit time, is defined as 20151204102400 (which can be converted into a standard time, 2015.12.410:24:00), and a patient gender, sex, is M (male).
And S130, acquiring a set of second-format medical data templates, wherein the second-format medical data templates comprise nodes, relations among the nodes and node attributes.
Specifically, in the present embodiment, the HL7V3 format is used as a specific example of medical data in the second format, and the HL7V3 format is a tree-like and hierarchical structure in the XML format, and is highly readable. Moreover, the node attribute of the data in the format is very comprehensive and is far more than that of the corresponding HL7V2 format. But different nodes, HL7V2 format data of the relationship between the nodes, which have one-to-one correspondence, may have HL7V3 format data templates, which all include the nodes, the relationship between the nodes, and the node attributes, but the attribute values of the node attributes are default. These different HL7V3 format data templates are grouped together to form corresponding groups.
S150, acquiring the mapping relation between the set of the first-format medical data template and the set of the second-format medical data template.
Specifically, the templates in the HL7V2 and HL7V3 formats have a one-to-one mapping relationship, and here, the mapping relationship between the corresponding set of HL7V2 templates and the set of HL7V3 templates can be obtained.
S170: and obtaining a second format medical data template corresponding to the first format medical data according to the mapping relation.
Specifically, the method can determine which HL7V2 format template the HL7V2 format data belongs to, and then find the corresponding HL7V3 format template according to the mapping relationship.
S190: and extracting the attribute value of the medical data in the first format according to the object, and assigning values to the corresponding medical data template in the second format to obtain the medical data in the second format.
Specifically, the attribute values of the corresponding attributes in the HL7V2 format data are extracted according to the selected attributes in the object, and then the attribute values are assigned to the HL7V3 format template, so that the format data of HL7V3 corresponding to the HL7V2 format data is obtained. Preferably, the attributes in the object can be manually added according to actual needs.
Referring to fig. 2, in the second embodiment, compared with the first embodiment, the step S170 includes the following steps:
and S171, setting the node marking bit in the second format medical data template as a default value.
Specifically, a node flag bit is included in the HL7V3 format template, and is used for marking a corresponding node of the corresponding HL7V2 format data, and the node flag bit is set as a default value.
And S173, traversing the nodes of the medical data in the first format, and changing the numerical values of the corresponding node marking bits of the medical data template in the second format according to the nodes of the medical data in the first format and the relationship among the nodes.
Specifically, when the traversed node has a corresponding node in the HL7V2 format data, the node is marked with a bit, which indicates that the node needs to be used in the HL7V3 format. In the process of traversing HL7V2 format data, the relationship between the nodes of HL7V3 format data is changed simultaneously.
And S175, obtaining a corresponding medical data template in a second format.
Specifically, when a node in the HL7V3 format data template is not a default value, the node is required, and when the node is still the default value, the corresponding node is not required, and can be discarded, so that a simplified HL7V3 format data template is formed. Therefore, in the subsequent data processing process, the size of the data volume can be reduced, and the conversion efficiency is further improved.
Referring to fig. 3, in the third embodiment, compared with the first embodiment, the step S190 includes the following steps:
s191: attribute values of node attributes in the first-format medical data are acquired.
Specifically, after the HL7V3 format template corresponding to the HL7V2 format data is obtained, all the attribute values of the node attributes in the HL7V2 format data are extracted.
S193: attribute values of node attributes in the first-format medical database are extracted from the subject.
Specifically, the corresponding attribute values in the HL7V2 format data are extracted according to the required node attributes in the object.
S195: and assigning the extracted attribute value to obtain the corresponding attribute of the second database template.
Specifically, the attribute values proposed in the H7V2 format data are assigned to the HL7V3 format template to obtain the corresponding HL7V3 format data.
Referring to fig. 4, in the fourth embodiment, compared with the first embodiment, the step S170 includes the following steps:
s1711: nodes of the first format medical data are traversed.
Specifically, the nodes of the HL7V2 format data are traversed, so as to determine the format category of the HL7V2 format data.
S1713: and acquiring a corresponding second-format medical data template according to the mapping relation and the nodes of the first-format medical data.
Specifically, the HL7V2 format template corresponding to the HL7V2 format data can be determined according to the result of the traversal, and then the corresponding HL7V3 format template can be obtained according to the mapping relationship.
Referring to fig. 5, in the fifth embodiment, compared with the first embodiment, the step S170 includes the following steps:
s1712: and acquiring the mapping of the serial number of the medical data template with the first format and the serial number of the medical data template with the second format.
Specifically, because the HL7V2 and HL7V3 format templates are in a one-to-one correspondence relationship, the format data are numbered directly in the using process, so that the data can be known to belong to the data template of that type, for example, when a certain HL7V2 format data is numbered as V2001, the corresponding HL7V 3526 format template can be known to be the 001 th template, and the HL7V3 format template corresponding to the former template is also the 001 th template, so that the acquisition of the corresponding template in the following steps is facilitated, and the data processing amount is greatly reduced.
S1714: and obtaining the template number of the medical data in the second format according to the template number of the medical data in the first format, and generating a corresponding medical data template in the second format.
Specifically, from the number mapping obtained in the above step, the HL7V3 format template is directly obtained from the number of the HL7V2 format data.
Of course, it will be understood by those skilled in the art that the present embodiment is described with only the conversion of data in the HL7V2 and HL7V3 formats, but other data with nodes, relationships between nodes, node attributes, and attribute values of the node attributes can be directly converted by the method disclosed in the present invention.
Various other changes and modifications to the above-described embodiments and concepts will become apparent to those skilled in the art from the above description, and all such changes and modifications are intended to be included within the scope of the present invention as defined in the appended claims.

Claims (2)

1. A medical data standard conversion method for converting medical data in different formats, comprising the steps of:
acquiring medical data in a first format, wherein the medical data in the first format comprises nodes, relationships among the nodes, node attributes and attribute values of the node attributes;
acquiring a set of second-format medical data templates, wherein the second-format medical data templates comprise nodes, relationships among the nodes and node attributes;
acquiring a mapping relation between a set of first format medical data templates and a set of second format medical data templates;
obtaining a second format medical data template corresponding to the first format medical data according to the mapping relation;
extracting the attribute value of the medical data in the first format according to the object, and assigning values to the corresponding medical data template in the second format to obtain the medical data in the second format;
the first format medical data is HL7V2 format data, the second format medical data is HL7V3 format data, the second format medical data template further comprises a node marking bit, and the step of obtaining the second format medical data template corresponding to the first format medical data according to the mapping relation comprises the following steps:
setting the node marking bit in the second format medical data template as a default value;
traversing nodes of the medical data in the first format, and changing the numerical values of the corresponding node marking bits of the medical data template in the second format and the relationship among the nodes according to the nodes of the medical data in the first format;
discarding the nodes with the node marking positions still being default values to obtain corresponding second format medical data templates;
or acquiring the mapping between the serial number of the medical data template with the first format and the serial number of the medical data template with the second format;
obtaining a second-format medical data template number according to the template number of the first-format medical data, and generating a corresponding second-format medical data template;
or, traversing nodes of the first format medical data;
acquiring a corresponding second-format medical data template according to the mapping relation and the nodes of the first-format medical data;
the step of extracting the attribute value of the medical data in the first format according to the object and assigning a value to the corresponding medical data template in the second format to obtain the medical data in the second format comprises the following steps:
acquiring attribute values of node attributes in the medical data in the first format;
extracting attribute values of node attributes in the first format medical data according to the object;
and assigning the extracted attribute values to obtain the corresponding attributes of the medical data template in the second format.
2. The medical data standard conversion method according to claim 1, wherein the subject content is manually added.
CN201611266224.2A 2016-12-31 2016-12-31 Medical data standard conversion method Active CN107015949B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611266224.2A CN107015949B (en) 2016-12-31 2016-12-31 Medical data standard conversion method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611266224.2A CN107015949B (en) 2016-12-31 2016-12-31 Medical data standard conversion method

Publications (2)

Publication Number Publication Date
CN107015949A CN107015949A (en) 2017-08-04
CN107015949B true CN107015949B (en) 2020-11-06

Family

ID=59439719

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611266224.2A Active CN107015949B (en) 2016-12-31 2016-12-31 Medical data standard conversion method

Country Status (1)

Country Link
CN (1) CN107015949B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107833598A (en) * 2017-11-28 2018-03-23 深圳市帝迈生物技术有限公司 Laboratory information system and data processing method
CN108595391A (en) * 2018-04-28 2018-09-28 中国建设银行股份有限公司 A kind of data information conversion method and device
CN108986919A (en) * 2018-07-19 2018-12-11 清华大学 A kind of processing method and processing device of medical data
CN110751994B (en) * 2019-08-28 2022-04-01 云知声智能科技股份有限公司 Differential display method and system for medical record template
CN110851503B (en) * 2019-11-19 2022-07-05 天津开心生活科技有限公司 Medical mode conversion identification method and device, electronic equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102609506A (en) * 2012-02-03 2012-07-25 杭州杰唐信息技术有限公司 Method for generating HL7 (Health Level 7) message through mapping
CN103559322A (en) * 2013-11-22 2014-02-05 方正国际软件有限公司 Document format conversion method
CN103577611A (en) * 2013-11-25 2014-02-12 方正国际软件有限公司 Data unifying device and data unifying method
CN105678671A (en) * 2015-12-29 2016-06-15 北京嘉和美康信息技术有限公司 Method and apparatus for generation of electronic medical record, mobile terminal and electronic medical record system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7483924B2 (en) * 2005-01-18 2009-01-27 International Business Machines Corporation Methodology for mapping HL7 V2 standards to HL7 V3 standards

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102609506A (en) * 2012-02-03 2012-07-25 杭州杰唐信息技术有限公司 Method for generating HL7 (Health Level 7) message through mapping
CN103559322A (en) * 2013-11-22 2014-02-05 方正国际软件有限公司 Document format conversion method
CN103577611A (en) * 2013-11-25 2014-02-12 方正国际软件有限公司 Data unifying device and data unifying method
CN105678671A (en) * 2015-12-29 2016-06-15 北京嘉和美康信息技术有限公司 Method and apparatus for generation of electronic medical record, mobile terminal and electronic medical record system

Also Published As

Publication number Publication date
CN107015949A (en) 2017-08-04

Similar Documents

Publication Publication Date Title
CN107015949B (en) Medical data standard conversion method
CN107491555B (en) Knowledge graph construction method and system
CN105528294B (en) The method and system that a kind of interface testing use-case automatically generates
CN108600192A (en) A kind of DBC document analysis and message analysis method based on regular expression
CN107885760A (en) It is a kind of to represent learning method based on a variety of semantic knowledge mappings
CN108009346B (en) Method for quickly drawing SVG format map according to DXF format engineering drawing
CN105912570B (en) Resume critical field abstracting method based on hidden Markov model
CN101504662A (en) Data conversion method and apparatus
CN106776495B (en) Document logic structure reconstruction method
CN103473289A (en) Device and method for completing communication addresses
CN114338855B (en) Method for realizing parsing and generating HL7, FHIR standard and custom XML message
CN107315817B (en) Electronic drawing text matching method and device, storage medium and computer equipment
CN112560468B (en) Meteorological early warning text processing method, related device and computer program product
CN107220274A (en) One kind visualization data-interface fairground implementation method
CN107608951A (en) Report form generation method and system
CN103365894B (en) A kind of font format conversion method and device
CN109524068A (en) A kind of disease symptoms extracting method based on AC automatic machine
CN114238575A (en) Document parsing method, system, computer device and computer-readable storage medium
CN110909168A (en) Knowledge graph updating method and device, storage medium and electronic device
CN103927168B (en) A kind of method and device of object-oriented data model persistence
CN108241658A (en) A kind of logging mode finds method and system
CN112181949A (en) Online data modeling method and device
CN108366050A (en) A kind of common communication protocol processing method
EP2771813A1 (en) Aligning annotation of fields of documents
CN107038199A (en) A kind of drawing practice and device

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
CB02 Change of applicant information
CB02 Change of applicant information

Address after: Room 1706, West building, Wanda Plaza, 188 Shihu West Road, Wuzhong District, Suzhou City, Jiangsu Province

Applicant after: SUZHOU HUANYA DATA TECHNOLOGY Co.,Ltd.

Address before: 215000 Jiangsu city of Suzhou province Wuzhong District Su Li Road No. 81

Applicant before: SUZHOU HUANYA DATA TECHNOLOGY Co.,Ltd.

CP03 Change of name, title or address
CP03 Change of name, title or address

Address after: 215000 17 / F, Wanda Plaza, 188 Shihu West Road, Wuzhong District, Suzhou City, Jiangsu Province

Patentee after: Huanya Data Technology Co.,Ltd.

Address before: 215000 room 1706, West building, Wanda Plaza, 188 Shihu West Road, Wuzhong District, Suzhou City, Jiangsu Province

Patentee before: SUZHOU HUANYA DATA TECHNOLOGY Co.,Ltd.