Exemple #1
0
        public TaggedVisitArrays getMentalHealthVisits()
        {
            TaggedVisitArrays result = new TaggedVisitArrays();

            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.getMentalHealthVisits(mySession.ConnectionSet);
                return(new TaggedVisitArrays(t));
            }
            catch (Exception e)
            {
                result.fault = new FaultTO(e);
                return(result);
            }

            return(null);
        }