Medications Report

Unless customization is necessary, use the Repeater function to easily create a Medication table. Alternately, the source code to create a medication table can be used from method 2 for creating medications.

Subject Medications

<%
Output.Write("<table bgcolor= '#DDDDDD'; cellspacing='2' cellpadding='2' >");
Output.Write("<tr><th><u>Current Medications</u></th><th colspan='2'><u>Dose</u></th><th><u>Start Date</u></th></tr>");
 
var medicationList = MEDICATIONS.CurrentMedications();

for (var index=0; index < medicationList.Count; index++) {
  var medication = medicationList.GetMedication(index);

  var medName = medication.TradeName;
  var medDose = medication.DoseNTZ;
  var medFreq = medication.TimesPerDay;
  var medStart = medication.StartDate;
   Output.Write("<tr><td>" + medName + "</td>");
   Output.Write("<td>" + medDose + "</td>");
   Output.Write("<td>" + medFreq + "/day</td>");
   Output.Write("<td>" + medStart + "</td></tr>");
}

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