Hi Crystal,

You are correct that Multiple type queries do not use the same data structure 
as the single line queries.  (That's why you can't change a query from a 
multiple to single line or visa versa.)  The difference is that the multiple 
type queries have an added M[#] before the zero piece. (The # is an actual 
number representing the response line number).  So  /[ANS%0,"QUERY"]M[1]|0  
would reference the temporary response on line one of the multiple query.

You can use a Do Loop to evaluate all lines of a multiple type query on the 
same CDS.  Using the following attribute would cause the cursor to stop in the 
query response if the multiple type query had the response on any line; 
otherwise it would skip.

IFE=IF{""^ZX^SH,DO{+(/[ANS%0,"QUERY"]M[ZX],ZV)^ZX IF{ZV|0="XX" ZV|0^SH}},SH}

- Replace “Query” with mnemonic of multiple type query being evaluated and XX 
with the answer being evaluated for.

You should be able to incorporate the logic in this attribute into your macro.  
Let me know if you need any help.

Good luck,
Kenny Whiteside

Kenny Whiteside BSN, RN
Patient Care Information Systems
Catawba Valley Medical Center
810 Fairgrove Church Road
Hickory, NC 28602
[EMAIL PROTECTED]



>>> Crystal Leo <[EMAIL PROTECTED]> 12/28/2006 10:38:07 AM >>>
We have a macro that is trying to evaluate a multiple response and it is
crashing each time it gets to that point. I believe there is some type of
identifier for the multiple besides the standard |0.  We have searched
multiple websites but have not found a solution. 

This is what we are trying to accomplish:

Question 1

Question 2 (multiple)

Question 3

Question 4

If answer to Q1 = "N" and Q2 = "ZERO MET" and Q3 = "N" send a "Y" to Q4 (the
macro works perfectly, except when it has to analyze the multiple)

 

Below is one of the actual lines from the macro I have tried to summarize
above:

A^ANS,

""_TOT,TCOL,

IF{([ANS,"NURIMM0012"]|0="N")&([ANS,"NURIMMOO13"]|0'="ZEROMET")&([ANS,"NURIM
M0020"]|0'="OUTPATIENT") "Y"^TOT},

TOT^/[ANS%0,"NURIMM0025"]|0,P(R,S,TOT_""$2)^#,

""^TOT,1;

Any help or suggestions would be greatly appreciated,

Crystal Leo, RN 
Clinical Information Specialist 
St. Joseph Regional Health Center/Clinical Informatics
Bryan, TX  77802
Office: (979) 776-2405
Fax:    (979) 776-2471
[EMAIL PROTECTED] 
 


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

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

For help, email [EMAIL PROTECTED]
______________________________________
meditech-l mailing list
[email protected]
http://mtusers.com/mailman/listinfo/meditech-l

Reply via email to