bridgehead/ccp/modules/obds2fhir-rest-setup.sh

14 lines
546 B
Bash
Raw Permalink Normal View History

2023-10-11 08:09:49 +02:00
#!/bin/bash
2024-07-01 12:46:33 +02:00
function obds2fhirRestSetup() {
if [ -n "$ENABLE_OBDS2FHIR_REST" ]; then
log INFO "oBDS2FHIR-REST setup detected -- will start obds2fhir-rest module."
if [ ! -n "$IDMANAGER_UPLOAD_APIKEY" ]; then
2023-10-24 07:41:17 +02:00
log ERROR "Missing ID-Management Module! Fix this by setting up ID Management:"
2024-07-01 12:46:33 +02:00
PATIENTLIST_URL=" "
2023-10-24 07:41:17 +02:00
fi
2024-09-12 09:24:48 +02:00
OVERRIDE+=" -f ./ccp/modules/obds2fhir-rest-compose.yml"
2023-10-24 07:41:17 +02:00
LOCAL_SALT="$(echo \"local-random-salt\" | openssl pkeyutl -sign -inkey /etc/bridgehead/pki/${SITE_ID}.priv.pem | base64 | head -c 30)"
2023-10-11 08:09:49 +02:00
fi
2023-10-24 07:41:17 +02:00
}