gov.va.medora.mdws.ClinicalLib.getAllergies C# (CSharp) Method

getAllergies() public method

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

            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 = ClinicalApi.getAllergies(mySession.ConnectionSet);
                result = new TaggedAllergyArrays(t);
            }
            catch (Exception e)
            {
                result.fault = new FaultTO(e);
            }
            return result;
        }