Unlock the Power of MEDITECH with MEDITECH KE

1

I'm trying to list the @td.value["IRFTDUR"] daily results, for seven days, left to right in NUR.PC.WORK.td.results. I think I need to use a DO loop with PREV but I am not sure of the syntax. My first (failed attempt) is:

@GET.DATA,
@PREV.DATE,
1

GET.DATA
6^/MV.FN,
"LN"^/MV.LN,
"IRF"^/MV.NAME,
@TD.VALUE["IRFTDUR",@PREV.DATE]^@MV.ARRAY,
1

TD.VALUE
IF{@MIS.QUERY.group.resp[td.query]^MIS.GROUP.RESP.mnemonic,
@td.value^MIS.GROUP.RESP.element.mnemonic,
@MIS.GROUP.RESP.element.response @MIS.GROUP.RESP.element.response;
@td.value}

PREV.DATE
DO{@Prev(td.act.date) IF{@td.value["IRFTDUR"]>0 @td.act.date^1}},
1

MV.ARRAY
/R.MV[/MV.NAME,MV.LN,/MV.FN]

flag
So that your code displays like it would in the MEDITECH macro editor - try putting a <br/> after each line when posting code. – John Sharpe Feb 3 at 23:06

1 Answer

0

What do you think of using an MV array to report the information; and use a value range /MV.FN 1 - 7 to reflect days 1 - 7?

alt text

link|flag

Your Answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.