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>;.
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');
45 .insurance
.table
.bold
{
49 .insurance
.table
.text
{
53 .demographics
.groupname
.bold
{
55 color
: var(--primary
);
58 .demographics table
.bold
{
63 .demographics table
.text
{
68 .demographics
.table td
{
75 <div
class='demographics table-responsive' id
='DEM'>
78 $result1 = getPatientData($pid);
79 $result2 = getEmployerData($pid);
82 <header
class="card-header border border-bottom-0"><?php
echo xlt('Profile Demographics'); ?
>
84 echo '<button type="button" id="editDems" class="btn btn-danger btn-sm float-right text-white">' . xlt('Pending Review') . '</button>';
86 echo '<button type="button" id="editDems" class="btn btn-success btn-sm float-right text-white">' . xlt('Revise') . '</button>';
90 <div
class="card-body border" id
="dempanel">
91 <table
class='table table-responsive table-sm'>
93 display_layout_rows('DEM', $result1, $result2);
99 <div
class='insurance table-sm table-responsive'>
101 <header
class="card-header border border-bottom-0"><?php
echo xlt('Primary Insurance');?
></header
>
102 <div
class="card-body border">
104 printRecDataOne($insurance_data_array, getRecInsuranceData($pid, "primary"), $N);
109 <header
class="card-header border border-bottom-0"><?php
echo xlt('Secondary Insurance');?
></header
>
110 <div
class="card-body border">
112 printRecDataOne($insurance_data_array, getRecInsuranceData($pid, "secondary"), $N);
116 <header
class="card-header border border-bottom-0"><?php
echo xlt('Tertiary Insurance');?
></header
>
117 <div
class="card-body border">
119 printRecDataOne($insurance_data_array, getRecInsuranceData($pid, "tertiary"), $N);
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 />';