MEDITECH DR, NPR, MEDITECH Reporting, MEDITECH Reports, MEDITECH DR Reports, MEDITECH BI, MEDITECH Data Repository
I'm your host, John Sharpe, a MEDITECH Report Writing Consultant living in Spokane, WA. Read more ...
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
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
Current Articles | RSS Feed
$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 1NN(/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!
Allowed tags: <a> link, <b> bold, <i> italics