Search in sources :

Example 1 with VorliegendeDiagnoseEvaluation

use of org.ehrbase.fhirbridge.ehr.opt.geccodiagnosecomposition.definition.VorliegendeDiagnoseEvaluation in project fhir-bridge by ehrbase.

the class GECCODiagnoseCompositionConverter method getVorliegendeDiagnose.

private Optional<VorliegendeDiagnoseEvaluation> getVorliegendeDiagnose(Condition resource) {
    VorliegendeDiagnoseEvaluationConverter vorliegendeDiagnoseEvaluationConverter = new VorliegendeDiagnoseEvaluationConverter();
    VorliegendeDiagnoseEvaluation vorliegendeDiagnose = vorliegendeDiagnoseEvaluationConverter.convert(resource);
    if (vorliegendeDiagnoseEvaluationConverter.getIsEmpty()) {
        return Optional.empty();
    }
    return Optional.of(vorliegendeDiagnose);
}
Also used : VorliegendeDiagnoseEvaluation(org.ehrbase.fhirbridge.ehr.opt.geccodiagnosecomposition.definition.VorliegendeDiagnoseEvaluation)

Example 2 with VorliegendeDiagnoseEvaluation

use of org.ehrbase.fhirbridge.ehr.opt.geccodiagnosecomposition.definition.VorliegendeDiagnoseEvaluation in project fhir-bridge by ehrbase.

the class GECCODiagnoseCompositionConverter method convertInternal.

@Override
public GECCODiagnoseComposition convertInternal(@NonNull Condition resource) {
    GECCODiagnoseComposition composition = new GECCODiagnoseComposition();
    Optional<VorliegendeDiagnoseEvaluation> vorliegendeDiagnose = getVorliegendeDiagnose(resource);
    if (resource.getVerificationStatus().isEmpty()) {
        composition.setUnbekannteDiagnose(new UnbekannteDiagnoseEvaluationConverter().convert(resource));
    } else {
        mapVerficationStatus(resource, vorliegendeDiagnose, composition);
    }
    mapCategoryCoding(resource, composition);
    return composition;
}
Also used : GECCODiagnoseComposition(org.ehrbase.fhirbridge.ehr.opt.geccodiagnosecomposition.GECCODiagnoseComposition) VorliegendeDiagnoseEvaluation(org.ehrbase.fhirbridge.ehr.opt.geccodiagnosecomposition.definition.VorliegendeDiagnoseEvaluation)

Example 3 with VorliegendeDiagnoseEvaluation

use of org.ehrbase.fhirbridge.ehr.opt.geccodiagnosecomposition.definition.VorliegendeDiagnoseEvaluation in project fhir-bridge by ehrbase.

the class VorliegendeDiagnoseEvaluationConverter method convertInternal.

@Override
protected VorliegendeDiagnoseEvaluation convertInternal(Condition resource) {
    isEmpty = true;
    VorliegendeDiagnoseEvaluation vorliegendeDiagnose = new VorliegendeDiagnoseEvaluation();
    mapNameDesProblemsDerDiagnose(resource, vorliegendeDiagnose);
    mapBodySite(resource, vorliegendeDiagnose);
    mapSeverity(resource, vorliegendeDiagnose);
    mapKommentar(resource, vorliegendeDiagnose);
    mapDates(resource, vorliegendeDiagnose);
    return vorliegendeDiagnose;
}
Also used : VorliegendeDiagnoseEvaluation(org.ehrbase.fhirbridge.ehr.opt.geccodiagnosecomposition.definition.VorliegendeDiagnoseEvaluation)

Aggregations

VorliegendeDiagnoseEvaluation (org.ehrbase.fhirbridge.ehr.opt.geccodiagnosecomposition.definition.VorliegendeDiagnoseEvaluation)3 GECCODiagnoseComposition (org.ehrbase.fhirbridge.ehr.opt.geccodiagnosecomposition.GECCODiagnoseComposition)1