Search in sources :

Example 1 with SofaScoreCompositionConverter

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));
}
Also used : SofaScoreObservation(org.ehrbase.fhirbridge.ehr.opt.sofacomposition.definition.SofaScoreObservation) Observation(org.hl7.fhir.r4.model.Observation) SofaScoreCompositionConverter(org.ehrbase.fhirbridge.ehr.converter.specific.sofascore.SofaScoreCompositionConverter)

Example 2 with SofaScoreCompositionConverter

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());
}
Also used : CoronavirusNachweisTestCompositionConverter(org.ehrbase.fhirbridge.ehr.converter.specific.coronavirusnachweistest.CoronavirusNachweisTestCompositionConverter) ClinicalFrailtyScaleScoreCompositionConverter(org.ehrbase.fhirbridge.ehr.converter.specific.clinicalfrailty.ClinicalFrailtyScaleScoreCompositionConverter) PatientInIcuCompositionConverter(org.ehrbase.fhirbridge.ehr.converter.specific.patientinicu.PatientInIcuCompositionConverter) SexAtBirthConverter(org.ehrbase.fhirbridge.ehr.converter.specific.sexatbirth.SexAtBirthConverter) KoerpertemperaturCompositionConverter(org.ehrbase.fhirbridge.ehr.converter.specific.bodytemperature.KoerpertemperaturCompositionConverter) PregnancyStatusCompositionConverter(org.ehrbase.fhirbridge.ehr.converter.specific.pregnancystatus.PregnancyStatusCompositionConverter) PCRCompositionConverter(org.ehrbase.fhirbridge.ehr.converter.specific.geccovirologischerbefund.PCRCompositionConverter) SofaScoreCompositionConverter(org.ehrbase.fhirbridge.ehr.converter.specific.sofascore.SofaScoreCompositionConverter) HistoryOfTravelCompositionConverter(org.ehrbase.fhirbridge.ehr.converter.specific.historyoftravel.HistoryOfTravelCompositionConverter) BloodPressureCompositionConverter(org.ehrbase.fhirbridge.ehr.converter.specific.bloodpressure.BloodPressureCompositionConverter) BloodGasPanelCompositionConverter(org.ehrbase.fhirbridge.ehr.converter.specific.bloodgas.BloodGasPanelCompositionConverter) SarsCov2KnownExposureCompositionConverter(org.ehrbase.fhirbridge.ehr.converter.specific.knownexposure.SarsCov2KnownExposureCompositionConverter) VirologischerBefundCompositionConverter(org.ehrbase.fhirbridge.ehr.converter.specific.virologischerbefund.VirologischerBefundCompositionConverter) RespiratoryRateCompositionConverter(org.ehrbase.fhirbridge.ehr.converter.specific.respirationrate.RespiratoryRateCompositionConverter) BodyWeightCompositionConverter(org.ehrbase.fhirbridge.ehr.converter.specific.bodyweight.BodyWeightCompositionConverter) FiO2CompositionConverter(org.ehrbase.fhirbridge.ehr.converter.specific.fio2.FiO2CompositionConverter) PulseOximetryCompositionConverter(org.ehrbase.fhirbridge.ehr.converter.specific.pulseoximetry.PulseOximetryCompositionConverter) GECCOSerologischerBefundCompositionConverter(org.ehrbase.fhirbridge.ehr.converter.specific.antibodypanel.GECCOSerologischerBefundCompositionConverter) BodyHeightCompositionConverter(org.ehrbase.fhirbridge.ehr.converter.specific.bodyheight.BodyHeightCompositionConverter) ObservationLabCompositionConverter(org.ehrbase.fhirbridge.ehr.converter.specific.observationlab.ObservationLabCompositionConverter) RaucherstatusCompositionConverter(org.ehrbase.fhirbridge.ehr.converter.specific.smokingstatus.RaucherstatusCompositionConverter) HerzfrequenzCompositionConverter(org.ehrbase.fhirbridge.ehr.converter.specific.heartrate.HerzfrequenzCompositionConverter) ClinicalTrialParticipationCompositionConverter(org.ehrbase.fhirbridge.ehr.converter.specific.clinicaltrialparticipation.ClinicalTrialParticipationCompositionConverter) PatientDischargeCompositionConverter(org.ehrbase.fhirbridge.ehr.converter.specific.patientdischarge.PatientDischargeCompositionConverter)

