web stats
Skip to end of metadata
Go to start of metadata

As you may already know, FHIR resources are typically found in either XML or JSON formats. If you are building a FHIR client or server and only need to support one of those formats, then using either the XML or JSON data types will work fine.

However this new FHIR data type is unique in that it allows your channel to accept both XML and JSON, without having to modify your code to handle one or the other. You simply configure what format you're expecting inbound, and what format you want to go outbound, for each connector / transformer.

On the Inbound side, the Serialization Type is the format you want all inbound data to be converted to. 

  • XML: The inbound data will be converted to XML if needed, and your msg variable will be an E4X XML object.
  • JSON: The inbound data will be converted to JSON if needed, and your msg variable will be a JavaScript Object.
  • Raw: The inbound data will not be converted at all, and your msg variable will be a JavaScript String.

On the Outbound side, under the Deserialization settings, the Serialization Type is the format you want all outbound transformed data to be converted to.

  • XML: The transformed data will be converted to XML if needed and stored as the encoded data.
  • JSON: The transformed data will be converted to JSON if needed and stored as the encoded data.
  • Raw: The transformed data will not be converted at all. The encoded data will simply be equal to the transformed data.

Also on the Outbound side, under the Template Serialization settings, the Serialization Type is the format you want your outbound template to be converted to, if you are using an outbound template.

  • XML: The outbound template will be converted to XML if needed, and your tmp variable will be an E4X XML object.
  • JSON: The outbound template will be converted to JSON if needed, and your tmp variable will be a JavaScript Object.
  • Raw: The outbound template will not be converted at all, and your tmp variable will be a JavaScript String.
  • No labels