All messages should be posted in plain text. HTML will be converted to
attachments. The meditech-l web site is MTUsers.com
======================================
Hi Angie
Using MV Arrays is pretty simple and has a "TON" of application in NPR.
Probably a good 50% of the reports I write employ them. The syntax
differences between MAGIC and C/s are minimal.
The structure in MAGIC is as follows
/MV[MV.ID,INDEX,FIELD]
Where
MV.ID = The ID of the MV ARRAY. This is how the report picture knows
what MV ARRAY to access for its Data. It is suggested by Meditech that this
correspond to the region you are printing the information in. In fact this
is merely a label and can be any word
INDEX = This is a string or number indicating the order in which the
array will be sorted. If you wanted a report sorted by facility, location
and room, the index would be constructed as follows
(@facility:10L)_(@location:10L)_(@room:10L)^INDEX
this would create a 30 character string that would result in sorting the MV
ARRAY as above.
If simply string text lines in sequential order the index can be
constructed as follows
INDEX+1^INDEX
FIELD = This corresponds to the field number in the field list on the
picture page that this element of the array will be printed in. When you
print an MV Array each element of the array must have a corresponding field
in the field list on the picture page.
Example
If you were printing an MV ARRAY of patient names and
telephone numbers
that was stored in the MV ARRAY as
@name^/MV["TR",@[EMAIL PROTECTED],9],
@phone^/MV["TR",@[EMAIL PROTECTED],10]
A valuable technique is to code any macro or NPR Code that is loading
the
macro like this
8^OFFSET,
@name^/MV["TR",@[EMAIL PROTECTED],OFFSET+1],
@phone^/MV["TR",@[EMAIL PROTECTED],OFFSET+2]
If a variable is added to the report before the MV ARRAY at a later
date,
that variable moves all subsequent variables in the field list down by one.
That would mean canging 9 to 10 and 10 to 11 in the first example above.
Coded in the second manner, you only have to change the value of the offset
and the code will work again.
Fields on the field list would be
9 xx.patient.name
10 xx.patient.phone
If the MV ARRAY is to be printed in the detail section, the field
attribute
FNC=LST must be used. To quote Joel Berman, "who knows why" but if you
don't, the report will crash.
You print this multiple that way you would any other. You place the
variables on the picture on at least two lines, lined up under one another.
That last line must have nothing but the variable for the multiple on it.
Example Picture
xx.patient.name xx.patient.phone
xx.extra variable
xx.patient.name xx.patient.phone
xx.extra variable
xx.patient.name xx.patient.phone
The first line of the multiple should have a line attribute of the value of
the MV.ID.
Example from above
MV=TR
Please note that in this case there are no quotes around the value TR.
Hope this Helps
Ken
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Frazier, Angie
Sent: Thursday, March 30, 2006 4:00 PM
To: [email protected]
Subject: [MEDITECH-L] Multiple onto NPR using MV Array
All messages should be posted in plain text. HTML will be converted to
attachments. The meditech-l web site is MTUsers.com
======================================
I am having trouble getting a multiple query onto an ADM.PAT NPR using an MV
Array. I would really appreciate if someone could send me an example
(Magic) ADM.PAT report that I could simply dissect. I know how to pull a
multiple using the ECB/ECE line check. I'm just having trouble with the
macro. TIA.
Sincerely,
Angie Frazier, BSN, RN
Clinical Informatics Coordinator
Women & Children's Hospital
Lake Charles, LA
[EMAIL PROTECTED]
Expect More ~ We Deliver
This email and any files transmitted with it may contain PRIVILEGED or
CONFIDENTIAL information and may be read or used only by the intended
recipient. If you are not the intended recipient of the email or any of its
attachments, please be advised that you have received this email in error
and that any use, dissemination, distribution, forwarding, printing, or
copying of this email or any attached files is strictly prohibited. If you
have received this email in error, please immediately purge it and all
attachments and notify the sender by reply email.
_______________________________________________
meditech-l mailing list
[email protected]
http://mtusers.com/mailman/listinfo/meditech-l
_______________________________________________
meditech-l mailing list
[email protected]
http://mtusers.com/mailman/listinfo/meditech-l