gov.va.medora.mdo.api.PatientApi.mpiMatch C# (CSharp) Метод

mpiMatch() публичный Метод

public mpiMatch ( DataSource src, string ssn ) : Patient[]
src DataSource
ssn string
Результат 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);
        }

Usage Example

Пример #1
0
        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;
        }
All Usage Examples Of gov.va.medora.mdo.api.PatientApi::mpiMatch