Example maps

In the X12n Personal Health Record (PHR) Example, two executable maps are used to generate an X12 275 transaction with imbedded PHR data in JSON format or extract PHR data from an existing 275 transaction.

This transaction, identified currently as 007060X274, is similar to the 275 clinical attachment but with a simplified loop structure. Also, the current draft version of this implementation guide specifies HL7 CDA as the clinical payload, in this example we are using JSON.

The example contains a sample schema with the draft transaction. This schema is a simple 'ruleless' type schema with no implementation guide based rules except for any required for basic structural definition.

There are two executable maps:
  • create_275_with_PHR_data - generates a 275 with imbedded PHR data
  • extract_PHR_data_from_275 - extracts Personal Health Record data from an existing 275 transaction.

Both maps use FHIR sample claim in JSON format for the PHR data that will be added/extracted from the 275 BDS segment.