[[fhirJson-dataformat]]
== FHIR JSon DataFormat
*Available as of Camel version 2.21*
*Available as of Camel version 2.21*
*Available as of Camel version 2.21*



The FHIR-JSON Data Format leverages
link:https://github.com/jamesagnew/hapi-fhir/blob/master/hapi-fhir-base/src/main/java/ca/uhn/fhir/parser/JsonParser.java[HAPI-FHIR's]
JSON parser to parse to/from JSON format to/from a HAPI-FHIR's `IBaseResource`.

### FHIR JSON Format Options

// dataformat options: START
The FHIR JSon dataformat supports 2 options which are listed below.



[width="100%",cols="2s,1m,1m,6",options="header"]
|===
| Name | Default | Java Type | Description
| fhirVersion | DSTU3 | String | The version of FHIR to use. Possible values are: DSTU2,DSTU2_HL7ORG,DSTU2_1,DSTU3,R4
| contentTypeHeader | false | Boolean | Whether the data format should set the Content-Type header with the type from the data format if the data format is capable of doing so. For example application/xml for data formats marshalling to XML, or application/json for data formats marshalling to JSon etc.
|===
// dataformat options: END
