This commit is contained in:
Ross
2021-01-09 10:41:46 +00:00
parent 401d31c3e6
commit 9e4e7bdbaf
2 changed files with 74 additions and 70 deletions
+2
View File
@@ -66,6 +66,8 @@ cornerstoneTools.init();
const element = document.getElementById('dicom-image'); const element = document.getElementById('dicom-image');
const imageId = element.dataset.url; const imageId = element.dataset.url;
console.log("Dicom - load imageId: ", imageId);
cornerstone.enable(element); cornerstone.enable(element);
cornerstone.loadAndCacheImage(imageId).then(function (image) { cornerstone.loadAndCacheImage(imageId).then(function (image) {
cornerstone.displayImage(element, image); cornerstone.displayImage(element, image);
+2
View File
@@ -119,6 +119,8 @@ def exam_question_detail(request, pk, sk):
pos = exam.get_question_index(question) + 1 pos = exam.get_question_index(question) + 1
print(question.exams.through.sort_value)
previous = -1 previous = -1
if sk > 0: if sk > 0:
previous = sk - 1 previous = sk - 1