Skip to content

Commit

Permalink
fix(wado-proxy): Use wado proxy to retrieve images if enabled in conf…
Browse files Browse the repository at this point in the history
…iguration
  • Loading branch information
evren217 committed May 1, 2019
1 parent 46ed339 commit 7ff9a87
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -433,8 +433,8 @@ async function resultDataToStudyMetadata(server, studyInstanceUid, resultData) {
contrastBolusAgent: DICOMWeb.getString(instance['00180010']),
radiopharmaceuticalInfo: getRadiopharmaceuticalInfo(instance),
baseWadoRsUri: baseWadoRsUri,
wadouri: wadouri,
wadorsuri: wadorsuri,
wadouri: WADOProxy.convertURL(wadouri, server),
wadorsuri: WADOProxy.convertURL(wadorsuri, server),
imageRendering: server.imageRendering,
thumbnailRendering: server.thumbnailRendering
};
Expand Down
4 changes: 4 additions & 0 deletions Packages/ohif-wadoproxy/both/convertURL.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ WADOProxy.convertURL = (url, serverConfiguration) => {
}

const { settings } = WADOProxy;
if (!settings.enabled) {
return url;
}

const serverId = serverConfiguration._id;
const query = queryString.stringify({url, serverId});

Expand Down
3 changes: 3 additions & 0 deletions config/dcm4cheeDICOMWeb.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,5 +50,8 @@
"studyListFunctionsEnabled": true,
"studyListDateFilterNumDays": 1
}
},
"proxy": {
"enabled": true
}
}
3 changes: 3 additions & 0 deletions config/publicOrthancDICOMWeb.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,8 @@
}
]
}
},
"proxy": {
"enabled": true
}
}

1 comment on commit 7ff9a87

@MathisGuilhin
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hello @evren217 ,
I'm trying to deploy your solution with wado proxy to display images in OHIF Viewer, using a conquest server (similar to orthanc i guess).
I'm wondering how to setup properly everything and I have few questions :

Why do you have two DICOMWeb json files, and what are their purposes?

Wholly, how many config files do you need to make it run (without image display I only needed one, but now I guess i need at least one more).

How do you start meteor? according to https://github.com/OHIF/Viewers/wiki/Building-for-Production in the output folder with node main.js? If so, how do you configure multiples config files?

If the servers are running and the config files are rights, do I need to change anything else to display the images?

Thank you in advance,

Please sign in to comment.