[MEDITECH-L] Magic NPR Question

19 views
Skip to first unread message

Helt, Karen

unread,
Aug 14, 2009, 9:19:05 AM8/14/09
to medit...@mtusers.com
I have a report that needs to be uploaded to the State. One of the requirements is that the header information and the data need to be encased in quotes. For some reason, I cannot seem to get this to work. I have the following computed field for my header information:

DAT=FREE
JFY=L
LEN=10
VAL="NPI_number"

It is already encased in quotes - how do I get these quotes to print?

I also have the following computed field for my data that I need to put the answer in quotes:

DAT=FREE
JFY=L
LEN=50
VAL=@name#"0, "

It seems to me this should be easy but for some reason, I cannot figure it out.

Karen Helt
Systems Analyst
Sauk Prairie Memorial Hospital
====================================

Please do NOT send messages that ask "Please post to the list" These are useless messages that just waste the email server's resources. Instead, email the original requester and ask that they send you or post the results of their question.

To UNSUBSCRIBE, go to http://MTUSers.net
for information.

The meditech-l archives (and other tips) can be found at
http://mtusers.net/zarchives

Job opportunities in the Meditech community can be found at
http://mtusers.net/zjobs

McGaw, Douglas

unread,
Aug 14, 2009, 9:43:23 AM8/14/09
to Helt, Karen, medit...@mtusers.com
The quote is a special character in NPR. To get it to print, rather
than encapsulate text, you need to define it in a computed variable
using its ascii decode:

VAL=D(34)_"Whatever Text you want"_D(34)

Note: on most printers the quote marks won't appear quite like you
expect, but they'll work.

Douglas B. McGaw
Senior Systems Analyst
Newman Regional Health
1201 W. 12th Ave.
Emporia, KS 66801

620-343-6800 x 1130 (fax: 620-340-6799)
dbm...@newmanrh.org

Barrett, Joanne

unread,
Aug 14, 2009, 9:59:56 AM8/14/09
to McGaw, Douglas, Helt, Karen, medit...@mtusers.com
Great, thanks Doug I was trying to help her but I forgot how to do it, I'll keep this for future reference.

Joanne Barrett-Haramis
Sr. Programmer /Analyst
Data Management and User Provisioning
Halifax Health - IT
386-254-4116 X 1115
E-Mail: Joanne....@Halifax.org
Learn IT, Use IT, Love IT

Electronic communications originating from or sent to Halifax Health are subject to monitoring and public inspection under § 119.07, Florida Statutes. This message and any attachments are the property of Halifax Health and are intended to be received only by the individuals or entities identified in the message. If you have received this message in error, please take notice: 1) that any use, copying, printing, forwarding or distribution of this message in any form is strictly prohibited, and 2) please notify the Halifax Health Compliance Department at (386) 254-4278 and/or forward the message to compl...@halifax.org, and please delete or destroy all copies of the message and any attachments.

M Lawrence

unread,
Aug 14, 2009, 10:22:05 AM8/14/09
to Helt, Karen, medit...@mtusers.com
If you use
DAT=FREE

Along with a footnote of

FD <ascii value for your delimiter>

Then your data will be enclosed with quotes between the delmiters.

Common delimiters are:

For TAB, use FD 9
For Comma, use FD 44
For Pipe, use FD 124
For Semicolon, use FD 59

You can use the DAT field attribute on ALL fields in your picture to have
all fields have the text-qualification (quote marks). Yes, even standard
fields.

Conversely, if you don't want fields to have the text qualifications, then
use

DAT=INT

Marvin Johnson

unread,
Aug 14, 2009, 10:57:28 AM8/14/09
to M Lawrence, Helt, Karen, medit...@mtusers.com
If you need the quotes without automatic delimiters you can "decode" the
ASCII decimal value of a double quote before and after your value like this:

DAT=FREE
JFY=L
LEN=10
VAL=D(34)_"NPI number"_D(34)

Alternatively, you can use intrinsic macros to do the same things:
DAT=FREE
JFY=L
LEN=10
VAL=@Z.quote_"NPI number"_...@Z.quote

Marvin Johnson RN, MS
President / NPR Consultant
Capitas Solutions LLC - Meditech Reporting Specialists
Email: marvin....@capitassolutions.com
Web: www.capitassolutions.com


-----Original Message-----
From: meditech-...@mtusers.com [mailto:meditech-...@mtusers.com]
On Behalf Of M Lawrence
Sent: Friday, August 14, 2009 9:22 AM
To: 'Helt, Karen'; medit...@MTUsers.com
Subject: Re: [MEDITECH-L] Magic NPR Question

Reply all
Reply to author
Forward
0 new messages