public TaggedText getMOSReport(string appPwd, string EDIPI)
{
TaggedText result = new TaggedText();
if (String.IsNullOrEmpty(appPwd))
{
result.fault = new FaultTO("Missing appPwd");
}
else if (String.IsNullOrEmpty(EDIPI))
{
result.fault = new FaultTO("Missing EDIPI");
}
if (result.fault != null)
{
return result;
}
try
{
AbstractConnection cxn = new MdoOracleConnection(new DataSource() { ConnectionString = mySession.MdwsConfiguration.MosConnectionString });
PatientApi api = new PatientApi();
Patient p = new Patient() { EDIPI = EDIPI };
TextReport rpt = api.getMOSReport(cxn, p);
result.text = rpt.Text;
result.tag = "VADIR";
}
catch (Exception exc)
{
result.fault = new FaultTO(exc);
}
return result;
}