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

getProblemList() public method

public getProblemList ( string type ) : TaggedProblemArrays
type string
return gov.va.medora.mdws.dto.TaggedProblemArrays
        public TaggedProblemArrays getProblemList(string type)
        {
            TaggedProblemArrays result = new TaggedProblemArrays();

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

            try
            {
                IndexedHashtable t = ClinicalApi.getProblemList(mySession.ConnectionSet, type.ToUpper());
                result = new TaggedProblemArrays(t);
            }
            catch (Exception e)
            {
                result.fault = new FaultTO(e);
            }
            return result;
        }