Search in sources :

Example 41 with Diff

use of org.javers.core.diff.Diff in project fhir-bridge by ehrbase.

the class ClinicalFrailtyIT method testMapping.

@Override
public void testMapping(String resourcePath, String paragonPath) throws IOException {
    Observation observation = (Observation) super.testFileLoader.loadResource(resourcePath);
    ClinicalFrailtyScaleScoreCompositionConverter compositionConverter = new ClinicalFrailtyScaleScoreCompositionConverter();
    KlinischeFrailtySkalaComposition mapped = compositionConverter.convert(observation);
    Diff diff = compareCompositions(getJavers(), paragonPath, mapped);
    assertEquals(0, diff.getChanges().size());
}
Also used : ClinicalFrailtyScaleScoreCompositionConverter(org.ehrbase.fhirbridge.ehr.converter.specific.clinicalfrailty.ClinicalFrailtyScaleScoreCompositionConverter) KlinischeFrailtySkalaComposition(org.ehrbase.fhirbridge.ehr.opt.klinischefrailtyskalacomposition.KlinischeFrailtySkalaComposition) Diff(org.javers.core.diff.Diff) KlinischeFrailtySkalaCfsObservation(org.ehrbase.fhirbridge.ehr.opt.klinischefrailtyskalacomposition.definition.KlinischeFrailtySkalaCfsObservation) Observation(org.hl7.fhir.r4.model.Observation)

Example 42 with Diff

use of org.javers.core.diff.Diff in project fhir-bridge by ehrbase.

the class FioIT method testMapping.

@Override
public void testMapping(String resourcePath, String paragonPath) throws IOException {
    Observation observation = (Observation) super.testFileLoader.loadResource(resourcePath);
    FiO2CompositionConverter fiO2CompositionConverter = new FiO2CompositionConverter();
    BeatmungswerteComposition mapped = fiO2CompositionConverter.convert(observation);
    Diff diff = compareCompositions(getJavers(), paragonPath, mapped);
    assertEquals(0, diff.getChanges().size());
}
Also used : BeatmungswerteComposition(org.ehrbase.fhirbridge.ehr.opt.beatmungswertecomposition.BeatmungswerteComposition) FiO2CompositionConverter(org.ehrbase.fhirbridge.ehr.converter.specific.fio2.FiO2CompositionConverter) Diff(org.javers.core.diff.Diff) BeobachtungenAmBeatmungsgeraetObservation(org.ehrbase.fhirbridge.ehr.opt.beatmungswertecomposition.definition.BeobachtungenAmBeatmungsgeraetObservation) Observation(org.hl7.fhir.r4.model.Observation)

Example 43 with Diff

use of org.javers.core.diff.Diff in project fhir-bridge by ehrbase.

the class HeartRateIT method testMapping.

@Override
public void testMapping(String resourcePath, String paragonPath) throws IOException {
    Observation observation = (Observation) super.testFileLoader.loadResource(resourcePath);
    HerzfrequenzCompositionConverter herzfrequenzCompositionConverter = new HerzfrequenzCompositionConverter();
    HerzfrequenzComposition mapped = herzfrequenzCompositionConverter.convert(observation);
    Diff diff = compareCompositions(getJavers(), paragonPath, mapped);
    assertEquals(0, diff.getChanges().size());
}
Also used : Diff(org.javers.core.diff.Diff) HerzfrequenzObservation(org.ehrbase.fhirbridge.ehr.opt.herzfrequenzcomposition.definition.HerzfrequenzObservation) Observation(org.hl7.fhir.r4.model.Observation) HerzfrequenzCompositionConverter(org.ehrbase.fhirbridge.ehr.converter.specific.heartrate.HerzfrequenzCompositionConverter) HerzfrequenzComposition(org.ehrbase.fhirbridge.ehr.opt.herzfrequenzcomposition.HerzfrequenzComposition)

Example 44 with Diff

use of org.javers.core.diff.Diff in project fhir-bridge by ehrbase.

