comparison OrthancExplorer/query-retrieve.js @ 2218:3eefb84ac0bd

dynamically fix outgoing C-Find requests using "OutgoingFindRequestFilter()"
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 13 Dec 2016 10:27:20 +0100
parents e0517f25919e
children a95beca72e99
comparison
equal deleted inserted replaced
2217:4f39ab2cb453 2218:3eefb84ac0bd
81 'AccessionNumber' : '*', 81 'AccessionNumber' : '*',
82 'PatientBirthDate' : '*', 82 'PatientBirthDate' : '*',
83 'PatientID' : '*', 83 'PatientID' : '*',
84 'PatientName' : '*', 84 'PatientName' : '*',
85 'PatientSex' : '*', 85 'PatientSex' : '*',
86 'SpecificCharacterSet' : 'ISO_IR 192', // UTF-8
87 'StudyDate' : $('#qr-date').val(), 86 'StudyDate' : $('#qr-date').val(),
88 'StudyDescription' : '*' 87 'StudyDescription' : '*'
89 } 88 }
90 }; 89 };
91 90
93 query['Query'][field] = $('#qr-value').val().toUpperCase(); 92 query['Query'][field] = $('#qr-value').val().toUpperCase();
94 93
95 var modalities = ''; 94 var modalities = '';
96 $('#qr-modalities input:checked').each(function() { 95 $('#qr-modalities input:checked').each(function() {
97 var s = $(this).attr('name'); 96 var s = $(this).attr('name');
98 if (modalities == '*') 97 if (modalities == '')
99 modalities = s; 98 modalities = s;
100 else 99 else
101 modalities += '\\' + s; 100 modalities += '\\' + s;
102 }); 101 });
103 102