Introduction
In a previous post, I wrote about the steps I followed to start working with HAPI FHIR.
In this post, we'll configure HAPI FHIR to install a FHIR Implementation Guide.
FHIR Implementation Guides
A FHIR Implementation Guide is a set of instructions for implementing the FHIR standard in a specific healthcare context.
AU Core is provided to support the use of HL7® FHIR®© in an Australian context. It sets the minimum expectations on FHIR resources to support conformance and implementation in systems.
An Implementation Guide (IG) can be used to seed a FHIR data store, for example:
hapi:
fhir:
default_encoding: json
implementationguides:
au_core:
name: hl7.fhir.au.core
version: 0.4.1-preview
reloadExisting: false
installMode: STORE_AND_INSTALL
packageUrl: https://hl7.org.au/fhir/core/0.4.1-preview/package.tgz
fetchDependencies: true
logical_urls:
- http://hl7.org.au/*
See: hapi.application-fhir-au.yaml
We also need to update the Docker Compose configuration file, as follows:
configs:
hapi:
file: ./hapi.application-fhir-au.yaml
To build the project:
docker compose -f docker-compose-fhir-au.yml build
To create and start all the services in the configuration file:
docker compose -f docker-compose-fhir-au.yml up
Navigate to the Welcome page:
http://localhost:8080
You should see something like:
To stop the services:
docker compose -f docker-compose-fhir-au.yml stop
To remove the services:
docker compose -f docker-compose-fhir-au.yml down
To remove the data volume:
docker volume rm hapi-fhir-jpaserver-starter_postgres_data
To restart the services:
docker compose -f docker-compose-fhir-au.yml up
Source Code:
Resources:
- HAPI FHIR: Website
- HAPI FHIR: Documentation
- HL7: Implementation Guide
- HL7: FHIR NPM Packages
- AU Core FHIR Implementation Guide: AU Core - 0.4.1-preview
- AU Core FHIR Implementation Guide: Testing FAQs
- Google Group: HAPI FHIR