summaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
authorPaul-Christian Volkmer2026-03-06 21:15:35 +0100
committerPaul-Christian Volkmer2026-03-06 21:15:35 +0100
commit9eb8d74117c4c363f787fbc3e02a90e7f21a402e (patch)
treeede4a2f7898d70fca48e789dd98a7ade16d4790c /src/main
parent5a345650ce755516d25fdc6aa3443cd236956aad (diff)
fix: ensure metadata is initialized using MtbFileConsentService
Diffstat (limited to 'src/main')
-rw-r--r--src/main/kotlin/dev/dnpm/etl/processor/services/ConsentProcessor.kt4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/kotlin/dev/dnpm/etl/processor/services/ConsentProcessor.kt b/src/main/kotlin/dev/dnpm/etl/processor/services/ConsentProcessor.kt
index 1880528..4a9a6bd 100644
--- a/src/main/kotlin/dev/dnpm/etl/processor/services/ConsentProcessor.kt
+++ b/src/main/kotlin/dev/dnpm/etl/processor/services/ConsentProcessor.kt
@@ -47,13 +47,13 @@ class ConsentProcessor(
* @return true if consent is given
*/
fun consentGatedCheckAndTryEmbedding(mtbFile: Mtb): Boolean {
+ mtbFile.ensureMetaDataIsInitialized()
+
if (consentService is MtbFileConsentService) {
// consent check is disabled
return true
}
- mtbFile.ensureMetaDataIsInitialized()
-
val personIdentifierValue = mtbFile.patient.id
val requestDate = Date.from(Instant.now(Clock.systemUTC()))