OK, I found a report that Brian Schmit wrote - thank you Brian.

This report has multiple web sites/links in a macro. I would think you do 
something similar with npr reports, again defined in the macro and sent to a 
variable called /CHOICES and at run time those choices are listing and the user 
choices on of those reports.

When you run the report this is the choices presented:

Picis Home Page
Picis Consulting Services
Picis Contract Programming Services
Meditech Home Page
MUSE Home Page
Exit

I have not tried this, but logically it should work (remember I am a nurse and 
not a programmer)...

I have built choices into the E/E Screen elements in NPR and have played around 
with the GRP option (group response). 

Enter/Edit MIS Group Response Dictionary

Mnemonic  REPORTS              Last Edited by               on
Active?   Y                                      Edit Users     E
Name      NPR REPORTS
Maximum Element Length   10

Element Code       Element Name                Abnormal   Rank
ADM                ADM.PAT.zcus.bm.test          N
EDM                EDM.PAT.zcus.bm.test2         N
PHA                PHA.RX.zcus.bm.test3          N

Build a computed field with the option of GRP=REPORTS

xx.reports
DAT=FREE
GRP=REPORTS
JFY=L
LEN=10
VAL=c.xx.reports
-----------------------------------------------------------
Here is an example of how to edit the screen elements for a the computed select 
of xx.reports.

DAT=FREE
ID=%Z.id.non.dict.color(^\GGL["REPORTS"]E,A,"Mnemonic":12L_("Responses":26L)
ID=,"CD:12L_[A,CD]|0")X
ID.ARG=AR
IFE=1
LEN=10
REQ=1
-----------------------------------------------------------
GRP Group Response Dictionary link

GRP=MY.GROUP will provide a lookup and only allow responses from a group
response dictionary called MY.GROUP. The report writer does this by adding an 
ID.ARG attribute which points to the group response dictionary. This creates 
the possibility of have different lookups for different users. How? Build 
several group reponse dictionaries and then add the GRP attribute referencing 
one of them so the ID.ARG gets created. Edit the ID.ARG attribute so that is 
references a variable rather than the group. Then add an IFE or BFI attribute 
that sets the value of the variable to different groups based on whatever 
criteria you want.

Example - provide one lookup for RN's and a different one for everyone else

Create 2 groups - one MY.RN.GRP with the choices an RN should have and another 
MY.NRN.GRP with the choices everyone else should have.

Add GRP=MY.RN.GRP attribute 
Assuming user id's for RN's start with RN and NA's start with NA add this IFE 
attribute -
IFE=IF{/.USR$2="RN" "MY.RN.GRP";"MY.NRN.GRP"}^GRP,1

Then replace the "MY.RN.GRP" with GRP in the ID.ARG attribute.

This example uses user id but you could also base it on a query response or
the input from another selection field or the day of the week, whatever you 
want.
---------------------------------------------------------------------------
I do not know if using the Choice attribute in E/E Screen Elements would work 
here or not?

xx.day.of.week (could be xx.which.rpt)

DAT=FREE
JFY=L
LEN=3
VAL=%Z.day.out(%Z.day.from.date(@admit.date))

CH=SUN,MON,TUE,WED,THU,FRI,SAT
DAT=FREE
ID.ARG=BR
IFE=1
LEN=3
REQ=1

This choice references a computed field for admit date and uses DATE as the 
DATA type.

The web sites/reports are choices defined in the macro???
-------------------------------------------------------------------
If anyone plays with this and gets it to work, please send it to me, I have not 
tested this "theory", but it might work.

Good Luck,

-----Original Message-----
From: Bill Mullins 
Sent: Wednesday, March 28, 2007 8:40 PM
To: 'Alex Anderson'; McGaw, Douglas; Kern, Wayne; [email protected]
Subject: RE: [MEDITECH-L] Running multiple NPR reports from one prompt

I wish I could say I wrote this, but my supervisor Warren Matiko did.

This is our ADM.PAT.zcus.adm.for4 report we use to print facesheets (as a 
start) for all our patients.

It has a few macros 

1) create.multiple
2) event
3) init
4) logic

