public TextTO getOrderStatusForPatient(string pid, string orderableItemId)
{
TextTO result = new TextTO();
if (!(MdwsUtils.isAuthorizedConnection(mySession) == "OK"))
{
result.fault = new FaultTO("Connections not ready for operation", "Need to login?");
}
else if (String.IsNullOrEmpty(pid))
{
result.fault = new FaultTO("Empty PID");
}
else if (String.IsNullOrEmpty(orderableItemId))
{
result.fault = new FaultTO("Empty Orderable Item ID");
}
if (result.fault != null)
{
return result;
}
try
{
string s = Order.getOrderStatusForPatient(mySession.ConnectionSet.BaseConnection, pid, orderableItemId);
result = new TextTO(s);
}
catch (Exception exc)
{
result.fault = new FaultTO(exc);
}
return result;
}