feat(plugins): Add initial version of ViewportPlugin class (#242)
* Add initial version of ViewportPlugin class * Move entrypoints from OHIFPlugin to OHIF.plugins * Add URL route to DICOMWeb server for Standalone Viewer
This commit is contained in:
1 parent
ced47c765f
commit
53cd12a16a
18 files changed
+708
-562
No files matched your search
@@ -0,0 +1,21 @@
|
||||
{
|
||||
"servers": {
|
||||
"dicomWeb": [
|
||||
{
|
||||
"name": "DICOMCloud Public Server",
|
||||
"wadoUriRoot": "https://dicomcloud.azurewebsites.net/WadoUri",
|
||||
"qidoRoot": "https://dicomcloud.azurewebsites.net/qidors",
|
||||
"wadoRoot": "https://dicomcloud.azurewebsites.net/wadors",
|
||||
"qidoSupportsIncludeField": false,
|
||||
"imageRendering": "wadouri",
|
||||
"thumbnailRendering": "wadouri",
|
||||
"requestOptions": {
|
||||
"requestFromBrowser": true,
|
||||
"logRequests": true,
|
||||
"logResponses": false,
|
||||
"logTiming": true
|
||||
}
|
||||
}]
|
||||
},
|
||||
"defaultServiceType": "dicomWeb"
|
||||
}
|
||||
@@ -52,6 +52,38 @@ if (Meteor.isClient) {
|
||||
OHIF.log.info(JSON.stringify(oReq.responseText, null, 2));
|
||||
this.data = JSON.parse(oReq.responseText);
|
||||
|
||||
if (this.data.servers && query.studyInstanceUids) {
|
||||
console.warn('Using Server Definition!');
|
||||
|
||||
const server = this.data.servers.dicomWeb[0];
|
||||
server.type = 'dicomWeb';
|
||||
|
||||
const serverId = OHIF.servers.collections.servers.insert(server);
|
||||
|
||||
OHIF.servers.collections.currentServer.insert({
|
||||
serverId
|
||||
});
|
||||
|
||||
studyInstanceUids = query.studyInstanceUids.split(';');
|
||||
const seriesInstanceUids = [];
|
||||
|
||||
const viewerData = {
|
||||
studyInstanceUids,
|
||||
seriesInstanceUids
|
||||
};
|
||||
|
||||
OHIF.studies.retrieveStudiesMetadata(studyInstanceUids, seriesInstanceUids).then(studies => {
|
||||
this.data = {
|
||||
studies,
|
||||
viewerData
|
||||
};
|
||||
|
||||
next();
|
||||
});
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
next();
|
||||
});
|
||||
|
||||
|
||||
Reference in new issue
Block a user