gov.va.medora.mdo.api.PatientApi.match C# (CSharp) 메소드

match() 공개 메소드

public match ( ConnectionSet cxns, string target ) : IndexedHashtable
cxns ConnectionSet
target string
리턴 IndexedHashtable
        public IndexedHashtable match(ConnectionSet cxns, string target)
        {
            return cxns.query(DAO_NAME, "match", new object[] { target });
        }

Same methods

PatientApi::match ( AbstractConnection cxn, string target ) : Patient[]

Usage Example

예제 #1
0
파일: PatientLib.cs 프로젝트: OSEHRA/mdws
        internal TaggedPatientArray match(AbstractConnection cxn, string target)
        {
            TaggedPatientArray result = new TaggedPatientArray();
            if (!cxn.IsConnected)
            {
                result = new TaggedPatientArray("Connection not open");
            }
            else if (cxn.DataSource.Uid == "")
            {
                result = new TaggedPatientArray("No user authorized for lookup");
            }
            else if (target == "")
            {
                result.fault = new FaultTO("Missing target");
            }
            if (result.fault != null)
            {
                return result;
            }

            try
            {
                PatientApi patientApi = new PatientApi();
                Patient[] matches = patientApi.match(cxn, target);
                result = new TaggedPatientArray(cxn.DataSource.SiteId.Id, matches);
            }
            catch (Exception e)
            {
                result.fault = new FaultTO(e.Message);
            }
            return result;
        }
All Usage Examples Of gov.va.medora.mdo.api.PatientApi::match