From 9eb8d74117c4c363f787fbc3e02a90e7f21a402e Mon Sep 17 00:00:00 2001 From: Paul-Christian Volkmer Date: Fri, 6 Mar 2026 21:15:35 +0100 Subject: fix: ensure metadata is initialized using MtbFileConsentService --- src/main/kotlin/dev/dnpm/etl/processor/services/ConsentProcessor.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/main/kotlin/dev/dnpm/etl/processor') 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())) -- cgit v1.2.3