Files
bridgehead/dhki/modules/dkfz-setup.sh
T
Skiba, Jan 4989c45a18 dhki: Pass the DKFZ TTP to the DKFZ TransFAIR
DKFZ TransFAIR stores the project pseudonym the UMM site assigns to a linked
patient in the DKFZ TTP. It needs that TTP's URL and an API key that may
edit patients: DKFZ_TTP_URL and DKFZ_TTP_ML_API_KEY, both required, and
DKFZ_PROJECT_ID_SYSTEM (default dhkiComId). Plain TTP_URL is not used, as
it would also start the DIC TransFAIR.
2026-10-08 08:58:37 +02:00

13 lines
476 B
Bash

#!/bin/bash
function dkfzSetup() {
if [ "${ENABLE_DKFZ:-}" == "true" ]; then
assertVarsNotEmpty DKFZ_TTP_URL DKFZ_TTP_ML_API_KEY || \
fail_and_report 1 "The DKFZ module requires DKFZ_TTP_URL and DKFZ_TTP_ML_API_KEY."
log INFO "DKFZ TransFAIR setup detected -- will start TransFAIR and Beam.Connect."
DKFZ_TRANSFAIR_BEAM_SECRET="$(cat /proc/sys/kernel/random/uuid | sed 's/[-]//g' | head -c 20)"
OVERRIDE+=" -f ./dhki/modules/dkfz-compose.yml"
fi
}