This subproject hosts a HAPI FHIR server that is based on the hapi-fhir-jpaserver-example.
A live demo is hosted by HL7 FHIR Foundry.
- delete
target
andbuild
folders from test-ehr if they exist - from Terminal (1) while in test-ehr folder:
gradle bootRun
- from Terminal (2) while in test-ehr folder:
gradle loadData
gradle bootRun
This will start the server running on http://localhost:8080/test-ehr.
The FHIR server will persist FHIR resources between restarts. You can delete the folder target
to clear all resources.
To load the data from the json files in fhirResourcesToLoad, run the following script:
gradle loadData
Note: 'gradle loadData' can only be run while the FHIR server is running and
use_oauth
is false insrc/main/resources/fhirServer.properties
The FHIR server is open by default, but this can be changed in the fhirServer.properties
file.
First, change the use_oauth
flag to true
to turn on security. Then set the client_id
, client_secret
, and oauth_token
fields.
If using Keycloak and following the CRD guide, the client_id
and oauth_token
fields can be left as default. The client_secret
can be found with the following steps:
- Open the keycloak admin console (http://localhost:8180/auth) and log in
- Open the ClientFhirServer, then the
clients
tab, and clickapp-token
. - Click on the
Credentials
tab, use theregenerate secret
option if needed. - Copy the client secret into the properties file under
client_secret
Finally, ensure that the request generator has the correct username and password in the properties.json
file. If following the CRD guide, this will be one of the users created when setting up Keycloak.
Relative URL | Endpoint Description |
---|---|
/test-ehr/ |
Base server endpoint |
/test-ehr/r4 |
EHR FHIR Server endpoint (will not resolve in browser) |
Questions about the project can be asked in the Da Vinci CRD stream on the FHIR Zulip Chat.
This project welcomes Pull Requests. Any issues identified with the RI should be submitted via the GitHub issue tracker.
As of October 1, 2022, The Lantana Consulting Group is responsible for the management and maintenance of this Reference Implementation. In addition to posting on FHIR Zulip Chat channel mentioned above you can contact Corey Spears for questions or requests.