public string getHealthSummaryText(string mpiPid, MdoDocument hs, string sourceSiteId) { throw new NotImplementedException(); }
public HealthSummary getHealthSummary(MdoDocument hs) { throw new NotImplementedException(); }
public static HealthSummary getHealthSummary(AbstractConnection cxn, MdoDocument hs) { return(((IClinicalDao)cxn.getDao(DAO_NAME)).getHealthSummary(hs)); }
public static IndexedHashtable getHealthSummary(ConnectionSet cxns, MdoDocument hs) { return(cxns.query(DAO_NAME, "getHealthSummary", new object[] { hs })); }
/// <summary>Parses ^-delim into MdoDocuments for Health Summary Types /// </summary> /// <remarks> /// Throws Exception if no summary types are returned. /// </remarks> /// <param name="response">response string from VistA</param> /// <returns></returns> internal MdoDocument[] toMdoDocuments(string response) { if (response == "") { throw new Exception("No summary types returned"); } string[] rex = StringUtils.split(response, StringUtils.CRLF); ArrayList lst = new ArrayList(); int i = 0; while (rex[i] != "[HEALTH SUMMARY TYPES]") { i++; } while (rex[++i] != "$$END") { string[] parts = StringUtils.split(rex[i], StringUtils.CARET); MdoDocument hs = new MdoDocument(parts[0].Substring(1), parts[1]); lst.Add(hs); } return (MdoDocument[])lst.ToArray(typeof(MdoDocument)); }
public string getHealthSummaryText(AbstractConnection cxn, string mpiPid, MdoDocument hs, String sourceSiteId) { return(((IClinicalDao)cxn.getDao(DAO_NAME)).getHealthSummaryText(mpiPid, hs, sourceSiteId)); }
public string getHealthSummaryText(AbstractConnection cxn, string mpiPid, MdoDocument hs, String sourceSiteId) { return ((IClinicalDao)cxn.getDao(DAO_NAME)).getHealthSummaryText(mpiPid, hs, sourceSiteId); }
public string getHealthSummaryText(String mpiPid, MdoDocument hs, String sourceSiteId) { return(null); }
/// <summary> /// </summary> /// <remarks> /// Health Summaries are pulled by their IEN, so if we don't have one for a title we need to get it based on the display name. /// </remarks> /// <param name="dfn"></param> /// <param name="hs">MdoDocument containing the local display name and the local ien of the summary</param> /// <returns>MdoQuery or MdoException if can't get a valid Health Summary IEN.</returns> internal MdoQuery buildGetHealthSummaryRequest(string dfn, MdoDocument hs) { // TBD VAN 2012-05-15 consider refactoring to encapsulate if (string.IsNullOrEmpty(hs.Id)) { hs.Id = getHealthSummaryIdByDisplayName(hs.Title); if (string.IsNullOrEmpty(hs.Id)) { throw new MdoException(MdoExceptionCode.ARGUMENT_INVALID, "Missing Health Summary identification. Please provide a valid health summary IEN or Name."); } } else if (string.IsNullOrEmpty(hs.Title)) { hs.Title = getHealthSummaryTitle(hs.Id); } VistaQuery vq = new VistaQuery("ORWRP REPORT TEXT"); vq.addParameter(vq.LITERAL, dfn); vq.addParameter(vq.LITERAL, "1"); vq.addParameter(vq.LITERAL, hs.Id); vq.addParameter(vq.LITERAL, ""); vq.addParameter(vq.LITERAL, ""); vq.addParameter(vq.LITERAL, "0"); vq.addParameter(vq.LITERAL, "0"); return vq; }
internal MdoQuery buildGetHealthSummaryTextRequest(string mpiPid, MdoDocument hs, string sourceSiteId) { VistaQuery vq = new VistaQuery("ORWRP REPORT TEXT"); vq.addParameter(vq.LITERAL,"0;" + mpiPid); vq.addParameter(vq.LITERAL,"1;1~"); if (sourceSiteId == cxn.DataSource.SiteId.Id) { vq.addParameter(vq.LITERAL,hs.Id + ";" + getHealthSummaryTitle(hs.Id)); } else { vq.addParameter(vq.LITERAL,hs.Id + ";" + hs.Title.ToUpper()); } vq.addParameter(vq.LITERAL,""); vq.addParameter(vq.LITERAL,""); vq.addParameter(vq.LITERAL,"0"); vq.addParameter(vq.LITERAL,"0"); return vq; }
public string getHealthSummaryText(string mpiPid, MdoDocument hs, string sourceSiteId) { MdoQuery request = buildGetHealthSummaryTextRequest(mpiPid, hs, sourceSiteId); string response = (string)cxn.query(request); return response; }
public HealthSummary getHealthSummary(MdoDocument hs) { return getHealthSummary(cxn.Pid,hs); }
/// <summary>Gets a local health summary /// </summary> /// <param name="dfn">The patient DFN</param> /// <param name="hs">MdoDocument with the health summary name and/or health summary ien.</param> /// <returns>requested health summary or null if not found.</returns> public HealthSummary getHealthSummary(string dfn, MdoDocument hs) { MdoQuery request = buildGetHealthSummaryRequest(dfn, hs); string response = (string)cxn.query(request); return toHealthSummary(hs, response); }
public HealthSummary getHealthSummary(MdoDocument hs) { throw new NotImplementedException(); }
public static HealthSummary getHealthSummary(AbstractConnection cxn, MdoDocument hs) { return ((IClinicalDao)cxn.getDao(DAO_NAME)).getHealthSummary(hs); }
public string getHealthSummaryText(string mpiPid, MdoDocument hs, string sourceSiteId) { throw new NotImplementedException(); }
public static IndexedHashtable getHealthSummary(ConnectionSet cxns, MdoDocument hs) { return cxns.query(DAO_NAME, "getHealthSummary", new object[] { hs }); }
public HealthSummary getHealthSummary(MdoDocument hs) { return(null); }
internal HealthSummary toHealthSummary(MdoDocument md, string response) { HealthSummary hs = new HealthSummary(); hs.Id = md.Id; hs.Title = md.Title; hs.Text = response; return hs; }