mirror of
https://github.com/samply/bridgehead.git
synced 2026-10-13 01:06:41 +02:00
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.
13 lines
476 B
Bash
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
|
|
}
|