WANT the MEDITECH Reports BLOG via EMAIL?

Your email:

About MEDITECH Reports

MEDITECH Reports is an online reference for NPR Report Writing and not affiliated with MEDITECH, Inc @ http://meditech.com. To learn more about NPR report development using the Meditech Report Writer read more here.

View John Sharpe's profile on LinkedInI'm your host, John Sharpe, a MEDITECH Report Writing Consultant in Spokane, WA. More about me.


Email John

Follow Comstock Software on Twitter 

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

MEDITECH Reports

Current Articles | RSS Feed RSS Feed

Stripping a Dash - MEDITECH String Manipulation


You've added the dashes '-' to a field; but what about removing them?

To remove the dashes from a MEDITECH field (social security number, or phone number), you can use tokens and the NOT operator like this:

"123-45-6789"^/SSN,
/SSN'#1A'#1A^/SSN
Result: /SSN = 123456789

OR

/SSN'#1A^/SSN
Result: /SSN = 12345-6789

/SSN'#1A^/SSN
Result: /SSN = 123456789

OR

DO{/SSN#L(/SSN,"-") /SSN'#1A^/SSN}
Result: /SSN = 123456789


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

Receive email when someone replies.