All messages should be posted in plain text.  HTML will be converted to
attachments.    The meditech-l web site is MTUsers.com
======================================

David,
@age.current.disp is a computed field with a VAL statement of: 

%Z.age(@ABS.PAT.birthdate)

Z.age returns:
        nn (years if nn>5)
        nY mmM (if n'=0)
        mmM ddD

So, if they are <1 years old then the value returned will be something
like    01M 13D

The third character always being "M".

So, what would probably be the easiest isL

[EMAIL PROTECTED]"M" %Z.date.sub(@ABS.PAT.birthdate,@.today);
VAL=age.current.disp}

Thanks,
Brian

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of David McAllister
Sent: Tuesday, July 25, 2006 1:37 PM
To: Meditech-l List
Subject: [MEDITECH-L] Age in days if < 1 year old

All messages should be posted in plain text.  HTML will be converted to
attachments.    The meditech-l web site is MTUsers.com
======================================

Using the @age.current.disp field from abstracting, what's a cool way to
calculate "age in days if <1 year old"?

Thanks!

David McAllister, MT(ASCP)
Systems Analyst/Programmer
Jeff Anderson Reg. Med. Ctr.
Meridian, Mississippi
Office: 601-553-6027 (M-F 0500-1330 central)
Email: [EMAIL PROTECTED]


***********************************************************
The information in this email is confidential and may be legally
privileged. It is intended solely for the addressee. Access to this
email by anyone else is unauthorized. If you are not the intended
recipient, any disclosure, copying, distribution or any action taken
or omitted to  be taken in reliance on it, is prohibited and may be
unlawful. If you believe that you have received this email in error,
please contact the sender.
************************************************************
_______________________________________________
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

Reply via email to