From 707bc55ab60fff7ee149a21eafabdd1e7a45a22c Mon Sep 17 00:00:00 2001 From: Niklas Date: Thu, 14 Dec 2023 12:55:09 +0100 Subject: [PATCH] fix: Replace the patient's id in more places (#14) This adds studyInclusionRequests and tumorMorphology. --- .../kotlin/dev/dnpm/etl/processor/pseudonym/extensions.kt | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/main/kotlin/dev/dnpm/etl/processor/pseudonym/extensions.kt b/src/main/kotlin/dev/dnpm/etl/processor/pseudonym/extensions.kt index c0050a4..0bf4913 100644 --- a/src/main/kotlin/dev/dnpm/etl/processor/pseudonym/extensions.kt +++ b/src/main/kotlin/dev/dnpm/etl/processor/pseudonym/extensions.kt @@ -35,7 +35,10 @@ infix fun MtbFile.pseudonymizeWith(pseudonymizeService: PseudonymizeService) { this.familyMemberDiagnoses.forEach { it.patient = patientPseudonym } this.geneticCounsellingRequests.forEach { it.patient = patientPseudonym } this.histologyReevaluationRequests.forEach { it.patient = patientPseudonym } - this.histologyReports.forEach { it.patient = patientPseudonym } + this.histologyReports.forEach { + it.patient = patientPseudonym + it.tumorMorphology.patient = patientPseudonym + } this.lastGuidelineTherapies.forEach { it.patient = patientPseudonym } this.molecularPathologyFindings.forEach { it.patient = patientPseudonym } this.molecularTherapies.forEach { molecularTherapy -> molecularTherapy.history.forEach { it.patient = patientPseudonym } } @@ -45,6 +48,6 @@ infix fun MtbFile.pseudonymizeWith(pseudonymizeService: PseudonymizeService) { this.recommendations.forEach { it.patient = patientPseudonym } this.recommendations.forEach { it.patient = patientPseudonym } this.responses.forEach { it.patient = patientPseudonym } - this.specimens.forEach { it.patient = patientPseudonym } + this.studyInclusionRequests.forEach { it.patient = patientPseudonym } this.specimens.forEach { it.patient = patientPseudonym } } \ No newline at end of file