pub fn convert_input(input: Input) -> Result<Value, OperationOutcomeError>Expand description
Converts an Input into a [minijinja::Value] suitable for template
rendering.
HL7 v2 messages are parsed and wrapped in a Jinja-compatible object, while FHIR resources and JSON values are converted using Serde serialization.
ยงErrors
Returns an [OperationOutcomeError] if the input is an HL7 v2 message that
cannot be parsed.