gov.va.medora.mdws.ClinicalRemindersLib.getPatientListForReminderReport C# (CSharp) Method

getPatientListForReminderReport() public method

public getPatientListForReminderReport ( string rptId ) : ReminderReportPatientListTO
rptId string
return gov.va.medora.mdws.dto.ReminderReportPatientListTO
        public ReminderReportPatientListTO getPatientListForReminderReport(string rptId)
        {
            ReminderReportPatientListTO result = new ReminderReportPatientListTO();

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

            try
            {
                ReminderReportPatientList lst = ClinicalReminder.getPatientListForReminderReport(mySession.ConnectionSet.BaseConnection, rptId);
                result = new ReminderReportPatientListTO(lst);
            }
            catch (Exception e)
            {
                result.fault = new FaultTO(e);
            }
            return result;
        }