minor improvement to tabs style
[openemr.git] / portal / get_profile.php
blob3c0d2f0d1317e397bac2c75208e38ce39f39c13d
1 <?php
2 /**
4 * Copyright (C) 2016-2017 Jerry Padgett <sjpadgett@gmail.com>
6 * LICENSE: This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public License
8 * as published by the Free Software Foundation; either version 3
9 * of the License, or (at your option) any later version.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 * You should have received a copy of the GNU General Public License
15 * along with this program. If not, see <http://opensource.org/licenses/gpl-license.php>;.
17 * @package OpenEMR
18 * @author Jerry Padgett <sjpadgett@gmail.com>
19 * @link http://www.open-emr.org
22 //namespace OnsitePortal;
24 require_once ( "verify_session.php" );
25 require_once ( "./../library/report.inc" );
26 require_once ( "./../library/options.inc.php" );
27 require_once ( "./../library/lists.inc" );
28 require_once ( "./../library/formatting.inc.php" );
29 require_once ( "./../custom/code_types.inc.php" );
30 require_once ( "./../library/forms.inc" );
31 require_once ( "./../library/patient.inc" );
33 require_once ( "./lib/appsql.class.php" );
34 require_once ( "./lib/section_fetch.class.php" );
35 // $fetchsec = new FetchSection ();
36 $appsql = new ApplicationTable();
37 $pending = $appsql->getPortalAudit( $pid, 'review' );
38 $N = 7;
41 <style>
42 .insurance .table .bold {
43 font-weight: bold;
44 font-size: 14px;
47 .insurance .table .text {
48 color: red;
50 .demographics .groupname.bold{
51 font-size:18px;
52 color: blue;
54 .demographics table .bold {
55 font-weight:normal;
56 font-size:16px;
57 color:green;
58 padding: 1px;
59 border-top: 0;
61 .demographics table .text {
62 font-weight: normal;
63 font-size: 15px;
64 color: red;
67 .demographics .table td {
68 padding: 1px;
69 border-top: 0;
73 .demographics .panel-heading {
74 padding: 5px 8px;
75 background: #337ab7;
76 color: white;
78 </style>
79 <body>
81 <div class='demographics table-responsive' id='DEM'>
82 <div class="col-sm-9">
84 <?php
85 $result1 = getPatientData( $pid );
86 $result2 = getEmployerData( $pid );
88 <div class="panel panel-primary" >
89 <header class="panel-heading"><?php echo xlt('Profile Demographics'); ?>
90 <?php if( $pending )
91 echo '<button type="button" id="editDems" class="btn btn-danger btn-xs pull-right" style="color:white;font-size:14px">' . xlt('Pending Review') . '</button>';
92 else
93 echo '<button type="button" id="editDems" class="btn btn-success btn-xs pull-right" style="color:white;font-size:14px">' . xlt('Revise') . '</button>';
95 </header>
96 <div class="panel-body " id="dempanel">
97 <table class='table table-responsive table-condensed'>
98 <?php
99 display_layout_rows( 'DEM', $result1, $result2 );
101 </table>
102 </div>
103 <div class="panel-footer"></div>
104 </div>
105 </div>
106 </div>
107 <div class="row">
108 <div class="col-sm-12">
109 <div class='insurance table-condensed table-responsive'>
110 <div class="panel panel-primary">
111 <header class="panel-heading"><?php echo xlt('Primary Insurance');?></header>
112 <div class="panel-body">
113 <?php
114 printRecDataOne( $insurance_data_array, getRecInsuranceData( $pid, "primary" ), $N );
116 </div>
117 </div>
118 <div class="panel panel-primary">
119 <header class="panel-heading"><?php echo xlt('Secondary Insurance');?></header>
120 <div class="panel-body">
121 <?php
122 printRecDataOne( $insurance_data_array, getRecInsuranceData( $pid, "secondary" ), $N );
123 ?></div>
124 </div>
125 <div class="panel panel-primary">
126 <header class="panel-heading"><?php echo xlt('Tertiary Insurance');?></header>
127 <div class="panel-body">
128 <?php
129 printRecDataOne( $insurance_data_array, getRecInsuranceData( $pid, "tertiary" ), $N );
130 ?></div>
131 </div>
132 </div>
133 </div>
134 </div>
135 <div>
136 <?php
137 echo "<div class='immunizations'><h4>" . xlt('Patient Immunization') . '</h4>';
138 $result = FetchSection::getImmunizations( $pid );
139 foreach( $result as $row ){
140 echo text( $row{'administered_formatted'}) . ' : ';
141 echo text($row['code_text']) . ' : ';
142 echo text($row['note']) . ' : ';
143 echo text($row['completion_status']) . '<br>';
146 </div>
148 </body>