I saw Herb B at the Iatric MUSE shuttle stop and he asked me about an "auto refresh" report and I pointed him toward an NPR tips and tricks example from RAD that we showed in 2003
http://www.iatric.com/information/muse2003.asp The basic idea is to: 1) Force the report to print to screen and suppress the print on prompt (macro in title of report to do this, set 1^/Z.SCHED.LOG and open ! to the screen. 2) Wrap a do loop around the whole report and do a "timed field read" so that the report refreshes after a set interval or as soon as the user hits any key except <ESC> or <F11> (as I recall) 3) Wrap another do loop around each page so that the report does the same kind of pausing for each screenful that it does for the recompiles of the whole report. Herb wrote a PHA version of the RAD report in time to present it at the NPR peer group. Very speedy. I would not have been able to write the original myself, if Frank Fortner had not pointed me at a $T program of Russ Dudinksi that used a timed field read in a Volunteer's information board application he wrote for one of our customers. PS (shameless plug) : We have a product called "Visual Smart Board" that does auto refresh lists from NPR reports and you get buttons that bring you into different routines w/ the record already selected. I duplicated the logic of the outstanding activity report in PHA (for Magic) to feed a "smart list" to deal with the problem of unverified orders etc from NUR and POE. We have VSB for C/S, but I have not done the same thing on that platform yet. 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: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Bill Mullins Sent: Thursday, August 02, 2007 5:39 PM To: Roger Beverly Cc: [email protected] Subject: Re: [MEDITECH-L] Displaying text box from report writer - Magic 5.61 Roger: I am not in the same class as the L List Npr experts, but I have done some report trackers that display on screen and refresh based on a user defined time frame (30 secs or 2 mins whatever). Herb B did a similar demonstration at International MUSE this year, although I did not get to attend this year, I downloaded the reports from the MUSE Site. These might work for you, I edited Herb's reports to fit my desires and needs. I am sending you both versions. Herbs reports are: PHA.RX.zcus.hab.test.ha.auto2 PHA.RX.zcus.hab.test.unverified.ord.num @ My edited versions are: PHA.RX.zcus.bm.refresh Notice I did not change the name of the report called from the title of my PHA.RX.zcus.bm.refresh version (I made this mistake In the past when sending someone a report that I had renamed, but I did not edit the title in my renamed report and they could not run it, because it was calling a macro that I did not send them....) Also on page 3 of my version see the TP region, again I am calling Herbs report (ECE-%PHA.RX.zcus.hab.test.ha.auto.M.page(0), LC='/END You will get a syntax error message when refilling one of the macros, I forget which one, Joe C says to ignore this message and the report will run fine. When you run my version of the report, hit the enter key after the report is ran, it will show the data on the screen (if there are any hold acknowledgements from NUR to PHA. My frag report at the end of the screen is to list all unverified orders (which we do not use anyway, but I was playing with the report to see what kind of useful data I might want to add to this PHA REFRESH/TRACKER REPORT). ------------------------------------------------------------------------ --------------------------------------------------------------------- Nurse: MULLINS,BILL A Comment: TESTING OF CUSTOM REPORT FOR PHA TRACKER Req @1633 Type: HA RM/B: 635-A ACCT: V00000002931 NAME: TEST,BILL ZIAC5625B HCTZ/BISOPROLOL 5/6.25 TAB (ZIAC 5/6.25) 1 EA QAM Nurse: MULLINS,BILL A Comment: PATIENT IS NPO Req @1633 Type: HA RM/B: 635-A ACCT: V00000002931 NAME: TEST,BILL TRICOR48 FENOFIBRATE,MICRONIZED 48 MG TAB (TRICOR) 48 MG [EMAIL PROTECTED] Nurse: MULLINS,BILL A Comment: PATIENT IS NPO Req @1633 Type: HA RM/B: 635-A ACCT: V00000002931 NAME: TEST,BILL HYDR5 ACETAMINOPHEN/HYDROCODONE 5 TAB (LORTAB 5) 5 EA Q1-4HP/PRN Nurse: MULLINS,BILL A Comment: PATIENT IS NPO *** UNVERIFIED ORDERS *** Entered @1932 By MIS.WAM Acct#: V00000001255 APPLE,PEAR 2 Entered @2015 By MIS.WAM Acct#: V00000001362 HAPPY,SAM 2 Entered @1935 By MIS.WAM Acct#: V00000000992 TEST,ACCESS E 1 Entered @2047 By MIS.WAM Acct#: V00000000661 TEST,GERKIE 1 Good Luck, Good Luck, ________________________________ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Roger Beverly Sent: Thursday, August 02, 2007 1:22 PM To: [email protected] Subject: [MEDITECH-L] Displaying text box from report writer - Magic 5.61 I need some guidance from the Report Writer gurus. I am working on a way of displaying the hold acknowledgements for the pharmacists. The current meditech idea of displaying them in the sign on message is inadequate since most pharmacists only log-in a couple of times a day. I am trying to attach a start macro to the pharmacy patient view fragment that pops up a message showing the hold acknowledgements. I've got the hold acknowledgements, but I need to know how to display the info in a text box on the screen. I have tried @W.display and %Z.wm.macro. Neither works, and both cause screen corruption. Here is the macro for your info: ""^N^CT^DATE^TIME, "HA"^PHA.RX.pnur.req.type,""^PHA.RX.pnur.req.date, DO{>@Root(PHA.RX.nur.request.x)[PHA.RX.pnur.req.type,X]^X N+1^N}, IF{N>0 "There "_IF{N'=1 "are ";"is "}_N_" Hold Acknowledgement Request"_IF{N>1 "s"}_" requi IF{N>0 "Requests are for:"^/.WO[Q+1^Q]}, "HA"^PHA.RX.pnur.req.type, ;""^PHA.RX.pnur.req.type, ;[EMAIL PROTECTED](PHA.RX.pnur.req.type,PHA.RX.nur.request.x) ""^PHA.RX.pnur.req.date, [EMAIL PROTECTED](PHA.RX.pnur.req.date,PHA.RX.nur.request.x)^DATE <mailto:[EMAIL PROTECTED](PHA.RX.pnur.req.date,PHA.RX.nur.request.x)%5eDATE> ""^PHA.RX.pnur.req.time, [EMAIL PROTECTED](PHA.RX.pnur.req.time,PHA.RX.nur.request.x)^TIME <mailto:[EMAIL PROTECTED](PHA.RX.pnur.req.time,PHA.RX.nur.request.x)%5eTIME> ""^PHA.RX.urn, [EMAIL PROTECTED](PHA.RX.urn,PHA.RX.nur.request.x)^PHA.RX.urn <mailto:[EMAIL PROTECTED](PHA.RX.urn,PHA.RX.nur.request.x)%5ePHA.RX.urn> 1, " "[EMAIL PROTECTED]'s.name_" "_%Z.date.out(DATE)_" "_TIME^/.WO[Q+1^Q]}}}, ; ;""^/MES; %Z.wm.macro(1,0); Anybody have a good way of displaying data as a pop-up text box without screwing up the screen? Thanks - Roger Roger Beverly, PharmD Clinical Pharmacy Coordinator Conway Medical Center, Inc. [EMAIL PROTECTED] Conway Medical Center Disclaimer The information contained in this message may be privileged and confidential and protected from disclosure. If the reader of this message is not the intended recipient, or an employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify us immediately by replying to the message and deleting it from your computer. Thank you H20070801 ********************************************************************** 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. **********************************************************************
=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*= To subscribe or unsubscribe to the meditech-l, visit http://mtusers.com/mailman/listinfo/meditech-l_mtusers.com To check the status of the meditech-l, visit MTUsers.NET For help, email [EMAIL PROTECTED] Please visit and add information to the MTUsers WikiPedia at MTUsers.NET/mwiki ______________________________________ meditech-l mailing list [email protected] http://mtusers.com/mailman/listinfo/meditech-l_mtusers.com
