mirror of https://github.com/samply/bridgehead.git
Merge pull request #131 from samply/feature/adt2fhir-rest
Feature/adt2fhir rest
This commit is contained in:
commit
7e7d184e8b
|
@ -0,0 +1,18 @@
|
||||||
|
version: "3.7"
|
||||||
|
|
||||||
|
services:
|
||||||
|
adt2fhir-rest:
|
||||||
|
container_name: bridgehead-adt2fhir-rest
|
||||||
|
image: docker.verbis.dkfz.de/ccp/adt2fhir-rest:main
|
||||||
|
environment:
|
||||||
|
IDTYPE: BK_${IDMANAGEMENT_FRIENDLY_ID}_L-ID
|
||||||
|
MAINZELLISTE_APIKEY: ${IDMANAGER_LOCAL_PATIENTLIST_APIKEY}
|
||||||
|
SALT: ${LOCAL_SALT}
|
||||||
|
restart: always
|
||||||
|
labels:
|
||||||
|
- "traefik.enable=true"
|
||||||
|
- "traefik.http.routers.adt2fhir-rest.rule=PathPrefix(`/adt2fhir-rest`)"
|
||||||
|
- "traefik.http.middlewares.adt2fhir-rest_strip.stripprefix.prefixes=/adt2fhir-rest"
|
||||||
|
- "traefik.http.services.adt2fhir-rest.loadbalancer.server.port=8080"
|
||||||
|
- "traefik.http.routers.adt2fhir-rest.tls=true"
|
||||||
|
- "traefik.http.routers.adt2fhir-rest.middlewares=adt2fhir-rest_strip,auth"
|
|
@ -0,0 +1,13 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
function adt2fhirRestSetup() {
|
||||||
|
if [ -n "$ENABLE_ADT2FHIR_REST" ]; then
|
||||||
|
log INFO "ADT2FHIR-REST setup detected -- will start adt2fhir-rest API."
|
||||||
|
if [ ! -n "$IDMANAGER_LOCAL_PATIENTLIST_APIKEY" ]; then
|
||||||
|
log ERROR "Missing ID-Management Module! Fix this by setting up ID Management:"
|
||||||
|
exit 1;
|
||||||
|
fi
|
||||||
|
OVERRIDE+=" -f ./$PROJECT/modules/adt2fhir-rest-compose.yml"
|
||||||
|
LOCAL_SALT="$(echo \"local-random-salt\" | openssl pkeyutl -sign -inkey /etc/bridgehead/pki/${SITE_ID}.priv.pem | base64 | head -c 30)"
|
||||||
|
fi
|
||||||
|
}
|
|
@ -39,6 +39,7 @@ function applySpecialCases() {
|
||||||
result="$1";
|
result="$1";
|
||||||
result="${result/Lmu/LMU}";
|
result="${result/Lmu/LMU}";
|
||||||
result="${result/Tum/TUM}";
|
result="${result/Tum/TUM}";
|
||||||
|
result="${result/Dktk Test/Teststandort}";
|
||||||
echo "$result";
|
echo "$result";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,11 +1,10 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
function mtbaSetup() {
|
function mtbaSetup() {
|
||||||
# TODO: Check if ID-Management Module is activated!
|
|
||||||
if [ -n "$ENABLE_MTBA" ];then
|
if [ -n "$ENABLE_MTBA" ];then
|
||||||
log INFO "MTBA setup detected -- will start MTBA Service and CBioPortal."
|
log INFO "MTBA setup detected -- will start MTBA Service and CBioPortal."
|
||||||
if [ ! -n "$IDMANAGER_UPLOAD_APIKEY" ]; then
|
if [ ! -n "$IDMANAGER_UPLOAD_APIKEY" ]; then
|
||||||
log ERROR "Detected MTBA Module configuration but ID-Management Module seems not to be configured!"
|
log ERROR "Missing ID-Management Module! Fix this by setting up ID Management:"
|
||||||
exit 1;
|
exit 1;
|
||||||
fi
|
fi
|
||||||
OVERRIDE+=" -f ./$PROJECT/modules/mtba-compose.yml"
|
OVERRIDE+=" -f ./$PROJECT/modules/mtba-compose.yml"
|
||||||
|
|
|
@ -1,8 +1,6 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
function nngmSetup() {
|
|
||||||
if [ -n "$NNGM_CTS_APIKEY" ]; then
|
if [ -n "$NNGM_CTS_APIKEY" ]; then
|
||||||
log INFO "nNGM setup detected -- will start nNGM Connector."
|
log INFO "nNGM setup detected -- will start nNGM Connector."
|
||||||
OVERRIDE+=" -f ./$PROJECT/modules/nngm-compose.yml"
|
OVERRIDE+=" -f ./$PROJECT/modules/nngm-compose.yml"
|
||||||
fi
|
fi
|
||||||
}
|
|
||||||
|
|
Loading…
Reference in New Issue