gov.va.medora.mdws.MedsLib.getOutpatientMeds C# (CSharp) Method

getOutpatientMeds() public method

public getOutpatientMeds ( ) : TaggedMedicationArrays
return gov.va.medora.mdws.dto.TaggedMedicationArrays
        public TaggedMedicationArrays getOutpatientMeds()
        {
            TaggedMedicationArrays result = new TaggedMedicationArrays();

            if (!mySession.ConnectionSet.IsAuthorized)
            {
                result.fault = new FaultTO("Connections not ready for operation", "Need to login?");
            }
            if (result.fault != null)
            {
                return result;
            }

            try
            {
                IndexedHashtable t = Medication.getOutpatientMeds(mySession.ConnectionSet);
                result = new TaggedMedicationArrays(t);
            }
            catch (Exception e)
            {
                result.fault = new FaultTO(e);
            }
            return result;
        }