public TaggedProblemArrays getProblemList(string type) { TaggedProblemArrays result = new TaggedProblemArrays(); if (!mySession.ConnectionSet.IsAuthorized) { result.fault = new FaultTO("Connections not ready for operation", "Need to login?"); } else if (type == "") { result.fault = new FaultTO("Missing type"); } if (result.fault != null) { return(result); } try { IndexedHashtable t = ClinicalApi.getProblemList(mySession.ConnectionSet, type.ToUpper()); result = new TaggedProblemArrays(t); } catch (Exception e) { result.fault = new FaultTO(e); } return(result); }
public TaggedProblemArrays getProblemsFromSites(String status) { TaggedProblemArrays result = new TaggedProblemArrays(); string msg = MdwsUtils.isAuthorizedConnection(_mySession); if (msg != "OK") { result.fault = new FaultTO(msg); } if (result.fault != null) { return(result); } try { result = new TaggedProblemArrays(new ProblemApi().getProblems(_mySession.ConnectionSet, status)); } catch (Exception exc) { result.fault = new FaultTO(exc); } return(result); }
public TaggedProblemArrays getFluRelatedProblemList() { TaggedProblemArrays result = new TaggedProblemArrays(); if (!mySession.ConnectionSet.IsAuthorized) { result.fault = new FaultTO("Connections not ready for operation", "Need to login?"); } if (result.fault != null) { return(result); } try { IndexedHashtable t = ClinicalApi.getFluRelatedProblemList(mySession.ConnectionSet); result = new TaggedProblemArrays(t); } catch (Exception e) { result.fault = new FaultTO(e); } return(result); }