How to Create a Custom Querystring
I am new to OHIF and trying to integrate OHIF V3.8 for a local radiology clinic. I am using the dcmjs-org/dicomweb-server for the pacs and I have configured it to stow images by clinic id.
- The issue is that I need this to be the query that OHIF creates:
/studies?clinicId=1&limit=101&offset=0&fuzzymatching=false&includefield=00081030%2C00080060
- and OHIF seems to be asking for this:
/studies?clinicId=1/studies?limit=101&offset=0&fuzzymatching=false&includefield=00081030%2C00080060
- I want to know how to remove the extra /studies after clinicId (…clinicId=1/studies?..)
This is my datasource configuration (default.js):
dataSources: [
{
namespace: '@ohif/extension-default.dataSourcesModule.dicomweb',
sourceName: 'dicomweb',
configuration: {
friendlyName: 'dcmjs DICOMWeb Server',
name: 'PACS',
wadoUriRoot: 'http://localhost:5985',
qidoRoot: 'http://localhost:5985',
wadoRoot: 'http://localhost:5985',
qidoSupportsIncludeField: true,
supportsReject: true,
imageRendering: 'wadors',
thumbnailRendering: 'wadors',
enableStudyLazyLoad: true,
supportsFuzzyMatching: false,
supportsWildcard: true,
omitQuotationForMultipartRequest: true,
onConfiguration: dicomWebConfig => {
const clinicId = '1'; //hardcoded for testing
const updatedQidoRoot = `${dicomWebConfig.qidoRoot}studies/?clinicId=${clinicId}`;
return {
...dicomWebConfig,
qidoRoot: updatedQidoRoot,
};
},
},
},
I have been tackling with this for a while and would appreciate any help or guidance, thank you!
- I am using OHIF V3.8