the class HistoryOfTravelIT method testMapping.

@Override
public void testMapping(String resourcePath, String paragonPath) throws IOException {
    Observation observation = (Observation) super.testFileLoader.loadResource(resourcePath);
    HistoryOfTravelCompositionConverter compositionConverter = new HistoryOfTravelCompositionConverter();
    ReisehistorieComposition mapped = compositionConverter.convert(observation);
    Diff diff = compareCompositions(getJavers(), paragonPath, mapped);
    assertEquals(0, diff.getChanges().size());
}
Also used : ReisehistorieComposition(org.ehrbase.fhirbridge.ehr.opt.reisehistoriecomposition.ReisehistorieComposition) Diff(org.javers.core.diff.Diff) Observation(org.hl7.fhir.r4.model.Observation) HistoryOfTravelCompositionConverter(org.ehrbase.fhirbridge.ehr.converter.specific.historyoftravel.HistoryOfTravelCompositionConverter)

Example 45 with Diff

use of org.javers.core.diff.Diff in project fhir-bridge by ehrbase.

the class PatientDischargeIT method testMapping.

@Override
public void testMapping(String resourcePath, String paragonPath) throws IOException {
    Observation observation = (Observation) super.testFileLoader.loadResource(resourcePath);
    PatientDischargeCompositionConverter patientDischargeCompositionConverter = new PatientDischargeCompositionConverter();
    GECCOEntlassungsdatenComposition mapped = patientDischargeCompositionConverter.convert(observation);
    Diff diff = compareCompositions(getJavers(), paragonPath, mapped);
    assertEquals(0, diff.getChanges().size());
}
Also used : GECCOEntlassungsdatenComposition(org.ehrbase.fhirbridge.ehr.opt.geccoentlassungsdatencomposition.GECCOEntlassungsdatenComposition) Diff(org.javers.core.diff.Diff) Observation(org.hl7.fhir.r4.model.Observation) PatientDischargeCompositionConverter(org.ehrbase.fhirbridge.ehr.converter.specific.patientdischarge.PatientDischargeCompositionConverter)

Aggregations

Diff (org.javers.core.diff.Diff)57 Observation (org.hl7.fhir.r4.model.Observation)23 Javers (org.javers.core.Javers)10 Test (org.junit.Test)5 Bundle (org.hl7.fhir.r4.model.Bundle)4 DualProtocolSaajSoapMessageFactory (ca.bc.gov.open.pcss.civil.comparison.config.DualProtocolSaajSoapMessageFactory)2 List (java.util.List)2 UsernamePasswordCredentials (org.apache.http.auth.UsernamePasswordCredentials)2 VirologischerBefundCompositionConverter (org.ehrbase.fhirbridge.ehr.converter.specific.virologischerbefund.VirologischerBefundCompositionConverter)2 GECCOPersonendatenComposition (org.ehrbase.fhirbridge.ehr.opt.geccopersonendatencomposition.GECCOPersonendatenComposition)2 VirologischerBefundComposition (org.ehrbase.fhirbridge.ehr.opt.virologischerbefundcomposition.VirologischerBefundComposition)2 BefundObservation (org.ehrbase.fhirbridge.ehr.opt.virologischerbefundcomposition.definition.BefundObservation)2 VirologischerBefundConverter (org.ehrbase.fhirbridge.fhir.bundle.converter.VirologischerBefundConverter)2 Condition (org.hl7.fhir.r4.model.Condition)2 DiagnosticReport (org.hl7.fhir.r4.model.DiagnosticReport)2 ValueChange (org.javers.core.diff.changetype.ValueChange)2 WebServiceSenderWithAuth (ca.bc.gov.open.pcss.civil.comparison.config.WebServiceSenderWithAuth)1 ca.bc.gov.open.pcss.three (ca.bc.gov.open.pcss.three)1 YesNoType (ca.bc.gov.open.pcss.two.YesNoType)1 VisibleForTesting (com.google.common.annotations.VisibleForTesting)1