.
This commit is contained in:
@@ -342,30 +342,31 @@
|
|||||||
site_codes = ["ref", "rk9", "ra9", "rh8", "rbz", "rba"]
|
site_codes = ["ref", "rk9", "ra9", "rh8", "rbz", "rba"]
|
||||||
|
|
||||||
for (let i = 0; i < site_codes.length; i++) {
|
for (let i = 0; i < site_codes.length; i++) {
|
||||||
if (study_description.startsWith(site_codes[i])
|
if (
|
||||||
|| accession_number.startsWith(site_codes[i])
|
accession_number.startsWith(site_codes[i])
|
||||||
|| patient_id.startsWith(site_codes[i])) {
|
|| patient_id.startsWith(site_codes[i])) {
|
||||||
not_anon = true;
|
not_anon = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (not_anon) {
|
if (not_anon) {
|
||||||
toastr.warning(`Submiting question... please wait`, '', {
|
toastr.warning(`File does not appear to be annonymised<br/>Accession: ${accession_number} <br/>Patient ID: ${patient_id}<br/>: ${accession_number}`, 'Anonymisation warning', {
|
||||||
"closeButton": false,
|
"closeButton": false,
|
||||||
"debug": false,
|
"debug": false,
|
||||||
"newestOnTop": false,
|
"newestOnTop": false,
|
||||||
"progressBar": true,
|
"progressBar": false,
|
||||||
"positionClass": "toast-top-full-width",
|
"positionClass": "toast-top-full-width",
|
||||||
"preventDuplicates": false,
|
"preventDuplicates": false,
|
||||||
"onclick": null,
|
"onclick": null,
|
||||||
"showDuration": "0",
|
"showDuration": "0",
|
||||||
"hideDuration": "0",
|
"hideDuration": "0",
|
||||||
"timeOut": "0",
|
"timeOut": 0,
|
||||||
"extendedTimeOut": "1000",
|
"extendedTimeOut": 0,
|
||||||
"showEasing": "swing",
|
"showEasing": "swing",
|
||||||
"hideEasing": "linear",
|
"hideEasing": "linear",
|
||||||
"showMethod": "fadeIn",
|
"showMethod": "fadeIn",
|
||||||
"hideMethod": "fadeOut"
|
"hideMethod": "fadeOut",
|
||||||
|
"tapToDismiss": false
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user