Skip to content

Commit

Permalink
re-order commented code
Browse files Browse the repository at this point in the history
  • Loading branch information
chgl committed Nov 4, 2024
1 parent 9480549 commit 8ead29d
Showing 1 changed file with 7 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,7 @@
import org.hl7.fhir.r4.model.Identifier;
import org.hl7.fhir.r4.model.Period;
import org.hl7.fhir.r4.model.Procedure;
import org.hl7.fhir.r4.model.Quantity;
import org.hl7.fhir.r4.model.Reference;
import org.hl7.fhir.r4.model.StringType;
import org.miracum.streams.ume.obdstofhir.FhirProperties;
import org.miracum.streams.ume.obdstofhir.mapper.ObdsToFhirMapper;
import org.slf4j.Logger;
Expand Down Expand Up @@ -77,13 +75,6 @@ public Procedure map(STTyp st, Reference subject) {
var dataAbsentConcept = new CodeableConcept();
dataAbsentConcept.addExtension(dataAbsentExtension);

var dataAbsentQuantity = new Quantity();
dataAbsentQuantity.setSystem(fhirProperties.getSystems().getUcum());
dataAbsentQuantity.setCodeElement(dataAbsentCode);
var absentUnit = new StringType();
absentUnit.addExtension(dataAbsentExtension);
dataAbsentQuantity.setUnitElement(absentUnit);

var performedStart = new DateTimeType();
performedStart.addExtension(dataAbsentExtension);
var performed = new Period().setStartElement(performedStart);
Expand Down Expand Up @@ -125,6 +116,13 @@ public Procedure map(STTyp st, Reference subject) {
bestrahlung.addExtension("Zielgebiet", zielgebiet);

/* The extensions below are optional:
var dataAbsentQuantity = new Quantity();
dataAbsentQuantity.setSystem(fhirProperties.getSystems().getUcum());
dataAbsentQuantity.setCodeElement(dataAbsentCode);
var absentUnit = new StringType();
absentUnit.addExtension(dataAbsentExtension);
dataAbsentQuantity.setUnitElement(absentUnit);
bestrahlung.addExtension("Zielgebiet_Lateralitaet", dataAbsentConcept);
bestrahlung.addExtension("Gesamtdosis", dataAbsentQuantity);
bestrahlung.addExtension("Einzeldosis", dataAbsentQuantity);
Expand Down

0 comments on commit 8ead29d

Please sign in to comment.