Move the report up to the main segment (bar.account) or call the macro
from a header key on @account and say N to detail if you need to write
it on the transactions segment for some reason.

To strip all but the numerics from a phone number, get the
MIS.zcus.is.util from our report library and upload it use the macro
numeric as follows:

%MIS.zcus.is.util.M.numeric(@phone.number)

PS:  We recently noticed in a 5.5 magic system that if you do all your
output in a macro with just the CR/LF coming from the picture, your
lines may be truncated when output to VIEW or SPOOL.  To fix this add a
RL footnote to specify the record size.   



Joe Cocuzzo
Vice President
NPR Services
Iatric Systems, Inc.
Phone/Fax: (978) 805-4115
Email: [EMAIL PROTECTED]
Web: www.iatric.com


-----Original Message-----
From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf
Of [EMAIL PROTECTED]
Sent: Thursday, December 28, 2006 12:23 PM
To: [email protected]
Subject: [MEDITECH-L] question about downloading a file using a macro
foroutput

Hi,

 I am working on a report in BAR.PAT,  detail segment 
bar.acct.transactions and index file bar.acct.discharge.date.index. I am

trying to set this up using the example provided by Joe Cocuzzo at Muse 
where you set up a macro for the output of the file. This is for a 
download file that requires a lot of information and this makes it
easier 
to edit the fields if needed. The problem is I am getting a blank line
for 
each procedure the patient had and I am not sure how to correct that.
The 
way the original file was set up was on a header key for the 
txn.procedure. Using Joe's example I set up the footnote as AL D 
%BAR.PAT.zcus.ftp.per.se.tech.file.M.get.info(@txn.urn). I think the D
is 
for Detail and I have tried changing it to something else but still get 
the same thing. I would like to start setting up the download files this

way because it looks like it would be faster to make edits this way.

I also have one other question. I need to strip out the hyphens or 
parentheses out of a phone number. The problem is when they enter the 
phone number they enter them both ways and then some do not enter either

hyphens or parentheses. I am not sure about striping those out?

Thank you,
Keith Owens
Applications Analyst
Lourdes
[EMAIL PROTECTED]
270-444-2747

=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=
To subscribe or unsubscribe to the meditech-l, visit MTUsers.COM.

To check the status of the meditech-l, visit MTUsers.NET.

For help, email [EMAIL PROTECTED]
______________________________________
meditech-l mailing list
[email protected]
http://mtusers.com/mailman/listinfo/meditech-l

=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=
To subscribe or unsubscribe to the meditech-l, visit MTUsers.COM.

To check the status of the meditech-l, visit MTUsers.NET.

For help, email [EMAIL PROTECTED]
______________________________________
meditech-l mailing list
[email protected]
http://mtusers.com/mailman/listinfo/meditech-l

Reply via email to