Mercurial > hg > orthanc
comparison OrthancExplorer/query-retrieve.js @ 2336:a95beca72e99 dcmtk-3.6.1
fix header and query/retrieve in Orthanc Explorer
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 17 Jul 2017 11:49:54 +0200 |
parents | 3eefb84ac0bd |
children | c9c2faf76bec |
comparison
equal
deleted
inserted
replaced
2335:174c3616ab6d | 2336:a95beca72e99 |
---|---|
147 url: uri + '/' + answers[i] + '/content?simplify', | 147 url: uri + '/' + answers[i] + '/content?simplify', |
148 dataType: 'json', | 148 dataType: 'json', |
149 async: false, | 149 async: false, |
150 success: function(study) { | 150 success: function(study) { |
151 var series = '#query-retrieve-3?server=' + pageData.server + '&uuid=' + study['StudyInstanceUID']; | 151 var series = '#query-retrieve-3?server=' + pageData.server + '&uuid=' + study['StudyInstanceUID']; |
152 var info = $('<a>').attr('href', series).html( | 152 |
153 ('<h3>{0} - {1}</h3>' + | 153 var content = ($('<div>') |
154 '<p>Accession number: <b>{2}</b></p>' + | 154 .append($('<h3>').text(study['PatientID'] + ' - ' + study['PatientName'])) |
155 '<p>Birth date: <b>{3}</b></p>' + | 155 .append($('<p>').text('Accession number: ') |
156 '<p>Patient sex: <b>{4}</b></p>' + | 156 .append($('<b>').text(study['AccessionNumber']))) |
157 '<p>Study description: <b>{5}</b></p>' + | 157 .append($('<p>').text('Birth date: ') |
158 '<p>Study date: <b>{6}</b></p>').format( | 158 .append($('<b>').text(study['PatientBirthDate']))) |
159 study['PatientID'], | 159 .append($('<p>').text('Patient sex: ') |
160 study['PatientName'], | 160 .append($('<b>').text(study['PatientSex']))) |
161 study['AccessionNumber'], | 161 .append($('<p>').text('Study description: ') |
162 FormatDicomDate(study['PatientBirthDate']), | 162 .append($('<b>').text(study['StudyDescription']))) |
163 study['PatientSex'], | 163 .append($('<p>').text('Study date: ') |
164 study['StudyDescription'], | 164 .append($('<b>').text(FormatDicomDate(study['StudyDate']))))); |
165 FormatDicomDate(study['StudyDate']))); | 165 |
166 | 166 var info = $('<a>').attr('href', series).html(content); |
167 | |
167 var answerId = answers[i]; | 168 var answerId = answers[i]; |
168 var retrieve = $('<a>').text('Retrieve all study').click(function() { | 169 var retrieve = $('<a>').text('Retrieve all study').click(function() { |
169 ChangePage('query-retrieve-4', { | 170 ChangePage('query-retrieve-4', { |
170 'query' : pageData.uuid, | 171 'query' : pageData.uuid, |
171 'answer' : answerId, | 172 'answer' : answerId, |
226 $.ajax({ | 227 $.ajax({ |
227 url: uri + '/' + answers[i] + '/content?simplify', | 228 url: uri + '/' + answers[i] + '/content?simplify', |
228 dataType: 'json', | 229 dataType: 'json', |
229 async: false, | 230 async: false, |
230 success: function(series) { | 231 success: function(series) { |
231 var info = $('<a>').html( | 232 var content = ($('<div>') |
232 ('<h3>{0}</h3>' + | 233 .append($('<h3>').text(series['SeriesDescription'])) |
233 '<p>Modality: <b>{1}</b></p>' + | 234 .append($('<p>').text('Modality: ') |
234 '<p>Protocol name: <b>{2}</b></p>' | 235 .append($('<b>').text(series['Modality']))) |
235 ).format( | 236 .append($('<p>').text('ProtocolName: ') |
236 series['SeriesDescription'], | 237 .append($('<b>').text(series['ProtocolName'])))); |
237 series['Modality'], | 238 |
238 series['ProtocolName'] | 239 var info = $('<a>').html(content); |
239 )); | |
240 | 240 |
241 var answerId = answers[i]; | 241 var answerId = answers[i]; |
242 info.click(function() { | 242 info.click(function() { |
243 ChangePage('query-retrieve-4', { | 243 ChangePage('query-retrieve-4', { |
244 'query' : queryUuid, | 244 'query' : queryUuid, |