missing require, missing close tag (#4473)
[openemr.git] / portal / get_profile.php
blob191a1f06540fe4de2d617ced48e7bc28ab6d6a24
1 <?php
3 /**
5 * Copyright (C) 2016-2019 Jerry Padgett <sjpadgett@gmail.com>
6 * Copyright (C) 2020 Tyler Wrenn <tyler@tylerwrenn.com>
8 * LICENSE: This program is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU General Public License
10 * as published by the Free Software Foundation; either version 3
11 * of the License, or (at your option) any later version.
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with this program. If not, see <http://opensource.org/licenses/gpl-license.php>;.
19 * @package OpenEMR
20 * @author Jerry Padgett <sjpadgett@gmail.com>
21 * @author Tyler Wrenn <tyler@tylerwrenn.com>
22 * @link http://www.open-emr.org
26 //namespace OnsitePortal;
28 require_once("verify_session.php");
29 require_once("./../library/report.inc");
30 require_once("./../library/options.inc.php");
31 require_once("./../library/lists.inc");
32 require_once("./../custom/code_types.inc.php");
33 require_once("./../library/forms.inc");
34 require_once("./../library/patient.inc");
36 require_once("./lib/appsql.class.php");
37 require_once("./lib/section_fetch.class.php");
39 $appsql = new ApplicationTable();
40 $pending = $appsql->getPortalAudit($pid, 'review');
41 $N = 7;
44 <style>
45 .insurance .table .bold {
46 font-weight: normal;
49 .insurance .table .text {
50 color: var(--danger);
53 .demographics .groupname.bold {
54 font-size: 1rem;
55 color: var(--primary);
58 .demographics table .bold {
59 font-weight: normal;
60 border-top: 0;
63 .demographics table .text {
64 font-weight: normal;
65 color: var(--danger);
68 .demographics .table td {
69 border-top: 0;
72 </style>
73 <body>
75 <div class='demographics table-responsive' id='DEM'>
77 <?php
78 $result1 = getPatientData($pid);
79 $result2 = getEmployerData($pid);
81 <div class="card">
82 <header class="card-header border border-bottom-0"><?php echo xlt('Profile Demographics'); ?>
83 <?php if ($pending) {
84 echo '<button type="button" id="editDems" class="btn btn-danger btn-sm float-right text-white">' . xlt('Pending Review') . '</button>';
85 } else {
86 echo '<button type="button" id="editDems" class="btn btn-success btn-sm float-right text-white">' . xlt('Revise') . '</button>';
89 </header>
90 <div class="card-body border" id="dempanel">
91 <table class='table table-responsive table-sm'>
92 <?php
93 display_layout_rows('DEM', $result1, $result2);
95 </table>
96 </div>
97 </div>
98 </div>
99 <div class='insurance table-sm table-responsive'>
100 <div class="card">
101 <header class="card-header border border-bottom-0"><?php echo xlt('Primary Insurance');?></header>
102 <div class="card-body border">
103 <?php
104 printRecDataOne($insurance_data_array, getRecInsuranceData($pid, "primary"), $N);
106 </div>
107 </div>
108 <div class="card">
109 <header class="card-header border border-bottom-0"><?php echo xlt('Secondary Insurance');?></header>
110 <div class="card-body border">
111 <?php
112 printRecDataOne($insurance_data_array, getRecInsuranceData($pid, "secondary"), $N);
113 ?></div>
114 </div>
115 <div class="card">
116 <header class="card-header border border-bottom-0"><?php echo xlt('Tertiary Insurance');?></header>
117 <div class="card-body border">
118 <?php
119 printRecDataOne($insurance_data_array, getRecInsuranceData($pid, "tertiary"), $N);
120 ?></div>
121 </div>
122 </div>
123 <div>
124 <?php
125 echo "<div class='card'>";
126 echo "<header class='card-header border border-bottom-0 immunizations'>" . xlt('Patient Immunization') . '</header>';
127 echo "<div class='card-body border'>";
128 $result = FetchSection::getImmunizations($pid);
129 foreach ($result as $row) {
130 echo text($row['administered_formatted']) . ' : ';
131 echo text($row['code_text']) . ' : ';
132 echo text($row['note']) . ' : ';
133 echo text($row['completion_status']) . '<br />';
135 echo "</div></div>";
137 </div>
139 </body>