STANDARD DATA DICTIONARY #798.9 -- ROR LAB SEARCH FILE                                                            3/24/25    PAGE 1
STORED IN ^ROR(798.9,  (3 ENTRIES)   SITE: WWW.BMIRWIN.COM   UCI: VISTA,VISTA                                      (VERSION 1.5)   

DATA          NAME                  GLOBAL        DATA
ELEMENT       TITLE                 LOCATION      TYPE
-----------------------------------------------------------------------------------------------------------------------------------
Lab search criteria are stored in this file. These criteria are referenced by the selection rules and used in the search for Lab
results.  
 
It is possible but not recommended to use the same criterion for several different registries.  
 
Records of the file are uniquely identified by the criterion name. The "A" primary key and the "B" uniqueness index are used for
this purpose.  


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

SECONDARY KEY:      A (#24)
  Uniqueness Index: B (#162)
       File, Field: 1) NAME (798.9,.01)

CROSS
REFERENCED BY: LOINC CODE(ALN), NLT CODE(ANLT)

INDEXED BY:    NAME (B)




798.9,.01     NAME                   0;1 FREE TEXT (Required) (Key field)

              INPUT TRANSFORM:  Q:$$VAEDT^RORDD(798.9,$G(DA))  K:$L(X)>30!($L(X)<3) X
              LAST EDITED:      JUL 20, 2001 
              HELP-PROMPT:      Enter a unique name spaced criterion name (3-30 characters). 
              DESCRIPTION:      YOU MUST NOT EDIT THIS FIELD IF IT IS PART OF A NATIONAL REGISTRY DEFINITION! 
                                 
                                The criterion name must be unique and name spaced.  The names that are used for National Registries 
                                must start with "VA".  

              DELETE TEST:      1,0)= I $$VADEL^RORDD(798.9,$G(DA))

              DELETE AUTHORITY: @
              WRITE AUTHORITY:  @
              NOTES:            XXXX--CAN'T BE ALTERED EXCEPT BY PROGRAMMER

              FIELD INDEX:      B (#162)    REGULAR    IR    LOOKUP & SORTING
                   Unique for:  Key A (#24), File #798.9
                  Short Descr:  Uniqueness Index for the "A" Key of File #798.9
                    Set Logic:  S ^ROR(798.9,"B",X,DA)=""
                   Kill Logic:  K ^ROR(798.9,"B",X,DA)
                   Whole Kill:  K ^ROR(798.9,"B")
                         X(1):  NAME  (798.9,.01)  (Subscr 1)


798.9,.09     NATIONAL               0;3 SET

                                '0' FOR NO; 
                                '1' FOR YES; 
              INPUT TRANSFORM:  Q:$$VAEDT^RORDD(798.9,,-1)
              LAST EDITED:      NOV 19, 2001 
              DESCRIPTION:      ONLY AUTHORIZED NATIONAL REGISTRY DEVELOPERS CAN EDIT THIS FIELD! 
                                 
                                The national registries must have this field set to "YES". This prevents local editing of other 
                                fields of national registry definitions.  

              DELETE TEST:      1,0)= I $$VADEL^RORDD(798.9,,-1)

              DELETE AUTHORITY: @
              WRITE AUTHORITY:  @
              NOTES:            XXXX--CAN'T BE ALTERED EXCEPT BY PROGRAMMER


798.9,1       STATUS                 0;2 SET

                                '0' FOR ACTIVE; 
                                '1' FOR INACTIVE; 
              LAST EDITED:      OCT 16, 2001 
              DESCRIPTION:
                                Select the "INACTIVE" code if you want to disable the criterion temporarily.  


798.9,2       LAB TEST               1;0 Multiple #798.92

              DESCRIPTION:      This multiple contains a list of the Lab search indicators used by the registry update process.  
                                 
                                If at least one of the indicators is evaluated as True, the macro referencing the search criterion 
                                will be evaluated as True as well.  
                                 
                                This multiple can contain several records for the same Lab test.  

              WRITE AUTHORITY:  @

798.92,.01      LOINC CODE             0;1 NUMBER (Multiply asked)

                INPUT TRANSFORM:  K:+X'=X!(X>9999999)!(X<0)!(X?.E1"."1N.N) X
                LAST EDITED:      NOV 19, 2001 
                HELP-PROMPT:      Enter the LOINC code without a control digit. 
                DESCRIPTION:
                                  Enter the numeric LOINC code (without the check digit) of the Lab result to be searched for. 

                TECHNICAL DESCR:
                                  If you want to use only NLT code, enter zero as the value of this field.  

                DELETE AUTHORITY: @
                WRITE AUTHORITY:  @
                CROSS-REFERENCE:  798.92^B 
                                  1)= S ^ROR(798.9,DA(1),1,"B",$E(X,1,30),DA)=""
                                  2)= K ^ROR(798.9,DA(1),1,"B",$E(X,1,30),DA)
                                  3)= Do not delete!

                CROSS-REFERENCE:  798.9^ALN 
                                  1)= S ^ROR(798.9,"ALN",$E(X,1,30),DA(1),DA)=""
                                  2)= K ^ROR(798.9,"ALN",$E(X,1,30),DA(1),DA)
                                  3)= Do not delete!
                                  This cross-reference can be used to find all criteria that look for Lab results with the 
                                  specified LOINC code.  



