gov.va.medora.mdws.LabsLib.getAutopsyReports C# (CSharp) Method

getAutopsyReports() public method

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

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

            try
            {
                LabsApi api = new LabsApi();
                IndexedHashtable t = api.getAutopsyReport(mySession.ConnectionSet);
                result = new TaggedTextArray(t);
            }
            catch (Exception e)
            {
                result.fault = new FaultTO(e);
            }
            return result;
        }