summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNiklas2023-12-14 12:55:09 +0100
committerGitHub2023-12-14 12:55:09 +0100
commit707bc55ab60fff7ee149a21eafabdd1e7a45a22c (patch)
treef2bc7a22b512a814cfde4afc6546734cccbea5fa /src
parentd7949a7dce6802f992b787617c7c8417ce89dfd0 (diff)
fix: Replace the patient's id in more places (#14)
This adds studyInclusionRequests and tumorMorphology.
Diffstat (limited to 'src')
-rw-r--r--src/main/kotlin/dev/dnpm/etl/processor/pseudonym/extensions.kt7
1 files 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