gov.va.medora.mdo.api.PatientApi.getMOSReport C# (CSharp) Méthode

getMOSReport() public méthode

public getMOSReport ( gov.va.medora.mdo.dao.AbstractConnection cxn, Patient patient ) : TextReport
cxn gov.va.medora.mdo.dao.AbstractConnection
patient Patient
Résultat TextReport
        public TextReport getMOSReport(AbstractConnection cxn, Patient patient)
        {
            gov.va.medora.mdo.dao.oracle.vadir.VadirPatientDao vadirPatientDao = new dao.oracle.vadir.VadirPatientDao(cxn);
            return vadirPatientDao.getMOSReport(patient);
        }

Usage Example

Exemple #1
0
        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;
        }