I expect you are trying to send from an OE ORDER.

 

In process orders, the data in the temp file is not kept in the same
fashion as the filed data, so you cannot use the @t syntax to get it.

 

In some modules this is true, ADM registration CDS's for example.

 

You could do @t.ADM.PAT.cd.response["QUERY"]  and that would translate
into /AA[aa]CD["QUERY"]|0 and would work.

 

In any module that has a "process" style front end, with a list of
orders, interventions, assessments, that you scroll up and down, the
data is kept in a temporary structure that does not match what will be
filed.

 

The safe method is to use [ANS,"QUERY"]|0  to get your temp query data
when you build your message.  This will work in all cases for a CDS.

 

(Note that if you need a multiple query, it is stored in
[ANS,"QUERY"]M[n]|0  where n = a counter from 1..to n  and there will be
no gaps in the numbering.

 

Joe Cocuzzo
Vice President
NPR Services
Iatric Systems, Inc.
Phone/Fax: (978) 805-4115
Email: [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> 
Web:  www.iatric.com <http://www.iatric.com>  

________________________________

From: meditech-l@mtusers.com [mailto:[EMAIL PROTECTED] On Behalf
Of Ron Kilmer
Sent: Thursday, June 07, 2007 3:14 PM
To: meditech-l@mtusers.com
Subject: [MEDITECH-L] Sending message from a query

 

This is a second posting as it seems my first request did not get
posted.

The hospital is beginning to look at and utilize OA Message more as we
explore all the possibilities of how it can improve communication.

I have been able to get simple OA messages to work fine.  Now I am
attempting to get the messaging to work from a macro.  This is the
scenario.  I have a CDS in OE.  It contains 7 queries.  I have put an
attribute on the seventh query to send a message.  I created the npr
macro report.  I want the message to contain the patient's name and
account number, and responses to 4 of the queries.  The CDS has not be
filed so the query responses are stored in a temp file  and I have
incorporated that in the macro with the use of "@t.".  My problem is
that my macro does not give me any of the data including the name or
account number. The message is sent to the appropriate recipients but
there is no data after PATIENT NAME, ACCT NUMBER, or the query
responses.

 

I am assuming my attribute is correct because a message is sent.  I have
to assume the error is in my macro because the data is missing.

 

I am in need of any and all suggestions.

 

Thank you

 

Ronald H Kilmer, RN, BS, CPUR

Patient Services Manager

Nathan Littauer Hospital & Nursing Home

99 East State Street

Gloversville, NY 12078

Phone: (518)773-5517

Fax: (518)775-4005

 

=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=
To subscribe or unsubscribe to the meditech-l, visit MTUsers.NET.

To check the status of the meditech-l, visit MTUsers.NET.

For help, email [EMAIL PROTECTED]

Visit the MTUsers WikiPedia at MTUsers.NET/mwiki
______________________________________
meditech-l mailing list
meditech-l@MTUsers.com
http://mtusers.com/mailman/listinfo/meditech-l

Reply via email to