[MEDITECH-L] NPR Computed Field to pull in Optional Query Magic 5.62

45 views
Skip to first unread message

Lasiter, Pam

unread,
Oct 20, 2009, 3:47:45 PM10/20/09
to medit...@mtusers.com
Hi All,

I'm trying to pull in not only the group response, but the free text on
an optional type query in an ADM.PAT report. This is what I have:

VAL=@MIS.GROUP.RESP.element.response["OE.ADMISO5",

VAL=@ADM.PAT.ccdqr.response[@urn,"OE.ADMISO3"]]

It's pulling in information if they choose the group response, but not
if they used free text. Any ideas?

Thanks,

Pam Lasiter, RN, BSN
Lodi Memorial Hospital
209-334-3411 ext 7332

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

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.

The meditech-l archives (and other tips) can be found at
http://mtusers.net/zarchives

Job opportunities in the Meditech community can be found at
http://mtusers.net/zjobs

Jerry Beals

unread,
Oct 20, 2009, 4:10:07 PM10/20/09
to Pam Lasiter, medit...@mtusers.com
VAL=IF{"OE.ADMISO5"^cd.query,cd.query's.group.resp^MIS.GROUP.RESP.mnemonic,
VAL=@cd.response^MIS.GROUP.RESP.element.mnemonic IF{@MIS.GROUP.RESP.element.response;@cd.response}}


>>> "Lasiter, Pam" <plas...@lodihealth.org> 10/20/2009 3:47 PM >>>
Hi All,

VAL=@MIS.GROUP.RESP.element.response["OE.ADMISO5",

VAL=@ADM.PAT.ccdqr.response[@urn,"OE.ADMISO3"]]

Thanks,

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


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 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

M Lawrence

unread,
Oct 21, 2009, 9:29:54 AM10/21/09
to Jerry Beals, Pam Lasiter, medit...@mtusers.com
Messy!

VAL=IF{@ADM.PAT.cd.response["OE.ADMISO3"]^RSP,

VAL=@MIS.QUERY.group.resp[RSP]^GRP,

VAL=@MIS.GROUP.RESP.element.response[GRP,RSP];RSP}

Modify first line for ccdqr.response if you wish.

VAL=IF{@ADM.PAT.ccdqr.response[urn,"OE.ADMISO3"]^RSP,

Mitch

| -----Original Message-----

| From: meditech-...@mtusers.com [mailto:meditech-l-

| bou...@mtusers.com] On Behalf Of Jerry Beals

| Sent: Tuesday, October 20, 2009 3:10 PM

| To: Pam Lasiter; medit...@mtusers.com

| Subject: Re: [MEDITECH-L] NPR Computed Field to pull in Optional Query

| Magic 5.62

|

| VAL=IF{"OE.ADMISO5"^cd.query,cd.query's.group.resp^MIS.GROUP.RESP.mnemonic

Amy Brigham

unread,
Oct 21, 2009, 12:43:59 PM10/21/09
to Lasiter, Pam, medit...@mtusers.com
Pam,

I ran into a situation where the free text was not just a one-line
comment field, but a free text box, which ran to infinite lines. I had
to do some ECB/ECE programming to list all the multiple lines of
response, stored in (I think) the td.mult.response field in NUR.PC.WORK.

I also created a utility fragment to dump these text boxes, passing the
query and urn to the fragment.

We're C/S 5.5

thanks,

Amy

Amy Brigham
Systems Analyst
MIS, Berger Health System
740-420-8454
amy.b...@bergerhealth.com

This message transmitted on 100% recycled electrons.

-----Original Message-----
From: meditech-...@mtusers.com
[mailto:meditech-...@mtusers.com] On Behalf Of Lasiter, Pam
Sent: Tuesday, October 20, 2009 3:48 PM
To: medit...@mtusers.com
Subject: [MEDITECH-L] NPR Computed Field to pull in Optional Query Magic
5.62

Lasiter, Pam

unread,
Nov 3, 2009, 12:20:29 PM11/3/09
to Lasiter, Pam, medit...@mtusers.com
Thanks to everyone who responded to my post. Here is what worked:

Optional Query - Non-multiple

VAL=IF{@MIS.GROUP.RESP.element.response["NUS1000060",
VAL=@ccdqr.response["NUS1000060"]];@ccdqr.response["NUS1000060"]}

Optional Multiple Query

First Line:
VAL=IF{@MIS.GROUP.RESP.element.response["NUS1000056",
VAL=@ccdqr.mult.response["NUS1000056",1]];@ccdqr.mult.response["NUS10000
56",1]}

Second Line:
VAL=IF{@MIS.GROUP.RESP.element.response["NUS1000056",
VAL=@ccdqr.mult.response["NUS1000056",SEQ]];
VAL=@ccdqr.mult.response["NUS1000056",SEQ]}

Line Attribute for second Line:
ECB="NUS1000056"^ccdqr.query,1^ccdqr.mult.seq.no,
ECB=DO{@Next(ccdqr.mult.seq.no)^SEQ .,
ECE=.},

The above will pull in either the free text or group response name.

Thanks again,


Pam Lasiter, RN, BSN
Lodi Memorial Hospital
209-334-3411 ext 7332

-----Original Message-----
From: meditech-...@mtusers.com
[mailto:meditech-...@mtusers.com] On Behalf Of Lasiter, Pam
Sent: Tuesday, October 20, 2009 12:48 PM
To: medit...@mtusers.com
Subject: [MEDITECH-L] NPR Computed Field to pull in Optional Query Magic
5.62

Reply all
Reply to author
Forward
0 new messages