.
This commit is contained in:
@@ -16,7 +16,7 @@
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
{% if collection.show_history and case.history%}
|
{% if collection.show_history and case.history%}
|
||||||
<div>
|
<div>
|
||||||
Description: {{case.history}}
|
History: {{case.history}}
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
|||||||
@@ -350,7 +350,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (not_anon) {
|
if (not_anon) {
|
||||||
toastr.warning(`File does not appear to be annonymised<br/>Accession: ${accession_number} <br/>Patient ID: ${patient_id}<br/>: ${accession_number}`, 'Anonymisation warning', {
|
toastr.warning(`File does not appear to be annonymised<br/>Accession: ${accession_number} <br/>Patient ID: ${patient_id}<br/>`, 'Anonymisation warning', {
|
||||||
"closeButton": false,
|
"closeButton": false,
|
||||||
"debug": false,
|
"debug": false,
|
||||||
"newestOnTop": false,
|
"newestOnTop": false,
|
||||||
@@ -369,27 +369,28 @@
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
$.ajax({
|
// TODO: fix
|
||||||
url: `{% url 'generic:examination-autocomplete' %}/${encodeURI(study_description)}`,
|
//$.ajax({
|
||||||
//context: document.body,
|
// url: `{% url 'generic:examination-autocomplete' %}/${encodeURI(study_description)}`,
|
||||||
success: function(data){
|
// //context: document.body,
|
||||||
console.log(data)
|
// success: function(data){
|
||||||
}
|
// console.log(data)
|
||||||
});
|
// }
|
||||||
|
//});
|
||||||
|
|
||||||
// try to match with a study description (if not already selected)
|
//// try to match with a study description (if not already selected)
|
||||||
if ($(`#id_examination_to option`).length < 1) {
|
//if ($(`#id_examination_to option`).length < 1) {
|
||||||
option = $(`#id_examination_from option[title*='${study_description}' i]`);
|
// option = $(`#id_examination_from option[title*='${study_description}' i]`);
|
||||||
|
|
||||||
if (option.length) {
|
// if (option.length) {
|
||||||
option.appendTo($("#id_examination_to"));
|
// option.appendTo($("#id_examination_to"));
|
||||||
toastr.success(`Examination set to ${option.attr('title')} from dicom data`);
|
// toastr.success(`Examination set to ${option.attr('title')} from dicom data`);
|
||||||
} else {
|
// } else {
|
||||||
toastr.warning(
|
// toastr.warning(
|
||||||
`Unable to set examination ${study_description} from dicom data (it needs creating)`);
|
// `Unable to set examination ${study_description} from dicom data (it needs creating)`);
|
||||||
|
|
||||||
}
|
// }
|
||||||
}
|
//}
|
||||||
|
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
console.log(err);
|
console.log(err);
|
||||||
|
|||||||
Reference in New Issue
Block a user