Accession#, # Images and Modality columns are invisible on mobile versions

This commit is contained in:
Evren Ozkan 2015-11-17 19:02:53 -05:00
parent 83714e2e85
commit dac91857f0
4 changed files with 35 additions and 12 deletions

View File

@ -5,11 +5,17 @@
<tr> <tr>
<th>Patient Name</th> <th>Patient Name</th>
<th>Patient ID</th> <th>Patient ID</th>
<th>Accession #</th> {{#unless isTouchDevice}}
<th>Accession #</th>
{{/unless}}
<th>Study Date</th> <th>Study Date</th>
<th>Modality</th> {{#unless isTouchDevice}}
<th>Modality</th>
{{/unless}}
<th>Study Description</th> <th>Study Description</th>
<th># Images</th> {{#unless isTouchDevice}}
<th># Images</th>
{{/unless}}
</tr> </tr>
</thead> </thead>
<tbody id="studyListData"> <tbody id="studyListData">

View File

@ -11,5 +11,9 @@ Template.worklistResult.helpers({
*/ */
studies : function() { studies : function() {
return WorklistStudies.find({}, {sort: {patientName : 1, studyDate : 1}}); return WorklistStudies.find({}, {sort: {patientName : 1, studyDate : 1}});
},
isTouchDevice: function() {
return isTouchDevice();
} }
}); });

View File

@ -6,20 +6,27 @@
<td> <td>
{{patientId}} {{patientId}}
</td> </td>
<td> {{#unless isTouchDevice}}
{{accessionNumber}} <td>
</td> {{accessionNumber}}
</td>
{{/unless}}
<td> <td>
{{formatDA studyDate}} {{formatDA studyDate}}
</td> </td>
<td> {{#unless isTouchDevice}}
{{modalities}} <td>
</td> {{modalities}}
</td>
{{/unless}}
<td> <td>
{{studyDescription}} {{studyDescription}}
</td> </td>
<td> {{#unless isTouchDevice}}
{{imageCount}} <td>
</td> {{imageCount}}
</td>
{{/unless}}
</tr> </tr>
</template> </template>

View File

@ -5,3 +5,9 @@ Template.worklistStudy.events({
openNewTab(this.studyInstanceUid, title); openNewTab(this.studyInstanceUid, title);
} }
}); });
Template.worklistStudy.helpers({
isTouchDevice: function() {
return isTouchDevice();
}
});