STANDARD DATA DICTIONARY #601.82 -- MH RULES FILE 3/24/25 PAGE 1 STORED IN ^YTT(601.82, (369 ENTRIES) SITE: WWW.BMIRWIN.COM UCI: VISTA,VISTA (VERSION 5.01) DATA NAME GLOBAL DATA ELEMENT TITLE LOCATION TYPE ----------------------------------------------------------------------------------------------------------------------------------- This file contains the rules used in administering an interview, survey or test. A rule is an action that is performed when a specified question is answered in a specified manner. An example of a rule would be to enter 'Not applicable' to the Question, "Are you pregnant?" if the patient has had a hysterectomy. Rules are complex logic based entries that enables the user to create complex scripts. DD ACCESS: @ RD ACCESS: @ WR ACCESS: @ DEL ACCESS: @ LAYGO ACCESS: @ AUDIT ACCESS: @ POINTED TO BY: RULE ID field (#2) of the MH SKIPPED QUESTIONS File (#601.79) RuleID field (#3) of the MH INSTRUMENTRULES File (#601.83) CROSS REFERENCED BY: RULE ID(B) 601.82,.01 RULE ID 0;1 NUMBER (Required) INPUT TRANSFORM: S:$TR(X,"new","NEW")="NEW" X=$$NEW^YTQLIB(601.82) K:+X'=X!(X>9999999)!(X<1)!(X?.E1"."1N.N) X S:$G(X ) DINUM=X LAST EDITED: FEB 12, 2004 HELP-PROMPT: Type a Number between 1 and 9999999, 0 Decimal Digits DESCRIPTION: This is the unique index for this record. It is the IEN. Numbers under 100,000 are reserved for the national database and should not be edited locally. NOTES: XXXX--CAN'T BE ALTERED EXCEPT BY PROGRAMMER CROSS-REFERENCE: 601.82^B 1)= S ^YTT(601.82,"B",$E(X,1,30),DA)="" 2)= K ^YTT(601.82,"B",$E(X,1,30),DA) 601.82,1 IndexQuestion 0;2 POINTER TO MH QUESTIONS FILE (#601.72) LAST EDITED: FEB 23, 2005 DESCRIPTION: Pointer to the QUESTION NUMBER Field (#.01) of the MH QUESTIONS file (#601.72) on which to run the rule. 601.82,2 IndexValue 0;3 FREE TEXT INPUT TRANSFORM: K:$L(X)>50!($L(X)<1) X LAST EDITED: FEB 04, 2003 HELP-PROMPT: Answer must be 1-50 characters in length. DESCRIPTION: Value of the index. 601.82,3 IndexValueDataType 0;4 FREE TEXT INPUT TRANSFORM: K:$L(X)>50!($L(X)<1) X LAST EDITED: FEB 04, 2003 HELP-PROMPT: Answer must be 1-50 characters in length. DESCRIPTION: Data type of the index value (viz. string, number, date, or VistA IEN). 601.82,4 IndexOperator 0;5 FREE TEXT INPUT TRANSFORM: K:$L(X)>50!($L(X)<1) X LAST EDITED: FEB 04, 2003 HELP-PROMPT: Answer must be 1-50 characters in length. DESCRIPTION: Logical operator to use with index value. 601.82,5 BoolOperator 0;6 FREE TEXT INPUT TRANSFORM: K:$L(X)>50!($L(X)<1) X LAST EDITED: FEB 04, 2003 HELP-PROMPT: Answer must be 1-50 characters in length. DESCRIPTION: Logical operator like 'equals' to match the target response. 601.82,6 TargetQuestion 0;7 POINTER TO MH QUESTIONS FILE (#601.72) LAST EDITED: FEB 23, 2005 DESCRIPTION: Pointer to the QUESTION NUMBER field ((#.01) of the MH QUESTIONS file (#601.72). 601.82,7 TargetValue 1;1 FREE TEXT INPUT TRANSFORM: K:$L(X)>50!($L(X)<1) X LAST EDITED: FEB 04, 2003 HELP-PROMPT: Answer must be 1-50 characters in length. DESCRIPTION: Often the Correct answer, this is the value against which to measure the response. 601.82,8 TargetValueDataType 1;2 FREE TEXT INPUT TRANSFORM: K:$L(X)>50!($L(X)<1) X LAST EDITED: FEB 04, 2003 HELP-PROMPT: Answer must be 1-50 characters in length. DESCRIPTION: Data type of the target value (viz. string, number, date, or VistA IEN). 601.82,9 TargetOperator 1;3 FREE TEXT INPUT TRANSFORM: K:$L(X)>50!($L(X)<1) X LAST EDITED: FEB 04, 2003 HELP-PROMPT: Answer must be 1-50 characters in length. DESCRIPTION: Logical operator to use in comparisons. 601.82,10 MessageText 2;1 FREE TEXT INPUT TRANSFORM: K:$L(X)>200!($L(X)<1) X LAST EDITED: FEB 04, 2003 HELP-PROMPT: Answer must be 1-200 characters in length. DESCRIPTION: Message given to the user when the rule is met. 601.82,11 IsConsistencyCheck 2;2 SET 'Y' FOR Yes; 'N' FOR No; LAST EDITED: JAN 27, 2004 DESCRIPTION: Boolean specifying the type of rule to be a consistency check. FILES POINTED TO FIELDS MH QUESTIONS (#601.72) IndexQuestion (#1) TargetQuestion (#6) INPUT TEMPLATE(S): PRINT TEMPLATE(S): SORT TEMPLATE(S): FORM(S)/BLOCK(S):