public PatientTO getDemographics()
{
PatientTO result = new PatientTO();
string msg = MdwsUtils.isAuthorizedConnection(mySession);
if (msg != "OK")
{
result.fault = new FaultTO(msg);
}
else if (String.IsNullOrEmpty(mySession.ConnectionSet.BaseConnection.Pid) || mySession.Patient == null)
{
result.fault = new FaultTO("Need to select patient");
}
if (result.fault != null)
{
return(result);
}
try
{
result = new PatientTO(getHomeData(mySession.Patient));
}
catch (Exception exc)
{
result.fault = new FaultTO(exc);
}
return(result);
}