About MEDITECH Reports

 

View John Sharpe's profile on LinkedInI'm your host, John Sharpe, a MEDITECH Consultant living in Spokane, WA. Read more ...

Connect ...

Expand your network by connecting on these social media sites:

Sign up for the MEDITECH Reports Blog; details to attend MEDITECH workshops are sent out 1 week in advance to all MEDITECH Report blog subscribers.

These MEDITECH Workshops are sponsored by Donna Carroll at the MEDITECH Community Bulletin

MEDITECH NPR & RW RESOURCES:

Ascii Table: For NPR Report Writer
Loop Builder: For NPR Macros
Key Codes: For CDS Attributes
List Builder: For NPR Macros
MT Report Names: For NPR Reports
MT Structure Viewer: For Physicals
Strings: Format & Sort

HIT Topics

MEDITECH Reports

Current Articles | RSS Feed RSS Feed

Debug NPRs Called from Advanced Meditech Applications

 

Aom Print Forms Dictionary1

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!

Subscribe to the Meditech Blog     

                                                                                                                                                                                                          

Comments

Currently, there are no comments. Be the first to post one!
Post Comment
Name
 *
Email
 *
Website (optional)
Comment
 *

Allowed tags: <a> link, <b> bold, <i> italics