public getConsultsForPatient ( ) : |
||
리턴 |
public TaggedConsultArrays getConsultsForPatient()
{
TaggedConsultArrays result = new TaggedConsultArrays();
if (!mySession.ConnectionSet.IsAuthorized)
{
result.fault = new FaultTO("Connections not ready for operation", "Need to login?");
}
if (result.fault != null)
{
return result;
}
try
{
IndexedHashtable t = Consult.getConsultsForPatient(mySession.ConnectionSet);
return new TaggedConsultArrays(t);
}
catch (Exception e)
{
result.fault = new FaultTO(e);
return result;
}
}
public TaggedConsultArray getConsultsForPatient() { TaggedConsultArray result = new TaggedConsultArray(); try { OrdersLib lib = new OrdersLib(mySession); TaggedConsultArrays ta = lib.getConsultsForPatient(); if (ta.fault != null) { result.fault = ta.fault; return(result); } result = ta.arrays[0]; } catch (Exception e) { result.fault = new FaultTO(e.Message); } return(result); }