Search in sources :

Example 1 with BlutdruckKategorieElement

use of org.ehrbase.fhirbridge.ehr.opt.blutdruckcomposition.definition.BlutdruckKategorieElement in project fhir-bridge by ehrbase.

the class BloodPressureCompositionConverter method mapKategorie.

private void mapKategorie(BlutdruckComposition composition, Observation resource) {
    List<BlutdruckKategorieElement> list = new ArrayList<>();
    for (CodeableConcept category : resource.getCategory()) {
        for (Coding coding : category.getCoding()) {
            BlutdruckKategorieElement blutdruckKategorieElement = new BlutdruckKategorieElement();
            blutdruckKategorieElement.setValue(coding.getCode());
            list.add(blutdruckKategorieElement);
        }
    }
    composition.setKategorie(list);
}
Also used : Coding(org.hl7.fhir.r4.model.Coding) BlutdruckKategorieElement(org.ehrbase.fhirbridge.ehr.opt.blutdruckcomposition.definition.BlutdruckKategorieElement) ArrayList(java.util.ArrayList) CodeableConcept(org.hl7.fhir.r4.model.CodeableConcept)

Aggregations

ArrayList (java.util.ArrayList)1 BlutdruckKategorieElement (org.ehrbase.fhirbridge.ehr.opt.blutdruckcomposition.definition.BlutdruckKategorieElement)1 CodeableConcept (org.hl7.fhir.r4.model.CodeableConcept)1 Coding (org.hl7.fhir.r4.model.Coding)1