comparison OrthancExplorer/query-retrieve.js @ 3792:6dba4fa8a6cb

remove universal wildcard on StudyDate in OrthancExplorer
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 26 Mar 2020 07:19:30 +0100
parents 4a8e8a96b233
children ce7709cb380e
comparison
equal deleted inserted replaced
3791:a22717e68d9b 3792:6dba4fa8a6cb
36 } 36 }
37 }); 37 });
38 38
39 targetDate = $('#qr-date'); 39 targetDate = $('#qr-date');
40 $('option', targetDate).remove(); 40 $('option', targetDate).remove();
41 targetDate.append($('<option>').attr('value', '*').text('Any date')); 41 targetDate.append($('<option>').attr('value', '').text('Any date'));
42 targetDate.append($('<option>').attr('value', GenerateDicomDate(0)).text('Today')); 42 targetDate.append($('<option>').attr('value', GenerateDicomDate(0)).text('Today'));
43 targetDate.append($('<option>').attr('value', GenerateDicomDate(-1)).text('Yesterday')); 43 targetDate.append($('<option>').attr('value', GenerateDicomDate(-1)).text('Yesterday'));
44 targetDate.append($('<option>').attr('value', GenerateDicomDate(-7) + '-').text('Last 7 days')); 44 targetDate.append($('<option>').attr('value', GenerateDicomDate(-7) + '-').text('Last 7 days'));
45 targetDate.append($('<option>').attr('value', GenerateDicomDate(-31) + '-').text('Last 31 days')); 45 targetDate.append($('<option>').attr('value', GenerateDicomDate(-31) + '-').text('Last 31 days'));
46 targetDate.append($('<option>').attr('value', GenerateDicomDate(-31 * 3) + '-').text('Last 3 months')); 46 targetDate.append($('<option>').attr('value', GenerateDicomDate(-31 * 3) + '-').text('Last 3 months'));
88 'PatientBirthDate' : '', 88 'PatientBirthDate' : '',
89 'PatientID' : '', 89 'PatientID' : '',
90 'PatientName' : '', 90 'PatientName' : '',
91 'PatientSex' : '', 91 'PatientSex' : '',
92 'StudyDate' : $('#qr-date').val(), 92 'StudyDate' : $('#qr-date').val(),
93 'StudyDescription' : '*' 93 'StudyDescription' : ''
94 } 94 }
95 }; 95 };
96 96
97 modalities = ''; 97 modalities = '';
98 98
202 pageData = DeepCopy($.mobile.pageData); 202 pageData = DeepCopy($.mobile.pageData);
203 203
204 query = { 204 query = {
205 'Level' : 'Series', 205 'Level' : 'Series',
206 'Query' : { 206 'Query' : {
207 'Modality' : '*', 207 'Modality' : '',
208 'ProtocolName' : '*', 208 'ProtocolName' : '',
209 'SeriesDescription' : '*', 209 'SeriesDescription' : '',
210 'SeriesInstanceUID' : '*', 210 'SeriesInstanceUID' : '',
211 'StudyInstanceUID' : pageData.uuid 211 'StudyInstanceUID' : pageData.uuid
212 } 212 }
213 }; 213 };
214 214
215 $.ajax({ 215 $.ajax({