...
Data (including variable values) about any of the subject's encounters can be accessed via a special object named "ENCOUNTERS". This object is a collection of "Encounter" objects (described above). Following is an example of using this collection in code:
Code Block | ||
---|---|---|
| ||
<%
Output.Write("<table>");
Output.Write("<tr><th>Encounter Date</th></tr>");
for (var index=0; index < ENCOUNTERS.Count; index++) {
var encounter = ENCOUNTERS.GetEncounter(index);
var encounterDate = encounter.#EncounterDate;
Output.Write("<tr><td>" + encounterDate + "</td></tr>");
}
Output.Write("</table>");
%>
|
To access encounter variables, either loop through the ENCOUNTERS collection or use one of the properties or methods described below to obtain a reference to an Encounter object. At that point you can access a variable value with the encounter.#VariableCode syntax as described above.
...