...
Adding
...
different
...
types
...
of
...
data
In order to add | Define this data | Give it a column label (eg) | And add it to your template like this |
---|---|---|---|
Full Name | patientName | <b>Full Name:</b> |
...
$data.patientName |
...
Full |
...
Name |
...
(Last, |
...
First) |
...
patientName | <b>Name:</b> |
...
$data.patientName.familyName, |
...
$data.patientName.givenName |
...
Age |
...
(years) |
...
age | <b>Age:</b> |
...
$data.age |
...
years |
...
old |
...
Age |
...
(years |
...
and |
...
months) |
...
age | <b>Age:</b> |
...
$data.age.fullYears |
...
years |
...
$data.age.fullMonthsSinceLastBirthday |
...
months |
...
old |
...
Birthdate | birthdate | <b>Birthdate:</b> |
...
<%= |
...
util.format(data.birthdate, |
...
"dd/MMM/yyyy") |
...
%> |
...
Gender | gender | <b>Gender:</b> |
...
|
...
msg.translate(data.gender |
...
== |
...
"M" |
...
? |
...
"Patient.gender.male" |
...
: |
...
"Patient.gender.female") |
...
%> |
...
Address | address | <b>Address:</b> |
...
$data.address.address1, |
...
$data.address.cityVillage |
...
First |
...
Encounter |
...
of |
...
Type(s) |
...
firstXyzEncounter | First XYZ Encounter occurred |
...
"dd/MMM/yyyy")} |
...
at |
...
$data.firstScheduledVisit.location.name |
...
Most |
...
Recent |
...
Weight | lastWeight | Most recent weight: |
...
($ |
...
{util.format(data.lastWeight.obsDatetime, |
...
"dd/MMM/yyyy")}) |
...
Obs |
...
Active |
...
List |
| obs | <% activeItemsa = util.sort(data.obs.activeItems, |
...
"obsDatetime |
...
desc") |
...
|
...
observations: |
...
|
...
"obsDatetime |
...
desc") |
...
|
...
in |
...
activeItems) |
...
{ |
...
<li>$item.valueCoded.name |
...
<small><i>$ |
...
{util.format(item.obsDatetime, |
...
"dd-MMM-yyyy")}</i></small></li> |
...
|
...
} %> |
...