This commit is contained in:
Ross
2021-11-13 10:39:28 +00:00
parent a8711d3cb3
commit cdbf8c45f5
3 changed files with 13 additions and 1 deletions
+6
View File
@@ -303,6 +303,12 @@ function setUpDicom(element) {
const imageIds = element.dataset.url.split(",");
console.log("Dicom - load imageId: ", imageIds);
for (let index = 0; index < imageIds.length; index++) {
if (imageIds[index].endsWith("dcm") {
imageIds[index] = "wadouri" + imageIds[index];
}
}
cornerstone.enable(element);
cornerstone.loadAndCacheImage(imageIds[0]).then(function (image) {
+1 -1
View File
@@ -8,7 +8,7 @@
<a href="{% url 'longs:long_update' pk=question.pk %}" title="Edit the Long">Edit</a>
<a href="{% url 'longs:long_clone' pk=question.pk %}" title="Clone the Long (duplicate everything but the images)">Clone</a>
<a href="{% url 'longs:long_delete' pk=question.pk %}" title="Delete the Rapid">Delete</a>
<a href="#" onclick="return window.create_popup_window({'% url 'feedback_create' question_type='long' pk=question.pk %}')"> Add Note</a>
<a href="#" onclick="return window.create_popup_window('{% url 'feedback_create' question_type='long' pk=question.pk %}')"> Add Note</a>
{% if request.user.is_superuser %}
<a href="{% url 'admin:longs_long_change' question.id %}" title="Edit the Long using the admin interface">Admin Edit</a>
{% endif %}
+6
View File
@@ -303,6 +303,12 @@ function setUpDicom(element) {
const imageIds = element.dataset.url.split(",");
console.log("Dicom - load imageId: ", imageIds);
for (let index = 0; index < imageIds.length; index++) {
if (imageIds[index].endsWith("dcm") {
imageIds[index] = "wadouri" + imageIds[index];
}
}
cornerstone.enable(element);
cornerstone.loadAndCacheImage(imageIds[0]).then(function (image) {