Inheritance: AbstractTaggedArrayTO
Example #1
0
 public TaggedConsultArrays(IndexedHashtable t)
 {
     if (t.Count == 0)
     {
         return;
     }
     arrays = new TaggedConsultArray[t.Count];
     for (int i = 0; i < t.Count; i++)
     {
         if (t.GetValue(i) == null)
         {
             arrays[i] = new TaggedConsultArray((string)t.GetKey(i));
         }
         else if (MdwsUtils.isException(t.GetValue(i)))
         {
             arrays[i] = new TaggedConsultArray((string)t.GetKey(i), (Exception)t.GetValue(i));
         }
         else if (t.GetValue(i).GetType().IsArray)
         {
             arrays[i] = new TaggedConsultArray((string)t.GetKey(i), (Consult[])t.GetValue(i));
         }
         else
         {
             arrays[i] = new TaggedConsultArray((string)t.GetKey(i), (Consult)t.GetValue(i));
         }
     }
     count = t.Count;
 }
Example #2
0
 public TaggedConsultArrays(IndexedHashtable t)
 {
     if (t.Count == 0)
     {
         return;
     }
     arrays = new TaggedConsultArray[t.Count];
     for (int i = 0; i < t.Count; i++)
     {
         if (t.GetValue(i) == null)
         {
             arrays[i] = new TaggedConsultArray((string)t.GetKey(i));
         }
         else if (MdwsUtils.isException(t.GetValue(i)))
         {
             arrays[i] = new TaggedConsultArray((string)t.GetKey(i), (Exception)t.GetValue(i));
         }
         else if (t.GetValue(i).GetType().IsArray)
         {
             arrays[i] = new TaggedConsultArray((string)t.GetKey(i), (Consult[])t.GetValue(i));
         }
         else
         {
             arrays[i] = new TaggedConsultArray((string)t.GetKey(i), (Consult)t.GetValue(i));
         }
     }
     count = t.Count;
 }
Example #3
0
        public TaggedConsultArray getConsultsForPatient()
        {
            TaggedConsultArray result = new TaggedConsultArray();

            try
            {
                OrdersLib lib = new OrdersLib(mySession);
                TaggedConsultArrays ta = lib.getConsultsForPatient();
                if (ta.fault != null)
                {
                    result.fault = ta.fault;
                    return result;
                }
                result = ta.arrays[0];
            }
            catch (Exception e)
            {
                result.fault = new FaultTO(e.Message);
            }
            return result;
        }