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);
}
Aggregations