Parse an X12 message

Verified
Added by iNTERFACEWARE

How to parse an X12 message using x12.parse()

Source Code
local Msg = x12.parse{vmd='example/demo.vmd', data=Data}
Description
How to parse an X12 message using x12.parse()
Usage Details

Parsing an X12 message is simple, just use the use the x12.parse() function.

X12 uses a very similar workflow to HL7 parsing, use the x12.parse() to parse and x12.message() to create an empty (outgoing) message.

How to use the snippet:

  • Paste the code into a Filter or To Translator script
  • Change the vmd parameter if you want to use a different VMD file
  • Usually the data parameter does not need to be changed