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();
...