use of org.javers.core.diff.Diff in project fhir-bridge by ehrbase.
the class PregnancyStatusIT method testMapping.
@Override
public void testMapping(String resourcePath, String paragonPath) throws IOException {
Observation observation = (Observation) super.testFileLoader.loadResource(resourcePath);
PregnancyStatusCompositionConverter pregnancyStatusCompositionConverter = new PregnancyStatusCompositionConverter();
SchwangerschaftsstatusComposition mapped = pregnancyStatusCompositionConverter.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 RespirationRateIT method testMapping.
@Override
public void testMapping(String resourcePath, String paragonPath) throws IOException {
Observation observation = (Observation) super.testFileLoader.loadResource(resourcePath);
RespiratoryRateCompositionConverter respiratoryRateCompositionConverter = new RespiratoryRateCompositionConverter();
AtemfrequenzComposition mapped = respiratoryRateCompositionConverter.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 BloodPressureIT method testMapping.
@Override
public void testMapping(String resourcePath, String paragonPath) throws IOException {
Observation observation = (Observation) super.testFileLoader.loadResource(resourcePath);
BloodPressureCompositionConverter compositionConverter = new BloodPressureCompositionConverter();
BlutdruckComposition mapped = compositionConverter.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 BodyHeightIT method testMapping.
@Override
public void testMapping(String resourcePath, String paragonPath) throws IOException {
Observation observation = (Observation) super.testFileLoader.loadResource(resourcePath);
BodyHeightCompositionConverter bodyHeightCompositionConverter = new BodyHeightCompositionConverter();
KoerpergroesseComposition mapped = bodyHeightCompositionConverter.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 BodyTemperatureIT method testMapping.
@Override
public void testMapping(String resourcePath, String paragonPath) throws IOException {
Observation observation = (Observation) super.testFileLoader.loadResource(resourcePath);
KoerpertemperaturCompositionConverter bodyTemperatureCompositionConverter = new KoerpertemperaturCompositionConverter();
KoerpertemperaturComposition mapped = bodyTemperatureCompositionConverter.convert(observation);
Diff diff = compareCompositions(getJavers(), paragonPath, mapped);
assertEquals(0, diff.getChanges().size());
}
Aggregations