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

Dynamic MEDITECH Value Truncation

  
 

Typically, programmers truncate magic values like this: /DATA:10TL^/VARIABLE. The report writer will not translate this attempt at dynamic truncation: /DATA:/LENTL because /LENTL is now the name of a variable. To dynamically truncate a value based on a previously defined length, use the following method.

1) Get the length. Here we are retrieving the length of the data from the MIS Query Dictionary.
- @MIS.QUERY.length^/LEN
2) Truncate the data and store in another variable.
- /DATA:(/LEN_"TL")^/VARIABLE

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