use of org.javers.core.diff.Diff in project fhir-bridge by ehrbase.
the class KontaktGesundheitAbteilingIT method testMapping.
@Override
public void testMapping(String resourcePath, String paragonPath) throws IOException {
Encounter encounter = (Encounter) super.testFileLoader.loadResource(resourcePath);
PatientenAufenthaltCompositionConverter patientenAufenthaltCompositionConverter = new PatientenAufenthaltCompositionConverter();
PatientenaufenthaltComposition mapped = patientenAufenthaltCompositionConverter.convert(encounter);
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 HistoryOfVaccinationIT method testMapping.
@Override
public void testMapping(String resourcePath, String paragonPath) throws IOException {
Immunization immunization = (Immunization) super.testFileLoader.loadResource(resourcePath);
ImpfstatusCompositionConverter impfstatusCompositionConverter = new ImpfstatusCompositionConverter();
ImpfstatusComposition mappedImpfstatusComposition = impfstatusCompositionConverter.convert(immunization);
Diff diff = compareCompositions(getJavers(), paragonPath, mappedImpfstatusComposition);
assertEquals(0, diff.getChanges().size());
}
use of org.javers.core.diff.Diff in project fhir-bridge by ehrbase.
the class MedicationStatementIT method testMapping.
@Override
public void testMapping(String resourcePath, String paragonPath) throws IOException {
MedicationStatement medicationStatement = (MedicationStatement) super.testFileLoader.loadResource(resourcePath);
GECCOMedikationCompositionConverter geccoMedikationCompositionConverter = new GECCOMedikationCompositionConverter();
GECCOMedikationComposition mapped = geccoMedikationCompositionConverter.convert(medicationStatement);
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 KnownExposureIT method testMapping.
@Override
public void testMapping(String resourcePath, String paragonPath) throws IOException {
Observation observation = (Observation) super.testFileLoader.loadResource(resourcePath);
SarsCov2KnownExposureCompositionConverter compositionConverter = new SarsCov2KnownExposureCompositionConverter();
SARSCoV2ExpositionComposition 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 PCRIT method testMapping.
@Override
public void testMapping(String resourcePath, String paragonPath) throws IOException {
Observation observation = (Observation) super.testFileLoader.loadResource(resourcePath);
PCRCompositionConverter pcrCompositionConverter = new PCRCompositionConverter();
GECCOVirologischerBefundComposition mapped = pcrCompositionConverter.convert(observation);
Diff diff = compareCompositions(getJavers(), paragonPath, mapped);
assertEquals(0, diff.getChanges().size());
}
Aggregations