Skip to content

Commit

Permalink
A fix in issue LibreHealthIO#1555
Browse files Browse the repository at this point in the history
  • Loading branch information
ahanipeitra1994 committed Jul 20, 2020
1 parent 6442ca9 commit acff3d7
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions interface/patient_file/summary/stats_full.php
Original file line number Diff line number Diff line change
Expand Up @@ -282,11 +282,21 @@ function newEncounter() {
$click_class='statrow';
if($row['erx_source']==1 && $focustype=='allergy') $click_class='';
elseif($row['erx_uploaded']==1 && $focustype=='medication') $click_class='';

echo " <tr class='$bgclass detail' $colorstyle>\n";
echo " <td style='text-align:left' data-text='$disptitle' class='$click_class' id='$rowid'>" . text($disptitle) . "</td>\n";
echo " <td>" . text(date(DateFormatRead(true), date($row['begdate']))) . "&nbsp;</td>\n";
echo " <td>" . text(date(DateFormatRead(true), date($row['enddate']))) . "&nbsp;</td>\n";

if (!is_null($row['begdate'])){
echo " <td>" . text(date(DateFormatRead(true), strtotime($row['begdate']))) . "&nbsp;</td>\n";
} else {
echo " <td></td>\n";
}
if (!is_null($row['enddate'])){
echo " <td>" . text(date(DateFormatRead(true), strtotime($row['enddate']))) . "&nbsp;</td>\n";
} else {
echo " <td></td>\n";
}

// both codetext and statusCompute have already been escaped above with htmlspecialchars)
echo " <td>" . $codetext . "</td>\n";
echo " <td>" . $statusCompute . "&nbsp;</td>\n";
Expand Down

0 comments on commit acff3d7

Please sign in to comment.