Hi Allen and Brenda,
You can use an IFE attribute to both default a query response and to
skip the query making it impossible for the user to make any changes.
There are, however, a couple of things that you need to know:
1) When using an IFE to default, you are by-passing the programs
normal way of storing query values and displaying those values on the
screen. Therefore, you must manually do these things within the
attribute,
2) When you default a value to the query's temporary variable, be sure
to default the mnemonic if it is a group type query since Meditech only
stores mnemonics,
3) If you want to display the response name of a group query rather
than the mnemonic, you can do this. Just be sure it is the mnemonic
that is saved as the query's value.
4) Be carefull since using this logic will also bypass the system
standard checks. For example, it is possible to default a letter into a
number type query.
Here is the attribute to simply default and save the same value and
then skip:
IFE=IF{"DEFAULT"^/[ANS%0,"YOURQUERY"]|0,P(R,S,"DEFAULT")^# "";""}
- You will need to replace YOURQUERY with the mnemonic of the query the
attribute is placed on and replace DEFAULT with whatever you want. Be
sure to leave the quotes!
To explain the attribute..... the /[ANS%0,"YOURQUERY]|0 is the query's
temporary response variable. (Note: This can be referenced also as
[ANS,"YOURQUERY]|0 but NOT if you are assigning a value to it!)
"DEFAULT" is the value and the ^ is the assignment character. So
"DEFAULT"^/[ANS%0,"YOURQUERY"]|0 functions to assign the value of
DEFAULT to the query's temporary response variable.
If we that's all we were to do, the query technically has the value of
DEFAULT.... but the user would not see this because it has not been
displayed on the screen. If we were to reset the screen by trying to
exit and then cancelling, we would see DEFAULT suddenly appear in the
query's response!
So, to display the value instantly for the user, we use the logic of
P(R,S,"DEFAULT")^#. R is a variable that tracks the row number of the
cursor on the screen. S does the same for the column. P is the
"Position" operator and the # respresents the screen. So, this logic
literally says, "Position the cursor in this query's response at row
____ and column ___ and take the value of "DEFAULT" and send it to the
screen.
Please note that there is a space between the # and the "";""} at the
end. Since the intended purpose of the IFE attribute is to determine
whether or not the cursor is to stop in the query's response, ending the
attribute with a nil value causes the cursor to skip. Since this is an
IF statement, the "";"" at the end will ensure that whether your
statement was true or false, the cursor will always skip.
Here's how I default a group query response mnemonic but display the
name rather than the mnemonic. This will work on either a group or an
optional type single-line query:
IFE=IF{"D"^MNEM^/[ANS%0,"YOURQUERY]|0,P(R,S,[EMAIL PROTECTED]
IFE=response["GRMNEMONIC",MNEM];MNEM})^# "";""}
- You will need to replace the GRMNEMONIC with the mnemonic of the
group lookup attached to the query.
When assigning the mnemonic of "D", I assign it to both the temp
response variable AND to the variable MNEM. Within the P(R,S logic, I
have inserted an IF statement that looks into the group response lookup.
If the mnemonic is found, the name is displayed on the screen. But if
the mnemonic is not found, the value of MNEM is displayed.
Hope this helps! Let me know if you have any trouble.
Kenny Whiteside BSN, RN
Patient Care Information Systems
Catawba Valley Medical Center
810 Fairgrove Church Road
Hickory, NC 28602
[EMAIL PROTECTED]
>>> "Brenda Bakaysa" <[EMAIL PROTECTED]> 07/10/2007 6:15:29 AM
>>>
We also would be interested in this attribute. We are looking to use
this for our immunization assessment queries.
Brenda Bakaysa, RN
Clinical Analyst
Indiana Regional Medical Center
PO Box 788
Indiana, PA 15701
Phone: 724-463-1002
Fax: 724-357-7289
Email: [EMAIL PROTECTED]
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Allen Vining
Sent: Monday, July 09, 2007 3:41 PM
To: [email protected]
Subject: [MEDITECH-L] Defaulting an answer that cannot be changed by
end user
Hi- In our facility, we use the following two types of attributes to
default an answer. Is anyone aware of how to make the defaulted answer
unable to be edited by the end-user?
Thanks, Allen
Default in an answer
I used these 2 lines of code to default in a Yes if I answered another
query Yes. DFT can stand alone to default in any answer you desire.
DFT="Y"
IFE=[ANS,"NURERVI056"]0="Y"
Allen Vining, RN, BSN
Clinical Informatics Administrator
Tuomey Healthcare System
Business: 803-774-9461
Pager: 803-890-5285
--
This message has been scanned for viruses and
dangerous content, and is
believed to be clean.
Catawba Valley Medical Center
810 Fairgrove Church Rd
Hickory NC 28602
828-326-3000
**This electronic message may contain information that is confidential
and/or legally privileged. It is intended only for the use of the
individual(s) and entity named as recipients in the message, please
notify the sender immediately and delete the material from any computer.
Do not deliever, distribute or copy this message, and do not disclose
its contents or take any action in reliance on the information it
contains.
Thank you
--
This message has been scanned for viruses and
dangerous content, and is
believed to be clean.
=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=
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