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

Roger:

I am not sure a an OE Order rule can do this, I think an attribute would
be a better choice (if I am wrong, please send me the rule).

See below for CBN attributes, if the query you want to default a
response is on an OE PROC screen, this may work....
---------------------------------------------------------------------
Brian G sent this to the L to help with writing attributes for OE PROCS

DFT=/PN[pn,"O",pnP]|10 for service date
DFT=/PN[pn,"O",pnP]|11 for service time

Other fields that you might be interested in:

/PN[pn,"O",pnP]|0    order date
/PN[pn,"O",pnP]|1    order time
/PN[pn,"O",pnP]|2    order status
/PN[pn,"O",pnP]|3    "1000000494"
/PN[pn,"O",pnP]|4    order doctor
/PN[pn,"O",pnP]|5    category
/PN[pn,"O",pnP]|6    procedure number
/PN[pn,"O",pnP]|7    hospital bill proc #
/PN[pn,"O",pnP]|8    bill on status
/PN[pn,"O",pnP]|9    unit price
/PN[pn,"O",pnP]|10   service date
/PN[pn,"O",pnP]|11   service time
/PN[pn,"O",pnP]|12
/PN[pn,"O",pnP]|13   priority
/PN[pn,"O",pnP]|14   quantity
/PN[pn,"O",pnP]|15   print here
/PN[pn,"O",pnP]|16   user
/PN[pn,"O",pnP]|17   terminal
/PN[pn,"O",pnP]|18
/PN[pn,"O",pnP]|19
/PN[pn,"O",pnP]|20
/PN[pn,"O",pnP]|21 "CO"
----------------------------------------------------------------
OE ATTRIBUTES FOR CAT AND PROC SCREENS

ANSWER:

DFT=IF{DO{>(/PN[SUB],DATA)^SUB IF{DATA|5="RAD"&(DATA|6=100257)
"PORT"^DFT}DFT}

QUESTION:
We would like to default a response to the Mode of Transportation query
on the Radiology Category CDS.  We would like to default the response of
PORT
(Portable) for those handful of OE Radiology procedures that are
portable,
e.g., CXRP, Chest Xray Portable in category RAD.

Initial testing has not been successful because the RAD category screen
appears before the default triggering procedure is entered so there is
no
backload of the desired default.  With this constraint it may not be
possible, but thought I would exhaust the expertise of the L-list before
I declare defeat.
----------------------------------------------------------------
                     Enter/Edit Attributes: OECBN

 DFT=IF{""^LOC,@p.ADM.PAT.location^LOC,
 DFT=IF{LOC%3="NUR"&(@[EMAIL PROTECTED]'="NEW")
"Y";"N"}}
----------------------------------------------------------------
ATTRIBUTE: Attribute to default a response based on the Interface
Argument

The following attribute was created in order to default a "Y" or "N" in
an
order query, based on the Interface Argument for that procedure in the
OE
Procedure Dictionary:

[EMAIL PROTECTED]@t.OE.INP.procedure]="CC=CBN"
"Y";"N"}

The attribute reads:

IF the interface argument of the procedure being ordered is "CC-CBN"
then
defaut a "Y" into the query, otherwise default a "N".

**At our facility the CBN query is attached to the OE CAT Screen for
LAB, not the OE PROC screen for UA or other procedures.

So the above attribute would not work for us.
----------------------------------------------------------------
The orders in OE enter orders are in /PN, so you could have some code
attached to a DFT attribute that, when the user gets down to the
transportation query, loops on the orders and returns PORT if one of the
triggering procedures have been ordered

Something like this should work. (assuming 100257 is one of your PORT
procedures).

