...
Expand | ||
---|---|---|
| ||
You’ll notice the Translator contains a simple script and sample HL7 data that demonstrates the workflow for converting HL7 v2.4 ADT A01 messages to v2.7 ADT A01 messages:
You can cycle through the provided sample messages to see how the component handles different message types. This component also demonstrates https://interfaceware.atlassian.net/wiki/x/g4Cxog by ensuring any additional sample messages will not be stored in the commit history. The sample .gitignore file can be viewed in the component’s Bitbucket repository. |
Expand | ||
---|---|---|
| ||
Since this is a feeder component, you’ll need a source component (ex. https://interfaceware.atlassian.net/wiki/x/FwBTog) to send messages to it and a destination component (ex. https://interfaceware.atlassian.net/wiki/x/V4CVog) that it can pass messages on for further processing or sending to a downstream system. |
...
Expand | ||
---|---|---|
| ||
The ADTA01 mapping module contains a main BuildMessage function that takes the provided out_message_type (ex. ADTA01) and the outbound VMD file (out_vmd calls the matching mapping module in HL7MAP/mappings (ex. HL7MAP/mappings/ADTA01.lua). It passes the provided outbound VMD file and inbound message to the mapping ) to build the outbound message. This function also handles the mapping for each segment. Simple mappings are handled by using the node.mapTree function at the segment level while complex mappings are handled by local mapping functions that may perform additional transformations or mappings. |
Expand | ||
---|---|---|
| ||
HL7MAPcodemaps contains the codemap for mapping the inbound HL7 version codes to the outbound HL7 version codes. In the example script, codemaps for Organ Donor, Administrative Sex, Segment Action, and Marital Status codes codesets from v2.4 to v2.7 are provided. |
...
Expand | ||
---|---|---|
| ||
Update HL7MAPcodemaps to the specific codesets and HL7 versions your messages will be using. |
Expand | ||
---|---|---|
| ||
Update or add message-specific filter modules in the HL7MAP/filters folder. The modules should be named [HL7_Type].lua. Messages with an inbound HL7 message type (ex. ADTA01) that matches the name of a filtering module (ex. ADTA01.lua) will be filtered by that module. Default All other messages will be filtered by the default filter conditions can be customized in HL7MAP/filters/default.lua, which can also be further customized. |
Expand | ||
---|---|---|
| ||
Update or add mapping modules in the HL7MAP/mappings folder. The modules should be named [HL7_Type].lua. By default, only messages with an outbound HL7 message type (ex. ADTA01) that matches the name of a mapping module (ex. ADTA01.lua) will be mapped. All other messages will be pushed downstream as-isin their original form. |