LogoFHIR-FLI

FHIR Mapping Demo

This playground is a Flutter web build of a small app that runs the same FHIR Mapping Language implementation documented on this site: fhir_r4_mapping. Under the hood it parses your map text with StructureMapParser, then executes it with FhirMapEngine.transformFromFhir against the source resource you provide — entirely in the browser, no server round-trip.

How to use it:

  • StructureMap (FHIR Mapping Language) (top left): write or paste a map in FHIR Mapping Language syntax. The pre-loaded example extracts a Patient from a completed QuestionnaireResponse.
  • Source Resource (bottom left): paste the FHIR R4 resource the map's source group parameter expects, as JSON.
  • Transform (right): runs the map. The Output Resource panel shows the transform result as JSON; parse or transform errors are shown in its place.
  • View parsed StructureMap: after a transform, shows the StructureMap resource the FML text was parsed into.

Maps that only move data between standard FHIR R4 resources (like the example) run fully self-contained. Maps that reference custom logical models need their StructureDefinitions to be resolvable.

Inspired by the fhirpath-lab mapper and the matchbox transform tooling.

Here's the live FHIR Mapping playground link for full screen: