use of org.javers.core.diff.Diff in project fhir-bridge by ehrbase.
the class DnrIT method testMapping.
@Override
public void testMapping(String resourcePath, String paragonPath) throws IOException {
Consent consent = (Consent) super.testFileLoader.loadResource(resourcePath);
DnrAnordnungCompositionConverter dnrAnordnungCompositionConverter = new DnrAnordnungCompositionConverter();
DNRAnordnungComposition mapped = dnrAnordnungCompositionConverter.convert(consent);
Diff diff = compareCompositions(getJaversIgnoreStartTime(), paragonPath, mapped);
assertEquals(0, diff.getChanges().size());
}
use of org.javers.core.diff.Diff in project fhir-bridge by ehrbase.
the class DiagnosticReportLabIT method testMapping.
@Override
public void testMapping(String resourcePath, String paragonPath) throws IOException {
DiagnosticReport resource = (DiagnosticReport) super.testFileLoader.loadResource(resourcePath);
DiagnosticReportLabCompositionConverter compositionConverter = new DiagnosticReportLabCompositionConverter();
GECCOLaborbefundComposition geccoLaborbefundComposition = compositionConverter.convert(resource);
Diff diff = compareCompositions(getJavers(), paragonPath, geccoLaborbefundComposition);
assertEquals(diff.getChanges().size(), 0);
}
use of org.javers.core.diff.Diff in project fhir-bridge by ehrbase.
the class RadiologyReportIT method testMapping.
@Override
public void testMapping(String resourcePath, String paragonPath) throws IOException {
DiagnosticReport diagnosticReport = (DiagnosticReport) super.testFileLoader.loadResource(resourcePath);
RadiologischerBefundCompositionConverter radiologischerBefundConverter = new RadiologischerBefundCompositionConverter();
GECCORadiologischerBefundComposition mappedGeccoRadiologischerBefundComposition = radiologischerBefundConverter.convert(diagnosticReport);
Diff diff = compareCompositions(getJavers(), paragonPath, mappedGeccoRadiologischerBefundComposition);
assertEquals(diff.getChanges().size(), 0);
}
use of org.javers.core.diff.Diff in project fhir-bridge by ehrbase.
the class DocumentReferenceIT method testMapping.
@Override
public void testMapping(String resourcePath, String paragonPath) throws IOException {
DocumentReference documentReference = (DocumentReference) super.testFileLoader.loadResource(resourcePath);
DocumentReferenceToHipDocumentConverter converter = new DocumentReferenceToHipDocumentConverter();
HIPDocumentComposition result = converter.convert(documentReference);
Diff diff = compareCompositions(getJavers(), paragonPath, result);
assertEquals(0, diff.getChanges().size());
}
use of org.javers.core.diff.Diff in project fhir-bridge by ehrbase.
the class KontaktGesundheitEinrichtungIT method testMapping.
@Override
public void testMapping(String resourcePath, String paragonPath) throws IOException {
Encounter encounter = (Encounter) super.testFileLoader.loadResource(resourcePath);
StationaererVersorgungsfallCompositionConverter stationaererVersorgungsfallCompositionConverter = new StationaererVersorgungsfallCompositionConverter();
StationaererVersorgungsfallComposition mapped = stationaererVersorgungsfallCompositionConverter.convert(encounter);
Diff diff = compareCompositions(getJavers(), paragonPath, mapped);
assertEquals(0, diff.getChanges().size());
}
Aggregations