Skip to content

Commit

Permalink
Include DOB in referral template. (openemr#7825)
Browse files Browse the repository at this point in the history
* Include DOB in referral template.

* Format DOB for template display.
  • Loading branch information
ChrisOstler authored Nov 20, 2024
1 parent 1bee323 commit c7c1c72
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions interface/patient_file/transaction/print_referral.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
'label_webpage_title' => xlt('Referral Form'),
'label_form1_title' => xlt('Referral Form'),
'label_name' => xlt('Name'),
'label_dob' => xlt('DOB'),
'label_age' => xlt('Age'),
'label_gender' => xlt('Gender'),
'label_address' => xlt('Address'),
Expand Down Expand Up @@ -194,6 +195,8 @@
foreach ($patdata as $key => $value) {
if ($key == "sex") {
$s = str_replace("{pt_$key}", generate_display_field(array('data_type' => '1','list_id' => 'sex'), $value), $s);
} elseif ($key == "DOB") {
$s = str_replace("{pt_$key}", text(oeFormatShortDate($value)), $s);
} else {
$s = str_replace("{pt_$key}", text($value), $s);
}
Expand Down
2 changes: 2 additions & 0 deletions sites/default/referral_template.html
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,8 @@
<tr>
<td style="width:1%;white-space:nowrap">{label_name} &nbsp;</td>
<td class='under'>{pt_title} {pt_fname} {pt_mname} {pt_lname}&nbsp;</td>
<td style="width:1%;white-space:nowrap">{label_dob} &nbsp;</td>
<td class='under'>{pt_DOB}&nbsp;</td>
<td style="width:1%;white-space:nowrap">&nbsp; {label_age} &nbsp;</td>
<td class='under'>{pt_age}&nbsp;</td>
<td style="width:1%;white-space:nowrap">&nbsp; {label_gender} &nbsp;</td>
Expand Down

0 comments on commit c7c1c72

Please sign in to comment.