gov.va.medora.mdws.ClaimsLib.getProstheticClaimsForPatient C# (CSharp) Method

getProstheticClaimsForPatient() public method

public getProstheticClaimsForPatient ( string dfn ) : TaggedProstheticClaimArray
dfn string
return gov.va.medora.mdws.dto.TaggedProstheticClaimArray
        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;
        }