示例#1
0
 public void Init(IndexedHashtable mdo)
 {
     if (mdo == null)
     {
         return;
     }
     healthSummaries = new HealthSummaryTO[mdo.Count];
     for (int i = 0; i < mdo.Count; i++)
     {
         healthSummaries[i] = new HealthSummaryTO((HealthSummary)mdo.GetValue(i),(string)mdo.GetKey(i));
     }
     count = mdo.Count;
 }
示例#2
0
        public HealthSummaryTO getHealthSummary(string healthSummaryId, string healthSummaryName)
        {
            HealthSummaryTO result = new HealthSummaryTO();

            if (string.IsNullOrEmpty(healthSummaryId) && string.IsNullOrEmpty(healthSummaryName))
            {
                result.fault = new FaultTO("Missing health summary Id OR health summary name. Please provide one of the parameters.");
                return(result);
            }

            try
            {
                HealthSummary hs = ClinicalApi.getHealthSummary(mySession.ConnectionSet.BaseConnection, new MdoDocument(healthSummaryId, healthSummaryName));
                result.Init(hs);
            }
            catch (Exception e)
            {
                result.fault = new FaultTO(e.Message);
            }
            return(result);
        }
示例#3
0
        public HealthSummaryTO getHealthSummary(string healthSummaryId, string healthSummaryName)
        {
            HealthSummaryTO result = new HealthSummaryTO();
            if (string.IsNullOrEmpty(healthSummaryId) && string.IsNullOrEmpty(healthSummaryName))
            {
                result.fault = new FaultTO("Missing health summary Id OR health summary name. Please provide one of the parameters.");
                return result;
            }

            try
            {
                HealthSummary hs = ClinicalApi.getHealthSummary(mySession.ConnectionSet.BaseConnection, new MdoDocument(healthSummaryId, healthSummaryName));
                result.Init(hs);
            }
            catch (Exception e)
            {

                result.fault = new FaultTO(e.Message);
            }
            return result;
        }
示例#4
0
 public void Init(HealthSummary[] mdo)
 {
     if (mdo == null)
     {
         return;
     }
     healthSummaries = new HealthSummaryTO[mdo.Length];
     for (int i = 0; i < mdo.Length; i++)
     {
         healthSummaries[i] = new HealthSummaryTO(mdo[i]);
     }
     count = mdo.Length;
 }