Skip to content

ownerCTI/hapi-fhir

Β 
Β 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

9,631 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

HAPI FHIR

HAPI FHIR - Java API for HL7 FHIR Clients and Servers

License Maven Central

The leading open-source implementation of the HL7 FHIR specification for Java.


CI/CD Status

CI Status (master) SNAPSHOT Pipeline Current Release
Build Status Build Status Release Artifacts

Code Quality

codecov


πŸš€ Quick Start

Maven

<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>

Basic Usage

// 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();

πŸ“š Documentation

Resource Link
Complete Documentation hapifhir.io
Live Demo Server hapi.fhir.org
Javadoc hapifhir.io/hapi-fhir/apidocs/
Getting Help Wiki - Getting Help

✨ Features

FHIR Version Support

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 ⚠️ Maintenance

Core Capabilities

  • πŸ”„ 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

πŸ“¦ Project Structure

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

🀝 Contributing

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.


πŸ”’ Security

For security vulnerabilities, please see our Security Policy.

Do not report security vulnerabilities through public GitHub issues.


πŸ“„ License

This project is Open Source, licensed under the Apache Software License 2.0.


πŸ’Ό Commercial Support

For commercial support and enterprise features, please see Smile CDR.


πŸ™ Acknowledgments

HAPI FHIR is made possible by contributions from:


About

πŸ”₯ HAPI FHIR - Java API for HL7 FHIR Clients and Servers

Resources

License

Contributing

Security policy

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages

  • Java 98.2%
  • HTML 0.9%
  • Ruby 0.7%
  • Shell 0.1%
  • JavaScript 0.1%
  • CSS 0.0%