CN115935946B - Analytical mapping processing method and device for HL7V3 standard/FHIR standard - Google Patents

Analytical mapping processing method and device for HL7V3 standard/FHIR standard Download PDF

Info

Publication number
CN115935946B
CN115935946B CN202211550012.2A CN202211550012A CN115935946B CN 115935946 B CN115935946 B CN 115935946B CN 202211550012 A CN202211550012 A CN 202211550012A CN 115935946 B CN115935946 B CN 115935946B
Authority
CN
China
Prior art keywords
xpath
data
node
mapping
target 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
CN202211550012.2A
Other languages
Chinese (zh)
Other versions
CN115935946A (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 Yanhua Western Health And Medical Information Industry Research Institute Co ltd
Original Assignee
Chengdu Yanhua Western Health And Medical Information Industry Research Institute 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 Yanhua Western Health And Medical Information Industry Research Institute Co ltd filed Critical Chengdu Yanhua Western Health And Medical Information Industry Research Institute Co ltd
Priority to CN202211550012.2A priority Critical patent/CN115935946B/en
Publication of CN115935946A publication Critical patent/CN115935946A/en
Application granted granted Critical
Publication of CN115935946B publication Critical patent/CN115935946B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Abstract

The analytical mapping processing method and device of HL7V3 standard/FHIR standard comprises mapping relation configuration and data conversion; the mapping relation configuration comprises the following steps: recursively analyzing the imported source data template and target data template to obtain a source data XPath tree set and a target data XPath tree set; performing cyclic node mapping and value node mapping according to the set to obtain cyclic node XPath mapping information and value node XPath mapping information of the source data and the target data; the data conversion includes: carrying out format verification on input source data, and analyzing the source data into corresponding XML document objects; generating a complete structure target data template with a circulating structure; obtaining a target XPath tree set with a mapping relation; through detection, acquiring an XPath path of target data, and replacing a value of an XPath node corresponding to a complete structure target data template to acquire the target data; if not, the exception list is put in. Structural data of HL7V3, FHIR and other standards can be rapidly analyzed, and modification and maintenance are facilitated.

Description

Analytical mapping processing method and device for HL7V3 standard/FHIR standard
Technical Field
The application belongs to the technical field of computers, in particular relates to a medical data processing technology, and particularly relates to an analytical mapping processing method and device of HL7V3 standard/FHIR standard.
Background
At present, the national interconnection medical interaction specification mainly uses the HL7V3 standard and the FHIR standard, and most medical data manufacturers use a processing method of analytic mapping, such as: using XSD script or code build, some ESB tools are available on the market with operations to transform the map.
The original comparison method is to use XSL, and the method needs writing during development and is not intuitive to maintain; some tools can provide maintenance interfaces, but in the face of loops and logic decisions, code script is needed to complete, and page usage requires significant learning costs and rich development experience, such as the need to write a groyy script of nearly 3000 lines to complete parsing of a shared document of the HL7V3 protocol, and is not easy to use and maintain. Therefore, improvements are needed.
Disclosure of Invention
In order to solve the defects in the prior art, the application provides the analysis mapping processing method and the device for the HL7V3 standard/FHIR standard, which can rapidly analyze the HL7V3 and FHIR and the complex standard constructed by the user based on xml, save complex HL7V3/FHIR format data to simple data conversion operation configuration and facilitate modification and maintenance.
In order to achieve the above object, the present application adopts the following technique:
a resolution mapping processing method of HL7V3 standard/FHIR standard comprises the steps of mapping relation configuration and data conversion.
Wherein, the mapping relation configuration comprises:
respectively carrying out recursion analysis on the imported HL7V3 source data template and the imported HL7V3 target data template to respectively obtain a source data XPath tree set and a target data XPath tree set;
performing data verification, namely verifying the data basic length, the value range, the regular specification and the base number in the source data XPath tree set and the target data XPath tree set, and caching after the verification is qualified;
and performing cyclic node mapping and value node mapping according to the source data XPath tree set and the target data XPath tree set, obtaining cyclic node XPath mapping information and value node XPath mapping information of the source data and the target data, and caching.
The data conversion includes:
carrying out format verification on source data input in an HTTP protocol mode, and analyzing the input source data into corresponding XML document objects through an XML analysis package; the input source data comprises structural data and a unique locator of a conversion scheme, wherein the structural data is HL7V3 standard, FHIR standard or XML-based standard;
according to the unique locator, corresponding circulating node XPath mapping information, value node XPath mapping information, source data XPath tree sets and target data XPath tree sets are obtained from the cache;
constructing corresponding nodes of the acquired target data XPath tree set according to corresponding nodes of the XML document object based on the acquired circulating node XPath mapping information, and generating a complete structure target data template with a circulating structure;
contracting the obtained target data XPath tree set based on the obtained value node XPath mapping information to obtain a target XPath tree set with a mapping relation;
based on XML document object and the obtained source data XPath tree set, carrying out data structure detection, circulating the source data XPath tree set, obtaining the value of the corresponding node from the XML document object through XPath, and carrying out detection of length and value range:
if the detection is passed, acquiring an XPath path of the target data through a target XPath tree set with a mapping relation, and replacing a value of an XPath node corresponding to a target data template with a complete structure to acquire the target data;
if the detection is not passed, placing an abnormal list;
if the abnormal list is not empty, the output detection is not passed, the abnormal list details are returned, if the abnormal list is empty, the target data is output as a text, and the target data is returned to the request end in an HTTP response.
Further, when recursive analysis is performed:
selecting an imported HL7V3 source data template/HL 7V3 target data template to automatically generate XPath, supporting Namespace added with XML to carry out XML analysis, configuring node screening conditions, and carrying out recursion analysis on XML on bottom logic to obtain XPath paths corresponding to each XML node;
comparing whether the current XPath path is repeated in the whole tree, if so, judging whether all sub-nodes of the downward three layers have the attribute matched with the node screening condition, if so, adding the attribute to the XPath path to obtain the XPath path with the screening condition as the unique path;
after obtaining the XPath path of the unique path, putting the XPath tree set according to the hierarchical relation when the Xml is analyzed, and forming a source data XPath tree set/a target data XPath tree set.
Further, the data of the key nodes are mapped through the value node mapping, and the corresponding parent nodes are mapped through the cyclic node mapping.
A resolution mapping processing device of HL7V3 standard/FHIR standard comprises a mapping relation configuration module and a data conversion module.
Wherein, the mapping relation configuration module comprises:
the recursion analysis unit is used for recursion analysis of the imported HL7V3 source data template and the imported HL7V3 target data template respectively to obtain a source data XPath tree set and a target data XPath tree set respectively;
the verification unit is used for carrying out data verification, verifying the basic length, the value range, the regular specification and the base number of the data in the source data XPath tree set and the target data XPath tree set, and caching after the verification is qualified;
and the mapping unit is used for carrying out cyclic node mapping and value node mapping according to the source data XPath tree set and the target data XPath tree set, obtaining cyclic node XPath mapping information and value node XPath mapping information of the source data and the target data, and caching.
The data conversion module comprises:
the input unit is used for carrying out format verification on the source data input in an HTTP protocol mode and analyzing the input source data into corresponding XML document objects through an XML analysis packet; the input source data comprises structural data and a unique locator of a conversion scheme, wherein the structural data is HL7V3 standard, FHIR standard or XML-based standard;
the acquisition unit is used for acquiring corresponding circulating node XPath mapping information, value node XPath mapping information, source data XPath tree sets and target data XPath tree sets from the cache according to the unique locator;
the circulating node configuration unit is used for constructing corresponding nodes of the acquired target data XPath tree set according to corresponding nodes of the XML document object based on the acquired circulating node XPath mapping information, and generating a complete structure target data template with a circulating structure;
the value node configuration unit is used for contracting the obtained target data XPath tree set based on the obtained value node XPath mapping information to obtain a target XPath tree set with a mapping relation;
the detection replacing unit is used for carrying out data structure detection based on the XML document object and the acquired source data XPath tree set, circulating the source data XPath tree set, obtaining the value of the corresponding node from the XML document object through the XPath path, and carrying out detection of the length and the value range:
if the detection is passed, acquiring an XPath path of the target data through a target XPath tree set with a mapping relation, and replacing a value of an XPath node corresponding to a target data template with a complete structure to acquire the target data;
if the detection is not passed, placing an abnormal list;
and the output unit is used for returning the details of the abnormal list when the abnormal list is not empty, outputting the target data as a text when the abnormal list is empty, and returning the target data to the request end in an HTTP response.
Further, the recursion analysis unit is used for automatically generating XPath for the imported HL7V3 source data template/HL 7V3 target data template selection, supporting Namespace added with XML to carry out XML analysis, configuring node screening conditions, and using recursion analysis XML for the bottom logic to obtain XPath paths corresponding to each XML node; and comparing whether the current XPath path is repeated in the whole tree, if so, judging whether all child nodes of the downward three layers have attributes matched with node screening conditions, if so, adding the attributes to the XPath path to obtain the XPath path with the screening conditions as a unique path; and the method is used for putting the XPath tree set into the XPath tree set according to the hierarchical relationship when the Xml is analyzed after the XPath path of the unique path is obtained, so as to form a source data XPath tree set/a target data XPath tree set.
Further, the mapping unit is configured to map the data of the key node through value node mapping, and map the corresponding parent node through cyclic node mapping.
An electronic device, comprising: at least one processor and memory; wherein the memory stores computer-executable instructions; executing computer-executable instructions stored in the memory on the at least one processor, causing the at least one processor to perform the analytical mapping processing method of the HL7V3 standard/FHIR standard.
A computer readable storage medium, on which a computer program is stored, which when being executed by a processor controls a device in which the storage medium is located to perform the analytical mapping processing method of HL7V3 standard/FHIR standard.
The application has the beneficial effects that:
1. the HL7V3 and FHIR and the complex standard established based on xml can be rapidly analyzed, so that complex HL7V3/FHIR format data is saved to simple data conversion operation configuration, and modification and maintenance are facilitated;
2. the data verification is carried out on the source data according to the requirement, the target data structure is rapidly generated, a code foundation is not needed, the operation is simply configured, and standard comparison is carried out through the configuration of a visual interface;
3. the technical scheme is that codes or scripts are used for mapping the circulating data, a plurality of circulating node maps are added in the mapping link, parent nodes of the circulating data are compared in advance through configuration of the circulating node maps, and target node data with circulating information are pre-generated; the requirement of cyclic data mapping is met, and the support source data cyclic node rapidly generates the target data cyclic node.
Drawings
Fig. 1 is a flowchart of a method of resolving map processing according to an embodiment of the present application.
FIG. 2 is an exemplary schematic diagram of performing recursive parsing in accordance with an embodiment of the present application.
FIG. 3 is an exemplary diagram of tree set contraction in accordance with an embodiment of the present application.
Fig. 4 is a block diagram of a mapping processing apparatus according to an embodiment of the present application.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present application more apparent, the following detailed description of the embodiments of the present application will be given with reference to the accompanying drawings, but the described embodiments of the present application are some, but not all embodiments of the present application.
In one aspect of the embodiment of the application, a method for processing resolution mapping of HL7V3 standard/FHIR standard is provided, as shown in FIG. 1, comprising the steps of mapping relation configuration and data conversion.
Specifically, the mapping relation configuration includes the following detailed steps:
s11, importing an HL7V3 data template, and automatically analyzing:
and respectively carrying out recursion analysis on the imported HL7V3 source data template and the HL7V3 target data template to respectively obtain a source data XPath tree set and a target data XPath tree set.
Specifically, when the imported HL7V3 source data template/HL 7V3 target data template is selected to automatically generate XPath, namespace added with XML is supported to carry out XML analysis, because the source XML data structure is complex, the direct analysis can generate the same XPath path data, node screening conditions can be configured, the bottom logic uses recursively to analyze XML, the obtained XPath path corresponding to each XML node is compared with whether the current XPath path is repeated in the whole tree, if so, if all child nodes of the lower three layers have attributes matched with screening node conditions, screening attributes are added to XPath to obtain the XPath path with the screening conditions, as shown in figure 2, the XPath path with the unique path is obtained, and the XPath tree set is put into the XPath tree set according to the hierarchical relation when Xml is analyzed, so that the source data XPath tree set and the target data XPath tree set are obtained, and the target data XPath tree set is used for data construction in the later period.
Although there are many tools or methods for quickly analyzing XML from the general technical layer, the data similar to HL7V3 standard has multiple-attribute multi-node characteristics, and XPath analyzed from conventional data cannot meet the mapping requirement of subsequent nodes without screening conditions. In the step, the comparison calculation of the peer node, the child node and the grandchild node is repeatedly carried out in the XML data recursion process so as to construct a unique XPath node, namely the XPath path of the unique path.
S12, checking data, namely checking the data basic length, the value range, the regular specification and the base number in the source data XPath tree set and the target data XPath tree set, and caching after the data are checked to be qualified so as to be called for the data conversion step.
S13, data mapping:
and performing cyclic node mapping and value node mapping according to the source data XPath tree set and the target data XPath tree set, mapping the data of the key nodes through the value node mapping, mapping the corresponding father nodes through the cyclic node mapping, obtaining cyclic node XPath mapping information and value node XPath mapping information of the source data and the target data, and caching the cyclic node XPath mapping information for calling in the data conversion step.
Specifically, the data conversion includes the following detailed steps:
s21, inputting source data:
carrying out format verification on source data input in an HTTP protocol mode, analyzing the input source data into corresponding XML document objects through an XML analysis packet, and simultaneously obtaining data information in a preloading cache through scheme coding, wherein the data information comprises an XPath tree set and mapping information generated in a mapping relation configuration step; the input source data comprises structural data and a unique locator of a conversion scheme, wherein the structural data is HL7V3 standard, FHIR standard or other complex structural data constructed based on XML;
s22, mapping information and a data set are acquired:
and acquiring corresponding circulating node XPath mapping information, value node XPath mapping information, source data XPath tree sets and target data XPath tree sets from the preloaded data information according to the unique locator.
S23, mapping configuration, including cyclic node XPath configuration and value node XPath configuration:
loop node XPath configuration:
and constructing corresponding nodes of the acquired target data XPath tree set according to corresponding nodes of the XML document object based on the acquired circulating node XPath mapping information to generate a complete structure target data template with a circulating structure, wherein the number of corresponding circulating nodes is generated except that value node mapping is not performed, and the number is equivalent to a 'complete structure target data template' which is only a node without a replacement value.
Value node XPath configuration:
in the mapping operation, not all nodes will map, if the whole Xpath tree set is traversed, the time consumption is large, so the mapping result is based in advance, therefore in this step, the obtained target data Xpath tree set is contracted based on the obtained value node Xpath mapping information, and the target Xpath tree set with a mapping relation is obtained, as shown in fig. 3, after the tree is contracted, the time consumption of the subsequent cycle is reduced.
S24, data checking and target data value replacement:
by this step, four data messages have been obtained: the method comprises the steps of inputting XML document objects of source data, a source data XPath tree set, a complete structure target data template and a target XPath tree set with a mapping relation. When the step is carried out, data structure detection is carried out based on the XML document object and the acquired source data XPath tree set, the source data XPath tree set is circulated, the value of the corresponding node is obtained from the XML document object through the XPath path, and the detection of the length and the value range is carried out:
if the detection is passed, acquiring an XPath path of the target data through a target XPath tree set with a mapping relation, and replacing a value of an XPath node corresponding to a target data template with a complete structure to acquire the target data;
if the detection is not passed, the abnormal list is put in.
S25, outputting target data:
if the abnormal list is not empty, the output detection is not passed, and the details of the abnormal list are returned;
and if the abnormal list is empty, outputting the target data as text, and returning the HTTP response to the request end.
By the method, other complicated standards constructed based on xml can be acquired for HL7V3/FHIR to quickly analyze, source data is subjected to data verification according to requirements, a target data structure is quickly generated, a code foundation is not needed, operation is simply configured, and standard comparison can be performed through a visual interface.
In another aspect of the embodiment of the present application, an apparatus for processing resolution mapping of HL7V3 standard/FHIR standard is provided, as shown in fig. 4, and includes a mapping relationship configuration module and a data conversion module.
Specifically, the mapping relation configuration module comprises a recursion analysis unit, a verification unit and a mapping unit. The data conversion module comprises an input unit, an acquisition unit, a circulating node configuration unit, a value node configuration unit, a detection replacement unit and an output unit.
The recursion analysis unit performs recursion analysis on the imported HL7V3 source data template and the HL7V3 target data template respectively to obtain a source data XPath tree set and a target data XPath tree set. And the verification unit performs data verification, verifies the data basic length, the value range, the regular standard and the base number in the source data XPath tree set and the target data XPath tree set, and caches the data after the verification is qualified. And the mapping unit performs cyclic node mapping and value node mapping according to the source data XPath tree set and the target data XPath tree set, obtains cyclic node XPath mapping information and value node XPath mapping information of the source data and the target data, and caches the cyclic node XPath mapping information and the value node XPath mapping information.
The input unit performs format verification on the source data input in an HTTP protocol mode, and analyzes the input source data into corresponding XML document objects through an XML analysis package; the input source data comprises structural data and a unique locator of a conversion scheme, wherein the structural data is HL7V3 standard, FHIR standard or XML-based standard. And the acquisition unit acquires corresponding circulating node XPath mapping information, value node XPath mapping information, source data XPath tree sets and target data XPath tree sets from the cache according to the unique locator.
The circulating node configuration unit constructs corresponding nodes of the acquired target data XPath tree set according to corresponding nodes of the XML document object based on the acquired circulating node XPath mapping information, and generates a complete structure target data template with a circulating structure. And the value node configuration unit contracts the obtained target data XPath tree set based on the obtained value node XPath mapping information to obtain a target XPath tree set with a mapping relation.
The detection replacing unit carries out data structure detection based on the XML document object and the acquired source data XPath tree set, circulates the source data XPath tree set, obtains the value of the corresponding node from the XML document object through the XPath path, and carries out detection of the length and the value range:
if the detection is passed, acquiring an XPath path of the target data through a target XPath tree set with a mapping relation, and replacing a value of an XPath node corresponding to a target data template with a complete structure to acquire the target data;
if the detection is not passed, placing an abnormal list;
the output unit is used for returning the details of the abnormal list when the abnormal list is not empty, outputting the target data as text when the abnormal list is empty, and returning the HTTP response to the request terminal.
The implementation of the embodiment can save complex HL7V3 format data to simple data conversion operation configuration, and is convenient for modification and maintenance; meanwhile, the requirement of cyclic data mapping is met, the source data cyclic node is supported to quickly generate the target data cyclic node, data quality inspection can be provided, and the base inspection function performs data structure and data quality inspection on the source data.
In still another aspect of the embodiment of the present application, there is provided an electronic device including: at least one processor and memory; wherein the memory stores computer-executable instructions; executing computer-executable instructions stored in the memory at the at least one processor causes the at least one processor to perform the analytical mapping processing method of HL7V3 standard/FHIR standard as described in the previous embodiments.
In yet another aspect of the embodiments of the present application, a computer readable storage medium is provided, on which a computer program is stored, which when executed by a processor controls a device on which the storage medium is located to perform the method for performing the mapping processing of HL7V3 standard/FHIR standard described in the previous embodiments.
The above description is only of the preferred embodiments of the present application and is not intended to limit the application, and it will be apparent to those skilled in the art that various modifications and variations can be made in the present application without departing from the spirit and scope of the application.

Claims (6)

1. A method for analyzing and mapping HL7V3 standard/FHIR standard is characterized by comprising the steps of mapping relation configuration and data conversion;
the mapping relation configuration comprises the following steps:
recursively analyzing the imported HL7V3 source data template and the HL7V3 target data template respectively: selecting an imported HL7V3 source data template/HL 7V3 target data template to automatically generate XPath, supporting Namespace added with XML to carry out XML analysis, configuring node screening conditions, and carrying out recursion analysis on XML on bottom logic to obtain XPath paths corresponding to each XML node; comparing whether the current XPath path is repeated in the whole tree, if so, judging whether all sub-nodes of the downward three layers have the attribute matched with the node screening condition, if so, adding the attribute to the XPath path to obtain the XPath path with the screening condition as the unique path; after obtaining the XPath path of the unique path, putting an XPath tree set according to the hierarchical relation when the Xml is analyzed to form a source data XPath tree set/a target data XPath tree set;
performing data verification, namely verifying the data basic length, the value range, the regular specification and the base number in the source data XPath tree set and the target data XPath tree set, and caching after the verification is qualified;
performing cyclic node mapping and value node mapping according to the source data XPath tree set and the target data XPath tree set to obtain cyclic node XPath mapping information and value node XPath mapping information of the source data and the target data, and caching the cyclic node XPath mapping information and the value node XPath mapping information;
the data conversion includes:
carrying out format verification on source data input in an HTTP protocol mode, and analyzing the input source data into corresponding XML document objects through an XML analysis package; the input source data comprises structural data and a unique locator of a conversion scheme, wherein the structural data is HL7V3 standard, FHIR standard or XML-based standard;
according to the unique locator, corresponding circulating node XPath mapping information, value node XPath mapping information, source data XPath tree sets and target data XPath tree sets are obtained from the cache;
constructing corresponding nodes of the acquired target data XPath tree set according to corresponding nodes of the XML document object based on the acquired circulating node XPath mapping information, and generating a complete structure target data template with a circulating structure;
contracting the obtained target data XPath tree set based on the obtained value node XPath mapping information to obtain a target XPath tree set with a mapping relation;
based on XML document object and the obtained source data XPath tree set, carrying out data structure detection, circulating the source data XPath tree set, obtaining the value of the corresponding node from the XML document object through XPath, and carrying out detection of length and value range:
if the detection is passed, acquiring an XPath path of the target data through a target XPath tree set with a mapping relation, and replacing a value of an XPath node corresponding to a target data template with a complete structure to acquire the target data;
if the detection is not passed, placing an abnormal list;
if the abnormal list is not empty, the output detection is not passed, the abnormal list details are returned, if the abnormal list is empty, the target data is output as a text, and the target data is returned to the request end in an HTTP response.
2. The HL7V3 standard/FHIR standard analytic mapping process of claim 1, wherein the data of the key nodes are mapped by the value node mapping, and the corresponding parent nodes are mapped by the cyclic node mapping.
3. The resolution mapping processing device of the HL7V3 standard/FHIR standard is characterized by comprising a mapping relation configuration module and a data conversion module;
the mapping relation configuration module comprises:
the recursion analysis unit is used for automatically generating XPath for the imported HL7V3 source data template/HL 7V3 target data template selection, supporting Namespace added with XML to carry out XML analysis, configuring node screening conditions, and using recursion analysis XML for the bottom logic to obtain an XPath path corresponding to each XML node; and comparing whether the current XPath path is repeated in the whole tree, if so, judging whether all child nodes of the downward three layers have attributes matched with node screening conditions, if so, adding the attributes to the XPath path to obtain the XPath path with the screening conditions as a unique path; after obtaining the XPath path of the unique path, putting the XPath tree set according to the hierarchical relation when the Xml is analyzed to form a source data XPath tree set/a target data XPath tree set;
the verification unit is used for carrying out data verification, verifying the basic length, the value range, the regular specification and the base number of the data in the source data XPath tree set and the target data XPath tree set, and caching after the verification is qualified;
the mapping unit is used for carrying out cyclic node mapping and value node mapping according to the source data XPath tree set and the target data XPath tree set, obtaining cyclic node XPath mapping information and value node XPath mapping information of the source data and the target data, and caching the cyclic node XPath mapping information and the value node XPath mapping information;
the data conversion module comprises:
the input unit is used for carrying out format verification on the source data input in an HTTP protocol mode and analyzing the input source data into corresponding XML document objects through an XML analysis packet; the input source data comprises structural data and a unique locator of a conversion scheme, wherein the structural data is HL7V3 standard, FHIR standard or XML-based standard;
the acquisition unit is used for acquiring corresponding circulating node XPath mapping information, value node XPath mapping information, source data XPath tree sets and target data XPath tree sets from the cache according to the unique locator;
the circulating node configuration unit is used for constructing corresponding nodes of the acquired target data XPath tree set according to corresponding nodes of the XML document object based on the acquired circulating node XPath mapping information, and generating a complete structure target data template with a circulating structure;
the value node configuration unit is used for contracting the obtained target data XPath tree set based on the obtained value node XPath mapping information to obtain a target XPath tree set with a mapping relation;
the detection replacing unit is used for carrying out data structure detection based on the XML document object and the acquired source data XPath tree set, circulating the source data XPath tree set, obtaining the value of the corresponding node from the XML document object through the XPath path, and carrying out detection of the length and the value range:
if the detection is passed, acquiring an XPath path of the target data through a target XPath tree set with a mapping relation, and replacing a value of an XPath node corresponding to a target data template with a complete structure to acquire the target data;
if the detection is not passed, placing an abnormal list;
and the output unit is used for returning the details of the abnormal list when the abnormal list is not empty, outputting the target data as a text when the abnormal list is empty, and returning the target data to the request end in an HTTP response.
4. A device for processing resolution mapping of HL7V3 standard/FHIR standard according to claim 3, wherein the mapping unit is configured to map data of the key node through value node mapping, and map the corresponding parent node through cyclic node mapping.
5. An electronic device, comprising: at least one processor and memory; wherein the memory stores computer-executable instructions; computer-executable instructions stored in the memory are executed on the at least one processor, so that the at least one processor performs the HL7V3 standard/FHIR standard analytical mapping method according to any one of claims 1-2.
6. A computer readable storage medium having stored thereon a computer program, which when run by a processor controls a device in which the storage medium is located to perform a method of analytical mapping of HL7V3 standard/FHIR standard according to any one of claims 1-2.
CN202211550012.2A 2022-12-05 2022-12-05 Analytical mapping processing method and device for HL7V3 standard/FHIR standard Active CN115935946B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211550012.2A CN115935946B (en) 2022-12-05 2022-12-05 Analytical mapping processing method and device for HL7V3 standard/FHIR standard

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211550012.2A CN115935946B (en) 2022-12-05 2022-12-05 Analytical mapping processing method and device for HL7V3 standard/FHIR standard

Publications (2)

Publication Number Publication Date
CN115935946A CN115935946A (en) 2023-04-07
CN115935946B true CN115935946B (en) 2023-08-15

Family

ID=86556883

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211550012.2A Active CN115935946B (en) 2022-12-05 2022-12-05 Analytical mapping processing method and device for HL7V3 standard/FHIR standard

Country Status (1)

Country Link
CN (1) CN115935946B (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102073662A (en) * 2009-11-23 2011-05-25 北大方正集团有限公司 Method and system for analyzing and creating XML (Extensible Markup Language) data
CN102609506A (en) * 2012-02-03 2012-07-25 杭州杰唐信息技术有限公司 Method for generating HL7 (Health Level 7) message through mapping
CN103123650A (en) * 2013-03-06 2013-05-29 同方知网(北京)技术有限公司 Extensible markup language (XML) data bank full-text indexing method based on integer mapping
CN103559321A (en) * 2013-11-22 2014-02-05 方正国际软件有限公司 Document format conversion system
CN109474686A (en) * 2018-11-16 2019-03-15 中国银行股份有限公司 A kind of XML message processing method and processing device
CN110502667A (en) * 2018-05-16 2019-11-26 南京大学 The parsing of ODX document and generation technique based on DOM frame
CN114185981A (en) * 2021-12-10 2022-03-15 东软汉枫医疗科技有限公司 Data processing method, system and storage medium
CN114338855A (en) * 2022-03-17 2022-04-12 成都瑞华康源科技有限公司 Method for realizing parsing and generating HL7, FHIR standard and custom XML message

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070143321A1 (en) * 2005-12-16 2007-06-21 International Business Machines Corporation Converting recursive hierarchical data to relational data

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102073662A (en) * 2009-11-23 2011-05-25 北大方正集团有限公司 Method and system for analyzing and creating XML (Extensible Markup Language) data
CN102609506A (en) * 2012-02-03 2012-07-25 杭州杰唐信息技术有限公司 Method for generating HL7 (Health Level 7) message through mapping
CN103123650A (en) * 2013-03-06 2013-05-29 同方知网(北京)技术有限公司 Extensible markup language (XML) data bank full-text indexing method based on integer mapping
CN103559321A (en) * 2013-11-22 2014-02-05 方正国际软件有限公司 Document format conversion system
CN110502667A (en) * 2018-05-16 2019-11-26 南京大学 The parsing of ODX document and generation technique based on DOM frame
CN109474686A (en) * 2018-11-16 2019-03-15 中国银行股份有限公司 A kind of XML message processing method and processing device
CN114185981A (en) * 2021-12-10 2022-03-15 东软汉枫医疗科技有限公司 Data processing method, system and storage medium
CN114338855A (en) * 2022-03-17 2022-04-12 成都瑞华康源科技有限公司 Method for realizing parsing and generating HL7, FHIR standard and custom XML message

Also Published As

Publication number Publication date
CN115935946A (en) 2023-04-07

Similar Documents

Publication Publication Date Title
US11023500B2 (en) Systems and methods for code parsing and lineage detection
CN102184184B (en) Method for acquiring webpage dynamic information
CN108628748B (en) Automatic test management method and automatic test management system
CN105095067A (en) User interface element object identification and automatic test method and apparatus
CN107678943B (en) Page automatic testing method of abstract page object
CN111190929B (en) Data storage query method and device, electronic equipment and storage medium
CN113238740B (en) Code generation method, code generation device, storage medium and electronic device
CN111581920A (en) Document conversion method, device, equipment and computer storage medium
CN108664546B (en) XML data structure conversion method and device
CN114138244A (en) Method and device for automatically generating model files, storage medium and electronic equipment
CN111353095A (en) Intelligent information management system based on SEO optimization
CN110941655A (en) Data format conversion method and device
CN103853659A (en) Browser compatibility testing method and device
CN115935946B (en) Analytical mapping processing method and device for HL7V3 standard/FHIR standard
CN115221033A (en) Interface protocol testing method and device, computer readable medium and electronic equipment
CN111881043A (en) Page testing method and device, storage medium and processor
CN111508562A (en) Visual display method, device, equipment and medium of flow descriptive language
CN111143310A (en) Log recording method and device and readable storage medium
CN111563363B (en) Method for generating and analyzing document content of hypertext markup language
CN114356403A (en) Configuration data processing method, device and system based on low-code application development
CN113778886B (en) Processing method and device for test cases
CN117251384B (en) Interface automation test case generation method and system
CN116880901B (en) Application page analysis method, device, electronic equipment and computer readable medium
CN111414330B (en) Data editing method and system, data processing device and storage medium
CN113419996A (en) Method, system, equipment and medium for converting metadata file

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