use of org.openehealth.ipf.platform.camel.ihe.continua.hrn.converters.DataHandlerToByteArrayConverter in project ipf by oehf.
the class DocumentTest method setUp.
@BeforeEach
public void setUp() throws Exception {
var somePatientID = new Identifiable("id1", new AssigningAuthority("1.3"));
someData = SampleData.createDataHandler();
docEntry = SampleData.createDocumentEntry(somePatientID);
var conversionService = new GenericConversionService();
conversionService.addConverter(new DataHandlerToByteArrayConverter());
conversionService.addConverter(new ByteArrayToStringConverter());
conversionService.addConverter(new ByteArrayToClinicalDocumentConverter());
conversionService.addConverter(new ByteArrayToDomConverter());
Document.setConversionService(new SpringTypeConverter(conversionService));
}
Aggregations