All messages should be posted in plain text. HTML will be converted to
attachments. The meditech-l web site is MTUsers.com
======================================
I just tested this and it sent me a message when I edited the food
allergy query.
OA MSG MNEMONIC (OE TYPE MSG)=
FOOD
QUERY=
OEFA
ATTRIBUTE=
FCL1=IF{(@.response)'=(@p.ADM.PAT.ccdqr.response["OEFA"])&
FCL1=(@p.ADM.PAT.ccdqr.response["OEFA"])_.'=.
%MIS.OA.MSG.auto("FOOD",Q)}
------------------------------------------------------------
Try adding this attribute to the allergy query (non-multiple):
FCL1=IF{(@.response)'=(@p.ADM.PAT.ccdqr.response["ALLERGY QUERY"])&
FCL1=(@p.ADM.PAT.ccdqr.response["ALLERGY QUERY"])_.'=.
%MIS.OA.MSG.auto("ALLERGIES",Q)}
There is a space after the _.'=.
And before the %MIS.OA.MSG call
------------------------------------------------------------
Amy Frazier sent this to the L list, it might help you send an OA MSG if
allergies are edited.
This is used to send a OA MSG if food allergy query is not blank.
Place this attribute on the food allergy query:
IFE=ANS^/ANS
Place this attribute on the query following:
FCL1=IF{[ANS,"Food allergy query mnemonic"]|0'=""
%MIS.report.name.M.macro.name(/ANS,aa)}
----------------------------------------------------------
Here is the macro:
;A=ANS
;B=PATIENT
;
;Sample OA Message Macro
;
@GET.DATA,
@SEND.MESSAGE,
EXIT;
GET.DATA
"Place the title of the page here"^/MYMSG[1],
"====================================================="^/MYMSG[2],
" "^/MYMSG[3],
" Patient Name: "[EMAIL PROTECTED]/MYMSG[4],
"Account Number: "[EMAIL PROTECTED]/MYMSG[5],
" Age: "[EMAIL PROTECTED]/MYMSG[6],
" Status: "[EMAIL PROTECTED]/MYMSG[7],
" Admit Date: "_%Z.date.out(@ADM.PAT.admit.date[B])^/MYMSG[8],
"Reservation Dt: "_%Z.date.out(@ADM.PAT.reservation.date[B])^/MYMSG[9],
" Location: "[EMAIL PROTECTED]/MYMSG[10],
" Room/Bed: "[EMAIL PROTECTED]/MYMSG[11],
" Visit Reason: "[EMAIL PROTECTED]/MYMSG[12],
" "^/MYMSG[13],
"Food Allergies: "_[A,"Food allergy query mnemonic here"]|0^/MYMSG[14]
SEND.MESSAGE
Q(^/MYMSG,"!Your Printer name here")^/VAR,
%MIS.OA.MSG.auto("",/VAR)X,""^/VAR
Let me know if you need help tailoring the macro. Good luck.
Angie Frazier, BSN, RN
PCM/PCI Coordinator
Women & Children's Hospital
Lake Charles, LA
(337) 475-4710
------------------------------------------------------------------------
----
Other options:
FCL1=IF{((@.response)'=(@.response.old)) @.response^/A}
SEND MSG IF RESPONSE IS CHANGED....
Try this for the FCL statement:
FCL1=IF{((@.response)'=(@.response.old)) ""^/[EMAIL PROTECTED]/A}
Subject: (MEDITECH-L) OEADMIN CDS attribute to send OA Message.
For example, if any of 10 query responses should trigger an OA Message
this
could be created as follows:
Query Attribute
QUERY1: [EMAIL PROTECTED]/A
QUERY2: [EMAIL PROTECTED]/B
QUERY3: [EMAIL PROTECTED]/C
QUERY4: [EMAIL PROTECTED]/D
QUERY5: [EMAIL PROTECTED]/E
QUERY6: [EMAIL PROTECTED]/F
QUERY7: [EMAIL PROTECTED]/G <mailto:[EMAIL PROTECTED]/G>
QUERY8: [EMAIL PROTECTED]/H <mailto:[EMAIL PROTECTED]/H>
QUERY9: [EMAIL PROTECTED]/I <mailto:[EMAIL PROTECTED]/I>
QUERY10: [EMAIL PROTECTED]/A!/B!/C!/D!/E!/F!/G!/H!/I
@MIS.OA.MSG.auto("MSG",Q)}
Instead of checking each query when creating the attribute on the last
query, the value entered for each query response is stored in a
temporary
variable. This simplifies (and shortens!) the attribute that is
associated
to the last query, performs the check for all responses and sends an OA
Message accordingly.
How would I modify the attributes to assign values if and only when the
value has changed.
Here is what I have tried, but it will not let me past the query if the
value changes. Any help would be appreciated.
QUERY1
[EMAIL PROTECTED]'[EMAIL PROTECTED]
[EMAIL PROTECTED]'[EMAIL PROTECTED]> }
[EMAIL PROTECTED]/A
[EMAIL PROTECTED]/A>
QUERY2
[EMAIL PROTECTED]'[EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]'[EMAIL PROTECTED]> }
[EMAIL PROTECTED]/B <mailto:[EMAIL PROTECTED]/B>
QUERY3
[EMAIL PROTECTED]'[EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]'[EMAIL PROTECTED]> }
[EMAIL PROTECTED]/C <mailto:[EMAIL PROTECTED]/C>
And so on...
Bill Mullins RN
Williamson Medical Center
2021 Carothers Road
Franklin,Tn 37067
615-435-5630
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED]
Sent: Thursday, May 04, 2006 12:47 PM
To: [EMAIL PROTECTED]
Subject: [MEDITECH-L] attribute needed to send an OA message
All messages should be posted in plain text. HTML will be converted to
attachments. The meditech-l web site is MTUsers.com
======================================
Good Afternoon "L"
I am writing looking for an attribute to trigger an OA message to
ancillary
departments when a patients allergies are edited. I have not done this
from
OE before but realize it can be done. Could someone please let me know
how
to do this and what attribute should be used.
Thanks so much
Normy Frazer RegN
Clinical Applications Analyst
Norfolk General Hospital
Simcoe, ON
[EMAIL PROTECTED]
519-426-0130 x 1456
This message is intended only for the person(s) named above. It may
contain
confidential or privileged information. Unauthorized distribution,
copying
or disclosure is strictly prohibited. If you receive this message in
error,
please notify us by returning it to the sender immediately and
destroying
any copies of the message. Thank you.
_______________________________________________
meditech-l mailing list
[email protected]
http://mtusers.com/mailman/listinfo/meditech-l
**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed.
This footnote also confirms that this email message has been swept by Sophos
and MIMEsweeper for the presence of computer viruses.
**********************************************************************
_______________________________________________
meditech-l mailing list
[email protected]
http://mtusers.com/mailman/listinfo/meditech-l