STANDARD DATA DICTIONARY #601.76 -- MH INSTRUMENT CONTENT FILE                                                    3/24/25    PAGE 1
STORED IN ^YTT(601.76,  (8742 ENTRIES)   SITE: WWW.BMIRWIN.COM   UCI: VISTA,VISTA                                 (VERSION 5.01)   

DATA          NAME                  GLOBAL        DATA
ELEMENT       TITLE                 LOCATION      TYPE
-----------------------------------------------------------------------------------------------------------------------------------
This file specifies which entries from the MH QUESTIONS file (#601.72) are parts of which instrument in the MH TESTS AND SURVEYS
file (#601.71).  It is the "table of contents" for an interview, survey or test. Also specified are the sequence of questions and
display attributes for the introductions, questions and choices.  Display attributes can be bold, underlined and font size for the
introductions, questions and choices.  


              DD ACCESS: @
              RD ACCESS: @
              WR ACCESS: @
             DEL ACCESS: @
           LAYGO ACCESS: @
           AUDIT ACCESS: @

CROSS
REFERENCED BY: INSTRUMENT(AC), QUESTION ID(AE), INSTRUMENT CONTENT ID(B)

INDEXED BY:    INSTRUMENT & QUESTION SEQUENCE (AD), INSTRUMENT & QUESTION ID (AF)




601.76,.01    INSTRUMENT CONTENT ID  0;1 NUMBER (Required)

              INPUT TRANSFORM:  S:$TR(X,"new","NEW")="NEW" X=$$NEW^YTQLIB(601.76) K:+X'=X!(X>9999999)!(X<1)!(X?.E1"."1N.N) X S:$G(X
                                ) DINUM=X
              LAST EDITED:      MAY 12, 2004 
              HELP-PROMPT:      Type a Number between 1 and 99999, 0 Decimal Digits 
              DESCRIPTION:      This is a unique identifier for this Instrument Content. This is the IEN. Numbers under 100,000 are
                                part of the national database and should not be edited locally.  

              NOTES:            XXXX--CAN'T BE ALTERED EXCEPT BY PROGRAMMER

              CROSS-REFERENCE:  601.76^B 
                                1)= S ^YTT(601.76,"B",$E(X,1,30),DA)=""
                                2)= K ^YTT(601.76,"B",$E(X,1,30),DA)


