Sign inSign up

peter279k/docker_fhir_validator_17

By peter279k

Updated 3 months ago

The Docker image for FHIR Core validator with OpenJDK 17.

Image
Developer tools
0

100K+

peter279k/docker_fhir_validator_17 repository overview

docker_fhir_validator

Introduction

It's the source of Docker image for FHIR Core Validator.

And their released versions are compatible with above FHIR Core Validator since 6.2.10 version.

  • The Docker image with OpenJDK 11 is available on the Docker hub.
  • The Docker image with OpenJDK 17 is available on the Docker hub.

Usage

  • Firstly, we've the docker command and it is available.
  • If you prefer OpenJDK 11, run the docker pull peter279k/docker_fhir_validator_11:latest command to pull the Docker image. It includes OpenJDK 11 and latest FHIR Core Validator version.
  • If you prefer OpenJDK 17, run the docker pull peter279k/docker_fhir_validator_17:latest command to pull the Docker image. It included OpenJDK 17 and latest FHIR Core Validator version.
  • If you prefer OpenJDK 11 and FHIR Core Validator 6.3.13 version, run the docker pull peter279k/docker_fhir_validator_11:6.3.13 command to pull the specific Docker image.
  • After pulling the Docker image successfully, run the following command to verfiy it:
docker run peter279k/docker_fhir_validator_11:latest java -jar validate_cli.jar -help
  • If you want to load package cache with offline validation, run the following commands:
# Download IG package cache folder on the FHIR CI Build
$ wget -O package.tgz https://build.fhir.org/ig/cctwFHIRterm/MOHW_TWCoreIG_Build/package.tgz

# Create directory named IG name and version
$ mkdir tw.gov.mohw.twcore

# Extract the archived file to specific directory
$ tar -xvzf package.tgz -C tw.gov.mohw.twcore

# Download example JSON file
$ wget -O examples.json.zip https://build.fhir.org/ig/cctwFHIRterm/MOHW_TWCoreIG_Build/examples.json.zip
$ rm -rf examples.json && mkdir examples.json && unzip examples.json.zip -d examples.json

# Validate it!
docker run \
    -v $PWD/tw.gov.mohw.twcore:/root/.fhir/packages/tw.gov.mohw.twcore \
    -v $PWD/examples.json:/root/examples.json \
    peter279k/docker_fhir_validator_11:latest -c "cd /root/ && java -Dfile.encoding=UTF-8 -jar validator_cli.jar ./examples.json/Patient-pat-example.json -version 4.0 -ig tw.gov.mohw.twcore"

Tag summary

Content type

Image

Digest

sha256:24d393b1e

Size

437.2 MB

Last updated

3 months ago

docker pull peter279k/docker_fhir_validator_17