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

Lego Blocks Decrease Meditech NPR Development Time

 

meditech date and timeDates 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!

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