Healthcare: FHIR Transformation pattern

The Healthcare: FHIR Transformation pattern provides an application for the transformation of HL7® FHIR® standard Resources between the XML and JSON formats.

Solution

Fast Healthcare Interoperability Resources (FHIR®) is a draft standard from Health Level 7 International (HL7) designed to allow the exchange of electronic health records. It is built upon previous standards such as HL7 version 2 and HL7 version 3, and uses XML and JSON for data representation. FHIR® solutions can be created using components called Resources which are built around particular concepts, such as the patient or provider, as well as diagnostics and care plans. Systems implementing FHIR® must support Resources in the XML format, but may also support Resources in the JSON format. You can use the Healthcare: FHIR Transformation pattern to create an application that reads a Resource in either XML or JSON format from the file system, and transforms it into the other format.

When you generate an instance of the Healthcare: FHIR Transformation pattern, a library named FHIRDSTU1Schemas is created automatically. The library contains the FHIR® XML schemas, based on Draft Standard for Trial Use 1 (DSTU 1), to allow Resources in the XML format to be validated. The library can also be used by nodes other than those included in the generated application to parse FHIR XML messages.

Constraints on the use of the pattern
Parameters for the pattern