This commit is contained in:
Ross
2022-04-07 18:10:44 +01:00
parent c773b6d2c9
commit 897f26e8bb
2 changed files with 21 additions and 20 deletions
@@ -16,7 +16,7 @@
{% endif %}
{% if collection.show_history and case.history%}
<div>
Description: {{case.history}}
History: {{case.history}}
</div>
{% endif %}
+20 -19
View File
@@ -350,7 +350,7 @@
}
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,
"debug": false,
"newestOnTop": false,
@@ -369,27 +369,28 @@
});
}
$.ajax({
url: `{% url 'generic:examination-autocomplete' %}/${encodeURI(study_description)}`,
//context: document.body,
success: function(data){
console.log(data)
}
});
// TODO: fix
//$.ajax({
// url: `{% url 'generic:examination-autocomplete' %}/${encodeURI(study_description)}`,
// //context: document.body,
// success: function(data){
// console.log(data)
// }
//});
// try to match with a study description (if not already selected)
if ($(`#id_examination_to option`).length < 1) {
option = $(`#id_examination_from option[title*='${study_description}' i]`);
//// try to match with a study description (if not already selected)
//if ($(`#id_examination_to option`).length < 1) {
// option = $(`#id_examination_from option[title*='${study_description}' i]`);
if (option.length) {
option.appendTo($("#id_examination_to"));
toastr.success(`Examination set to ${option.attr('title')} from dicom data`);
} else {
toastr.warning(
`Unable to set examination ${study_description} from dicom data (it needs creating)`);
// if (option.length) {
// option.appendTo($("#id_examination_to"));
// toastr.success(`Examination set to ${option.attr('title')} from dicom data`);
// } else {
// toastr.warning(
// `Unable to set examination ${study_description} from dicom data (it needs creating)`);
}
}
// }
//}
} catch (err) {
console.log(err);