Hi Marc,

I've done this exact same thing before in macro by looping through all 
NUR.PC.WORK documentations on the patient in question, and looking for any time 
an NUR.PC.WORK.td.value for a given query is recorded.  The most recent 
response is then stored in a variable, and the date and time of any subsequent 
response is then compared to the stored time.

It looks as though you were on the right track, but I'm guessing you've limited 
your options too much by passing in the intervention.  The macro call I uses 
passes in only the patient identifier (urn) and the query's mnemonic.  


Hope this helps,
Jerry Beals
Holyoke Medical Center
Holyoke, MA


>>> "Benoy, Marc" <[EMAIL PROTECTED]> 7/9/2007 11:25:08 AM >>>
Hello all,

I have been trying to tackle this issue for a long time now and wonder
if you can help?

I am trying to obtain the last documentation of a query that can be
documented on in multiple interventions.

Naturally, I have all the standard checks in place, such as:

Detail DPM      NUR.PC.WORK             Detail Segment
nur.int.documented.activity
Index DPM       OE.ORD          Index File      oe.adm.room.bed.index

        td.act.date             EQ      @Last(td.act.date)

        td.act.time             EQ      @Last(td.act.time)

        xx.ck.most.recent
VAL=%NUR.PC.WORK.zcus.report.name.M.ck(patient,int.base,int.urn,td.act.d
ate,td.act.time)

                                A^patient,
                        B^int.base,
                        C^int.urn,
                                [EMAIL PROTECTED](td.act.date) 1,
                                        [EMAIL PROTECTED](td.act.time) 1,
        
[EMAIL PROTECTED](act.ctr)#"1."=99;
 
td.act.date^LDATE,
 
td.act.time^LTIME}}},
                        IF{D_E=(LDATE_LTIME) 1};

        xx.ck.undo
[EMAIL PROTECTED],,,,,@td.act.ctr#"0."_".99"] "";1}

However, this set-up always provides me with the last documentation of
each intervention in which this query was documented on and I only need
the last possible on regardless of which intervention.

Thanks in advance,

Marc

Marc Benoy RN, MS, MBA
Clinical IT Project Manager
301.552.8876 (Phone)
301.552.8181 (Fax)
[EMAIL PROTECTED] 
 
Doctors Community Hospital
8118 Good Luck Road
Lanham, MD 20706
 
Magic 5.61
 
CONFIDENTIALITY STATEMENT:  This communication, including attachments, is for 
the exclusive use of addressee and may contain proprietary, confidential or 
privileged information. If you are not the intended recipient, you are hereby 
notified that any disclosure, use, copying, dissemination, distribution or 
taking of any action in reliance on the content of this information is strictly 
prohibited. If you are not the intended recipient, please notify the sender 
immediately by return email and delete this communication and destroy all 
copies.  Thank you.

=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=
To subscribe or unsubscribe to the meditech-l, visit 
http://mtusers.com/mailman/listinfo/meditech-l_mtusers.com 

To check the status of the meditech-l, visit MTUsers.NET

For help, email [EMAIL PROTECTED]

Please visit and add information to the MTUsers WikiPedia at MTUsers.NET/mwiki
______________________________________
meditech-l mailing list
[email protected] 
http://mtusers.com/mailman/listinfo/meditech-l_mtusers.com

CONFIDENTIALITY NOTICE: This email communication and any attachments may 
contain confidential and privileged information for the use of the designated 
recipients named above. If you are not the intended recipient, you are hereby 
notified that you have received this communication in error and that any 
review, disclosure, dissemination, distribution or copying of it or its 
contents is prohibited. If you have received this communication in error, 
please reply to the sender immediately or by telephone at (413)534-2500 and 
destroy all copies of this communication and any attachments. For further 
information regarding Holyoke Medical Center's privacy policy, Please visit our 
Internet web site at http://www.holyokehealth.com
<<<<GWAVAsig>>>>

=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=
To subscribe or unsubscribe to the meditech-l, visit 
http://mtusers.com/mailman/listinfo/meditech-l_mtusers.com

To check the status of the meditech-l, visit MTUsers.NET

For help, email [EMAIL PROTECTED]

Please visit and add information to the MTUsers WikiPedia at MTUsers.NET/mwiki
______________________________________
meditech-l mailing list
[email protected]
http://mtusers.com/mailman/listinfo/meditech-l_mtusers.com

Reply via email to