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

The problem you mention comes from the fact that @p.ADM.PAT.age is
stored differently for various ages.  So, it is an unreliable field (by
itself) to use as a reference.

My preference is to always use the Z.age.in.years program to get the age
in a common format.  That program requires two arguments.  I call it
like this:

%Z.age.in.years(@p.ADM.PAT.computed.birthdate,@.today)

Of course in the situation you describe, you want a more accurate
solution.  In that case, I would use the Z.date.sub program to get the
age in days.  Once you have the age in days you can either set your
criteria in days, or convert the age in days into either weeks or months
through the appropriate math.  I call it like this:

%Z.date.sub(@.today,@p.ADM.PAT.birthdate)

Daniel Davis, RN

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Terry Price
Sent: Thursday, October 05, 2006 8:43 AM
To: [email protected]
Subject: [MEDITECH-L] AGE ATTRIBUTES

Hello all, I have a slight problem with an attribute.  The following
attribute works great, the problem is the guideline has changed and
instead of being 6-24 months it is now 6-59 months.  I tried
substituting the 24 months with 59 months and it did not work.  I have
tried several different formats with none of them working, I have now
ran out of gas and looking towards you great people to assist.  I really
appreciate your help!
 
IFE=(@p.ADM.PAT.age'<6MO)&(@p.ADM.PAT.age'>24MO)!(@p.ADM.PAT.age'<50)

Thank you,

Terry Price
Clinical Systems Analyst/PACS Administrator, MCSE
Emergency Preparedness/HAZMAT Team Leader
Great Plains Regional Medical Center
Elk City, OK
580.303.5883

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


_______________________________________________
meditech-l mailing list
[email protected]
http://mtusers.com/mailman/listinfo/meditech-l

Reply via email to