STANDARD DATA DICTIONARY #860.2 -- ORDER CHECK RULE FILE                                                          3/24/25    PAGE 1
STORED IN ^OCXS(860.2,  (73 ENTRIES)   SITE: WWW.BMIRWIN.COM   UCI: VISTA,VISTA                                    (VERSION 3.0)   

DATA          NAME                  GLOBAL        DATA
ELEMENT       TITLE                 LOCATION      TYPE
-----------------------------------------------------------------------------------------------------------------------------------
 
   This file holds the rules that determine the conditions necessary 
 for a notification or some other action to be performed. Rules consist 
 of a set of Conditional Elements and a set of Element relationship 
 expressions. When an element is found to be TRUE for a patient, it 
 is compared to the other TRUE elements for the patient by evaluating 
 all the Element relation expressions that contain it. If an 
 expression is found to be TRUE then all of the actions defined for 
 that relation are performed.  
 


IDENTIFIED BY: STATUS (#.02)

POINTED TO BY: RULE field (#.01) of the RULE sub-field (#860.121) of the SCHEDULED EVENT sub-field (#860.12) of the ORDER CHECK 
                   PATIENT ACTIVE DATA File (#860.1) 
               RULE field (#.01) of the RULE EVENT sub-field (#860.71) of the ORDER CHECK PATIENT RULE EVENT File (#860.7) 
               

CROSS
REFERENCED BY: ELEMENT NAME(ATELM), NAME(B)



860.2,.01     NAME                   0;1 FREE TEXT (Required)

              INPUT TRANSFORM:  K:$L(X)>100!($L(X)<3)!'(X'?1P.E) X
              LAST EDITED:      MAY 03, 1995 
              HELP-PROMPT:      Answer must be 3-100 characters in length. 
              CROSS-REFERENCE:  860.2^B 
                                1)= S ^OCXS(860.2,"B",$E(X,1,100),DA)=""
                                2)= K ^OCXS(860.2,"B",$E(X,1,100),DA)


860.2,.02     STATUS                 INACT;1 SET

                                '0' FOR ACTIVE; 
                                '1' FOR INACTIVE; 
              LAST EDITED:      JUN 14, 1995 

860.2,1       TRUTH ELEMENTS         C;0 Multiple #860.21

              LAST EDITED:      JAN 11, 1996 
              DESCRIPTION:       
                                  This is the list of elements used by this rule.  
                                 


860.21,.01      LABEL                  0;1 FREE TEXT (Required) (Multiply asked)

                INPUT TRANSFORM:  K:$L(X)>30!($L(X)<1) X
                LAST EDITED:      JAN 12, 1996 
                HELP-PROMPT:      Answer must be 1-30 characters in length. 
                CROSS-REFERENCE:  860.21^B 
                                  1)= S ^OCXS(860.2,DA(1),"C","B",$E(X,1,30),DA)=""
                                  2)= K ^OCXS(860.2,DA(1),"C","B",$E(X,1,30),DA)


860.21,.02      TYPE                   0;3 SET

                                  '0' FOR SIMPLE DEFINITION; 
                                  '1' FOR COMPLEX DEFINITION; 
                LAST EDITED:      JAN 12, 1996 

860.21,1        ELEMENT NAME           0;2 POINTER TO ORDER CHECK ELEMENT FILE (#860.3)

                LAST EDITED:      JUN 10, 1996 
                DESCRIPTION:       
                                    A shorthand label for this element used in the relation 
                                   expressions of this rule.  
                                   
                                    This keeps the length of each relation expression down to 
                                   a manageable size.  
                                   

                CROSS-REFERENCE:  860.21^C 
                                  1)= S ^OCXS(860.2,DA(1),"C","C",$E(X,1,30),DA)=""
                                  2)= K ^OCXS(860.2,DA(1),"C","C",$E(X,1,30),DA)

                CROSS-REFERENCE:  860.2^ATELM 
                                  1)= S ^OCXS(860.2,"ATELM",$E(X,1,30),DA(1),DA)=""
                                  2)= K ^OCXS(860.2,"ATELM",$E(X,1,30),DA(1),DA)


860.21,2        ELEMENT EXPRESSION     EXP;E1,200 FREE TEXT

                INPUT TRANSFORM:  K:$L(X)>200!($L(X)<1) X
                LAST EDITED:      FEB 09, 1996 
                HELP-PROMPT:      Answer must be 1-200 characters in length. 



860.2,2       RELATION ACTIONS       R;0 Multiple #860.22

              LAST EDITED:      MAY 24, 1995 
              DESCRIPTION:       
                                  This is a list of boolean expressions that define 
                                 how the elements for this rule are related and what 
                                 to do when different combinations of elements occur.  
                                 

              IDENTIFIED BY:    RELATION EXPRESSION(#1)

860.22,.01      RELATION INDEX         0;1 NUMBER (Multiply asked)

                INPUT TRANSFORM:  K:+X'=X!(X>999)!(X<1)!(X?.E1"."1N.N) X
                LAST EDITED:      NOV 07, 1994 
                HELP-PROMPT:      Type a Number between 1 and 999, 0 Decimal Digits 
                CROSS-REFERENCE:  860.22^B 
                                  1)= S ^OCXS(860.2,DA(1),"R","B",$E(X,1,30),DA)=""
                                  2)= K ^OCXS(860.2,DA(1),"R","B",$E(X,1,30),DA)


