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;
}