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
There was a question on the MEDITECH-L the other day regarding the LOCAL ANS variable. I thought I'd elaborate more today: ANS = 7RESP 166 20071012 0540 1The value of ANS will vary from MEDITECH module & screen where it is being used.In the NUR module, the MEDITECH screen filer uses /RESP for filing responses to NUR.PC.WORK which falls under the physical file :NPCW. Astute readers will notice that I've translated 7RESP to /RESP. The other values in ANS are used as subscripts when filing the data into the database.If you have a CDS attribute that is too long, greater than 249 - 254 characters in length, you will not be able to compile the attribute into your screen. That's when I resort to an NPR macro. The macro will be called as a progam like this: %MIS.zcus.nur.attributes.M.calculate.average.temperature(ANS).We put our macro under MIS because all modules open to MIS by default. If another application were to call your NUR screen, the NPR report macro could crash the screen because the NPR code is not on that segment. Using MIS as our DPM eliminates this problem.When you get to the macro, you can work with data under the / prefix using /ANS OR /[ANS,"YOUR.QUERY"]|0. The one caveat to this can occur if the / prefix were stacked when your macro was called; I believe this only happens in ADM query screens. In that case, you'll need to unstack / at the beginning and unstack / at the end of your macro.
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