mirror of
https://github.com/pcvolkmer/mv64e-etl-processor
synced 2025-09-13 17:02:52 +00:00
Use duplication fingerprinting based on MTB file requests only
This commit is contained in:
@@ -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)) {
|
||||
|
Reference in New Issue
Block a user