Debug NPRs Called from Advanced Meditech Applications

The Ambulatory Order Management (AOM) Print Forms Dictionary in Client Server 5.6 allows you to call an NPR report from this non-NPR application.
Finding out which MEDITECH fields are available to your NPR report at runtime is a challenge. And that's because as an NPR Report Writer you can't see the report running interactively. Fortunately ... I've found a way to debug NPRs called from FS or 6.0 applications, and you can do it too.
You can send all lower case /SLASH variables from your NPR at runtime to yourself using an internal email address at your hospital. These lower case variables usually contain the data available to you at NPR run time. To do this on Client Server, create a macro named email using the code below. Then call the email macro using a footnote like AL START email.
CAUTION: Never send email from a report to an email address outside your healthcare organization, unless you are sure it will be securely transmitted.
[email]
@EMAIL.INITIALIZE,
@EMAIL.SEND,
1
EMAIL.SEND
%MIS.OA.MSG.auto("",{^/EMAIL.BODY,"",/EMAIL.SUBJECT,"",^/EMAIL.ADDRESSES})
EMAIL.INITIALIZE
@KILL(/EMAIL.ADDRESSES),
@KILL(/EMAIL.BODY),
@KILL(/EMAIL.SUBJECT),
0^/CTR,
"Npr Troubleshooting"^/EMAIL.SUBJECT,
"_"^Q,
DO{>/[Q]^Q "/"_Q^@EMAIL.BODY,
" = "^@EMAIL.BODY,
/[Q]^@EMAIL.BODY,
D(13)^@EMAIL.BODY,
1^/EMAIL.ADDRESSES["ProgrammerUser@YourHospital.Org"],
1
EMAIL.BODY
/EMAIL.BODY[/CTR+1^/CTR]
KILL
K
Want an alert when the next post is published? Click the phone and Subscribe to the MEDITECH Reports Blog!