Search in sources :

Example 1 with SymptomCompositionConverter

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());
}
Also used : Condition(org.hl7.fhir.r4.model.Condition) Diff(org.javers.core.diff.Diff) SymptomComposition(org.ehrbase.fhirbridge.ehr.opt.symptomcomposition.SymptomComposition) SymptomCompositionConverter(org.ehrbase.fhirbridge.ehr.converter.specific.symptom.SymptomCompositionConverter)

Example 2 with SymptomCompositionConverter

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);
}
Also used : DiagnoseCompositionConverter(org.ehrbase.fhirbridge.ehr.converter.specific.diagnose.DiagnoseCompositionConverter) GECCODiagnoseCompositionConverter(org.ehrbase.fhirbridge.ehr.converter.specific.geccodiagnose.GECCODiagnoseCompositionConverter) GECCODiagnoseCompositionConverter(org.ehrbase.fhirbridge.ehr.converter.specific.geccodiagnose.GECCODiagnoseCompositionConverter) SymptomCompositionConverter(org.ehrbase.fhirbridge.ehr.converter.specific.symptom.SymptomCompositionConverter)

Aggregations

SymptomCompositionConverter (org.ehrbase.fhirbridge.ehr.converter.specific.symptom.SymptomCompositionConverter)2 DiagnoseCompositionConverter (org.ehrbase.fhirbridge.ehr.converter.specific.diagnose.DiagnoseCompositionConverter)1 GECCODiagnoseCompositionConverter (org.ehrbase.fhirbridge.ehr.converter.specific.geccodiagnose.GECCODiagnoseCompositionConverter)1 SymptomComposition (org.ehrbase.fhirbridge.ehr.opt.symptomcomposition.SymptomComposition)1 Condition (org.hl7.fhir.r4.model.Condition)1 Diff (org.javers.core.diff.Diff)1