WANT the MEDITECH Reports BLOG via EMAIL?

Your email:

About MEDITECH Reports

View John Sharpe's profile on LinkedInI'm your host, John Sharpe, a MEDITECH Report Writing 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

Stacking / Unstacking Prefixes

  
 

$T Example - Stacking the Slash File:

ZCUS.SLASH,
; Instantiate/Open slash file.
O(/,"P"),
1^/SLASH,
; Instantiate new / file, while stacking the current one.
O(/S,"P"),
2^/SLASH,
; Close the current / file, while unstacking the previous / file.
C(/U),
; Check to see if / is open; X is equal to "P".
O(/)^X,
; Check the value of /SLASH, it will be 1
NN(/SLASH)^#,
N("")^#;

MEDITECH does not stack the /.. variables in the slash file with their Z.stack.slash which is used in their CDSs.

NPR Report Writer Solution from Michael Laban at ECHN:

1^/X,
%Z.stack.slash("N"),
2^/X,
%Z.stack.slash("U"),
%Z.ddc(" slash"),
END;

Elegant solution from Joe Cocuzzo at Iatric Systems:

You can also do C(/X) to exchange the current slash for the stacked slash file, then do C(/X) again to put things “back”. This is handy for the Non MEDITECH data source option in PCI when you need to know more than just a unit number (like the user mnemonic, account number selected etc).

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