Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 4 Next »

Data Across Encounters

Displaying a table with one row per encounter

Code that can be entered into a Report Template:

<%

Output.Write("<table border='1' cellspacing='0' cellpadding='5'>");
Output.Write("<tr><th>Encounter Date</th> <th>Encounter Name</th></tr>");

for (var index=0; index < ENCOUNTERS.Count; index++) {
    var encounter = ENCOUNTERS.GetEncounter(index);
    var encounterDate = encounter.#EncounterDate;
    var encounterName = encounter.#IntervalName;

    Output.Write("<tr><td>" + encounterDate +  "</td>");
    Output.Write("<td>" + encounterName +  "</td></tr>");
}

Output.Write("</table>");

%>

An example of the output from the code above:

Encounter Date

Encounter Name

10/1/2011

Baseline

11/5/2011

Month 1

12/2/2011

Month 2

  • No labels