use of org.ehrbase.fhirbridge.ehr.converter.specific.symptom.SymptomCompositionConverter in project fhir-bridge by ehrbase.
the class SymptomIT method testMapping.
@Override
public void testMapping(String resourcePath, String paragonPath) throws IOException {
Condition condition = (Condition) testFileLoader.loadResource(resourcePath);
SymptomCompositionConverter compositionConverter = new SymptomCompositionConverter();
SymptomComposition mapped = compositionConverter.convert(condition);
Diff diff = compareCompositions(getJavers(), paragonPath, mapped);
assertEquals(0, diff.getChanges().size());
}
use of org.ehrbase.fhirbridge.ehr.converter.specific.symptom.SymptomCompositionConverter 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