use of org.javers.core.diff.Diff in project backend by CatalogueOfLife.
the class ResourceTestBase method printDiff.
protected void printDiff(Object o1, Object o2) {
Javers javers = JaversBuilder.javers().build();
Diff diff = javers.compare(o1, o2);
System.out.println(diff);
}
use of org.javers.core.diff.Diff in project fhir-bridge by ehrbase.
the class BloodGasIT method testMapping.
@Override
public void testMapping(String resourcePath, String paragonPath) throws IOException {
Bundle bundle = (Bundle) super.testFileLoader.loadResource(resourcePath);
BloodGasPanelConverter bloodGasPanelConverter = new BloodGasPanelConverter();
Observation observation = bloodGasPanelConverter.convert(bundle);
BloodGasPanelCompositionConverter bloodGasPanelCompositionConverter = new BloodGasPanelCompositionConverter();
BefundDerBlutgasanalyseComposition mappedBefundDerBlutgasanalyseComposition = bloodGasPanelCompositionConverter.convert(observation);
Diff diff = compareCompositions(getJavers(), paragonPath, mappedBefundDerBlutgasanalyseComposition);
assertEquals(diff.getChanges().size(), 0);
}
use of org.javers.core.diff.Diff in project fhir-bridge by ehrbase.
the class SerologischerBefundIT method testMapping.
@Override
public void testMapping(String resourcePath, String paragonPath) throws IOException {
Bundle bundle = (Bundle) super.testFileLoader.loadResource(resourcePath);
AntiBodyPanelConverter antiBodyPanelConverter = new AntiBodyPanelConverter();
Observation observation = antiBodyPanelConverter.convert(bundle);
GECCOSerologischerBefundCompositionConverter geccoSerologischerBefundCompositionConverter = new GECCOSerologischerBefundCompositionConverter();
GECCOSerologischerBefundComposition mappedGECCOSerologischerBefundComposition = geccoSerologischerBefundCompositionConverter.convert(observation);
Diff diff = compareCompositions(getJavers(), paragonPath, mappedGECCOSerologischerBefundComposition);
assertEquals(diff.getChanges().size(), 0);
}
use of org.javers.core.diff.Diff 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);
}
use of org.javers.core.diff.Diff 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());
}
Aggregations