From 2bf14a45fd3f64611c43e993715d56081defd975 Mon Sep 17 00:00:00 2001 From: Ross Date: Wed, 6 Apr 2022 22:39:20 +0100 Subject: [PATCH] . --- atlas/templates/atlas/series_form.html | 37 +++++++++++++------------- 1 file changed, 19 insertions(+), 18 deletions(-) diff --git a/atlas/templates/atlas/series_form.html b/atlas/templates/atlas/series_form.html index 5bbc25ab..ff8a6c1d 100755 --- a/atlas/templates/atlas/series_form.html +++ b/atlas/templates/atlas/series_form.html @@ -342,30 +342,31 @@ site_codes = ["ref", "rk9", "ra9", "rh8", "rbz", "rba"] for (let i = 0; i < site_codes.length; i++) { - if (study_description.startsWith(site_codes[i]) - || accession_number.startsWith(site_codes[i]) + if ( + accession_number.startsWith(site_codes[i]) || patient_id.startsWith(site_codes[i])) { not_anon = true; } } if (not_anon) { - toastr.warning(`Submiting question... please wait`, '', { - "closeButton": false, - "debug": false, - "newestOnTop": false, - "progressBar": true, - "positionClass": "toast-top-full-width", - "preventDuplicates": false, - "onclick": null, - "showDuration": "0", - "hideDuration": "0", - "timeOut": "0", - "extendedTimeOut": "1000", - "showEasing": "swing", - "hideEasing": "linear", - "showMethod": "fadeIn", - "hideMethod": "fadeOut" + toastr.warning(`File does not appear to be annonymised
Accession: ${accession_number}
Patient ID: ${patient_id}
: ${accession_number}`, 'Anonymisation warning', { + "closeButton": false, + "debug": false, + "newestOnTop": false, + "progressBar": false, + "positionClass": "toast-top-full-width", + "preventDuplicates": false, + "onclick": null, + "showDuration": "0", + "hideDuration": "0", + "timeOut": 0, + "extendedTimeOut": 0, + "showEasing": "swing", + "hideEasing": "linear", + "showMethod": "fadeIn", + "hideMethod": "fadeOut", + "tapToDismiss": false }); }