gov.va.medora.mdo.api.PatientApi.getOefOif C# (CSharp) Method

getOefOif() public method

public getOefOif ( ConnectionSet cxns ) : IndexedHashtable
cxns gov.va.medora.mdo.dao.ConnectionSet
return IndexedHashtable
        public IndexedHashtable getOefOif(ConnectionSet cxns)
        {
            return cxns.query(DAO_NAME, "getOefOif", new object[] { });
        }

Same methods

PatientApi::getOefOif ( gov.va.medora.mdo.dao.AbstractConnection cxn ) : OEF_OIF[]

Usage Example

Ejemplo n.º 1
0
        public TaggedOefOifArray getOefOif()
        {
            TaggedOefOifArray result = new TaggedOefOifArray();
            string msg = MdwsUtils.isAuthorizedConnection(mySession, null);
            if (msg != "OK")
            {
                result.fault = new FaultTO(msg);
            }
            if (result.fault != null)
            {
                return result;
            }

            string sitecode = mySession.ConnectionSet.BaseSiteId;

            try
            {
                AbstractConnection cxn = mySession.ConnectionSet.getConnection(sitecode);
                PatientApi api = new PatientApi();
                OEF_OIF[] rex = api.getOefOif(cxn);
                result = new TaggedOefOifArray(sitecode, rex);
            }
            catch (Exception e)
            {
                result.fault = new FaultTO(e.Message);
            }
            return result;
        }