Skip to main content
Docs/Versions and compatibility
On this page ⌄
Technical reference

Versions and compatibility

Current versions across the Core Libraries and KMP FHIR SDK, how they pair with each other, and the history of their Maven coordinates.

UPDATED

Current versions​

All Core Libraries and KMP FHIR SDK artifacts publish to Maven Central under the group dev.ohs.fhir. The table shows the versions at the time of writing.

RepositoryArtifactVersion
Kotlin FHIRfhir-model (and -r4, -r4b, -r5)1.0.0
Kotlin FHIRPathfhir-path (and -core, -r4, -r4b, -r5)1.0.0-beta06
Kotlin FHIR Enginefhir-engine2.0.0-alpha05
Kotlin FHIR Data Capturefhir-data-capture2.0.0-alpha05
Kotlin FHIR Workflowfhir-workflow2.0.0-alpha01
Kotlin FHIR Knowledgefhir-knowledge2.0.0-alpha01

Each repository's Maven Central badges are the canonical source for the latest release.

Maturity​

Kotlin FHIR 1.0.0 is a stable release, and Kotlin FHIRPath is in Beta. The client SDKs and companion libraries (kotlin-fhir-engine, kotlin-fhir-data-capture, kotlin-fhir-workflow, and kotlin-fhir-knowledge) are pre-release as the stack prepares for a coordinated KMP FHIR SDK Beta, so their APIs can change between versions. Pin exact versions, not version ranges.

OHS Player's Client App (player-reference v0.1.0-alpha04) currently pins fhir-engine 2.0.0-alpha04, fhir-data-capture 2.0.0-alpha04, fhir-model-r4 1.0.0-rc03, and player-client 1.0.0-alpha03.

Two dependencies can still cause changes in your code.

  • Kotlin FHIR and Kotlin FHIRPath use types from kotlinx-datetime and bignum in their public API. For example, FhirDecimal is built on BigDecimal from bignum. Neither library has reached 1.0, so their types can change, even when you use the stable Kotlin FHIR.
  • Kotlin FHIR Engine and Kotlin FHIR Knowledge use Room for Kotlin Multiplatform and related storage libraries.

Pairing the libraries​

Each library is built against a specific version of the libraries below it.

LibraryBuilt against
Kotlin FHIRPath 1.0.0-beta06fhir-model-r4 1.0.0-rc03
Kotlin FHIR Engine 2.0.0-alpha05fhir-model-r4 1.0.0-rc03 and fhir-path-r4 1.0.0-beta06
Kotlin FHIR Data Capture 2.0.0-alpha05fhir-model-r4 1.0.0-rc03 and fhir-path-r4 1.0.0-beta06
Kotlin FHIR Workflow 2.0.0-alpha01fhir-model 1.0.0-rc03, fhir-path-r4 1.0.0-beta06, and fhir-engine 2.0.0-alpha03
Kotlin FHIR Knowledge 2.0.0-alpha01fhir-model 1.0.0-rc03

None of them is built against Kotlin FHIR 1.0.0 yet. If your app uses any of them, use fhir-model-r4 1.0.0-rc03, the version they were built and tested with. If you add 1.0.0 to your build, Gradle uses 1.0.0 for every library, and that combination has not been tested.

In general, use the versions that the highest library in your stack declares. If you see a binary incompatibility, upgrade all the libraries together.

FHIR version axis​

Kotlin FHIR and Kotlin FHIRPath each publish per-FHIR-version artifacts (-r4, -r4b, -r5) plus an aggregate that bundles all three. Depend on the single-version artifact matching your data unless you genuinely handle multiple FHIR versions, since the aggregate triples the model surface you ship. Kotlin FHIR Engine and Kotlin FHIR Data Capture are R4-only, so a stack that includes either of them is an R4 stack.

Earlier coordinates​

These libraries began life in Google's FHIR SDK work, and their earliest versions were published under Google coordinates. If you are migrating an existing project, the renames are listed below.

RepositoryEarlier coordinateCurrent coordinate
Kotlin FHIRcom.google.fhir group (up to 1.0.0-beta02)dev.ohs.fhir with fhir-model artifacts
Kotlin FHIRPathcom.google.fhir group (up to 1.0.0-beta01)dev.ohs.fhir with fhir-path artifacts
Kotlin FHIR Enginecom.google.android.fhir group, engine artifactdev.ohs.fhir with the fhir-engine artifact
Kotlin FHIR Data Capturecom.google.android.fhir group, data-capture artifact (release history)dev.ohs.fhir with the fhir-data-capture artifact

The earlier artifacts were distributed on Google Maven, and the dev.ohs.fhir artifacts are on Maven Central. Package namespaces moved to dev.ohs at the same time, so a migration is a coordinate change plus an import rewrite, not a drop-in swap.