Lit: Another domain model library for FHIR
summary
Lit is an open source, Scala and Java library that implements a FHIR domain model plus FHIRPath, with a code generator for HL7 and US Core profiles and ongoing Rust/TypeScript work. It enforces required fields at compile time, supports choice types via Scala type tags, and represents non-empty cardinality separately; construction and JSON round‑trip benchmarks are comparable to alternatives, startup and compile‑time cost exist, and the model is immutable and generated.
AI-written summary · about
chapters (14)
- 0:00Introduction
- 0:37Example
- 1:39Runtime Error
- 2:25Field Validation
- 3:59Invalid Choice
- 4:57Bmi
- 9:07extractors
- 9:47meta information
- 11:09benchmarking
- 12:15parameters
- 12:50other differences
- 13:48compatibility
- 14:50gotchas
- 15:38discriminated unions
related talks
14mFIDDLR: Streamlining Reuse with Concern-Specific Modelling Languages
33mFrom Domain Models to Domain Languages with Tagless-Final
46mMap CDA to FHIR and Back with FHIR Mapping Language
43mWrite your own domain specific language with F#
35mRestaging Domain-Specific Languages: A Flexible Design Pattern for Rapid Development of(…)
41mLIGO templates
51mHands-on Typelevel Scala
20mFluent APIs in Functional Languages