Example 3 with SofaScoreCompositionConverter

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());
}
Also used : Diff(org.javers.core.diff.Diff) SofaScoreObservation(org.ehrbase.fhirbridge.ehr.opt.sofacomposition.definition.SofaScoreObservation) Observation(org.hl7.fhir.r4.model.Observation) SofaScoreCompositionConverter(org.ehrbase.fhirbridge.ehr.converter.specific.sofascore.SofaScoreCompositionConverter) SOFAComposition(org.ehrbase.fhirbridge.ehr.opt.sofacomposition.SOFAComposition)

Aggregations

SofaScoreCompositionConverter (org.ehrbase.fhirbridge.ehr.converter.specific.sofascore.SofaScoreCompositionConverter)3 SofaScoreObservation (org.ehrbase.fhirbridge.ehr.opt.sofacomposition.definition.SofaScoreObservation)2 Observation (org.hl7.fhir.r4.model.Observation)2 GECCOSerologischerBefundCompositionConverter (org.ehrbase.fhirbridge.ehr.converter.specific.antibodypanel.GECCOSerologischerBefundCompositionConverter)1 BloodGasPanelCompositionConverter (org.ehrbase.fhirbridge.ehr.converter.specific.bloodgas.BloodGasPanelCompositionConverter)1 BloodPressureCompositionConverter (org.ehrbase.fhirbridge.ehr.converter.specific.bloodpressure.BloodPressureCompositionConverter)1 BodyHeightCompositionConverter (org.ehrbase.fhirbridge.ehr.converter.specific.bodyheight.BodyHeightCompositionConverter)1 KoerpertemperaturCompositionConverter (org.ehrbase.fhirbridge.ehr.converter.specific.bodytemperature.KoerpertemperaturCompositionConverter)1 BodyWeightCompositionConverter (org.ehrbase.fhirbridge.ehr.converter.specific.bodyweight.BodyWeightCompositionConverter)1 ClinicalFrailtyScaleScoreCompositionConverter (org.ehrbase.fhirbridge.ehr.converter.specific.clinicalfrailty.ClinicalFrailtyScaleScoreCompositionConverter)1 ClinicalTrialParticipationCompositionConverter (org.ehrbase.fhirbridge.ehr.converter.specific.clinicaltrialparticipation.ClinicalTrialParticipationCompositionConverter)1 CoronavirusNachweisTestCompositionConverter (org.ehrbase.fhirbridge.ehr.converter.specific.coronavirusnachweistest.CoronavirusNachweisTestCompositionConverter)1 FiO2CompositionConverter (org.ehrbase.fhirbridge.ehr.converter.specific.fio2.FiO2CompositionConverter)1 PCRCompositionConverter (org.ehrbase.fhirbridge.ehr.converter.specific.geccovirologischerbefund.PCRCompositionConverter)1 HerzfrequenzCompositionConverter (org.ehrbase.fhirbridge.ehr.converter.specific.heartrate.HerzfrequenzCompositionConverter)1 HistoryOfTravelCompositionConverter (org.ehrbase.fhirbridge.ehr.converter.specific.historyoftravel.HistoryOfTravelCompositionConverter)1 SarsCov2KnownExposureCompositionConverter (org.ehrbase.fhirbridge.ehr.converter.specific.knownexposure.SarsCov2KnownExposureCompositionConverter)1 ObservationLabCompositionConverter (org.ehrbase.fhirbridge.ehr.converter.specific.observationlab.ObservationLabCompositionConverter)1 PatientDischargeCompositionConverter (org.ehrbase.fhirbridge.ehr.converter.specific.patientdischarge.PatientDischargeCompositionConverter)1 PatientInIcuCompositionConverter (org.ehrbase.fhirbridge.ehr.converter.specific.patientinicu.PatientInIcuCompositionConverter)1