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

Here is an example of that in an actual rule.  The rule pulls the lab
result, and stores the date and time in the variables DATE and TIME.  A
keyword is then called to calculate the elapsed time since the lab was drawn
using the program %Z.elapsed.time, and that is assigned to DET.  Then DET is
checked for the number of hours that passed.

Rule:
[f rx nth ver Res-RES]("DIG",1)^DIG,
IF{DIG_.=. ("No Dig level on this patient, please obtain lab
results")^DM^ER;
DIG#"0,"^RES^DR,
DIG#"1,"^DATE,
DIG#"2,"^TIME,
[f Z.elapsed.time]^DET,
IF{DET<24.9 "Dig level current:"^BD;"Dig Level > 24 hrs!- MUST
CHECK:"^BD^ER},

Keyword:
IF{%Z.elapsed.time(@.today,@.now,%Z.bdate.in(DATE),TIME,"hh")^ET},ET

Hope this helps - Roger Beverly, PharmD

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]

Sent: Saturday, March 25, 2006 7:02 AM
To: [email protected]
Subject: meditech-l Digest, Vol 17, Issue 31


Message: 20
Date: Fri, 24 Mar 2006 10:09:14 -0600
From: "Kevin McConnell" <[EMAIL PROTECTED]>
Subject: [MEDITECH-L] PHA Rule - [f rx nth ver Res-RES]...
To: <[email protected]>
Message-ID: <[EMAIL PROTECTED]>
Content-Type: text/plain;       charset="iso-8859-1"

I need some help understanding the arguments in this one: [f rx nth ver
Res-RES] (or Res-COL])
  Parsing Code  Yields
  X#"0,"^RES  RESULT
  X#"1,"^DATE  DATE
  X#"2,"^TIME  TIME

So, if I don't want to display if the result is greater than 7 days old...

Thanks to all - Kevin.

 
 
Kevin McConnell, PharmD.
Clinical Consultant
(713)480-6810
 
 






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

Reply via email to