gov.va.medora.mdws.EncounterLib.getAppointments C# (CSharp) Method

getAppointments() public method

public getAppointments ( ) : TaggedAppointmentArrays
return TaggedAppointmentArrays
        public TaggedAppointmentArrays getAppointments()
        {
            TaggedAppointmentArrays result = new TaggedAppointmentArrays();

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

            try
            {
                EncounterApi api = new EncounterApi();
                IndexedHashtable t = api.getAppointments(mySession.ConnectionSet);
                return new TaggedAppointmentArrays(t);
            }
            catch (Exception e)
            {
                result.fault = new FaultTO(e);
                return result;
            }
        }