Example #1
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);
        }
Example #2
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);
        }