-
Notifications
You must be signed in to change notification settings - Fork 12
/
dicomIndex.html
48 lines (45 loc) · 1.22 KB
/
dicomIndex.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
<!DOCTYPE html>
<html>
<head>
<title>NCG</title>
</head>
<body>
<div id="root"></div>
<script
src="https://unpkg.com/@ohif/viewer@3.11.7/dist/index.umd.js"
crossorigin
></script>
<script>
var containerId = "root";
var componentRenderedOrUpdatedCallback = function() {
console.log("OHIF Viewer rendered/updated");
};
var searchParams = new URLSearchParams(window.location.search);
var dicomCtx = searchParams.get("dicomCtx");
var contextPath = atob(dicomCtx);
const qidoRoot = window.location.origin + contextPath;
const wadoRoot = window.location.origin + contextPath;
window.config = {
showStudyList: false,
servers: {
dicomWeb: [
{
name: "Orthanc",
wadoUriRoot: "wado",
qidoRoot: qidoRoot,
wadoRoot: wadoRoot,
qidoSupportsIncludeField: true,
imageRendering: "wadors",
thumbnailRendering: "wadors"
}
]
}
};
window.OHIFViewer.installViewer(
window.config,
containerId,
componentRenderedOrUpdatedCallback
);
</script>
</body>
</html>