HAPI FHIR - Java API for HL7 FHIR Clients and Servers
The leading open-source implementation of the HL7 FHIR specification for Java.
| CI Status (master) | SNAPSHOT Pipeline | Current Release |
|---|---|---|
<dependency>
<groupId>ca.uhn.hapi.fhir</groupId>
<artifactId>hapi-fhir-base</artifactId>
<version>6.10.0</version>
</dependency>
<!-- Choose your FHIR version -->
<dependency>
<groupId>ca.uhn.hapi.fhir</groupId>
<artifactId>hapi-fhir-structures-r4</artifactId>
<version>6.10.0</version>
</dependency>// Create a FHIR context for R4
FhirContext ctx = FhirContext.forR4();
// Parse a resource
Patient patient = ctx.newJsonParser().parseResource(Patient.class, jsonString);
// Create a client
IGenericClient client = ctx.newRestfulGenericClient("http://hapi.fhir.org/baseR4");
// Read a resource
Patient result = client.read().resource(Patient.class).withId("123").execute();| Resource | Link |
|---|---|
| Complete Documentation | hapifhir.io |
| Live Demo Server | hapi.fhir.org |
| Javadoc | hapifhir.io/hapi-fhir/apidocs/ |
| Getting Help | Wiki - Getting Help |
| Version | Module | Status |
|---|---|---|
| R5 | hapi-fhir-structures-r5 |
β Supported |
| R4B | hapi-fhir-structures-r4b |
β Supported |
| R4 | hapi-fhir-structures-r4 |
β Supported |
| DSTU3 | hapi-fhir-structures-dstu3 |
β Supported |
| DSTU2 | hapi-fhir-structures-dstu2 |
- π Client - Fluent REST client for any FHIR server
- π₯οΈ Server - Build your own FHIR server
- πΎ JPA Server - Full FHIR server with database persistence
- β Validation - Profile and resource validation
- π Security - SMART on FHIR, OAuth 2.0 support
- π Subscriptions - Real-time notifications
- π MDM - Master Data Management
hapi-fhir/
βββ hapi-fhir-base/ # Core library
βββ hapi-fhir-client/ # REST client
βββ hapi-fhir-server/ # Server framework
βββ hapi-fhir-jpaserver-*/ # JPA server modules
βββ hapi-fhir-structures-*/ # FHIR version structures
βββ hapi-fhir-validation/ # Validation support
βββ docs/ # Project documentation
βββ adr/ # Architecture Decision Records
βββ prd/ # Product Requirements
We welcome contributions! Please see our Contributing Guide for details on:
- Setting up your development environment
- Coding standards and testing requirements
- Pull request process
Looking to help? Check out issues labeled good first issue or help wanted.
For security vulnerabilities, please see our Security Policy.
Do not report security vulnerabilities through public GitHub issues.
This project is Open Source, licensed under the Apache Software License 2.0.
For commercial support and enterprise features, please see Smile CDR.
HAPI FHIR is made possible by contributions from: