...
Encounter Date | Encounter Name |
10/1/2011 | Baseline |
11/5/2011 | Month 1 |
12/2/2011 | Month 2 |
...
Displaying data in a custom layout from fixed encounters
...
...
Code that can be entered into a Report Template:
<%
// declare variables that will track the interval's index number
var BaselineIndex="";
var Month1Index="";
var Month2Index="";
// loop through all encounters to assign the interval's index number
for (var index=0; index < ENCOUNTERS.Count; index++) {
var encounter = ENCOUNTERS.GetEncounter(index);
var encounterName = encounter.#IntervalName;
if (encounterName =="Baseline") var BaselineIndex=index;
else if (encounterName=="Month 1") var Month1Index=index;
else if (encounterName=="Month 2") var Month2Index=index;
}