public mpiMatch ( DataSource src, string ssn ) : Patient[] | ||
src | DataSource | |
ssn | string | |
return | Patient[] |
public Patient[] mpiMatch(DataSource src, string ssn)
{
gov.va.medora.mdo.dao.hl7.mpi.MpiConnection cxn = new gov.va.medora.mdo.dao.hl7.mpi.MpiConnection(src);
gov.va.medora.mdo.dao.hl7.mpi.MpiPatientDao dao = new gov.va.medora.mdo.dao.hl7.mpi.MpiPatientDao(cxn);
return dao.match(ssn);
}
public PatientArray mpiMatchSSN(string ssn) { PatientArray result = new PatientArray(); if (!SocSecNum.isValid(ssn)) { result.fault = new FaultTO("Invalid SSN"); } if (result.fault != null) { return result; } try { PatientApi api = new PatientApi(); Site site = mySession.SiteTable.getSite("500"); Patient[] p = api.mpiMatch(site.Sources[0], ssn); addHomeData(p); result = new PatientArray(p); } catch (Exception e) { result.fault = new FaultTO(e.Message); } return result; }