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

getStayMovementsByPatient() public method

public getStayMovementsByPatient ( ) : TaggedInpatientStayArrays
return gov.va.medora.mdws.dto.TaggedInpatientStayArrays
        public TaggedInpatientStayArrays getStayMovementsByPatient()
        {
            TaggedInpatientStayArrays result = new TaggedInpatientStayArrays();
            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.getStayMovementsByPatient(mySession.ConnectionSet, mySession.Patient.LocalPid);
                result = new TaggedInpatientStayArrays(t);
            }
            catch (Exception e)
            {
                result.fault = new FaultTO(e);
            }
            return result;
        }