From c1548a0bb3463abd33e158475f09e0a13d67f5b0 Mon Sep 17 00:00:00 2001 From: Paul-Christian Volkmer Date: Tue, 19 Nov 2024 16:07:11 +0100 Subject: [PATCH] refactor: use interface Set instead of HashSet (#160) [skip ci] --- .../ume/obdstofhir/mapper/ObdsMedicationStatementMapper.java | 3 ++- .../streams/ume/obdstofhir/mapper/ObdsProcedureMapper.java | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/main/java/org/miracum/streams/ume/obdstofhir/mapper/ObdsMedicationStatementMapper.java b/src/main/java/org/miracum/streams/ume/obdstofhir/mapper/ObdsMedicationStatementMapper.java index aba9ef67..7b86a297 100644 --- a/src/main/java/org/miracum/streams/ume/obdstofhir/mapper/ObdsMedicationStatementMapper.java +++ b/src/main/java/org/miracum/streams/ume/obdstofhir/mapper/ObdsMedicationStatementMapper.java @@ -2,6 +2,7 @@ import java.util.HashSet; import java.util.List; +import java.util.Set; import org.hl7.fhir.r4.model.*; import org.miracum.streams.ume.obdstofhir.FhirProperties; import org.miracum.streams.ume.obdstofhir.lookup.SYSTTherapieartCSLookup; @@ -123,7 +124,7 @@ public MedicationStatement createSystemtherapyMedicationStatement( String softwareId, Meldeanlass meldeanlass, String substance, - HashSet substances) { + Set substances) { var systemTherapy = meldung.getMenge_SYST().getSYST(); diff --git a/src/main/java/org/miracum/streams/ume/obdstofhir/mapper/ObdsProcedureMapper.java b/src/main/java/org/miracum/streams/ume/obdstofhir/mapper/ObdsProcedureMapper.java index 657a435c..ce7a0b33 100644 --- a/src/main/java/org/miracum/streams/ume/obdstofhir/mapper/ObdsProcedureMapper.java +++ b/src/main/java/org/miracum/streams/ume/obdstofhir/mapper/ObdsProcedureMapper.java @@ -141,7 +141,7 @@ public Procedure createOpProcedure( String senderId, String softwareId, String opsCode, - HashSet distinctOpsSet) { + Set distinctOpsSet) { var op = meldung.getMenge_OP().getOP(); @@ -306,7 +306,7 @@ public Procedure createRadiotherapyProcedure( Meldeanlass meldeanlass, Bestrahlung radio, Tupel timeSpan, - HashSet distinctPartialRadiations) { + Set distinctPartialRadiations) { var radioTherapy = meldung.getMenge_ST().getST();