Inheritance: AbstractTaggedArrayTO
Exemple #1
0
 public TaggedProstheticClaimArrays(IndexedHashtable t)
 {
     if (t.Count == 0)
     {
         return;
     }
     arrays = new TaggedProstheticClaimArray[t.Count];
     for (int i = 0; i < t.Count; i++)
     {
         if (t.GetValue(i) == null)
         {
             arrays[i] = new TaggedProstheticClaimArray((string)t.GetKey(i));
         }
         else if (t.GetValue(i).GetType().IsAssignableFrom(typeof(Exception)))
         {
             arrays[i] = new TaggedProstheticClaimArray((string)t.GetKey(i), (Exception)t.GetValue(i));
         }
         else if (t.GetValue(i).GetType().IsArray)
         {
             arrays[i] = new TaggedProstheticClaimArray((string)t.GetKey(i), (ProstheticClaim[])t.GetValue(i));
         }
         else
         {
             arrays[i] = new TaggedProstheticClaimArray((string)t.GetKey(i), (ProstheticClaim)t.GetValue(i));
         }
     }
     count = t.Count;
 }
 public TaggedProstheticClaimArrays(IndexedHashtable t)
 {
     if (t.Count == 0)
     {
         return;
     }
     arrays = new TaggedProstheticClaimArray[t.Count];
     for (int i = 0; i < t.Count; i++)
     {
         if (t.GetValue(i) == null)
         {
             arrays[i] = new TaggedProstheticClaimArray((string)t.GetKey(i));
         }
         else if (t.GetValue(i).GetType().IsAssignableFrom(typeof(Exception)))
         {
             arrays[i] = new TaggedProstheticClaimArray((string)t.GetKey(i), (Exception)t.GetValue(i));
         }
         else if (t.GetValue(i).GetType().IsArray)
         {
             arrays[i] = new TaggedProstheticClaimArray((string)t.GetKey(i), (ProstheticClaim[])t.GetValue(i));
         }
         else
         {
             arrays[i] = new TaggedProstheticClaimArray((string)t.GetKey(i), (ProstheticClaim)t.GetValue(i));
         }
     }
     count = t.Count;
 }
Exemple #3
0
        public TaggedProstheticClaimArray getProstheticClaims(string dfn, string episodeDates)
        {
            TaggedProstheticClaimArray result = new TaggedProstheticClaimArray();

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

            string[] dates = episodeDates.Split(new char[] { ',' });
            List<string> dateList = new List<string>(dates.Length);
            for (int i = 0; i < dates.Length; i++)
            {
                if (!dateList.Contains(dates[i]))
                {
                    dateList.Add(dates[i]);
                }
            }

            try
            {
                List<ProstheticClaim> claims = ProstheticClaim.getProstheticClaims(mySession.ConnectionSet.BaseConnection, dfn, dateList);
                result = new TaggedProstheticClaimArray(mySession.ConnectionSet.BaseConnection.DataSource.SiteId.Id, claims);
            }
            catch (Exception e)
            {
                result.fault = new FaultTO(e);
            }
            return result;
        }
Exemple #4
0
        // This is for iterating thru a list of patients at one site, getting the prosthetics from only that site.
        public TaggedProstheticClaimArray getProstheticClaimsForPatient(string dfn)
        {
            TaggedProstheticClaimArray result = new TaggedProstheticClaimArray();

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

            try
            {
                ProstheticClaim[] claims = ProstheticClaim.getProstheticClaimsForPatient(mySession.ConnectionSet.BaseConnection, dfn);
                result = new TaggedProstheticClaimArray(mySession.ConnectionSet.BaseConnection.DataSource.SiteId.Id, claims);
            }
            catch (Exception e)
            {
                result.fault = new FaultTO(e);
            }
            return result;
        }