DFT=IF{DO{>(/PN[SUB],DATA)^SUB IF{DATA|5="RAD"&(DATA|6=100257)
"PORT"^DFT}DFT}
----------------------------------------------------------------
FCL1=IF{(@.response="N")&(@p.OE.PROC.mnemonic[/["pc"],/["pp"]]="NPO")
FCL1= @W.err("WHEN SAYING NO, MAKE SURE YOU NOTIFY DIETARY TO SEND A
TRAY FOR THE MOTHER!")}

In OE, I am trying to create an attribute that will evaluate two
conditions, #1- the answer that I give on a certain query on the CDS is
"N" and #2 the procedure that I am in the process of ordering is NPO.

Currently I am only evaluating #1 and it works fine.  How can I edit it
so that it will evaluate #1 and #2 and only show the message when the
answer is N and the OE proc = NPO.  Everything I have tried is just
ignored.
----------------------------------------------------------------
Subject: RE: [MEDITECH-L] OE -Category query attribute help

I think the following should work for you:

[EMAIL PROTECTED]/["pc"],/["pp"]]'="GENT"'="TINZ"

/["pc"] is the category and /["pp"] is the procedure number.
-----------------------------------------------------------------
QUESTION:

Would like to make an Order Entry - Category query Required if the
ordered
procedure is not this or this.

Eg.   [EMAIL PROTECTED]'="GENT"'="TINZ"

How do I evaluate the OE procedure?  What is the syntax?
Obviously @procedure is not correct.
Also tried [EMAIL PROTECTED]'="GENT"'="TINZ"

ANSWER:

I think the following should work for you:

[EMAIL PROTECTED]/["pc"],/["pp"]]'="GENT"'="TINZ"

/["pc"] is the category and /["pp"] is the procedure number.
----------------------------------------------------------------
ANSWER:

This attribute works:

FCL1=(@.response'=/PN[pn,"O",pnP]|14)
[EMAIL PROTECTED]("Total should be "_/PN[pn,"O",pnP]|14)

Brian

QUESTION:

I need to write an attribute that will compare the total quantity on an
OE Requisition screen to a quantity on an attached CDS.
-----------------------------------------------------------------
DEFAULT ORDERING LOCATION/DEPT INTO SCREEN IN ENTER REQUISITIONS
SEE OEWORK CDS

[EMAIL PROTECTED]
----------------------------------------------------------------
Subject: RE: [Meditech-L] OE attribute for order source

DFT=c.order.source appears to work here.
----------------------------------------------------------------
DFT=QTY

                     Enter/Edit Attributes: OEMM2B

 IFE=IF{/PN[pn,"O",pnP]|14^/QTY
 IFE= P(R,S,/QTY^/[ANS%0,"OEMM2B"]|0)^#,"";""}
----------------------------------------------------------------
So, to print the procedure's mnemonic, try this:

IFE=IF{/PN[pn,"O",pnP]|6^/NBR
IFE= @p.OE.PROC.mnemonic[/NBR]^/MNE,
IFE=P(R,S,/MNE^/[ANS%0,"YOUR QUERY"]|0)^#,"";""}

Using the table above, if you just want to print the collected field,
"quantity" for example,

IFE=IF{/PN[pn,"O",pnP]|14^/QTY
IFE= P(R,S,/QTY^/[ANS%0,"YOUR QUERY"]|0)^#,"";""}
-----------------------------------------------------------------

Good Luck,


-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Roger Allen
Sent: Wednesday, September 06, 2006 8:43 AM
To: @Meditech-L (Meditech-L)
Subject: [MEDITECH-L] Magic OE - Order Rule

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

Need help with an OE Order Rule that will default in the "Collected By
Nurse" query response on a test specific basis.

---
Roger Allen
HCIS Manager
MRMC - Meadows Regional Medical Center
1703 Meadows Lane
P.O. Box 1048
Vidalia, GA 30475-1048

 Phone: 912-538-5860
   Fax: 912-538-5351
E-Mail: [EMAIL PROTECTED]
   Web: www.meadowsregional.org


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

**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. 

This footnote also confirms that this email message has been swept by Sophos 
and MIMEsweeper for the presence of computer viruses.
**********************************************************************


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

Reply via email to