Skip to content
pubscout

Compare

The strongest value in each row is marked.

Attributefhir_r4

Strongly‑typed immutable FHIR R4B resource and data‑type models for Dart/Flutter with JSON/YAML/XML support.

pub.devRemove
json_annotation

Provides annotations for json_serializable to generate JSON (de)serialization code.

pub.devRemove
ScoresHealth7684 (best)
Maintenance94 (best)70
Quality100 (best)81
Popularity2497 (best)
Community5280 (best)
Compatibility100100
UsageDownloads (30 days)4.5k16M (best)
Likes61.3k (best)
Pub points160 / 160 (best)150 / 160
GitHub stars21.6k (best)
MaintenanceLatest release0.14.1, 12 days ago (best)4.12.0, 6 months ago
Major versions in 12 months00
Contributors351 (best)
Publisherfhirfli.devgoogle.dev
FitPlatformsAll (pure Dart)All (pure Dart)
WASM-readyYesYes
KindPure DartPure Dart
Code generationNoNo
Direct dependencies51 (best)
LicenseMITBSD-3-CLAUSE
Setup effortLowLow
JudgementStrengths
  • Full coverage of the FHIR R4B spec
  • Strong typing and validation of all elements
  • Immutable models with copyWith and deep equality
  • Built‑in support for JSON, YAML and XML
  • Small, zero‑runtime‑overhead package.
  • Works with Dart 3 and newer SDKs.
  • Provides fine‑grained control via JsonKey options.
Weaknesses
  • Large API surface can increase app size
  • Steep learning curve for developers unfamiliar with FHIR
  • Limited to healthcare use‑cases
  • Requires a separate code‑gen step with build_runner and json_serializable.
  • Only useful when paired with a generator; on its own it does nothing.
WarningsNoneNone
fhir_r4 vs json_annotation: which Flutter package should you use? | pubscout