public TaggedProblemArrays getProblemList(string type)
{
TaggedProblemArrays result = new TaggedProblemArrays();
if (!mySession.ConnectionSet.IsAuthorized)
{
result.fault = new FaultTO("Connections not ready for operation", "Need to login?");
}
else if (type == "")
{
result.fault = new FaultTO("Missing type");
}
if (result.fault != null)
{
return result;
}
try
{
IndexedHashtable t = ClinicalApi.getProblemList(mySession.ConnectionSet, type.ToUpper());
result = new TaggedProblemArrays(t);
}
catch (Exception e)
{
result.fault = new FaultTO(e);
}
return result;
}