use of org.ehrbase.fhirbridge.ehr.opt.sarscov2expositioncomposition.definition.SarsCov2ExpositionKategorieElement in project fhir-bridge by ehrbase.
the class SarsCov2KnownExposureCompositionConverter method mapKategorie.
private void mapKategorie(SARSCoV2ExpositionComposition composition, Observation resource) {
List<SarsCov2ExpositionKategorieElement> list = new ArrayList<>();
for (CodeableConcept category : resource.getCategory()) {
for (Coding coding : category.getCoding()) {
SarsCov2ExpositionKategorieElement sarsCov2ExpositionKategorieElement = new SarsCov2ExpositionKategorieElement();
sarsCov2ExpositionKategorieElement.setValue(coding.getCode());
list.add(sarsCov2ExpositionKategorieElement);
}
}
composition.setKategorie(list);
}
Aggregations