gov.va.medora.mdws.PatientLib.getPatientAssociates C# (CSharp) Method

getPatientAssociates() private method

private getPatientAssociates ( gov.va.medora.mdo.dao.AbstractConnection cxn, string dfn ) : TaggedPatientAssociateArray
cxn gov.va.medora.mdo.dao.AbstractConnection
dfn string
return gov.va.medora.mdws.dto.TaggedPatientAssociateArray
        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;
        }

Same methods

PatientLib::getPatientAssociates ( string dfn ) : TaggedPatientAssociateArray
PatientLib::getPatientAssociates ( string sitecode, string dfn ) : TaggedPatientAssociateArray