diff options
Diffstat (limited to 'src/main/kotlin/dev/dnpm')
| -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())) |
