# hapifhir/hapi-fhir

🔥 HAPI FHIR - Java API for HL7 FHIR Clients and Servers

Repository: https://github.com/hapifhir/hapi-fhir
Canonical: https://ross.abutalabs.com/products/hapi-fhir
Homepage: http://hapifhir.io
Language: Java
License: Apache-2.0
License Family: permissive
Topics: java, hl7, fhir, healthcare, mhealth, apps, hapi-fhir, java-api
Last push: 2026-08-26T21:05:31+00:00

## Health v2 (maintenance only)
Score: 97/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 99, release rhythm 94, longevity 100
- inputs: {"age_days": 4453, "days_push": 7, "days_rel": 42, "gap_med": 18, "n_releases_24m": 26}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2390, forks 1494 (observed 2026-08-28T04:06:43.318566+00:00)

## What it is
HAPI FHIR is a complete open-source Java implementation of the HL7 FHIR standard for healthcare data interoperability, providing APIs for building FHIR clients and servers. It includes a JPA-backed storage server, plain REST server, fluent/annotation clients, parsers/serializers, terminology support, and features like MDM, multitenancy, and batch processing.

## Use cases
- build a FHIR server in Java
- parse and serialize FHIR resources
- call a FHIR API from a Java client
- store healthcare data with a JPA FHIR server
- implement HL7 FHIR interoperability
- support FHIR R4, R4B, and R5 versions
- run a multitenant FHIR repository
- validate and expand terminology ValueSets

## When to choose
- you need a mature, spec-compliant FHIR implementation on the JVM
- you want a full JPA-backed FHIR server with search, terminology, and MDM out of the box
- you are building Java healthcare integrations and need client and server support in one library
- you need Apache-licensed software with long-term active maintenance

## When to avoid
- your stack is not Java/JVM-based
- you only need lightweight JSON handling of FHIR without server or client infrastructure
- you need a non-FHIR healthcare standard like HL7 v2 (see hapi-hl7v2 instead)

## Facets
- artifact type: library
- maturity: stable
- function: api-framework, http-server, http-client, serialization, parser, orm, database, search-engine, sdk
- domain: healthcare, apis, web-development, backend
- platform: jvm, cross-platform, self-hosted
- tags: fhir, hl7-fhir, hl7, healthcare-interoperability, jpa-server, rest-server, clinical-data, mdm, terminology, apache-license, interoperability

## Member repositories
- hapifhir/hapi-fhir (main) score 97

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:43.318566+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T02:34:30.078297+00:00, confidence not recorded.
  - readme: https://github.com/hapifhir/hapi-fhir (fetched 2026-08-28T04:06:43.318566+00:00, sha 3d457f48bcf7)
  - homepage: http://hapifhir.io (fetched 2026-08-29T10:15:25.910727+00:00, sha 7e57d36912fd)
  - site_page: https://hapifhir.io/hapi-fhir/docs/server_plain (fetched 2026-08-29T10:15:25.922919+00:00, sha bd6587feb187)
  - site_page: https://hapifhir.io/hapi-fhir/docs/appendix/faq.html (fetched 2026-08-29T10:15:25.913713+00:00, sha 310e3ff036ba)
  - site_page: https://hapifhir.io/hapi-fhir/docs/getting_started/r4b.html (fetched 2026-08-29T10:15:25.915702+00:00, sha 400155a04caf)
  - site_page: https://hapifhir.io/hapi-fhir/docs/server_jpa (fetched 2026-08-29T10:15:25.917789+00:00, sha 44239152eb91)
  - site_page: https://hapifhir.io/hapi-fhir/docs/model/parsers.html (fetched 2026-08-29T10:15:25.919393+00:00, sha bb1e381d21c3)
  - site_page: https://hapifhir.io/hapi-fhir/docs/client (fetched 2026-08-29T10:15:25.921160+00:00, sha 34c4c7b7af9e)
  - site_page: https://hapifhir.io/hapi-fhir/docs/getting_started/downloading_and_importing.html (fetched 2026-08-29T10:15:25.924850+00:00, sha 5417924fb7ca)
  - site_page: https://hapifhir.io/hapi-fhir/docs/introduction/changelog.html (fetched 2026-08-29T10:15:25.926914+00:00, sha c1be1aaa14e2)
- Data as of 2026-08-30T08:39:29.467469+00:00.
