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

getRadiologyReports() public method

public getRadiologyReports ( string fromDate, string toDate, int nrpts ) : TaggedRadiologyReportArrays
fromDate string
toDate string
nrpts int
return gov.va.medora.mdws.dto.TaggedRadiologyReportArrays
        public TaggedRadiologyReportArrays getRadiologyReports(string fromDate, string toDate, int nrpts)
        {
            TaggedRadiologyReportArrays result = new TaggedRadiologyReportArrays();

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

            try
            {
                IndexedHashtable t = ClinicalApi.getRadiologyReports(mySession.ConnectionSet, fromDate, toDate, nrpts);
                result = new TaggedRadiologyReportArrays(t);
            }
            catch (Exception e)
            {
                result.fault = new FaultTO(e);
            }
            return result;
        }