From 1dff60ef2011d929d5dab19322ecd88a9a0c1bdd Mon Sep 17 00:00:00 2001 From: mandalkam Date: Wed, 1 Jul 2026 15:13:44 +0200 Subject: [PATCH] Start of internal HAPI validator and FHIR package server optional, f.e. if not using a separate MII FHIR Validator instance --- .env.example | 8 ++++++++ README.md | 2 ++ docker-compose.yml | 4 +++- 3 files changed, 13 insertions(+), 1 deletion(-) diff --git a/.env.example b/.env.example index eb3d625..afc0f47 100644 --- a/.env.example +++ b/.env.example @@ -3,3 +3,11 @@ FHIR_VALIDATION_DATASOURCE_AUTH_NAME=myFHIRusername FHIR_VALIDATION_DATASOURCE_AUTH_PASSWORD=changeMe JUPYTER_TOKEN=changeThisToken + +# URL of external validator like an instance of the MII FHIR validator https://github.com/medizininformatik-initiative/mii-fhir-validator +FHIR_VALIDATION_VALIDATOR_API_URL=http://yourvalidatorurl/validateResource + +# Use the internal FHIR validator based on HAPI FHIR server which will internally start on docker compose up +# COMPOSE_PROFILES=internal_validator +# URL of internal validator (default if this parameter is not set before to external validator URL) +# FHIR_VALIDATION_VALIDATOR_API_URL=http://fhir-validation-server:8080/fhir/{{resource_type}}/$validate diff --git a/README.md b/README.md index ed27d4b..d6b9662 100644 --- a/README.md +++ b/README.md @@ -57,6 +57,8 @@ For filter options you can set `search_parameters`, see [FHIR search common para ### Setup FHIR Packages +If you want to use the internal validator instead of an instance of the [MII FHIR Validator](https://github.com/medizininformatik-initiative/mii-fhir-validator): + Download the FHIR NPM Packages of the [German MII Core Dataset modules](https://www.medizininformatik-initiative.de/de/uebersicht-ueber-versionen-der-kerndatensatz-module) (Kerndatensatz der Medizininformatik Initiative) to the directory `packages`. E.g. by running [download-packages.sh](download-packages.sh): diff --git a/docker-compose.yml b/docker-compose.yml index 6afb381..82a1206 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -10,7 +10,7 @@ services: # The FHIR NPM packages (.tgz archives) are located in local directory ./packages # This source directory with the FHIR packages is mounted as the Nginx http server standard content directory /usr/share/nginx/html - ./packages:/usr/share/nginx/html:ro - + profiles: ["internal_validator"] # FHIR Server (HAPI) fhir-validation-server: @@ -21,6 +21,8 @@ services: depends_on: - fhir-packages-repository-service + profiles: ["internal_validator"] + environment: # Load FHIR NPM Package with MII Kerndatensatz modules and its dependencies from fhir-packages-repository-service