public ArrayList GetCurrentRegimen() { PatientEncounterLogic patientEncounter = new PatientEncounterLogic(); List <Entities.CCC.Encounter.PatientEncounter.PharmacyFields> lst = new List <Entities.CCC.Encounter.PatientEncounter.PharmacyFields>(); lst = patientEncounter.getPharmacyCurrentRegimen(Session["PatientPK"].ToString()); ArrayList rows = new ArrayList(); if (lst.Count > 0) { string[] i = new string[2] { lst[0].RegimenLine, lst[0].Regimen }; rows.Add(i); } return(rows); }