Every package ships for FHIR R4, R5 and R6 with identical APIs — swap the package name and nothing else changes. The resource models are generated from the HL7 specifications, so they follow the standard element for element.
dependencies:
fhir_r4: ^0.12.0
Packages#
fhir_r4 Core
Every FHIR resource and data type as an immutable Dart class, with JSON serialization, validated primitives and typed enums.
fhir_r4_at_rest REST
Type-safe request builders for the FHIR RESTful API: read, search, create, update, delete, history, batch and transaction, without hand-building URLs and headers.
fhir_r4_auth Auth
SMART App Launch: standalone, EHR and backend-services launch with PKCE, secure token storage and JWT validation.
fhir_r4_db Database
Local SQLite storage built on Drift: type-safe CRUD, FHIR search-parameter indexing, versioning and sync tracking.
fhir_r4_path FHIRPath
The model-independent fhir_path engine bound to R4: parse once, evaluate against any resource.
fhir_r4_cql CQL
The FHIR R4 binding for the cql engine: translate Clinical Quality Language to ELM and execute it against patient data.
fhir_r4_mapping Mapping
FHIR Mapping Language parser and StructureMap engine for transforming between models.
fhir_r4_bulk Bulk Data
NDJSON file handling and the standard Bulk Data $export and $import operations for large datasets.
fhir_r4_validation Validation
Validate resources against their StructureDefinitions: structure, cardinality, bindings, extensions and invariants.
ucum Units
Unified Code for Units of Measure: unit validation, conversion, comparison and arithmetic. A port of the reference Ucum-java.
Applications#
FHIR ANT server
A complete FHIR R4 server that runs on your Android phone, built on fhir_r4, for testing, demonstrations and low-resource settings.
Cicada engine
Immunization forecasting that evaluates past doses and recommends the next ones, implementing the CDC CDSi specification and WHO EPI schedules.
Drosophila app
Clinical trial matching for oncology via SMART on FHIR and CDS Hooks: extracts EHR data and compares it with ClinicalTrials.gov eligibility criteria.
Bumblebee IG
A clinical record for emergency medical teams in disaster response, offline on a cheap phone. Planning stage: the design record and its FHIR R4 implementation guide are published here.
Botswana AMR IG
FHIR R4 profiles and terminology for antimicrobial resistance surveillance in Botswana, with WHONET export and GLASS reporting support.
Try it in the browser#
FHIRPath playground
Paste a resource, type an expression, see the result — running the same engine documented here.
FHIR Mapping playground
Write a map in the FHIR Mapping Language and transform a source resource live.
Cicada forecast demo
Enter a vaccine history or pick a sample patient and see the CDC schedule forecast.