use of org.ehrbase.fhirbridge.ehr.opt.geccomedikationcomposition.definition.Covid19TherapieBeliebigesEreignisChoice in project fhir-bridge by ehrbase.
the class Covid19TherapieObservationConverter method convertInternal.
@Override
protected Covid19TherapieObservation convertInternal(MedicationStatement resource) {
Covid19TherapieObservation covid19TherapieObservation = new Covid19TherapieObservation();
List<Covid19TherapieBeliebigesEreignisChoice> ereignisList = new ArrayList<>();
for (Coding coding : resource.getMedicationCodeableConcept().getCoding()) {
if (coding.getSystem().equals("http://fhir.de/CodeSystem/bfarm/atc")) {
ereignisList.add(new Covid19TherapieBeliebigesEreignisPointEventConverter().convert(resource));
}
}
covid19TherapieObservation.setBeliebigesEreignis(ereignisList);
return covid19TherapieObservation;
}
Aggregations