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:
@ -48,6 +48,7 @@ class RequestProcessor(
|
|||||||
|
|
||||||
val lastRequestForPatient =
|
val lastRequestForPatient =
|
||||||
requestRepository.findAllByPatientIdOrderByProcessedAtDesc(pseudonymized.patient.id)
|
requestRepository.findAllByPatientIdOrderByProcessedAtDesc(pseudonymized.patient.id)
|
||||||
|
.filter { it.type == RequestType.MTB_FILE }
|
||||||
.firstOrNull { it.status == RequestStatus.SUCCESS || it.status == RequestStatus.WARNING }
|
.firstOrNull { it.status == RequestStatus.SUCCESS || it.status == RequestStatus.WARNING }
|
||||||
|
|
||||||
if (null != lastRequestForPatient && lastRequestForPatient.fingerprint == fingerprint(mtbFile)) {
|
if (null != lastRequestForPatient && lastRequestForPatient.fingerprint == fingerprint(mtbFile)) {
|
||||||
|
Reference in New Issue
Block a user