use of org.javers.core.diff.Diff in project backend by CatalogueOfLife.
the class MapperTestBase 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 SexAtBirthIT method testMapping.
@Override
public void testMapping(String resourcePath, String paragonPath) throws IOException {
Observation observation = (Observation) super.testFileLoader.loadResource(resourcePath);
SexAtBirthConverter sexAtBirthConverter = new SexAtBirthConverter();
GECCOPersonendatenComposition mapped = sexAtBirthConverter.convert(observation);
Diff diff = compareCompositions(getJavers(), paragonPath, mapped);
assertEquals(0, diff.getChanges().size());
}
use of org.javers.core.diff.Diff 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());
}
use of org.javers.core.diff.Diff in project fhir-bridge by ehrbase.
the class PatientIT method mappingPatient.
@Test
void mappingPatient() throws IOException {
Patient patient = (Patient) super.testFileLoader.loadResource("create-patient.json");
PatientCompositionConverter patientCompositionConverterConverter = new PatientCompositionConverter();
GECCOPersonendatenComposition mappedGeccoPersonendatenComposition = patientCompositionConverterConverter.convert(patient);
Diff diff = compareCompositions(getJavers(), "paragon-GECCO-patient-mapping-output.json", mappedGeccoPersonendatenComposition);
assertEquals(0, diff.getChanges().size());
}
use of org.javers.core.diff.Diff in project fhir-bridge by ehrbase.
the class BodyWeightIT method testMapping.
@Override
public void testMapping(String resourcePath, String paragonPath) throws IOException {
Observation observation = (Observation) super.testFileLoader.loadResource(resourcePath);
BodyWeightCompositionConverter bodyWeightCompositionConverter = new BodyWeightCompositionConverter();
KoerpergewichtComposition mapped = bodyWeightCompositionConverter.convert(observation);
Diff diff = compareCompositions(getJavers(), paragonPath, mapped);
assertEquals(0, diff.getChanges().size());
}
Aggregations