Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Data Across Encounters

...

Displaying a table with one row per encounter:

...

<%

Output.Write("<table border='1'>");
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