use of org.ehrbase.fhirbridge.ehr.opt.geccodiagnosecomposition.GECCODiagnoseComposition 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;
}
use of org.ehrbase.fhirbridge.ehr.opt.geccodiagnosecomposition.GECCODiagnoseComposition in project fhir-bridge by ehrbase.
the class GECCODiagnoseIT method testMapping.
@Override
public void testMapping(String resourcePath, String paragonPath) throws IOException {
Condition resource = (Condition) super.testFileLoader.loadResource(resourcePath);
GECCODiagnoseCompositionConverter compositionConverter = new GECCODiagnoseCompositionConverter();
GECCODiagnoseComposition composition = compositionConverter.convert(resource);
Diff diff = compareCompositions(getJavers(), paragonPath, composition);
assertEquals(diff.getChanges().size(), 0);
}
Aggregations