Page MenuHomec4science

patient_visits.html
No OneTemporary

File Metadata

Created
Sun, Dec 1, 07:10

patient_visits.html

<template name="patientVisits">
<div id="designs">
<ul class="nav nav-tabs hidden-print">
{{#each designs}}
<li role="presentation" class={{designTabClasses}}>
<a href="" class="switchDesign">
{{title}}
</a>
</li>
{{/each}}
</ul>
</div>
<div id="visits">
<table class="table table-striped collapsed">
<thead>
<tr>
<td> Visit name </td>
<td> Visit date </td>
<td> Date scheduled </td>
<td> Questionnaires </td>
<td></td>
<td></td>
</tr>
</thead>
<tbody>
{{#each visits}}
{{#with visit=this patient=../patient}}
<tr>
<td class="openVisit cursorPointer"><b>{{visit.title}}</b></td>
<td>
<p class={{styleDate(visit.date)}}>{{> xEditable visitDateEO}}</p>
</td>
<td>
<p class={{styleDate(visit.dateScheduled)}}>
<span>{{displayDate(visit.dateScheduled)}}</span>
</p>
</td>
<td>
{{#each visit.validatedQuestionnaires}}
{{#with questionnaire=. visit=../visit patient=../patient}}
<div class="text-center showQuestionnaire {{questionnaireCSS}} cursorPointer">
<i class="fa fa-lg fa-file-text-o"></i>
<div>
{{questionnaire.id}}<br>
{{#if questionnaire.numQuestionsRequired}}
{{percentage questionnaire.numQuestionsRequired
questionnaire.numAnsweredRequired}}
{{else}}
100%
{{/if}}
</div>
</div>
{{/with}}
{{/each}}
</td>
<td>
{{#if visit.recordPhysicalData}}
<i class="fa fa-lg fa-heartbeat {{physioRecordsCSS}}"></i>
{{/if}}
</td>
<td class="openVisit cursorPointer"><i class="fa fa-2x fa-arrow-circle-right"></i></td>
</tr>
{{/with}}
{{else}}
<br>
This patient either isn't mapped to an study design or this design has no visits scheduled.
{{/each}}
</tbody>
</table>
</div>
</template>

Event Timeline