public matchByNameCityState ( ConnectionSet cxns, string name, string city, string state ) : IndexedHashtable | ||
cxns | ConnectionSet | |
name | string | |
city | string | |
state | string | |
리턴 | IndexedHashtable |
public IndexedHashtable matchByNameCityState(ConnectionSet cxns, string name, string city, string state)
{
return cxns.query(DAO_NAME, "matchByNameCityState", new object[] { name,city,state });
}
PatientApi::matchByNameCityState ( AbstractConnection cxn, string name, string city, string state ) : Patient[] |
public TaggedPatientArrays matchByNameCityStateMS(string name, string city, string stateAbbr) { TaggedPatientArrays result = new TaggedPatientArrays(); string msg = MdwsUtils.isAuthorizedConnection(mySession); if (msg != "OK") { result.fault = new FaultTO(msg); } if (name == "") { result.fault = new FaultTO("Missing name"); } else if (city == "") { result.fault = new FaultTO("Missing city"); } else if (stateAbbr == "") { result.fault = new FaultTO("Missing stateAbbr"); } else if (!State.isValidAbbr(stateAbbr)) { result.fault = new FaultTO("Invalid stateAbbr"); } if (result.fault != null) { return result; } try { PatientApi api = new PatientApi(); IndexedHashtable matches = api.matchByNameCityState(mySession.ConnectionSet, name, city, stateAbbr); result = new TaggedPatientArrays(matches); } catch (Exception e) { result.fault = new FaultTO(e.Message); } return result; }