Header Information
<table style="width: 800px;">
<tbody>
<tr> <td colspan="3"> <h1 style="text-align: center;">Report Title</h1> </td>
</tr> <tr> <td> <h4 style="text-align: center;">Project ID</h4> </td> <td style="text-align: left;"><%= #ProjectSpecificID %></td> <td style="text-align: right;"><%= new Date().format('M/D/YYYY') %></td> </tr>
</tbody>
</table>
<br /><br />
Data Across Encounters
*** Please note code below is no longer needed. Use the point-and-click method using the Repeater control ***
Displaying a table with one row per encounter
...
Output.Write("</table>");
%>
An example of the output from the Report Template code above:
Encounter Date | Encounter Name | Variable 1 | Variable 2 |
10/1/2011 | Baseline | 128 | 75 |
11/5/2011 | Month 1 | 123 | 60 |
12/2/2011 | Month 2 | 118 | 62 |
Displaying a table with one row per encounter with the encounters sorted in descending order
...
Output.Write("</table>");
%>
An example of the output from the Report Template code above:
Encounter Date | Encounter Name | Variable 1 | Variable 2 |
12/2/2011 | Month 2 | 118 | 62 |
11/5/2011 | Month 1 | 123 | 60 |
10/1/2011 | Baseline | 128 | 75 |
Outputting the data from latest encounter which meets a condition
...
Output.Write("</table>");
%>
An example of the output from the Report Template code above:
Encounter Date | Encounter Name | Variable 1 | Variable 2 |
11/5/2011 | Month 1 | 190 | 60 |
Displaying data in a custom layout from fixed encounters
...
// Create the desired layout
Variable | Baseline | Month 1 | Month 2 |
---|---|---|---|
Encounter Date | <%=BaselineEncounter.#EncounterDate%> | <%=Month1Encounter.#EncounterDate%> | <%=Month2Encounter.#EncounterDate%> |
Variable 1 | <%=BaselineEncounter.#Variable1%> | <%=Month1Encounter.#Variable1%> | <%=Month2Encounter.#Variable1%> |
Variable 2 | <%=BaselineEncounter.#Variable2%> | <%=Month1Encounter.#Variable2%> | <%=Month2Encounter.#Variable2%> |
%>
An example of the output from the Report Template above:
Variable | Baseline | Month 1 | Month 2 |
---|---|---|---|
Encounter Date | 10/1/2011 | 11/5/2011 | 12/2/2011 |
Variable 1 | 128 | 123 | 118 |
Variable 2 | 75 | 60 | 62 |