(look at #3 AND 4)

Init and logic do most of the extra work and printing.

Based on logic and certain key field and query responses other forms will print 
in Spanish or English, we also call Forms Fast overlays from these macros to 
print along with our Facesheet (labels,wristbands,etc...)
-------------------------------------------------------------------------
               Enter/Edit Macro Logic: ADM.PAT.zcus.adm.form4.M.logic  (A: )

IF{/SECOND.TIME.AROUND[urn];
   @INIT,
   IF{PRINTALL'="Y";
      ;  1. --- Print Consent form for all patients except REF
      IF{TYPE'="REF" @CONSENT},
      ;
      ;  2. --- Print Notice of Privacy Practices for all patients except REF
      IF{TYPE'="REF" @HIPAA},
      ;
      ;  3. --- Print Patient Rights & Resp for Inpatients
      IF{TYPE'="REF" @RIGHTS},
      ;
      ; 10. --- Print Authorization to Release Health Info (also for ER WC 
cases)
      ;Financial Class change July 7 - pulling by insurance for wcb -warren 
matiko 7/9/04
      ;[EMAIL PROTECTED]"WCO"!(@financial.class="COMP")!(@financial.class="USA 
WC PPO")!
      ;[EMAIL 
PROTECTED]'="COMPPOWC"'="USAWCPPO"'="WAU/BAAT"'="WORKCPOTH"'="WORKCPWCG"'="W
      ;
      ; 11. --- ON HOLD: Print ER Assessment for PRE ER patients
      ;[EMAIL PROTECTED]'="PRE ER";
      ;  @ER.ASSESSMENT},
      ;
      ; 12. --- ER Forms
      IF{TYPE="ER" @CHARGES},
      ;
      ; 13. --- ER PHY BILLING NOTICE
      ;IF{TYPE="ER" @ERPHYBN},

Etc....
--------------------------------------------------------------------
There are other methods to do this, maybe not as complicated (like Doug and 
Alex mentioned). I have called other reports as frags (PG=99 and then call the 
frag) this sets up a new page for each form.

Or in a macro call several reports one after the other, after the main report 
prints (See macro below)

I think I got this from Brian G, I really can't be sure.

I have one report, with one macro, that calls several other reports.
This is the first 20 or so lines of the macro:

@CALL.GLUCOSE.FLOWSHEET,
@CALL.PAIN.FLOWSHEET,
@CALL.SKIN.ASSESSMENT.FLOWSHEET,
@CALL.PATIENT.TEACHING.FLOWSHEET,
@CALL.DISCHARGE.SUMMARY,
@CALL.HOME.MEDICATION.REPORT,
@CALL.DISCHARGE.SUMMARY2,
@CALL.HOME.MEDICATION.REPORT2

CALL.GLUCOSE.FLOWSHEET
""^/R.FRAGMENT,
@urn^/R.FRAG.ARG1,
%Z.rw.fragment("NUR.PC.WORK.zcus.glucose.flowsheet.frag.R","NUR")
CALL.PAIN.FLOWSHEET
""^/R.FRAGMENT,
@urn^/R.FRAG.ARG1,
%Z.rw.fragment("NUR.PC.WORK.zcus.pain.flowsheet.frag2.R","NUR")

CALL.SKIN.ASSESSMENT.FLOWSHEET
""^/R.FRAGMENT,
@urn^/R.FRAG.ARG1,
%Z.rw.fragment("NUR.PC.WORK.zcus.skin.assessment.flowsheet.frag.R","NUR"
)

CALL.PATIENT.TEACHING.FLOWSHEET
""^/R.FRAGMENT,

Etc...
-------------------------------------------------------------
I am attaching some of our reports in MAGIC 5.5 SR2 (for one of the examples
ADM.PAT.zcus.discharge.summary.reports) I only have 2 of the reports, the main 
report and one of the frags...But it will give you an idea of how to edit the 
report to fit your needs.

Another example I received from Howard Chase...

ADM.PAT.zcus.bm.shift.report (I do not have all the frags...)

Good Luck,

-----Original Message-----
From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Alex 
Anderson
Sent: Tuesday, March 27, 2007 8:46 AM
To: McGaw, Douglas; Kern, Wayne; [email protected]
Subject: RE: [MEDITECH-L] Running multiple NPR reports from one prompt

You might try using 8. Edit Elements from the process reports menu.  I've set 
up some small selects there.



-----Original Message-----
From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of McGaw, 
Douglas
Sent: Monday, March 26, 2007 10:47 AM
To: Kern, Wayne; [email protected]
Subject: RE: [MEDITECH-L] Running multiple NPR reports from one prompt

I've never tried this, but it strikes me that, if you set up one report as the 
"master" and all the others as fragments of that report (run in the trailer 
region), you ought to be able to get what you're looking for.  If you want to 
select from various reports, you'd have to set up a select variable(s) with an 
IG operator, and then use the selection on line checks for each fragment.

Douglas B. McGaw
Newman Regional Health
1201 W. 12th Ave.
Emporia, KS  66801
 
[EMAIL PROTECTED]
620-343-6800 x 1130
fax: 620-340-6799
 
 
-----Original Message-----
From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Kern, Wayne
Sent: Friday, March 23, 2007 3:52 PM
To: [email protected]
Subject: [MEDITECH-L] Running multiple NPR reports from one prompt

A user has submitted the following request.  Is this possible?  The only 
solution I can think of is a script.
---------------------------------------------------
Please investigate the possibility of batching multiple reports run by the 
Surgical Prep Area. There is a patient safety concern with multiple reports 
being printed separately - that reports from different patients will get mixed 
up.  
 
Specs:  The user should be given one prompt for patient name and then allowed 
to select from multiple reports.
 ---------------------------------------------------

Thanks

Wayne Kern
St. Joseph Medical Center
Towson, MD
The information in this communication is confidential and private and intended 
only for the use of the addressee.  Unauthorized use, disclosure, distribution 
or copying is strictly prohibited and may be unlawful.  If you received this 
communication in error, please destroy it and inform us of the erroneous 
delivery by return e-mail.  Thank you for your cooperation.



=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=
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

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

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

For help, email [EMAIL PROTECTED]

Visit the MTUsers WikiPedia at MTUsers.NET/mwiki 
______________________________________
meditech-l mailing list
[email protected]
http://mtusers.com/mailman/listinfo/meditech-l



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

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

For help, email [EMAIL PROTECTED]

Visit the MTUsers WikiPedia at MTUsers.NET/mwiki
______________________________________
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.
**********************************************************************


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

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

For help, email [EMAIL PROTECTED]

Visit the MTUsers WikiPedia at MTUsers.NET/mwiki
______________________________________
meditech-l mailing list
[email protected]
http://mtusers.com/mailman/listinfo/meditech-l

Reply via email to