I'm trying to pull mtdd data from PCM using %MIS.MTDD.print.ext but keep
getting the error "Invalid file location". There are 3 KB article about
this programm - 37017, 36125 and 36375.
Data field: PCM.DOC.AUDIT.mtdd.raw @mtdd.raw.line
Has anybody successfully used this program before with PCM data?
Thanks
Thanks
John Brower
johnb...@mhd.com
Methodist Health System
Sr. System Analyst
214-947-1903
</pre><p style="font-family:courier new, courier, serif;">***********************************************************************<br /><br />This electronic transmission contains information from Methodist Health<br />System and should be considered confidential and privileged. The<br />information contained in the above messages is intended only for the<br />use of the individual(s) and entity(ies) named above. If you are not the<br />intended recipient, be aware that any disclosure, copying, distribution,<br />or use of this information is prohibited. If you receive this transmission<br />in error, please notify the sender immediately by return e-mail.<br />Methodist Health System, its subsidiaries and affiliates hereby claim all<br />applicable privileges related to the transmission of this communication.<br /></p><pre>
===###===###===###===###===###===###===
Please do NOT send messages that ask "Please post to the list" or "I'd like to see your answers" or "Send that info to me, too" 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 or to SUBSCRIBE, go to http://MTUsers.net for information.
You can locate the:
1) meditech-l archives
2) NPR/Magic/CS tips
3) job opportunities in the Meditech community
http://mtusers.net
Do NOT send email to meditech...@MTUsers.com. This is a system email box that is NOT monitored by a human. If you need help or advice on how to use the meditech-l, email lo...@MTUsers.com or ju...@MTUsers.net. Both of these people help manage the meditech-l, so they are your best resource.
===***===***===***===***===***===***===
The example shows a move of the MTDD data into a temp structure before calling the conversion program, and passing a destination for the converted text. You can also call it and pass it a permanent structure, but you have to be VERY CAREFUL to pass a different target or you will strip all the graphics with the utility and file the change right back in the Meditech permanent data, which would be bad.
Converting MTDD text to plain text:
Don't be fooled by the temptingly named MIS.MTDD.mtdd.to.plain.txt as that does not work (it reformats line widths, but does not strip fonts or graphics).
The program you want is %MIS.MTDD.print.ext.mtdd.to.txt This program has a lot of code to strip font info and also the various strange ways MT imbeds graphics at the top of report files.
HOWEVER, the documentation at the top of the program, with arguments A,B,C,D, etc is ENTIRELY WRONG.
What you need to do is queue the arguments as follows into /MTDD.LCL
{mtx.source.type,mtx.target.type,local.source,local.target,local.target.type,local.line.len,local.source.storage,local.target.storage},
So if your MTDD text is in /SOURCE and you want to convert to /TARGET
DO{@Next(lt.text.urn) @lt.text^/SOURCE[LN+1^LN]},
{"","",^/SOURCE,^/TARGET,"",80}^/MTDD.LCL,
%MIS.MTDD.print.ext.mtdd.to.txt(""),
The documentation says that the default width is 80, that is wrong also. If you don't pass in a line length you get the file broken into individual words.
Joe Cocuzzo
Vice President
NPR Services
Iatric Systems, Inc.
Phone/Fax: (978) 805-4115
Email: mailto:Joe.C...@iatric.com
Web: http://www.iatric.com/
Iatric Systems is a leading provider of integrated software applications, interfaces and reporting solutions for hospitals and healthcare systems.
__________
DETAIL SEGMENT: documents
HK1.MACRO
""^mtdd.raw.q^LN,
DO{@Next(mtdd.raw.q) @mtdd.raw.line^/SOURCE[LN+1^LN]},
{"","",^/SOURCE,^/TARGET,"",80}^/MTDD.LCL,
%MIS.MTDD.print.ext.mtdd.to.txt(""),
END
ON DETAIL LINE
ECB=""^AA,
ECB=DO{+/TARGET[AA]^AA .,
ECE=.},
xx.raw.mtdd
DAT=FREE
JFY=L
LEN=80
VAL=/TARGET[AA]
Thanks
John Brower
Methodist Health System
Sr. System Analyst
214-947-1903
{mtx.source.type,mtx.target.type,local.source,local.target,local.target.
type,local.line.len,local.source.storage,local.target.storage},
Platform: C\S 5.64
Data field: PCM.DOC.AUDIT.mtdd.raw @mtdd.raw.line
Thanks
Thanks
John Brower
===***===***===***===***===***===***===
***********************************************************************
This electronic transmission contains information from Methodist Health
System and should be considered confidential and privileged. The
information contained in the above messages is intended only for the
use of the individual(s) and entity(ies) named above. If you are not the
intended recipient, be aware that any disclosure, copying, distribution,
or use of this information is prohibited. If you receive this transmission
in error, please notify the sender immediately by return e-mail.
Methodist Health System, its subsidiaries and affiliates hereby claim all
applicable privileges related to the transmission of this communication.