mirror of
https://github.com/pcvolkmer/etl-processor.git
synced 2025-04-19 17:26:51 +00:00
Use duplication fingerprinting based on MTB file requests only
This commit is contained in:
parent
35cb258b13
commit
70d4fa2f0f
@ -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)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user