Lego Blocks Decrease Meditech NPR Development Time
Dates are probably formatted a dozen different ways in your organization. Each date format can be implemented in numerous ways at the report level. If you need to update or change a format, this could require editing and translating hundreds of reports.
Using Meditech NPR macros as centrally managed lego blocks of code, you can change the way dates are formatted across the organization by a change to just 1 NPR macro. Instead of needing a legion of consultants or a special project, a change like this could be accomplished in an afternoon. Imagine the impact this methodology could make in a report with dozens of date time fields, on reports like ED Provider Productivity, Operating Room Productivity, BAR Patient Statements which require formatting of date and time across multiple measures.
For example ... if you need ADM Admit Date & Admit Time formatted as ADM AdmitDateTime to load into a vendor's SQL DateTime field, your NPR report will call the macro (npr lego blocks) below as follows:
[xx.admit.date.time]
DAT=FREE
LEN=44
VAL=%Z.zcus.macros.M.datetime(@admit.date,@admit.time,"SQL")
Example NPR Macro:
; %Z.zcus.macros.M.datetime(/DATE,/TIME,"SQL")
A^/DATE,
B^/TIME,
C^/FORMAT,
""^/DATETIME,
IF{/DATE_.=.;
/TIME_.=.;
/DATE$4^/YYYY,/DATE%3$2^/MM,/DATE%5$2^/DD,
/TIME$2^/HH,/TIME%1^/MIN,
; 2011-07-12 17:57:32
IF{/FORMAT="SQL" /YYYY_"-"_/MM_"-"_/DD_" "_/HH_":"_/MIN_":00";
/FORMAT="YYYYMMDDHHNN" /YYYY_/MM_/DD_/HH_/MIN}^/DATETIME},
/DATETIME;
Want an alert when the next post is published? Click the phone and Subscribe to the MEDITECH Reports Blog!