[MT-L] NPR Averaging help

5 views
Skip to first unread message

Bland Doug

unread,
Feb 8, 2010, 9:53:06 AM2/8/10
to medit...@mtusers.com
I have a computed field xx.time.to.see.md with the following attributes:


%Z.elapsed.time(@ccdqr.response["Z.EDT00010"],@xx.seen.by.md,@ccdqr.response["Z.EDT00028"],@ccdqr.response["Z.EDT00030"])


Z.EDT00010 is the date the MD sees the patient. Z.EDT00028 and 30 are the triage date and time.

How can I create an average field for the time it took to see the MD?

Thanks,

Doug Bland

Hospital Director of Information Services
Spring View Hospital
320 Loretto Rd
Lebanon KY 40033
ph 270-692-5199
fx 270-692-5177
doug....@lpnt.net

====================================

Please do NOT send messages that ask "Please post to the list" These are useless messages that just waste the email server's resources. Instead, email the original requester and ask that they send you or post the results of their question.

To UNSUBSCRIBE, go to http://MTUSers.net
for information.

You can locate the:
1) meditech-l archives
2) NPR/Magic/CS tips
3) job opportunities in the Meditech community
http://mtusers.net

If you need help or advice on how to use the meditech-l, email lo...@MTUsers.com or ju...@MTUsers.net. Both of these people help manage the meditech-l, so they are your best resource.

McGaw, Douglas

unread,
Feb 8, 2010, 11:37:22 AM2/8/10
to Bland Doug, medit...@mtusers.com
What I would do here is to have that computed field feed into a variable
name and then - probably in a line check in the detail region - total up
that variable for averaging in a TK region.

First in Z.elapsed.time, you need to complete the variable with the way
you want the time displayed ("hh:mm" or "hh.hh"). I would recommend
this in order to get a computable result:

LC=%Z.elapsed.time(@ccdqr.response["Z.EDT00010"],@xx.seen.by.md,
LC=@ccdqr.response["Z.EDT00028"],@ccdqr.response["Z.EDT00030"],
LC="hh.hh")^TM,TM+TM1^TM1,1+CT^CT""

Reset the critical variables in the footnote:
AL AFTER.TKx ""^TM^CT

Then, in the TK region have xx.tm1.avg like so:
DAT=DEC2
LEN=7
VAL=TM1:4D/CT

You could also use a FNC=AVG instead with a different value statement,
but I find this logic a bit more secure.

Douglas B. McGaw
Senior Systems Analyst
Newman Regional Health
1201 W. 12th Ave.
Emporia, KS 66801

620-343-6800 x 1130 (fax: 620-340-6799)
dbm...@newmanrh.org

Reply all
Reply to author
Forward
0 new messages