buildMessage() public method

public buildMessage ( ) : string
return string
Example #1
0
        internal bool isTestSystem()
        {
            VistaQuery vq       = new VistaQuery("XUS SIGNON SETUP");
            string     response = (string)query(vq.buildMessage());

            string[] flds = StringUtils.split(response, StringUtils.CRLF);
            return(flds[7] == "0");
        }
Example #2
0
        /// <summary>
        /// Get order events for patient
        /// <c>Executes: OREVNTX PAT</c>
        /// </summary>
        /// <param name="dfn">local patient ID</param>
        /// <returns></returns>
        public string getPatientOrderEvents(string dfn)
        {
            string request = "";
            string response = "";
            try
            {
                VistaQuery vq = new VistaQuery("OREVNTX PAT");
                vq.addParameter(vq.LITERAL, dfn);
                request = vq.buildMessage();
                response = (string)cxn.query(request);

                return buildPatientOrderEventsResponse(response);
            }
            catch (Exception e)
            {
                throw new MdoException(request, response, e);
            }
        }
 internal bool isTestSystem()
 {
     VistaQuery vq = new VistaQuery("XUS SIGNON SETUP");
     string response = (string)query(vq.buildMessage());
     string[] flds = StringUtils.split(response, StringUtils.CRLF);
     return flds[7] == "0";
 }