44.2.1Smile Camel Converters

 

Apache Camel provides Automatic Type Conversion when the output message type of a processor is different from the input message type expected by the processor following it on the route.

Smile adds converters to the default Apache converters that are useful for FHIR data processing. Here is the current list of converters provided by the Smile Camel module:

From TypeTo Type
IBaseResourceJSON String
JSON StringIBaseResource
NDJSON StringIBaseBundle
JSON StringIBaseBundle
ResourceOperationJsonMessageResourceOperationMessage
ResourceOperationMessageIBaseBundle
ResourceOperationMessageResourceOperationJsonMessage

These are useful when you are creating your own processor in JavaScript or Java (using the Camel script processor or the Custom Java Processor extensions) where the processor ahead of yours produces data in a format different from what your custom processor needs to consume. These Smile Camel Converters should cover most of the types of automatic translation that you will need.