use of org.ehrbase.fhirbridge.ehr.converter.specific.sofascore.SofaScoreCompositionConverter in project fhir-bridge by ehrbase.
the class SofaScoreIT method executeMappingException.
@Override
public Exception executeMappingException(String resource) throws IOException {
Observation observation = (Observation) testFileLoader.loadResource(resource);
SofaScoreCompositionConverter converter = new SofaScoreCompositionConverter();
return assertThrows(Exception.class, () -> converter.convert(observation));
}
use of org.ehrbase.fhirbridge.ehr.converter.specific.sofascore.SofaScoreCompositionConverter in project fhir-bridge by ehrbase.
the class ConversionConfiguration method registerObservationConverters.
private void registerObservationConverters(ConversionService conversionService) {
conversionService.registerConverter(Profile.BODY_HEIGHT, new BodyHeightCompositionConverter());
conversionService.registerConverter(Profile.BLOOD_GAS_PANEL, new BloodGasPanelCompositionConverter());
conversionService.registerConverter(Profile.ANTI_BODY_PANEL, new GECCOSerologischerBefundCompositionConverter());
conversionService.registerConverter(Profile.BLOOD_PRESSURE, new BloodPressureCompositionConverter());
conversionService.registerConverter(Profile.BODY_TEMP, new KoerpertemperaturCompositionConverter());
conversionService.registerConverter(Profile.BODY_WEIGHT, new BodyWeightCompositionConverter());
conversionService.registerConverter(Profile.CLINICAL_FRAILTY_SCALE, new ClinicalFrailtyScaleScoreCompositionConverter());
conversionService.registerConverter(Profile.CLINICAL_TRIAL_PARTICIPATION, new ClinicalTrialParticipationCompositionConverter());
conversionService.registerConverter(Profile.CLINICAL_TRIAL_DUE_TO_COVID, new ClinicalTrialParticipationCompositionConverter());
conversionService.registerConverter(Profile.CORONAVIRUS_NACHWEIS_TEST, new CoronavirusNachweisTestCompositionConverter());
conversionService.registerConverter(Profile.FIO2, new FiO2CompositionConverter());
conversionService.registerConverter(Profile.HEART_RATE, new HerzfrequenzCompositionConverter());
conversionService.registerConverter(Profile.KNOWN_EXPOSURE, new SarsCov2KnownExposureCompositionConverter());
conversionService.registerConverter(Profile.PATIENT_DISCHARGE, new PatientDischargeCompositionConverter());
conversionService.registerConverter(Profile.PATIENT_IN_ICU, new PatientInIcuCompositionConverter());
conversionService.registerConverter(Profile.PCR, new PCRCompositionConverter());
conversionService.registerConverter(Profile.PREGNANCY_STATUS, new PregnancyStatusCompositionConverter());
conversionService.registerConverter(Profile.OBSERVATION_LAB, new ObservationLabCompositionConverter());
conversionService.registerConverter(Profile.RESPIRATORY_RATE, new RespiratoryRateCompositionConverter());
conversionService.registerConverter(Profile.SOFA_SCORE, new SofaScoreCompositionConverter());
conversionService.registerConverter(Profile.SMOKING_STATUS, new RaucherstatusCompositionConverter());
conversionService.registerConverter(Profile.TRAVEL_HISTORY, new HistoryOfTravelCompositionConverter());
conversionService.registerConverter(Profile.OXYGEN_SATURATION, new PulseOximetryCompositionConverter());
conversionService.registerConverter(Profile.OXYGEN_SATURATION, new PulseOximetryCompositionConverter());
conversionService.registerConverter(Profile.VIROLOGISCHER_BEFUND, new VirologischerBefundCompositionConverter());
conversionService.registerConverter(Profile.SEX_AT_BIRTH, new SexAtBirthConverter());
}
use of org.ehrbase.fhirbridge.ehr.converter.specific.sofascore.SofaScoreCompositionConverter in project fhir-bridge by ehrbase.
the class SofaScoreIT method testMapping.
@Override
public void testMapping(String resourcePath, String paragonPath) throws IOException {
Observation observation = (Observation) super.testFileLoader.loadResource(resourcePath);
SofaScoreCompositionConverter converter = new SofaScoreCompositionConverter();
SOFAComposition composition = converter.convert(observation);
Diff diff = compareCompositions(getJavers(), paragonPath, composition);
assertEquals(0, diff.getChanges().size());
}
Aggregations