Skip to content
Dazhi Jiao edited this page Aug 18, 2020 · 7 revisions

Welcome to the FHIRCat wiki

Instructions

How to build contexts for FHIR R4 and latest R5

Starts with org.hl7.fhir.core and produces jsonld_context_files

git clone -b LDContextGenerator https://github.com/fhircat/org.hl7.fhir.core

Run test classes to generate LDContextFiles for R4 and R5 respectively

https://github.com/fhircat/org.hl7.fhir.core/blob/LDContextGenerator/org.hl7.fhir.r4/src/test/java/org/hl7/fhir/r4/test/LDContextGeneratorTests.java https://github.com/fhircat/org.hl7.fhir.core/blob/LDContextGenerator/org.hl7.fhir.r5/src/test/java/org/hl7/fhir/r5/test/LDContextGeneratorTests.java

Generated files should be located in ~/LDContexts/

Change to FHIR version to load correct package?

https://github.com/fhircat/org.hl7.fhir.core/blob/LDContextGenerator/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/test/utils/TestingUtilities.java

pcm.loadPackage("hl7.fhir.r4.core", "4.0.1")

https://github.com/fhircat/org.hl7.fhir.core/blob/LDContextGenerator/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/test/utils/TestingUtilities.java

return context("4.4.0");

How to install contexts on the https://fhircat.org/ server

Clone (or pull) from github repo: https://github.com/fhircat/jsonld_context_files The github repo is cloned in /datadrive/temp/jsonld_context_files/

Original

symlink /datadrive/temp/jsonld_context_files/contextFiles/r4 to /var/www/html/fhir-r4/original/contexts symlink /datadrive/temp/jsonld_context_files/contextFiles/r5 to /var/www/html/fhir-r5/original/contexts

Proposed

To be done.

Directories on AMIAPaper

  • data/fhir-r4/examples.json.zip
  • data/fhir-r4/examples.ttl.zip

(same for fhir-r5)