When calling a macro the whole NPR doesn't really run, so none of that
matters.  The NPR is simply a holding place for the macro.

 

Daniel Davis

________________________________

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Brian Roberts
Sent: Tuesday, June 19, 2007 9:04 AM
To: meditech-l@mtusers.com
Subject: [MEDITECH-L] NPR RW macro help needed

 

Could someone please help me with the NPR report macro used in the
following example?

 

Advanced Attribute
Defaulting a response from a previous OE order

Default the most recent response to the same query for the same category
and procedure. This is only for defaulting a previous OE order query
response to the same query on a new OE order. 

Requires a macro to be created

DFT=%OE.ORD.zcus.tjt.dft.M.prev.resp(/["aa"],"QUERY")

Macro code for this attribute

A^PT,
B^QRY,
""^SD^RESP,
DO{-?POE[PT,SD]^SD&'RESP ""^PO,
DO{-?POE[PT,SD,PO]^PO&'RESP @CHECK.CAT.PROC}},
RESP;

CHECK.CAT.PROC
IF{:PO[PO]|5'=/["pc"];
:PO[PO]|6'=/["pp"];
:PO[PO]R[QRY]|0^RESP} 

Questions:

1.     Should the Detail Segment = oe.order?

2.     Any Index File?

3.     Should Detail = Y ?

4.     Does their need to be a Select field?

5.     Leave Picture blank?

6.     Footnote?

Thanks for your help.

 

 

Brian Roberts 
Financial Applications Specialist 
Information Technology Dept. 
Cambridge Memorial Hospital 
Phone #: (519) 621-2333 ext. 1491 
Email: [EMAIL PROTECTED] 

 

=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=
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
meditech-l@MTUsers.com
http://mtusers.com/mailman/listinfo/meditech-l

Reply via email to