601.76,1      INSTRUMENT             0;2 POINTER TO MH TESTS AND SURVEYS FILE (#601.71) (Required)

              LAST EDITED:      NOV 18, 2005 
              DESCRIPTION:      A pointer to the MH TESTS AND SURVEYS file (#601.71). This associates questions to their
                                instrument.  

              CROSS-REFERENCE:  601.76^AC 
                                1)= S ^YTT(601.76,"AC",$E(X,1,30),DA)=""
                                2)= K ^YTT(601.76,"AC",$E(X,1,30),DA)

              RECORD INDEXES:   AD (#725), AF (#726)

601.76,2      QUESTION SEQUENCE      0;3 NUMBER

              INPUT TRANSFORM:  K:+X'=X!(X>99999)!(X<0)!(X?.E1"."1N.N) X
              LAST EDITED:      OCT 15, 2003 
              HELP-PROMPT:      Type a Number between 0 and 99999, 0 Decimal Digits 
              DESCRIPTION:
                                Order of the question in the instruments.  

              RECORD INDEXES:   AD (#725)

601.76,3      QUESTION ID            0;4 POINTER TO MH QUESTIONS FILE (#601.72)

              LAST EDITED:      NOV 18, 2005 
              DESCRIPTION:
                                Pointer to the MH QUESTIONS file (#601.72). It associates instruments to their questions.  

              CROSS-REFERENCE:  601.76^AE 
                                1)= S ^YTT(601.76,"AE",$E(X,1,30),DA)=""
                                2)= K ^YTT(601.76,"AE",$E(X,1,30),DA)

              RECORD INDEXES:   AF (#726)

601.76,4      DESIGNATOR             0;5 FREE TEXT

              INPUT TRANSFORM:  K:$L(X)>50!($L(X)<1) X
              LAST EDITED:      DEC 17, 2002 
              HELP-PROMPT:      Answer must be 1-50 characters in length. 
              DESCRIPTION:
                                The "number" (e.g., "1", "F2", "1.2.a") displayed along with the question text.  


601.76,5      QUESTION TEXT           ;  COMPUTED MULTIPLE

              MUMPS CODE:       X ^DD(601.76,5,9.3) X ^DD(601.76,5,9.2):D0>0 S X="" S D0=Y(601.76,5,80) S D1=Y(601.76,5,181)
                                9.2 = F D=0:0 S (D,D1)=$O(^YTT(601.72,D0,1,D)) Q:D'>0  I $D(^(D,0))#2 S X=^(0) X DICMX Q:'$D(D)  S 
                                D=D1
                                9.3 = S Y(601.76,5,80)=$G(D0),Y(601.76,5,1)=$S($D(^YTT(601.76,D0,0)):^(0),1:""),D0=$P(Y(601.76,5,1)
                                ,U,4) S:'D0!'$D(^YTT(601.72,+D0,0)) D0=-1 S Y(601.76,5,181)=$G(D1)
              ALGORITHM:        3:1
              DESCRIPTION:
                                Allows display of question text through this computed field.  


601.76,6      CHOICETYPE              ;  COMPUTED

              MUMPS CODE:       X ^DD(601.76,6,9.2) S Y(601.76,6,101)=$S($D(^YTT(601.72,D0,2)):^(2),1:"") S X=$P($G(^YTT(601.751,+$
                                P(Y(601.76,6,101),U,3),0)),U) S D0=Y(601.76,6,80)
                                9.2 = S Y(601.76,6,80)=$G(D0),Y(601.76,6,1)=$S($D(^YTT(601.76,D0,0)):^(0),1:""),D0=$P(Y(601.76,6,1)
                                ,U,4) S:'D0!'$D(^YTT(601.72,+D0,0)) D0=-1
              ALGORITHM:        QUESTION ID:4
              LAST EDITED:      NOV 07, 2003 
              DESCRIPTION:      Associates a ChoiceType (a group of multiple choice alternatives) to this question in this
                                instrument.  


601.76,7      QUESTIONDISPLAYID      0;6 POINTER TO MH DISPLAY FILE (#601.88)

              LAST EDITED:      DEC 30, 2003 
              DESCRIPTION:
                                Specifies display attributes like font, color and bold for this question.  


601.76,8      INTRODISPLAYID         0;7 POINTER TO MH DISPLAY FILE (#601.88)

              LAST EDITED:      DEC 30, 2003 
              DESCRIPTION:
                                Specifies display attributes like font, color and bold for this intro.  


601.76,9      MHCHOICEDISPLAYID      0;8 POINTER TO MH DISPLAY FILE (#601.88)

              LAST EDITED:      DEC 30, 2003 
              DESCRIPTION:
                                Specifies display attributes like font, color and bold for this set of alternatives.  



      FILES POINTED TO                      FIELDS

MH DISPLAY (#601.88)              QUESTIONDISPLAYID (#7)
                                  INTRODISPLAYID (#8)
                                  MHCHOICEDISPLAYID (#9)

MH QUESTIONS (#601.72)            QUESTION ID (#3)

MH TESTS AND SURVEYS (#601.71)    INSTRUMENT (#1)


File #601.76

  Record Indexes:

  AD (#725)    RECORD    REGULAR    IR    SORTING ONLY
      Short Descr:  INSTRUMENT BY SEQUENCE
        Set Logic:  S ^YTT(601.76,"AD",X(1),X(2),DA)=""
       Kill Logic:  K ^YTT(601.76,"AD",X(1),X(2),DA)
       Whole Kill:  K ^YTT(601.76,"AD")
             X(1):  INSTRUMENT  (601.76,1)  (Subscr 1)  (forwards)
             X(2):  QUESTION SEQUENCE  (601.76,2)  (Subscr 2)  (forwards)

  AF (#726)    RECORD    REGULAR    IR    SORTING ONLY
      Short Descr:  Instrument by Question ID
      Description:  Used to confirm a question as part of a defined instrument.  
        Set Logic:  S ^YTT(601.76,"AF",X(1),X(2),DA)=""
       Kill Logic:  K ^YTT(601.76,"AF",X(1),X(2),DA)
       Whole Kill:  K ^YTT(601.76,"AF")
             X(1):  INSTRUMENT  (601.76,1)  (Subscr 1)  (forwards)
             X(2):  QUESTION ID  (601.76,3)  (Subscr 2)  (forwards)


INPUT TEMPLATE(S):

PRINT TEMPLATE(S):

SORT TEMPLATE(S):

FORM(S)/BLOCK(S):