1
0
mirror of https://github.com/pcvolkmer/etl-processor.git synced 2025-07-01 22:22:53 +00:00

Use duplication fingerprinting based on MTB file requests only

This commit is contained in:
2023-08-02 16:10:53 +02:00
parent 35cb258b13
commit 70d4fa2f0f

View File

@ -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)) {