diff options
| author | Niklas | 2023-12-14 12:55:09 +0100 |
|---|---|---|
| committer | GitHub | 2023-12-14 12:55:09 +0100 |
| commit | 707bc55ab60fff7ee149a21eafabdd1e7a45a22c (patch) | |
| tree | f2bc7a22b512a814cfde4afc6546734cccbea5fa /src/main/kotlin | |
| parent | d7949a7dce6802f992b787617c7c8417ce89dfd0 (diff) | |
fix: Replace the patient's id in more places (#14)
This adds studyInclusionRequests and tumorMorphology.
Diffstat (limited to 'src/main/kotlin')
| -rw-r--r-- | src/main/kotlin/dev/dnpm/etl/processor/pseudonym/extensions.kt | 7 |
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 |
