This is not a NPR Macro... This is a CDS Screen attribute...  Even
though the coding looks the same, the logic wouldn't work within NPR
alone...

 

What are you trying to do?

 

Damian A Shepard

Systems Analyst

Information Systems

 

Telephone: (802) 447-5165

________________________________

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Brian Roberts
Sent: Tuesday, June 19, 2007 10: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]
DISCLAIMER: The information contained in this electronic message is legally 
privileged and confidential under applicable law and is intended for a 
particular addressee(s). If it is not clear that you are the intended 
recipient, you are hereby notified that you have received this transmittal in 
error; any review, copying or distribution or dissemination is strictly 
prohibited. If you suspect that you have received this transmittal in error, 
please notify Southwestern VT Health Care Corporation immediately by return 
email reply to ([EMAIL PROTECTED]), and immediately delete the transmittal and 
any attachments without making any copy or distribution. Thank you.
=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=
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_mtusers.com
=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=
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_mtusers.com

Reply via email to