798.92,.02      NLT CODE               0;2 FREE TEXT

                INPUT TRANSFORM:  K:'(X?5N1"."4.5N) X
                LAST EDITED:      NOV 19, 2001 
                HELP-PROMPT:      Enter the NLT code (NNNNN.MMMM[M]). 
                DESCRIPTION:      Enter the NLT code of the Lab result to be searched for. Both LOINC and NLT codes (if available)
                                  are used for searching the Lab results.  If you want to use only the LOINC code, leave this field
                                  empty.  

                DELETE AUTHORITY: @
                WRITE AUTHORITY:  @
                CROSS-REFERENCE:  798.9^ANLT 
                                  1)= S ^ROR(798.9,"ANLT",$E(X,1,30),DA(1),DA)=""
                                  2)= K ^ROR(798.9,"ANLT",$E(X,1,30),DA(1),DA)
                                  3)= Do not delete!
                                  This cross-reference can be used to find all criteria that look for Lab results with the 
                                  specified NLT code.  



798.92,1        INDICATOR              0;3 SET (Required)

                                  '0' FOR Ignore; 
                                  '1' FOR Use Reference Range; 
                                  '2' FOR Contains; 
                                  '3' FOR Greater Than; 
                                  '4' FOR Less Than; 
                                  '5' FOR Equal To; 
                                  '6' FOR Positive Result; 
                LAST EDITED:      OCT 06, 2003 
                DESCRIPTION:      The value of this field indicates the comparison operation applied to the Lab result. The Lab 
                                  result is compared to the value of the INDICATED VALUE field. 
                                   
                                  NOTE: All string comparisons are case-insensitive.  
                                   
                                  For example, if the internal value of this field is equal to 3 ("Greater Than") and the value of 
                                  the INDICATED VALUE field is 5, then this indicator will be evaluated as True for all numeric Lab
                                  results values greater than 5.  
                                   
                                  The "Contains" indicator checks if the indicated value is contained in the Lab result value.  
                                   
                                  The only exceptions are the "Use Reference Range" indicator, which checks if the result value is 
                                  outside of the reference range defined for the Lab test, and the "Positive Result".  
                                   
                                  The "Positive Result" indicator selects a test result if the value 
                                   
                                    * is equal to "P" 
                                   
                                      or 
                                   
                                    * contains "POS", "DETEC" or "REA" and 
                                      does not contain "NEG", "NO" or "IND".  
                                   
                                  For example, the "POSITIVE", "POS", "REACT", and "DETECTABLE" values will be picked up. At the
                                  same time, the "NON-REACT", "INDETERMINATE", and "NEG" values will be skipped.  

                DELETE AUTHORITY: @
                WRITE AUTHORITY:  @

798.92,2        INDICATED VALUE        0;4 FREE TEXT

                INPUT TRANSFORM:  K:$L(X)>30!($L(X)<1) X
                LAST EDITED:      JUN 21, 2001 
                HELP-PROMPT:      Answer must be 1-30 characters in length. 
                DESCRIPTION:      This field holds the value that the Lab results are compared to (except the "Use Reference Range" 
                                  and Positive Result indicators).  

                DELETE AUTHORITY: @
                WRITE AUTHORITY:  @




INPUT TEMPLATE(S):
RORMNT EDIT LAB SEARCH        MAR 05, 2002@10:20  USER #0    

PRINT TEMPLATE(S):

SORT TEMPLATE(S):

FORM(S)/BLOCK(S):