public bool RequestConsultation(string caseURN, ReadingSiteInfo consultingSite) { return vistaClient.RequestConsultation(caseURN, consultingSite); }
/// <summary> /// Requestiong a consultation at a consulting site by creating a consultation entry in the interpretation file /// </summary> /// <param name="caseURN">case to be consulted</param> /// <param name="consultingSite">site being consulted</param> /// <returns>true if successful</returns> public bool RequestConsultation(string caseURN, ReadingSiteInfo consultingSite) { Log.Debug("Requesting consultation..."); if (string.IsNullOrWhiteSpace(caseURN)) { Log.Error("Missing parameter: caseURN."); return false; } if (consultingSite == null) { Log.Error("Missing parameter: consultingSite."); return false; } string URI = String.Format("pathology/case/consultation/{0}/{1}", caseURN, consultingSite.SiteStationNumber); IRestResponse response = null; try { response = ExecuteGet(URI, VixServiceTypes.Pathology); ValidateRestResponse(response); PathologyCaseUpdateAttributeResultType res = ResponseParser.ParseRequestConsultation(response.Content); if (!res.BoolSuccess) { throw new MagVixFailureException(res.ErrorMessage); } return true; } catch (MagVixFailureException vfe) { Log.Error("Unexpected response", vfe); return false; } catch (Exception ex) { Log.Error("Could not complete request to request consultation.", ex); return false; } }
/// <summary> /// Requestiong a consultation at a consulting site by creating a consultation entry in the interpretation file /// </summary> /// <param name="caseURN">case to be consulted</param> /// <param name="consultingSite">site being consulted</param> /// <returns>true if successful</returns> public bool RequestConsultation(string caseURN, ReadingSiteInfo consultingSite) { if (vixClient != null) { return vixClient.RequestConsultation(caseURN, consultingSite); } else { Log.Error("VIX client is null."); return false; } }