Skip to content

Instantly share code, notes, and snippets.

@fedorov
Last active June 2, 2022 14:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fedorov/737c7b76c7836b6d4de72f0fc1ce4eb5 to your computer and use it in GitHub Desktop.
Save fedorov/737c7b76c7836b6d4de72f0fc1ce4eb5 to your computer and use it in GitHub Desktop.
This the template OHIF Viewer configuration file for connecting with Google Healthcare DICOM. See tutorial here: https://tinyurl.com/idc-ohif-gcp
window.config = {
routerBasename: '/',
enableGoogleCloudAdapter: true,
// enable series filter parameter
filterQueryParam: true,
healthcareApiEndpoint: 'https://healthcare.googleapis.com/v1',
servers: {
// This is an array, but we'll only use the first entry for now
dicomWeb: [],
},
// This is an array, but we'll only use the first entry for now
oidc: [
{
// ~ REQUIRED
// Authorization Server URL
authority: 'https://accounts.google.com',
client_id: 'CLIENT_ID_PLACEHOLDER',
redirect_uri: '/callback', // `OHIFStandaloneViewer.js`
response_type: 'id_token token',
scope:
'email profile openid https://www.googleapis.com/auth/cloudplatformprojects.readonly https://www.googleapis.com/auth/cloud-healthcare', // email profile openid
// ~ OPTIONAL
post_logout_redirect_uri: '/logout-redirect.html',
revoke_uri: 'https://accounts.google.com/o/oauth2/revoke?token=',
automaticSilentRenew: true,
revokeAccessTokenOnSignout: true,
},
],
studyListFunctionsEnabled: true,
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment