Exemplo n.º 1
0
 public string getHealthSummaryText(string mpiPid, MdoDocument hs, string sourceSiteId)
 {
     throw new NotImplementedException();
 }
Exemplo n.º 2
0
 public HealthSummary getHealthSummary(MdoDocument hs)
 {
     throw new NotImplementedException();
 }
Exemplo n.º 3
0
 public static HealthSummary getHealthSummary(AbstractConnection cxn, MdoDocument hs)
 {
     return(((IClinicalDao)cxn.getDao(DAO_NAME)).getHealthSummary(hs));
 }
Exemplo n.º 4
0
 public static IndexedHashtable getHealthSummary(ConnectionSet cxns, MdoDocument hs)
 {
     return(cxns.query(DAO_NAME, "getHealthSummary", new object[] { hs }));
 }
Exemplo n.º 5
0
 /// <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));
 }
Exemplo n.º 6
0
 public string getHealthSummaryText(AbstractConnection cxn, string mpiPid, MdoDocument hs, String sourceSiteId)
 {
     return(((IClinicalDao)cxn.getDao(DAO_NAME)).getHealthSummaryText(mpiPid, hs, sourceSiteId));
 }
Exemplo n.º 7
0
 public string getHealthSummaryText(AbstractConnection cxn, string mpiPid, MdoDocument hs, String sourceSiteId)
 {
     return ((IClinicalDao)cxn.getDao(DAO_NAME)).getHealthSummaryText(mpiPid, hs, sourceSiteId);
 }
Exemplo n.º 8
0
 public string getHealthSummaryText(String mpiPid, MdoDocument hs, String sourceSiteId)
 {
     return(null);
 }
Exemplo n.º 9
0
 /// <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;
 }
Exemplo n.º 10
0
 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;
 }
Exemplo n.º 11
0
 public string getHealthSummaryText(string mpiPid, MdoDocument hs, string sourceSiteId)
 {
     MdoQuery request = buildGetHealthSummaryTextRequest(mpiPid, hs, sourceSiteId);
     string response = (string)cxn.query(request);
     return response;
 }
Exemplo n.º 12
0
 public HealthSummary getHealthSummary(MdoDocument hs)
 {
     return getHealthSummary(cxn.Pid,hs);
 }
Exemplo n.º 13
0
 /// <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);
 }
Exemplo n.º 14
0
 public HealthSummary getHealthSummary(MdoDocument hs)
 {
     throw new NotImplementedException();
 }
Exemplo n.º 15
0
 public static HealthSummary getHealthSummary(AbstractConnection cxn, MdoDocument hs)
 {
     return ((IClinicalDao)cxn.getDao(DAO_NAME)).getHealthSummary(hs);
 }
Exemplo n.º 16
0
 public string getHealthSummaryText(string mpiPid, MdoDocument hs, string sourceSiteId)
 {
     throw new NotImplementedException();
 }
Exemplo n.º 17
0
 public static IndexedHashtable getHealthSummary(ConnectionSet cxns, MdoDocument hs)
 {
     return cxns.query(DAO_NAME, "getHealthSummary", new object[] { hs });
 }
Exemplo n.º 18
0
 public HealthSummary getHealthSummary(MdoDocument hs)
 {
     return(null);
 }
Exemplo n.º 19
0
 internal HealthSummary toHealthSummary(MdoDocument md, string response)
 {
     HealthSummary hs = new HealthSummary();
     hs.Id = md.Id;
     hs.Title = md.Title;
     hs.Text = response;
     return hs;
 }