fix: faxsms psr7 vendor fix (#7794)
[openemr.git] / portal / get_pro.php
blobe1a2699ee64efe67f7b0013f63233eab40ae2a91
1 <?php
3 /**
4 * Easipro class
6 * @package OpenEMR
7 * @link http://www.open-emr.org
8 * @author Cassian LUP <cassi.lup@gmail.com>
9 * @author Jerry Padgett <sjpadgett@gmail.com>
10 * @author Shiqiang Tao <StrongTSQ@gmail.com>
11 * @author Brady Miller <brady.g.miller@gmail.com>
12 * @copyright Copyright (c) 2011 Cassian LUP <cassi.lup@gmail.com>
13 * @copyright Copyright (c) 2016-2017 Jerry Padgett <sjpadgett@gmail.com>
14 * @copyright Copyright (c) 2018 Shiqiang Tao <StrongTSQ@gmail.com>
15 * @copyright Copyright (c) 2020 Brady Miller <brady.g.miller@gmail.com>
16 * @license https://github.com/openemr/openemr/blob/master/LICENSE GNU General Public License 3
19 require_once("verify_session.php");
21 use OpenEMR\Easipro\Easipro;
23 $records = Easipro::assessmentsForPatient($pid);
25 if (!empty($records)) { ?>
26 <div class="font-weight-bold m-1" onclick="$('.assessment-row').toggleClass('d-none');" role="button">
27 <i class="font-weight-bold fa fa-eye mr-1"></i><?php echo xlt("Assessments") ?>
28 </div>
29 <div class="table-responsive">
30 <table class="table table-sm table-striped">
31 <thead class="assessment-row">
32 <tr>
33 <th><?php echo xlt('Name'); ?></th>
34 <th><?php echo xlt('Deadline (CST)'); ?></th>
35 <th><?php echo xlt('Status'); ?></th>
36 <th>&nbsp;</th>
37 </tr>
38 </thead><tbody>
39 <?php
40 foreach ($records as $row) {
41 echo "<tr class='assessment-row' id='hide_assessment_" . attr($row['assessment_oid']) . "'>";
42 echo "<td>" . text($row['form_name']) . "</td>";
43 echo "<td>" . text($row['deadline']) . "</td>";
44 echo "<td id='asst_status_" . attr($row['assessment_oid']) . "'>" . text($row['status']) . "</td>";
45 if ($row['status'] == 'ordered') {
46 echo "<td id='asst_" . attr($row['assessment_oid']) . "'><button class='btn btn-sm btn-primary' onclick=\"startAssessment(this," . attr_js($row['assessment_oid']) . ")\">" . xlt('Start Assessment') . "</button></td>";
47 } elseif ($row['status'] == 'in-progress') {
48 echo "<td>" . xlt('Continue Assessment') . "</td>";
49 } elseif ($row['status'] == 'completed') {
50 echo "<td><i class='fa fa-check-circle'></i></td>";
52 echo "</tr>";
54 echo "</tbody></table></div>";
55 } else {
56 echo xlt("No Assessment to Display.");
58 echo "<div class='form-row mx-2' id='ContentTitle'></div>";
59 echo "<div class='container-lg' id='Content'></div>" ?>