Пример #1
0
        public TaggedMentalHealthInstrumentAdministrationArrays getMentalHealthInstrumentsForPatient()
        {
            TaggedMentalHealthInstrumentAdministrationArrays result = new TaggedMentalHealthInstrumentAdministrationArrays();

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

            try
            {
                IndexedHashtable t = MentalHealthInstrumentAdministration.getMentalHealthInstrumentsForPatient(mySession.ConnectionSet);
                result = new TaggedMentalHealthInstrumentAdministrationArrays(t);
            }
            catch (Exception e)
            {
                result.fault = new FaultTO(e);
            }
            return result;
        }