diff options
| author | Paul-Christian Volkmer | 2026-03-06 21:15:35 +0100 |
|---|---|---|
| committer | Paul-Christian Volkmer | 2026-03-06 21:15:35 +0100 |
| commit | 9eb8d74117c4c363f787fbc3e02a90e7f21a402e (patch) | |
| tree | ede4a2f7898d70fca48e789dd98a7ade16d4790c /src/main/kotlin/dev/dnpm/etl/processor | |
| parent | 5a345650ce755516d25fdc6aa3443cd236956aad (diff) | |
fix: ensure metadata is initialized using MtbFileConsentService
Diffstat (limited to 'src/main/kotlin/dev/dnpm/etl/processor')
| -rw-r--r-- | src/main/kotlin/dev/dnpm/etl/processor/services/ConsentProcessor.kt | 4 |
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())) |
