Kenney... You Da MAN
Thanks so much!
Howard Chase, RN
Androscoggin Valley Hospital
59 Page Hill Road
Berlin, NH 03570
(603)326-5669
Kenny Whiteside wrote:
Hi Howard,
Multiple line queries are stored in a different format... that is why your
value is always nil. If you want to check to see if there is a value to the
first line of the Multiple query, use:
DFT=IF{/[ANS%0,"NURHIPAL"]M[1]|0_.=. "N";"Y"}
Hope this helps,
Kenny Whiteside
Kenny Whiteside BSN, RN
Patient Care Information Systems
Catawba Valley Medical Center
810 Fairgrove Church Road
Hickory, NC 28602
[EMAIL PROTECTED]
Howard Chase <[EMAIL PROTECTED]> 10/27/2006 8:27 AM >>>
I have created a Hip Alert Screen which evaluates ABS and pulls in any previous Hip Surgeries
on the patients Unit Number and dumps the results into a multiple comment query.
I can't seen to get the following query to properly evaluate the previous Multiple Comment and
Default a Y or an N. It seems to always evaluate the Multiple as Nil.
I've tried a whole bunch of attributes.. this is my latest.... still doesn't
work.
Enter/Edit Attributes: NURHIPALRT
DFT=IF{[ANS,"NURHIPAL"]|0_.=. "N";"Y"}
[EMAIL PROTECTED]"Y" %MIS.OA.MSG.auto("HIP",Q),
[EMAIL PROTECTED]("***POST HIP ALERT IN PATIENTS ROOM & CHART***")}
If you are interested I have attached the Macro and the NPR report.
This is what the output looks like. If there is more than one Hip surgery (as determined by
the selects in the NPR report.) all will be listed.
NUR TEST CDS HIP ALERT
10/27 0806 HDC V000012708 CHASE,COLON O
: ,
Previous Hip Surgery:
M000002 OR DATE: 10/17/05 PROCEDURE: 00.74
PROC NAME: HIP REPLACEMENT BEARING SURFACE, METAL ON POLYETHYLENE
Hip Alert:
The attribute that calls the Macro that calls the report is:
Enter/Edit Attributes: NURHIPAL
[EMAIL PROTECTED]/UNITNO,
IFE=IF{%MIS.zcus.hip.M.abs.rpt.txt(@NUR.PAT.unit.number,
IFE=ANS%0,"NURHIPAL")X,0^TT,
IFE=DO{TT+1^TT<5 P(R+TT-1,S,/[ANS%0,/S.LAST.QUERY,"M",TT]|0:70TL)^#},"";""}
In the macro I REMd out the MIS Editor portion as we really didn't need it. The user can still
F6 back to the Multiple query and type... if you really want the Editor just take out the ;s
in the macro.
======================================
All messages should be posted in plain text.
HTML will be converted to attachments.
The meditech-l web site is MTUsers.com
______________________________________
meditech-l mailing list
[email protected]
http://mtusers.com/mailman/listinfo/meditech-l