Skip to content

Commit

Permalink
Merge pull request #70 from wayfarer3130/fix/ohif-configuration
Browse files Browse the repository at this point in the history
fix: Update the parameters for OHIF viewer launch config
  • Loading branch information
nikpap authored Nov 11, 2024
2 parents aa8a124 + 61a02bb commit 1086fef
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -92,18 +92,23 @@ private String ohifServerMetadata(AuthorizationToken authorizationToken) {
" \"dicomWeb\": [\n" +
" {\n" +
" \"name\": \"DCM4CHEE\",\n" +
" \"wadoUriRoot\": \"%s/wado\",\n" +
" \"qidoRoot\": \"%s\",\n" +
" \"wadoRoot\": \"%s\",\n" +
" \"qidoSupportsIncludeField\": true,\n" +
" \"imageRendering\": \"wadors\",\n" +
" \"thumbnailRendering\": \"wadors\",\n" +
" \"enableStudyLazyLoad\": true\n" +
" \"enableStudyLazyLoad\": true,\n" +
" \"staticWado\": true,\n" +
" \"omitQuotationForMultipartRequest\": false,\n" +
" \"bulkDataURI\": {\n" +
" \"enabled\": true,\n" +
" \"relativeResolution\": \"studies\"\n" +
" }\n" +
" }\n" +
" ]\n" +
" }\n" +
"}\n" +
"\n", dicomWebURI, dicomWebURI, dicomWebURI);
"\n", dicomWebURI, dicomWebURI);
}

private MetadataDTO ohifMetadata(String studyInstanceUID, String firstSeriesInstanceUID, AuthorizationToken authorizationToken, Boolean inbox, String album) {
Expand Down Expand Up @@ -172,3 +177,4 @@ private URI getParameterURI(String parameter) {
}
}
}

2 changes: 1 addition & 1 deletion UI/.docker/docker-compose.env
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ KHEOPS_API_URL=https://demo.kheops.online/api
#KHEOPS UI OIDC
KHEOPS_OIDC_PROVIDER=https://keycloak.kheops.online/auth/realms/demo
KHEOPS_UI_CLIENTID=loginConnect
KHEOPS_UI_VIEWER_URL=https://ohif.kheops.online
KHEOPS_UI_VIEWER_URL=https://ohif.kheops.online/viewer
KHEOPS_UI_VIEWER_SM_URL=https://reportprovider.kheops.online/wsi-viewer
KHEOPS_UI_DISABLE_UPLOAD=false
KHEOPS_UI_USER_MANAGEMENT_URL=https://keycloak.kheops.online/auth/realms/demo/account
Expand Down
2 changes: 1 addition & 1 deletion UI/.env
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
VUE_APP_URL_API=https://demo.kheops.online/api
VUE_APP_URL_VIEWER=https://ohif.kheops.online
VUE_APP_URL_VIEWER=https://ohif.kheops.online/viewer
VUE_APP_URL_VIEWER_SM=https://reportprovider.kheops.online/wsi-viewer
VUE_APP_AUTHROITY=https://keycloak.kheops.online/auth/realms/demo
VUE_APP_CLIENTID=loginConnect
Expand Down
2 changes: 1 addition & 1 deletion UI/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ User interface URL. Use the following example to avoid any problem. `https://dem

#### `KHEOPS_UI_VIEWER_URL`

Viewer URL by default. (optional, default is `https://ohif.kheops.online`)
Viewer URL by default. (optional, default is `https://ohif.kheops.online/viewer`)

#### `KHEOPS_UI_VIEWER_SM_URL`

Expand Down
2 changes: 1 addition & 1 deletion UI/config/dev.env.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@ module.exports = merge(prodEnv, {
REALM_KEYCLOAK: '"StaticLoginConnect"',
CLIENTID: '"loginConnect"',
URL_API: '"https://demo.kheops.online"',
URL_VIEWER: '"https://ohif.kheops.online"'
URL_VIEWER: '"https://ohif.kheops.online/viewer"'
})
2 changes: 1 addition & 1 deletion UI/script/docker-entrypoint-nginx.sh
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ sed -i "s|\%{kheops_ui_viewer_sm_url}|$KHEOPS_UI_VIEWER_SM_URL|g" $FILENAME
sed -i "s|\%{kheops_ui_root_url}|$KHEOPS_ROOT_URL|g" $FILENAME

if [ -z "$KHEOPS_UI_VIEWER_URL" ]; then
KHEOPS_UI_VIEWER_URL=https://ohif.kheops.online
KHEOPS_UI_VIEWER_URL=https://ohif.kheops.online/viewer
fi

if [ -z "$KHEOPS_UI_DISABLE_UPLOAD" ]; then
Expand Down

0 comments on commit 1086fef

Please sign in to comment.