Search in sources :

Example 1 with SarsCov2ExpositionKategorieElement

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);
}
Also used : SarsCov2ExpositionKategorieElement(org.ehrbase.fhirbridge.ehr.opt.sarscov2expositioncomposition.definition.SarsCov2ExpositionKategorieElement) Coding(org.hl7.fhir.r4.model.Coding) ArrayList(java.util.ArrayList) CodeableConcept(org.hl7.fhir.r4.model.CodeableConcept)

Aggregations

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