/
Medications Report

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>");
%>

Related content

Subject Report with Medications
Subject Report with Medications
More like this
Subject Report Template Examples
Subject Report Template Examples
More like this
Add Repeater Table
Add Repeater Table
More like this
Working with dates in the script
Working with dates in the script
More like this
Subject Report Header Examples
Subject Report Header Examples
More like this
Populate Fields into the Repeater Table
Populate Fields into the Repeater Table
More like this