use of org.ehrbase.fhirbridge.ehr.converter.specific.hipdocument.DocumentReferenceToHipDocumentConverter in project fhir-bridge by ehrbase.
the class DocumentReferenceIT method executeMappingException.
@Override
public Exception executeMappingException(String resource) throws IOException {
DocumentReference documentReference = (DocumentReference) testFileLoader.loadResource(resource);
DocumentReferenceToHipDocumentConverter converter = new DocumentReferenceToHipDocumentConverter();
return assertThrows(ConversionException.class, () -> converter.convert(documentReference));
}
use of org.ehrbase.fhirbridge.ehr.converter.specific.hipdocument.DocumentReferenceToHipDocumentConverter 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());
}
Aggregations