Search in sources :

Example 1 with GECCODiagnoseCompositionConverter

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

Example 2 with GECCODiagnoseCompositionConverter

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);
}
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

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