X12: Parsing and Generation


X12: Parsing and Generation: This channel shows a basic example of parsing a 270 transaction and generating a 271 output transaction. Iguana makes processing X12 messages very straightforward, just like all the other protocols we support.

Iguana is a proven platform for X12 claims processing. Partners like Transunion process literally millions of X12 transactions with Iguana on a daily basis. We have a lot of experience with clients using Iguana for X12 processing.

You may find the vmd files for the X12 4010 and X12 5010 HIPAA Transactions useful.

If you have any questions please contact us at support@interfaceware.com.

Using the Code [top]

  • Import the X12: Parsing and Generation channel from the Builtin: Iguana Protocols repository
  • Experiment with the code to find out how it works
  • Adapt the code to your own requirements
  • Use the x12.parse{} function to parse an X12 message
  • Use the x12.message{} function to create a skeleton message
  • Use the various mapping function in the local mapping module to populate the skeleton
  • Interactive scripting help is included for this module

This is the github code for the main module:

How it works [top]

Processing X12 is quite straightforward there are a few simple steps:

  • To parse an X12 message is very simple just use the x12.parse{} function
  • Generating messages is a little more complex:
    • First create an empty skeleton message with x12.message{}
    • Second we add a Functional Group with map.fillFuncGroup()
    • Then we create a Transaction Set (with header and trailer) using map.createTransactionSet()
    • Next we map Payer data with map.createTransactionSet()
    • Next we map Provider data with map.mapProvider()
    • Then we count the Transaction Set segments and write it to the SE1 field
    • Finally we convert our X12 270 message to a string and convert the delimiters to X12 delimiters

More information [top]


Leave A Comment?

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.