All messages should be posted in plain text. HTML will be converted to
attachments. The meditech-l web site is MTUsers.com
======================================
Marc,
I can think of three potential causes for your error message.
1) When you copied your macro, some of the lines didn't get re-joined.
I re-organized the macro below so that no lines need to be reformatted.
You should be able to cut and paste, and be ready to go.
2) Another potential cause for the problem could be the attribute can't
find the macro. Our macro is found at: MIS.zcus.library.M.ibw. I
noticed yours is: MIS.zcus.library.nt.M.ibw. Verify where your macro
really is.
3) Third possible scenario: You uploaded the NPR report with the macro,
but didn't translate it. This isn't likely the problem in this case
because you are calling the macro directly, and not getting to it
through the report (you are calling "MIS.zcus.library.nt.M.ibw" and not
"MIS.zcus.library.nt.R"). It is still worth getting into the macro,
filing it, and translating it.
Please let me know if you are still having problems.
Brian
;-----------------------------------------------------------------------
----------
;This macro calculates a patient's Ideal Body Weight by Using the
Following Formula
;Males: 106 pounds + 6 pounds per inch over 5 feet
;Females: 100 pounds + 5 pounds per inch over 5 feet
;If Frame Size is Large, add 10%, if Frame Size is Small, subtract 10%
;Then it converts the pounds to kilograms.
;-----------------------------------------------------------------------
----------
;
;A = HEIGHT IN FEET
;B = HEIGHT IN INCHES
;C = FRAME SIZE
;
A^/FT,B^/IN,C^/FR,
@t.ADM.PAT.urn^PT,
*AA[PT]|7^SEX,
IF{SEX="M" 106^/C1;100^/C1},
IF{SEX="M" 6^/C2;5^/C2},
((/FT*12)+/IN)^/HT,
IF{/HT>60 (/HT-60)^/LO;0^/LO},
IF{/FR="MEDIUM" @MEDIUM;/FR="SMALL" @SMALL;@LARGE},
/LB:8D*16^/OZ:8D,
(/OZ:8D/35.27396:3D)_" KG"^/IBW;
SMALL
/C1+(/C2*/LO)^/TEMP,(/TEMP*0.10)^/PER,(/TEMP-/PER)^/LB:8D
MEDIUM
/C1+(/C2*/LO)^/LB:8D
LARGE
/C1+(/C2*/LO)^/TEMP,(/TEMP*0.10)^/PER,(/TEMP+/PER)^/LB:8D
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Benoy, Marc
Sent: Wednesday, February 22, 2006 3:39 PM
To: [email protected]; [EMAIL PROTECTED]; Bill Mullins
Subject: [MEDITECH-L] Ideal Body Weight Attribute Syntax Error
All messages should be posted in plain text. HTML will be converted to
attachments. The meditech-l web site is MTUsers.com
======================================
Hello all,
I am getting a syntax error with the Ideal Body Weight attribute that is
calling the NPR Macro.
Could somebody look this over and help me?
I do not know if this is a factor, we are MAGIC 5.4 NUI.
The NPR report has been translated without errors and is named:
MIS.zcus.library.nt.M.ibw
The queries:
NURHT height in feet
NURHTINCH height in inches
NTBODYFR is the bodyframe (Large, Small, Medium)
The attributes I tried:
1)
IFE=IF{%MIS.zcus.library.nt.M.ibw([ANS,"NURHT"]|0,
IFE=[ANS,"NURHTINCH"]|0,[ANS,"NTBODYFR"]|0)^/VAR,
IFE=/VAR^/[ANS%0,/S.LAST.QUERY]|0,P(R,S,/VAR)^#,""}
2)
IFE=IF{([ANS,"NURHT"]|0^FT)!([ANS,"NURHTINCH"]|0^IN)&
IFE=([ANS,"NTBODYFR"]|0^FR)%MIS.zcus.library.nt.M.ibw(FT,IN,FR)^/VAR,
IFE=/VAR^/[ANS%0,/S.LAST.QUERY]|0,P(R,S,/VAR)^#,""}
This is the NPR macro:
;-----------------------------------------------------------------------
------------------
;This macro calculates a patient's Ideal Body Weight by Using the
Following Formula
;Males: 106 pounds + 6 pounds per inch over 5 feet,
;Females: 100 pounds + 5 pounds per inch over 5 feet,
;If Frame Size is Large, add 10%,
;If Frame Size is Small, subtract 10%,
;Then it converts the pounds to kilograms.
;-----------------------------------------------------------------------
------------------
;
;A = HEIGHT IN FEET
;B = HEIGHT IN INCHES
;C = FRAME SIZE
;
A^/FT,
B^/IN,
C^/FR,
;
@t.ADM.PAT.urn^PT,
*AA[PT]|7^SEX,
;
IF{SEX="M"106^/C1;100^/C1},
IF{SEX="M"6^/C2;5^/C2},
((/FT*12)+/IN)^/HT,
IF{/HT>60(/HT-60)^/LO;0^/LO}, IF{/FR="Medium"/C+1(/C2*/LO)^/LB:8D},
IF{/FR="Small"/C1+(/C2*/LO)^/TEMP,(/TEMP*0.10)^/PER,(/TEMP-/PER)^/LB:8D}
,
/C1+(/C2*/LO)^/TEMP,(/TEMP*0.10)LB:8D*16^/OZ:8D,(/OZ:8D/35.27396:3D)^W;
Looking forward to your replies,
Marc
Marc Benoy RN, MS, MBA
Clinical IT Project Leader RN
301.552.8876 (Phone)
301.552.8181 (Fax)
[EMAIL PROTECTED]
Doctors Community Hospital
8118 Good Luck Road
Lanham, MD 20706
Magic 5.4
CONFIDENTIALITY STATEMENT: This communication, including attachments,
is for the exclusive use of addressee and may contain proprietary,
confidential or privileged information. If you are not the intended
recipient, you are hereby notified that any disclosure, use, copying,
dissemination, distribution or taking of any action in reliance on the
content of this information is strictly prohibited. If you are not the
intended recipient, please notify the sender immediately by return email
and delete this communication and destroy all copies. Thank you.
_______________________________________________
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