Crate tlq_fhir_format

Crate tlq_fhir_format 

Source
Expand description

FHIR JSON ↔ XML conversion helpers. The implementation is schema‑agnostic but follows the official JSON/XML mapping rules used by HL7 FHIR:

  • Root element uses the resourceType name.
  • Primitive values are encoded with the value attribute.
  • Primitive metadata (id, extension) is carried through _field entries.
  • Arrays are represented by repeated elements and aligned metadata arrays.

Enums§

FormatError

Functions§

json_to_xml
Convert a FHIR JSON payload into its XML representation.
xml_to_json
Convert a FHIR XML payload into its JSON representation.