use of org.ehrbase.fhirbridge.ehr.converter.specific.geccodiagnose.GECCODiagnoseCompositionConverter 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);
}
use of org.ehrbase.fhirbridge.ehr.converter.specific.geccodiagnose.GECCODiagnoseCompositionConverter in project fhir-bridge by ehrbase.
the class ConversionConfiguration method registerConditionConverters.
private void registerConditionConverters(ConversionService conversionService) {
conversionService.registerConverter(Profile.CONDITION_DEFAULT, new DiagnoseCompositionConverter());
conversionService.registerConverter(Profile.SYMPTOMS_COVID_19, new SymptomCompositionConverter());
GECCODiagnoseCompositionConverter converter = new GECCODiagnoseCompositionConverter();
conversionService.registerConverter(Profile.DIAGNOSE_LIVER_DISEASE, converter);
conversionService.registerConverter(Profile.DIAGNOSE_LUNG_DISEASE, converter);
conversionService.registerConverter(Profile.DIAGNOSE_DIABETES_MELLITUS, converter);
conversionService.registerConverter(Profile.DIAGNOSE_COVID_19, converter);
conversionService.registerConverter(Profile.DIAGNOSE_MALIGNANT_NEOPLASTIC_DISEASE, converter);
conversionService.registerConverter(Profile.DIAGNOSE_RHEUMATOLOGICAL_IMMUNOLOGICAL_DISEASE, converter);
conversionService.registerConverter(Profile.DIAGNOSE_CARDIOVASCULAR_DISEASE, converter);
conversionService.registerConverter(Profile.DIAGNOSE_CHRONIC_KIDNEY_DISEASE, converter);
conversionService.registerConverter(Profile.DIAGNOSE_CHRONIC_NEUROLOGICAL_MENTAL_DISEASE, converter);
conversionService.registerConverter(Profile.DIAGNOSE_GASTROINTESTINAL_ULCERS, converter);
conversionService.registerConverter(Profile.DIAGNOSE_HIV, converter);
conversionService.registerConverter(Profile.DIAGNOSE_ORGAN_RECIPIENT, converter);
conversionService.registerConverter(Profile.DIAGNOSE_COMPLICATIONS_COVID_19, converter);
conversionService.registerConverter(Profile.DIAGNOSE_DEPENDENCE_ON_VENTILATOR, converter);
}
Aggregations