Search in sources :

Example 1 with Covid19TherapieObservation

use of org.ehrbase.fhirbridge.ehr.opt.geccomedikationcomposition.definition.Covid19TherapieObservation 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;
}
Also used : Covid19TherapieObservation(org.ehrbase.fhirbridge.ehr.opt.geccomedikationcomposition.definition.Covid19TherapieObservation) Coding(org.hl7.fhir.r4.model.Coding) ArrayList(java.util.ArrayList) Covid19TherapieBeliebigesEreignisChoice(org.ehrbase.fhirbridge.ehr.opt.geccomedikationcomposition.definition.Covid19TherapieBeliebigesEreignisChoice)

Aggregations

ArrayList (java.util.ArrayList)1 Covid19TherapieBeliebigesEreignisChoice (org.ehrbase.fhirbridge.ehr.opt.geccomedikationcomposition.definition.Covid19TherapieBeliebigesEreignisChoice)1 Covid19TherapieObservation (org.ehrbase.fhirbridge.ehr.opt.geccomedikationcomposition.definition.Covid19TherapieObservation)1 Coding (org.hl7.fhir.r4.model.Coding)1