consumerportal
Version:
mydna Custimised for you
67 lines (62 loc) • 3.18 kB
HTML
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-69139205-6', 'auto');
ga('set', {
page: '/results/reports.html',
title: 'My Reports'
});
ga('send', 'pageview');
</script>
<div class="container">
<div class="row">
<div class="col-md-12">
<div class='content_block content_blocks_padding'>
<h1>My Reports</h1>
<div class="table-responsive">
<div ng-if="!vm.casesLoaded">
<div>Loading My Reports</div>
</div>
<table class="table table-hover" ng-if="vm.casesLoaded && vm.PatientCases.length>0">
<thead>
<tr>
<th width="15%">Date</th>
<th width="15%">Type</th>
<th width="15%">Order #</th>
<th width="35%">Referrer</th>
<th width="20%">Status</th>
</tr>
</thead>
<tbody>
<tr ng-repeat="val in vm.PatientCases">
<td data-th="Date">{{val.CreateDate}}</td>
<td data-th="Type">{{val.TestFullName}}</td>
<td data-th="Order #">{{val.OrderNumber}}</td>
<td data-th="Referrer">{{val.ReferringClinician}}</td>
<td>
<div ng-if="val.Action === 'download'" class='report_download_button'
ng-click="vm.downloadReport(val.OrderNumber, val.OrderNumber)">
<span>Download</span>
</div>
<div ng-if="val.Action === 'view'" class='ctaButton' ng-click="vm.viewReport(val)">
<span>View Report</span>
</div>
<div ng-if="val.Action === 'tga'" class='ctaButton' ng-click="vm.openBooking()">
<span>Report Available by Booking a Consultation</span>
</div>
<span ng-if="val.Action === 'waiting'">{{val.ReportStatus}}</span>
</td>
</tr>
</tbody>
</table>
</div>
<div class="your_results_left" ng-if="vm.casesLoaded && vm.PatientCases.length<=0">
<p>Your report/s are not yet available.</p>
</div>
<div style="clear:both;"></div>
</div>
</div>
</div>
</div>