Skip to content

HAPI FHIR Server Configuration

feiyanbcm edited this page Sep 28, 2020 · 3 revisions

IG Package

IG URL

http://build.fhir.org/ig/HL7/genomics-reporting

IG Package URL

http://build.fhir.org/ig/HL7/genomics-reporting/package.tgz

Upload Definition to HAPI server

hapi-fhir-cli upload-definitions -t http://localhost:8080/hapi-fhir-jpaserver/fhir/ -v r4

Enable Terminology uploader on HAPI-FHIR JPA Server

In the class ca.uhn.fhir.jpa.starter.JpaRestfulServer, update code as below:

if (true) { registerProvider(appCtx.getBean(TerminologyUploaderProvider.class)); }

HAPI FHIR CLI Upload Terminology

LOINC

hapi-fhir-cli upload-terminology -v r4 -t http://localhost:8080/hapi-fhir-jpaserver/fhir/ -u http://loinc.org -d /Users/.../hapi-fhir-resources/Loinc_2.67.zip -d /Users/.../hapi-fhir-resources/loincupload.properties

Validate if LOINC code is loaded successfully:

http://localhost:8080/hapi-fhir-jpaserver/fhir/CodeSystem/$lookup?system=http://loinc.org&code=81247-9

SNOMED

hapi-fhir-cli upload-terminology -v r4 -t http://localhost:8080/hapi-fhir-jpaserver/fhir/ -u http://snomed.info/sct -d /Users/.../hapi-fhir-resources/SnomedCT_USEditionRF2_PRODUCTION_20190301T120000Z.zip

Validate if SNOMED code is loaded successfully:

http://localhost:8080/hapi-fhir-jpaserver/fhir/CodeSystem/$lookup?system=http://snomed.info/sct&code=5699003

The zip file and property file directories need to be the full path

Upload single profile to FHIR server

curl http://localhost:8080/hapi-fhir-jpaserver/fhir/StructureDefinition/us-core-race --upload-file StructureDefinition-us-core-race.json

Add Conformance Statement to FHIR server.

More info about Capability Statement here

Add Capability Statement to FHIR server. (Should be part of conformance?)

More info about Capability Statement here