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

Hi Sharon,

There are many paths that can be taken to get the same result but here
is the way we are doing this.

The following attribute calculates the amount of time in hours since
the patient's date of birth, divides it by 24 to convert it to days. 
Then we send the "age in days" to /AGE and evaluate it for the number of
days that we want.  You could also further divide the days to convert to
months before assigning the value to /AGE.  It's six one way and half a
dozen the other.

Also, because we have sent the age in days to a slash variable, you can
simply evaluate /AGE for the other queries without recalculating.


IFE=IF{%Z.elapsed.time(@.today,@.now,@p.ADM.PAT.birthdate,@.now,"hh")^

IFE=XXX/24^/AGE>60} 

Hope this helps,
Kenny Whiteside


Kenny Whiteside BSN, RN
Patient Care Information Systems
Catawba Valley Medical Center
810 Fairgrove Church Road
Hickory, NC 28602
[EMAIL PROTECTED]



>>> <[EMAIL PROTECTED]> 09/27/2006 9:10 AM >>>
All messages should be posted in plain text.  HTML will be converted
to
attachments.    The meditech-l web site is MTUsers.com
======================================

Hi folks. Forgive me for adding to the never-ending litany of questions
about changes in attributes, and if there's someplace online where I can
check this out, please direct me.

We had an age attribute in a previous version that brought users to
queries designed for specific ages on our pediatric admission
assessment. It essentially looked like this:

IFE=%Z.date.sub(@.today,@p.ADM.PAT,computed.birthdate)/30>0<2

This one was for 1 month old babies.  The tail end of the attribute
changed with each defined age change, like this:
/30>1<4 was for 2-3 month olds
/30>3<6 was for 4-5 month olds 
etc.

I don't know how the attribute changed after the queries changed from
month-to-month to year-to-year, because all the attributes have been
deleted from those queries. Gone. Disappeared to cyberspace. I'm
guessing removed by the previous analyst because they didn't work.

I'm probably asking a simple question. No making fun of me! Anyway,
we're 5.5 (SR3), so if you have an attribute I can use for my monthly
and yearly age progressions, please share. Thanks a ton. Sharon
_______________________________________________
meditech-l mailing list
[email protected]
http://mtusers.com/mailman/listinfo/meditech-l

Reply via email to