From 70d4fa2f0ff4b38757cabc967b3f38a63674ed47 Mon Sep 17 00:00:00 2001 From: Paul-Christian Volkmer Date: Wed, 2 Aug 2023 16:10:53 +0200 Subject: [PATCH] Use duplication fingerprinting based on MTB file requests only --- .../kotlin/dev/dnpm/etl/processor/services/RequestProcessor.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/kotlin/dev/dnpm/etl/processor/services/RequestProcessor.kt b/src/main/kotlin/dev/dnpm/etl/processor/services/RequestProcessor.kt index 7d110b1..afac40b 100644 --- a/src/main/kotlin/dev/dnpm/etl/processor/services/RequestProcessor.kt +++ b/src/main/kotlin/dev/dnpm/etl/processor/services/RequestProcessor.kt @@ -48,6 +48,7 @@ class RequestProcessor( val lastRequestForPatient = requestRepository.findAllByPatientIdOrderByProcessedAtDesc(pseudonymized.patient.id) + .filter { it.type == RequestType.MTB_FILE } .firstOrNull { it.status == RequestStatus.SUCCESS || it.status == RequestStatus.WARNING } if (null != lastRequestForPatient && lastRequestForPatient.fingerprint == fingerprint(mtbFile)) {