All messages should be posted in plain text. HTML will be converted to attachments. The meditech-l web site is MTUsers.com ======================================
Bill and others: The below examples are great. HOWEVER.... I'm trying to send to a THERMAL printer. Any ideas for sending to a thermal printer? Herb Herb Bromenshenkel RPh/Clinical Analyst 1300 Anne Street NW Bemidji, MN 55601 Voice: 218-333-5527 Fax: 218-333-5889 [EMAIL PROTECTED] -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Bill Mullins Sent: Wednesday, September 06, 2006 6:50 PM To: Wasielewski, Laura Cc: [email protected] Subject: RE: [MEDITECH-L] (Magic 5.4) Pha Rule to print NPR All messages should be posted in plain text. HTML will be converted to attachments. The meditech-l web site is MTUsers.com ====================================== Yes, you can send a custom report, a MIS Notification, an OA MSG and a custom OA MSG from a rule. Remember that when you build a PHA rule, it creates a macro you can edit in report PHA.RX.zcus.rx.rule (SEE A PARTIAL LIST OF OUR MACROS BELOW) Macro 1) acetadote1 2) acetadote2 3) acetadote3 4) acetdote 5) agelt2 6) alert 7) aptt.level 8) bolus 9) buffer 10) callbefore 11) callonc 12) callonc2 13) cancel 14) caudill 15) cerebyx 16) chemo 17) colch 18) colchicine 19) conc 20) coumadin 21) crcl 22) crcl.acycl 23) crcl.adja ---------------------------------------------------------------- Subject: RE: Triggering Reports to print from a PHA RULE Leslie, Mike McEldowney the IS Director at Delta Regional Medical Center has posted this information on their website click the link below to get there. He has included the step-by step instructions, screen prints as well as a sample report. http://www.deltaregional.com/isnprfromrule.php ----------------------------------------------------------------- Here is a rule that I have, with the help of Susan Makara, that prints a message to Respiratory Therapy notifing them that an order has been placed on a patient for an inhaler. It usually doesn't work to cut and paste the macro, you'll need to type it in. You'll also need to change the field for the facility. Questions, let me know. Bob Koch Clinical Systems Analyst Affinity Health System Appleton, WI 920-831-8556 mailto:[EMAIL PROTECTED] Rule in PHA Rule dictionary: ;This rule will print a message on a printer in RT to notify them that ;an inhaler was ordered on an IP "An Inhaler was ordered on this patient on _DAY, Please follow up."^CMT1, IF{[f pt facility]'="."; IF{[f pt status]'="ADM IN" [f rx ok]; [f rx start date]^DAY, [f rx med]^MED, "An inhaler was ordered on this patient on "_DAY^CMT1, "Please follow up."^CMT2;1}},1; Here is the Macro in PHA.RX: ;program 20030913 1353 BKOCH ; IF{/RULE.EVAL="REFILL"!(/RULE.EVAL="TXN") ^?;^/}^q, @Chg.prefix(PHA.RX,?,[q]), IF{/RULE.EVAL="REFILL"!(/RULE.EVAL="TXN") ^:;^/}^c, @Chg.prefix(PHA.RX,:,[c]), /patient^patient,/urn^urn, /PHA.REF.urn^PHA.REF.urn,/med^med,@t.med.rule^med.rule,/txn.date^txn.dat e,/t xn.q^txn.q, "An Inhaler was ordered on this patient on _DAY, Please follow up."^CMT1, [EMAIL PROTECTED]'="."; [EMAIL PROTECTED]'="ADM IN" 1; %Z.date.out(@PHA.RX.start.date)^DAY, med^MED, "An inhaler was ordered on this patient on "_DAY^CMT1, "Please follow up."^CMT2, "Patient:"[EMAIL PROTECTED]/XXX[LINE+1^LINE], "Patient Age/Sex:"[EMAIL PROTECTED]/XXX[LINE+1^LINE], "Account#:"[EMAIL PROTECTED]/XXX[LINE+1^LINE], "Reason for Visit:"[EMAIL PROTECTED]/XXX[LINE+1^LINE], "Location:"[EMAIL PROTECTED]/XXX[LINE+1^LINE], "Medication:"[EMAIL PROTECTED]/XXX[LINE+1^LINE], "Directions:"[EMAIL PROTECTED]'s.description^/XXX[LINE+1^LINE], "Comments:"[EMAIL PROTECTED]/XXX[LINE+1^LINE], "Comments:"[EMAIL PROTECTED]/XXX[LINE+1^LINE], "Comments:"[EMAIL PROTECTED]/XXX[LINE+1^LINE], "Comments:"[EMAIL PROTECTED]/XXX[LINE+1^LINE], CMT1^/XXX[LINE+1^LINE], CMT2^/XXX[LINE+1^LINE], ""^/XXX[LINE+1^LINE], ^/XXX^ARG|0, "!MM.HOSCDR.L3"^ARG|1, %MIS.OA.MSG.auto("",ARG)X, 1}},1; ------------------------------------------------------------------------ ---- OA MSG RULE WHEN MED IS ORDERED FOR RT: From: [EMAIL PROTECTED] Sent: 9/17/2003 11:48:46 AM To: Gary Coleman Subject: Re: [Meditech-L] pha rule to print notice/report at specific printer 1. Set up a rule, just a dummy. 2. Tweak the macro. See below for how they are named. 3. Set up an OA Message. The OA message contains destination (and content, if desired.) This example builds its own content. John The rule: Mnemonic JC.NEB Print On Order Active? Y Print From PCI N Description OA MSG TO RT WHEN NEB/INH RX Data Flds from RX Evaluate at FILE Edit Rule? ;Prints oa message when a rx with route of INH or NEB is ordered. "Rule PHA.JC.NEB has been refiled and will not operate. Contact I.S." ^MSG, [f rx msg](MSG), [f rx ok]; The Macro: Enter/Edit Macro Logic: PHA.RX.zcus.rx.rule.M.jc.neb (A: ) ;program 20030321 1352 jcurtiss ; IF{/RULE.EVAL="REFILL" ^?;^/}^q, @Chg.prefix(PHA.RX,?,[q]), IF{/RULE.EVAL="REFILL" ^:;^/}^c, @Chg.prefix(PHA.RX,:,[c]), /patient^patient,/urn^urn, @PHA.RX.route^ROUTE, /PHA.REF.urn^PHA.REF.urn,/med^med, @t.med.rule^med.rule,/txn.date^txn.date,/txn.q^txn.q, @PHA.DRUG.generic_" has been ordered for "[EMAIL PROTECTED]", "^MSG1, [EMAIL PROTECTED], "Please ensure proper billing for nebulizer"^MSG2, IF{((ROUTE="NEB")!(ROUTE="INH")) %PHA.RX.zcus.jc.oa.msg.M.neb ("PHA","RT.NEB",MSG1,MSG2)}, 1; -------------------------------------------------------------------- Here is a Pha rule that will print a message to a printer that you designate. You would attach this rule to the med or meds that you want in the Pha dictionaries. This is the Pha rule built in Pha: ;This rule will print a message on a printer in FNS at MMC to notify them that ;a patient is on a med that could cause a reaction with grapefruit juice "This patient may be on meds that might cause a Drug/Nutrient"^CMT1, "interaction. Please avoid Grapefruit Juice."^CMT2, IF{[f pt facility]'="."; IF{[f pt status]'="ADM IN" [f rx ok]; [f rx start date]^DAY, [f rx med]^MED, "This patient may be on meds that might cause a Drug/Nutrient"^CMT1, "interaction. Please avoid Grapefruit Juice."^CMT2;1}},1; This is the macro in PHA.RX.zcus.rx.library: ;program 20040714 1337 BKOCH ; IF{/RULE.EVAL="REFILL"!(/RULE.EVAL="TXN") ^?;^/}^q, @Chg.prefix(PHA.RX,?,[q]), IF{/RULE.EVAL="REFILL"!(/RULE.EVAL="TXN") ^:;^/}^c, @Chg.prefix(PHA.RX,:,[c]), /patient^patient,/urn^urn, /PHA.REF.urn^PHA.REF.urn,/med^med,@t.med.rule^med.rule,/txn.date^txn.dat e,/t xn.q^txn.q, "This patient may be on meds that might cause a Drug/Nutrient"^CMT1, "interaction. Please avoid Grapefruit Juice."^CMT2, [EMAIL PROTECTED]'="."; [EMAIL PROTECTED]'="ADM IN" 1; %Z.date.out(@PHA.RX.start.date)^DAY, med^MED, "This patient may be on meds that might cause a Drug/Nutrient"^CMT1, "interaction. Please avoid Grapefruit Juice."^CMT2, "Patient:"[EMAIL PROTECTED]/XXX[LINE+1^LINE], "Location:"[EMAIL PROTECTED]/XXX[LINE+1^LINE], "Medication:"[EMAIL PROTECTED]'s.generic.name^/XXX[LINE+1^LINE], CMT1^/XXX[LINE+1^LINE], CMT2^/XXX[LINE+1^LINE], ""^/XXX[LINE+1^LINE], ^/XXX^ARG|0, "!MM.HOSFNS.L2"^ARG|1, %MIS.OA.MSG.auto("",ARG)X, 1}},1; You would need to change the patients facility (ours is a . for one of our hospitals) and the printer (the one listed in the macro is MM.HOSFNS.L2). This is being done as an OA message through Pharmacy. Questions, let me know. Good luck. ------------------------------------------------------------------ Mnemonic REMICAD Active? Y Description REMICADE WARNING VIA OA MESSAG Print From PCI N Data Flds from RX POM Enabled? N Eval Stock Meds Evaluate at MED [f pt location]="3-M"^A, [f pt location]="SDC-3M"^AA, [f pt location]="2-OB"^B, [f pt location]="3CCU"^C, [f pt location]="SDC-ICU"^CC, [f pt location]="4-M"^D, [f pt location]="SCD-4M"^DD, [f pt location]="5-M"^E, [f pt location]="SDC-5FL"^EE, [f pt location]="6TH FLOOR"^F, [f pt location]="SDC-6FL"^FF, [f pt location]="CCU 6TH"^G, [f pt location]="SNUR"^I, [f pt location]="NUR"^II, [f pt location]="RNUR"^III, [f pt location]="ONC"^J, [f pt location]="SDC IN"^JJ, IF{(A)!(AA) [f z.remicade.3rd]&[f rx msg]("Order Msg sent to 3MAIN printer"); IF{(B) [f z.remicade.ob]&[f rx msg]("Order Msg sent to 2-OB printer"); IF{(C)!(CC) [f z.remicade.3ccu]&[f rx msg]("Order Msg sent to 3CCU printer"); IF{(D)!(DD) [f z.remicade.4th]&[f rx msg]("Order Msg sent to TJC printer"); IF{(E)!(EE) [f z.remicade.5th]&[f rx msg]("Order Msg sent to 5MAIN printer"); IF{(F)!(FF) [f z.remicade.6th]&[f rx msg]("Order Msg sent to 6MAIN printer"); IF{(G) [f z.remicade.6ccu]&[f rx msg]("Order Msg sent to 6CCU printer"); IF{(I)!(II) [f z.remicade.nur]&[f rx msg]("Order Msg sent to NUR printer"); IF{(III) [f z.remicade.nur]&[f rx msg]("Order Msg sent to NUR printer"); IF{(J)!(JJ) [f z.remicade.onc]&[f rx msg]("Order Msg sent to ONC printer"); [f rx ok]}}}}}}}}}}; -------------------------------------------------------------------- MIS NOTIFCATIONS: Notification Rule - Examples This rule will notify RT of a new order by displaying (digital pager or report printer): {{ Patient Name - Patient Location - "New Med Order:" - Generic Name }} RTORDTYPE Y RT ORDER TYPE RX MED "Must re-enter with RT as Order Type !"^X, IF{[f rx ord type]="TKM" [f rx ok];[f rx ord type]'="RT" [f rx err msg](X); ----------------------------------------------------------------------- RT3 Y RT - NEW ORDER NOTIFICATION RX FILE IF{[f txn type]'="I" [f rx ok]}, "RT will be notified via Clinical Alert of new order."^XX, "RT"^CA, [f pt name]^P, [f pt location]^PL, [f zcus.generic.name]^GN, IF{[f pt location]="PICU" [f rx ok]; [f pt location]="6TCU" [f rx ok]; [f pt notification](CA,"H",P_"-"_PL_" :New MED Order: "_GN); [f rx msg](XX);[f rx ok]}; ------------------------------------------------------------------------ -- JOE C AT IATRICS Best method is to create a PHA custom field, attach call to PHA.RX macro written with R/W and use %MIS.OA.MSG.auto() to send. If you use "!"_PRINTER rather than a user mnemonic, MT will print this from the bkg to the device. Search our archives for MIS.OA.MSG.auto for details. ------------------------------------------------------------------------ -- We are using a PHA rule to notify the coders whenever Xigris is ordered. The rule simply calls a custom keyword. The custom keyword loads a message Into a / variable and calls the MIS.OA.MSG.auto program to send it to a MOX Box or printer. ======================================================================== Rule Mnemonic XIGRIS Print On Order Active? Y Print From PCI N Description XIGRIS NOTIFICATION EMAIL Data Flds from RX Evaluate at FILE Eval Stock Meds N Edit Rule? IF{[f z.xigris] 1}, [f rx ok]; ======================================================================== Custom Keyword Function RX Name RX Mnemonic z.xigris Active? Y Name Xigris Notification Email Multiple Output Lines? N Special Flag Value Minimum Output Length 1 Maximum Output Length 1 Number of Arguments 0 Execute at Translation? N Edit Code? %Z.date.out(/.DAT)_" - "[EMAIL PROTECTED]/Z.MSG[1], "Xigris has been ordered on "_:AA[/["aa"]]|1_" - "_:AA[/["aa"]]|0^/Z.MSG[2], " "_:AA[/["aa"]]|12_" "_:AA[/["aa"]]|10_" "_:AA[/["aa"]]|11^/Z.MSG[3], Q(^/Z.MSG,"ISTJT","!CODER")^ARG, %MIS.OA.MSG.auto("",ARG)X, ======================================================================== This sends an email to user ISTJT and printers on printer CODER. Note then ! in front of the printer mnemonic. The message contains the current date and time, some free text, patient's name, account number, location, room, and bed. I've used the physical address for the data fields but @PHA.PAT.name, etc. might also work. ------------------------------------------------------------------------ - You could also attach a cds to these RT meds and using an attribute -print a custom report from the query response, we do this in other apps all the time. I am sure there are other methods of doing this. -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Wasielewski, Laura Sent: Wednesday, August 30, 2006 12:48 PM To: '[email protected]' Subject: [MEDITECH-L] (Magic 5.4) Pha Rule to print NPR All messages should be posted in plain text. HTML will be converted to attachments. The meditech-l web site is MTUsers.com ====================================== Good Afternoon, Can anyone tell me if you can print an NPR Report from a pharmacy rule attached to a drug. I need to print a custom requisiton to Respiratory when pharmacy orders an Inhaler med. I see where you can send an OA Message but respiratory already has a custom requisition for something else with a grid design on it and they want to use this for their notification of the Inhaler drug. Thank You Laura Wasielewski St Josephs Hospital Elmira, NY [EMAIL PROTECTED] Confidentiality Notice: This e-mail message, including any attachments, is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message. _______________________________________________ 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 _______________________________________________ meditech-l mailing list [email protected] http://mtusers.com/mailman/listinfo/meditech-l
