getPatientAssociates() public method

public getPatientAssociates ( ConnectionSet cxns ) : IndexedHashtable
cxns gov.va.medora.mdo.dao.ConnectionSet
return IndexedHashtable
Ejemplo n.º 1
0
        internal TaggedPatientAssociateArray getPatientAssociates(AbstractConnection cxn, string dfn)
        {
            TaggedPatientAssociateArray result = new TaggedPatientAssociateArray();
            if (dfn == "")
            {
                result.fault = new FaultTO("Missing dfn");
            }
            if (result.fault != null)
            {
                return result;
            }

            try
            {
                PatientApi patientApi = new PatientApi();
                PatientAssociate[] pas = patientApi.getPatientAssociates(cxn, dfn);
                result = new TaggedPatientAssociateArray(cxn.DataSource.SiteId.Id, pas);
            }
            catch (Exception e)
            {
                result.fault = new FaultTO(e.Message);
            }
            return result;
        }
Ejemplo n.º 2
0
        public TaggedPatientAssociateArrays getPatientAssociatesMS()
        {
            TaggedPatientAssociateArrays result = new TaggedPatientAssociateArrays();
            if (result.fault != null)
            {
                return result;
            }

            try
            {
                PatientApi api = new PatientApi();
                IndexedHashtable t = api.getPatientAssociates(mySession.ConnectionSet);
                return new TaggedPatientAssociateArrays(t);
            }
            catch (Exception e)
            {
                result.fault = new FaultTO(e.Message);
            }
            return result;
        }