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
resourceTypename. - Primitive values are encoded with the
valueattribute. - Primitive metadata (
id,extension) is carried through_fieldentries. - Arrays are represented by repeated elements and aligned metadata arrays.
Enums§
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.