I’m trying to integrate OHIF-viewer v3 into another react app.
I need to configure OHIF viewer so that it request data from server like this:
or without “contentType” and “transferSyntax” params to retrieve JPEG content.
I’ve tried adding “onConfiguration” to config file.
onConfiguration: (dicomWebConfig, options) => {
const { query } = options;
const StudyUID = query.get('StudyInstanceUIDs');
const SeriesUID = query.get('SeriesUID');
const objectUID = query.get('objectUID');
const pathUrl = `http://192.168.3.12:8080/wado?studyUID=${StudyUID}&seriesUID=${SeriesUID}&objectUID=${objectUID}&requestType=WADO&contentType=application/dicom&transferSyntax=*`;
return {
...dicomWebConfig,
wadoRoot: pathUrl,
qidoRoot: pathUrl,
wadoUri: pathUrl,
wadoUriRoot: pathUrl,
};
}
but viewer automatically add these search parameters to the end of the URI:
/studies?limit=101&offset=0&fuzzymatching=false&includefield=00081030%2C00080060&StudyInstanceUID=1.3.46.670589.11.70423.5.0.7060.2023082617190685068
Also, there are these errors printed on console:
Uncaught (in promise) Error: Invalid study URL
Error: RetrieveMetadataLoader failed
How can I config OHIF to request resources according to server api?
I’m quite new to both DICOM and OHIF viewer.