STANDARD DATA DICTIONARY #627.7 -- DSM FILE                                                                       6/27/25    PAGE 1
STORED IN ^YSD(627.7,  (1077 ENTRIES)   SITE: WWW.BMIRWIN.COM   UCI: VISTA,VISTA                                  (VERSION 5.01)   

DATA          NAME                  GLOBAL        DATA
ELEMENT       TITLE                 LOCATION      TYPE
-----------------------------------------------------------------------------------------------------------------------------------
The DSM (#627.7) file holds the DSM-III codes originally stored in the DSM3 (#627) file, DSM-III-R codes originally stored in the
DSM-III-R (#627.5) file, and DSM-IV diagnostic codes.  In addition, it will hold all codes created be DSM versions following IV. 
Each entry is unique to a DSM version (even if entries are identical) and is identified by the DSM VERSION field.  


IDENTIFIED BY: DSM VERSION (#2), DISORDER NAME (#40)

POINTED TO BY: DIAGNOSIS field (#1) of the DIAGNOSTIC RESULTS - MENTAL HEALTH File (#627.8) 
               

CROSS
REFERENCED BY: CODE(B), DISORDER NAME(DN), KEYWORDS(K), SHORT NAME(SN)



627.7,.01     CODE                   0;1 FREE TEXT (Required)

              INPUT TRANSFORM:  K:$L(X)>8!($L(X)<1)!'(X'?1P.E) X
              LAST EDITED:      NOV 23, 1993 
              HELP-PROMPT:      Answer must be 1-8 characters in length. 
              DESCRIPTION:
                                This field holds the DSM code.  The DSM code is identical to the ICD code.  

              DELETE AUTHORITY: ^
              WRITE AUTHORITY:  ^
              CROSS-REFERENCE:  627.7^B 
                                1)= S ^YSD(627.7,"B",$E(X,1,30),DA)=""
                                2)= K ^YSD(627.7,"B",$E(X,1,30),DA)


627.7,2       DSM VERSION            0;2 SET

                                '3' FOR DSM3; 
                                '3R' FOR DSM-III-R; 
                                '4' FOR DSM-IV; 
              LAST EDITED:      NOV 23, 1993 
              DESCRIPTION:
                                This field identifies the DSM version to which the entry belongs.  

              DELETE AUTHORITY: ^
              WRITE AUTHORITY:  ^

627.7,3       SOURCE IEN             0;3 NUMBER

              INPUT TRANSFORM:  K:+X'=X!(X>999999)!(X<0)!(X?.E1"."3N.N) X
              LAST EDITED:      NOV 23, 1993 
              HELP-PROMPT:      Type a Number between 0 and 999999, 2 Decimal Digits 
              DESCRIPTION:      When the DSM file (#627.7) was originally created, all entries in the DSM3 (#627) and DSM-III-R
                                (#627.5) files were copied into this file.  When that was done, the internal entry number (IEN) of
                                the DSM3 or DSM-III-R entry was recorded in the SOURCE IEN field. The data contained in this field
                                will be permanently maintained; even after the source files - DSM3 and DSM-III-R - have been
                                deleted.  This field holds the internal entry number (IEN) of the DSM3 (#627) or DSM-III-R (#627.5)
                                entry which served as the source for the corresponding entry in this file.  
                                 
                                Note: This field will be blank for DSM-IV entries, and all entries created for future DSM versions.  

              DELETE AUTHORITY: ^
              WRITE AUTHORITY:  ^

627.7,4       DSM3 SPECIFICATION     0;4 FREE TEXT

              INPUT TRANSFORM:  K:$L(X)>8!($L(X)<1) X
              LAST EDITED:      NOV 23, 1993 
              HELP-PROMPT:      Answer must be 1-8 characters in length. 
              DESCRIPTION:      When the DSM (#627) file was originally created, and the entries in the DSM3 (#627) files were
                                copied into this file, the values in the DSM3 file's DSMIII SPECIFICATION field were copied into
                                this field.  The data now contained in this field will be maintained permanently.  
                                 
                                Note:  This field will be blank for all other DSM version entries.  

              DELETE AUTHORITY: ^
              WRITE AUTHORITY:  ^

627.7,8       ICD VERSION            0;8 SET

                                '9' FOR ICD9; 
                                '10' FOR ICD10; 
              LAST EDITED:      NOV 30, 1993 
              DESCRIPTION:
                                The values in this field identify the ICD version to which the entry corresponds.  


627.7,9       ICDA NUMBER            0;9 FREE TEXT

              INPUT TRANSFORM:  K:$L(X)>12!($L(X)<1) X
              LAST EDITED:      NOV 30, 1993 
              HELP-PROMPT:      Answer must be 1-12 characters in length. 
              DESCRIPTION:      When the DSM (#627) file was originally created, and the entries in the DSM3 (#627) files were
                                copied into this file, the values in the DSM3 file's ICDA NUMBER field were copied into this field. 
                                The data now contained in this field will be maintained permanently.  
                                 
                                Note:  This field will be blank for all other DSM version entries.  


627.7,15      SHORT NAME             0;15 FREE TEXT

              INPUT TRANSFORM:  K:X[""""!($A(X)=45) X I $D(X) K:$L(X)>30!($L(X)<2) X
              LAST EDITED:      DEC 17, 1993 
              HELP-PROMPT:      Answer must be 2-30 characters in length. 
              DESCRIPTION:      Every diagnosis is assigned a short name.  This short name is used in condensed display screens to
                                identify the diagnosis.  

              CROSS-REFERENCE:  627.7^SN^MUMPS 
                                1)= S X=$E($$UP^XLFSTR(X),1,30),^YSD(627.7,"SN",X,+DA)=""
                                2)= S X=$E($$UP^XLFSTR(X),1,30) K ^YSD(627.7,"SN",X,+DA)


627.7,16      COMMENT                C;1 FREE TEXT

              INPUT TRANSFORM:  K:$L(X)>120!($L(X)<3) X
              LAST EDITED:      MAR 28, 1994 
              HELP-PROMPT:      Answer must be 3-120 characters in length. 
              DESCRIPTION:      The comment field is for internal use only; for developer and EP comments.  It is not entered,
                                edited, or displayed by the Mental Health package.  


627.7,40      DISORDER NAME          D;1 FREE TEXT

              INPUT TRANSFORM:  K:X[""""!($A(X)=45) X I $D(X) K:$L(X)>200!($L(X)<3) X
              LAST EDITED:      DEC 17, 1993 
              HELP-PROMPT:      Answer must be 3-200 characters in length. 
              DESCRIPTION:
                                The full and official name of the DSM code is recorded in this field.  

              DELETE AUTHORITY: ^
              WRITE AUTHORITY:  ^
              CROSS-REFERENCE:  627.7^DN^MUMPS 
                                1)= S X=$E($$UP^XLFSTR(X),1,30),^YSD(627.7,"DN",X,+DA)=""
                                2)= S X=$E($$UP^XLFSTR(X),1,30) K ^YSD(627.7,"DN",X,+DA)


627.7,50      KEYWORDS               K;1 FREE TEXT

              INPUT TRANSFORM:  K:X[""""!($A(X)=45) X I $D(X) K:$L(X)>200!($L(X)<3) X
              LAST EDITED:      DEC 17, 1993 
              HELP-PROMPT:      Answer must be 3-200 characters in length. 
              DESCRIPTION:      All words or phrases which might be used by users during the process of selecting DSM codes are
                                placed in this long free text field.  The KWIC cross-reference placed on this field enables the
                                lookup code to properly display all match possibilities for the users selection.  

              CROSS-REFERENCE:  627.7^K^KWIC 
                                1)= S %1=1 F %=1:1:$L(X)+1 S I=$E(X,%) I "(,.?! '-/&:;)"[I S I=$E($E(X,%1,%-1),1,30),%1=%+1 I $L(I)
                                >2,^DD("KWIC")'[I S ^YSD(627.7,"K",I,DA)=""

                                2)= S %1=1 F %=1:1:$L(X)+1 S I=$E(X,%) I "(,.?! '-/&:;)"[I S I=$E($E(X,%1,%-1),1,30),%1=%+1 I $L(I)
                                >2 K ^YSD(627.7,"K",I,DA)


627.7,60      QUALIFIER STRING       Q;0 POINTER Multiple #627.701 (Add New Entry without Asking)

              DESCRIPTION:      After a diagnosis is selected, additional "modifying" or "qualifying" information can be entered by
                                the user.  These are referred to as either "modifiers" or "qualifiers", and these are placed in the 
                                QUALIFIER STRING multiple.  
                                 
                                Note:  When entering diagnosis, usually, a list of qualifiers is displayed for user selection. 
                                User responses are recorded in the Diagnostic Results - Mental Health (#627.8) file.  However, at
                                times qualifiers are used to provide information to the users - only.  For example, after selecting
                                some diagnosis the user will see a message stating "Also code 046.1 Creutzfeldt-Jakob Disease on
                                Axis III".  After the display of message, no user response is requested; diagnosis entry continues.  


627.701,.01     QUALIFIER STRING       0;1 POINTER TO DSM MODIFIERS FILE (#627.9) (Multiply asked)

                INPUT TRANSFORM:  S DINUM=X
                LAST EDITED:      AUG 24, 1994 
                DESCRIPTION:      This field holds the list of qualifiers used for each diagnosis.  (See the field description of
                                  field 60 for a complete explanation.) 

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

                CROSS-REFERENCE:  627.701^B 
                                  1)= S ^YSD(627.7,DA(1),"Q","B",$E(X,1,30),DA)=""
                                  2)= K ^YSD(627.7,DA(1),"Q","B",$E(X,1,30),DA)





      FILES POINTED TO                      FIELDS

DSM MODIFIERS (#627.9)            QUALIFIER STRING:QUALIFIER STRING (#.01)



INPUT TEMPLATE(S):

PRINT TEMPLATE(S):

SORT TEMPLATE(S):

FORM(S)/BLOCK(S):