Convert - X12 to FHIR (R4)
POST /convert/v1/x12tofhirr4
This operation converts an X12 document into a FHIR R4 bundle.
The input is a standard X12 document for a single patient. The Convert API supports version 5010 of the following message types:
- 835 (Electronic Remittance Advice)
- 837P (Health Claims, Professional)
- 837I (Health Claims, Institutional)
The output is a FHIR R4 Bundle containing the data parsed from the input, along with an OperationOutcome resource detailing the results (including warnings or errors) of the conversion process. See Output FHIR R4 Bundles for details.
Query Parameters
The input is plain text, so be sure to specify content-type: text/plain
in your request header.
You can specify either accept: application/json
or accept: application/xml
in your request header to get a response in either JSON or XML format.
Message Processing Notes
- Message delimiters are specified in the ISA segment. These delimiters can be any printable ASCII symbol (not letters, numbers, or spaces). Common delimiters include
*
, :
, ~
, and ^
.
- If more than one claim is included in the input X12 document, they should represent data about the same individual.
- Unsupported document types will result in an operation outcome error.
Example
X12 documents and FHIR bundles are lengthy, so this just shows a small sample to illustrate how the data is structured. For a more complete example, try out the API in the Developer Portal Sandbox.
Sample Input
Sample Output