860.22,1        RELATION EXPRESSION    E;E1,200 FREE TEXT

                    
                INPUT TRANSFORM:  K:$L(X)>200!($L(X)<1) X
                LAST EDITED:      NOV 07, 1994 
                HELP-PROMPT:      Answer must be 1-200 characters in length. 
                DESCRIPTION:       
                                     This is a boolean expression that is essentially an 
                                   IF argument. Use Element labels (defined above) for 
                                   boolean variable names, and 'OR', 'AND', and 'NOT' for 
                                   boolean operators. You can also use any combination and 
                                   number of parenthesis to control the operator precedence, 
                                   Otherwise the precedence is from left to right.  
                                   


860.22,2        ORDER CHECK            0;2 POINTER TO ORDER CHECKS FILE (#100.8)

                LAST EDITED:      AUG 25, 1997 
                DESCRIPTION:       
                                    Check this field YES if the user is to get a message on 
                                   his screen when this relation is evaluated TRUE.  
                                   


860.22,3        NOTIFICATION           0;3 POINTER TO OE/RR NOTIFICATIONS FILE (#100.9)

                LAST EDITED:      MAY 17, 1995 
                DESCRIPTION:       
                                     This points to the notification in the notification system 
                                   that will be sent when this relation is evaluated TRUE.  


860.22,4        REPORT DEVICE          0;4 POINTER TO DEVICE FILE (#3.5)

                LAST EDITED:      MAY 17, 1995 
                DESCRIPTION:       
                                     This is not working yet, but will print the Order 
                                   check message to an alternate device (bulletin, host file, 
                                   printer, etc.).  


860.22,5        NOTIFICATION MESSAGE   MSG;E1,240 FREE TEXT

                INPUT TRANSFORM:  K:$L(X)>240!($L(X)<1) X
                LAST EDITED:      JUL 31, 1995 
                HELP-PROMPT:      Answer must be 1-240 characters in length. 

860.22,6        ORDER CHECK MESSAGE    OCMSG;E1,240 FREE TEXT

                INPUT TRANSFORM:  K:$L(X)>240!($L(X)<1) X
                LAST EDITED:      JUL 31, 1995 
                HELP-PROMPT:      Answer must be 1-240 characters in length. 

860.22,7        SCHEDULE ACTION        RULE;1 SET

                                  'START' FOR START SCHEDULED CHECKS; 
                                  'CONTINUE' FOR CONTINUE SCHEDULED CHECKS; 
                LAST EDITED:      JAN 07, 1997 
                DESCRIPTION:       
                                     This field determines if this relation will cause the rule 
                                   to be placed in or removed from the schedule of timed order checks.  
                                   


860.22,8        SCHEDULE FREQUENCY     RULE;2 FREE TEXT

                INPUT TRANSFORM:  K:$L(X)>80!($L(X)<1) X
                LAST EDITED:      DEC 12, 1996 
                HELP-PROMPT:      Answer must be 1-80 characters in length. 
                DESCRIPTION:       
                                     This field describes how often the rule should be evaluated.  
                                   
                                     Its format is generally: (Start Time) (operator) (Offset) 
                                   
                                      Where Start time is a constant like: TODAY or NOW 
                                                     or a data field like: |DATE OF LAST FLU SHOT| 
                                   
                                      Operator is either + or - 
                                   
                                      and Offset is: 
                                   
                                                1H = 1 Hour 
                                               20D = 20 days 
                                                3W = 3  weeks 
                                                6M = 6  months 
                                   


860.22,9        EXECUTE CODE           MCODE;E1,240 FREE TEXT

                INPUT TRANSFORM:  K:($L(X)>240)!($L(X)<1)!($$INVALID^OCXOED06(X)) X
                LAST EDITED:      NOV 20, 2001 
                HELP-PROMPT:      Answer must be 1-240 characters in length, and be valid Mumps code. 
                DESCRIPTION:       
                                    This field is used to define Mumps code that is executed after the expert system determines
                                  that a rule has been triggered, but before the Notification system is called.  
                                   
                                    This adds another level of flexibility to the expert system if a rule needs further processing
                                  to refine a recipient list or specialized checking to determine if the current notification
                                  should be sent, or if previous duplicate notifications should be removed.  
                                   
                                    This field also provides a hook for other modes of notifying users of a triggered rule, if
                                  needed.  
                                   

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





      FILES POINTED TO                      FIELDS

DEVICE (#3.5)                     RELATION ACTIONS:REPORT DEVICE (#4)

OE/RR NOTIFICATIONS (#100.9)      RELATION ACTIONS:NOTIFICATION (#3)

ORDER CHECK ELEMENT (#860.3)      TRUTH ELEMENTS:ELEMENT NAME (#1)

ORDER CHECKS (#100.8)             RELATION ACTIONS:ORDER CHECK (#2)



INPUT TEMPLATE(S):

PRINT TEMPLATE(S):

SORT TEMPLATE(S):

FORM(S)/BLOCK(S):