STANDARD DATA DICTIONARY #409.86 -- SDEC CONTACT FILE                                                             3/24/25    PAGE 1
STORED IN ^SDEC(409.86,  *** NO DATA STORED YET ***   SITE: WWW.BMIRWIN.COM   UCI: VISTA,VISTA                     (VERSION 5.3)   

DATA          NAME                  GLOBAL        DATA
ELEMENT       TITLE                 LOCATION      TYPE
-----------------------------------------------------------------------------------------------------------------------------------
This file is used by the VSE VS GUI. The file contains patient contact information regarding appointment follow up each time a
patient is contacted. This file should not be edited using Fileman, the file is updated using the VSE VS GUI.  


              DD ACCESS: @
              RD ACCESS: @
              WR ACCESS: @
             DEL ACCESS: @
           LAYGO ACCESS: @
           AUDIT ACCESS: @
IDENTIFIED BY: CLINIC (#1), REQUEST TYPE (#2.1)[R]
       "W1.1": S %I=Y,Y=$S('$D(^(0)):"",$D(^DIC(40.7,+$P(^(0),U,6),0))#2:$P(^(0),U,1),1:""),C=$P(^DD(40.7,.01,0),U,2) D Y^DIQ:Y]"" 
               W "   ",Y,@("$E("_DIC_"%I,0),0)") S Y=%I K %I
         "W2": W "   ",$$NAKED^DIUTL("$$DATE^DIUTL($P(^(0),U,3))")

CROSS
REFERENCED BY: PATIENT(B)

INDEXED BY:    DATE/TIME ENTERED & USER ENTERED CONTACT (AD), SDEC REQUEST POINTER (REQPTR), SDEC REQUEST POINTER (SRP)


    LAST MODIFIED: MAR 14,2023@09:48:50

409.86,.01    PATIENT                0;1 POINTER TO PATIENT FILE (#2) (Required)

              LAST EDITED:      APR 17, 2017 
              HELP-PROMPT:      Please enter current Patient! 
              DESCRIPTION:
                                This is the Patient for this contact.  

              TECHNICAL DESCR:
                                Pointer to the Patient(#2) file.  

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


409.86,1      CLINIC                 0;2 POINTER TO HOSPITAL LOCATION FILE (#44)

              LAST EDITED:      MAY 02, 2017 
              HELP-PROMPT:      Please enter contact clinic! 
              DESCRIPTION:
                                This is the Clinic for this contact.  

              TECHNICAL DESCR:
                                Pointer to the Hospital Location(#44) file.  


409.86,1.1    SERVICE                0;6 POINTER TO CLINIC STOP FILE (#40.7)

              LAST EDITED:      JUN 11, 2017 
              HELP-PROMPT:      Please enter Service for this contact. 
              DESCRIPTION:
                                This is the Service for this contact.  

              TECHNICAL DESCR:
                                Pointer to the CLINIC STOP(#40.7) file.  


409.86,2      PREFERRED DATE         0;3 DATE

              INPUT TRANSFORM:  S %DT="EX" D ^%DT S X=Y K:Y<1 X
              LAST EDITED:      JUN 11, 2017 
              HELP-PROMPT:      Please enter Preferred Date of appointment. 
              DESCRIPTION:
                                This is the Preferred Date of Appointment for this contact.  

              TECHNICAL DESCR:
                                This date field contains the Preferred Date of Appointment for this contact.  


409.86,2.1    REQUEST TYPE           0;4 SET (Required)

                                'A' FOR APPOINTMENT; 
                                'C' FOR CONSULT; 
                                'R' FOR RECALL; 
                                'V' FOR VETERAN; 
                                'M' FOR MOBILE; 
                                'P' FOR PROCEDURE; 
                                'E' FOR EWL; 
                                'W' FOR W2VA; 
                                'RTC' FOR RETURN TO CLINIC; 
              LAST EDITED:      JUN 12, 2017 
              HELP-PROMPT:      Select the Request Type for this contact! 
              DESCRIPTION:
                                This is the Request Type of this contact.  

              TECHNICAL DESCR:
                                Contact Request Type is a set of codes.  


409.86,2.2    MAIN SEQUENCE          0;5 NUMBER

              INPUT TRANSFORM:  K:+X'=X!(X>99)!(X<0)!(X?.E1"."1N.N) X
              LAST EDITED:      APR 29, 2017 
              HELP-PROMPT:      Type a number between 0 and 99, 0 decimal digits. 
              DESCRIPTION:
                                The Main Sequence field keeps track of the number of contacts.  

              TECHNICAL DESCR:
                                The Main Sequence is a numeric field that tracks the number contact of attempts.  


409.86,2.3    SDEC REQUEST POINTER   0;7          VARIABLE POINTER

              FILE  ORDER  PREFIX    LAYGO  MESSAGE
            409.85    1    A            n   Pointer to #409.85. 
                 123  2    C            n   Pointer to file #123 
             403.5    3    R            n   Pointer to #403.5. 
                                         
              LAST EDITED:      DEC 06, 2022 
              HELP-PROMPT:      Enter the request related to this contact attempt. 
              DESCRIPTION:      This is a variable pointer entry to one of the following files: SDEC APPT REQUEST (#409.85),
                                CONSULT (#123) or RECALL REMINDERS (#403.5).  

              TECHNICAL DESCR:
                                This is a system generated pointer noting the entry and file where the original request originated.  

              FIELD INDEX:      REQPTR (#1020)    REGULAR    IR    LOOKUP & SORTING
                  Short Descr:  This indexes the appointment request with the contact.
                  Description:  This index links the variable pointer appointment request with the contact IEN.  
                    Set Logic:  S ^SDEC(409.86,"REQPTR",X,DA)=""
                   Kill Logic:  K ^SDEC(409.86,"REQPTR",X,DA)
                   Whole Kill:  K ^SDEC(409.86,"REQPTR")
                         X(1):  SDEC REQUEST POINTER  (409.86,2.3)  (Subscr 1)  (forwards)

              FIELD INDEX:      SRP (#1708)    REGULAR    IR    LOOKUP & SORTING
                  Short Descr:  Indexed by Request Pointer IEN and IEN of #409.86 entry.
                  Description:  The SRP x-ref will be utilized by RPCs to expedite the lookup of the corresponding request pointer
                                IEN. The request pointer IEN will be in one of the three files currently defined in the SDEC
                                REQUEST POINTER (#2.3) field, which is a variable pointer.  
                    Set Logic:  S ^SDEC(409.86,"SRP",$E(X,1,30),DA)=""
                   Kill Logic:  K ^SDEC(409.86,"SRP",$E(X,1,30),DA)
                   Whole Kill:  K ^SDEC(409.86,"SRP")
                         X(1):  SDEC REQUEST POINTER  (409.86,2.3)  (Subscr 1)  (Len 30)  (forwards)
                                  Lookup Prompt:  SDEC REQUEST POINTER
                                  Transform (Storage):  S X=+X
                                  Transform (Display):   


409.86,3      DATE/TIME of CONTACT   1;0 DATE Multiple #409.863

              DESCRIPTION:
                                This is the DATE/TIME multiple of the contact.  

              TECHNICAL DESCR:
                                DATE/TIME of CONTACT multiple tracks the number of contacts for this patient.  


409.863,.01     DATE/TIME of CONTACT   0;1 DATE (Required) (Multiply asked)

                INPUT TRANSFORM:  S %DT="ETXR" D ^%DT S X=Y K:Y<1 X
                LAST EDITED:      MAY 01, 2017 
                HELP-PROMPT:      Please enter DATE/TIME of CONTACT. 
                DESCRIPTION:
                                  This is the Date/Time of contact for this patient.  

                TECHNICAL DESCR:
                                  This is a date/time field used to record the date/time a contact is entered.  

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


409.863,1       CONTACT TYPE           1;1 SET

                                  'C' FOR CALL; 
                                  'L' FOR LETTER; 
                                  'E' FOR EMAIL; 
                                  'T' FOR TEXT; 
                                  'S' FOR SECURE MESSAGING; 
                LAST EDITED:      FEB 17, 2022 
                HELP-PROMPT:      Select Contact Type! 
                DESCRIPTION:
                                  This field Contact Type is how the patient is contacted.  

                TECHNICAL DESCR:
                                  This field Contact Type is a set of codes of how a patient is contacted.  


409.863,2       COMMENTS               1;2 FREE TEXT

                INPUT TRANSFORM:  K:$L(X)>80!($L(X)<1) X
                MAXIMUM LENGTH:   80
                LAST EDITED:      JUN 11, 2017 
                HELP-PROMPT:      Answer must be 1-80 characters in length. 
                DESCRIPTION:
                                  This is any comments associated with this contact.  

                TECHNICAL DESCR:
                                  This is a Free Text field used to enter comments for this contact. 


409.863,3       LEFT MESSAGE           1;3 SET

                                  '0' FOR NO; 
                                  '1' FOR YES; 
                LAST EDITED:      JUN 12, 2017 
                HELP-PROMPT:      Enter 'YES' if patient was left a message, else enter 'NO'. 
                DESCRIPTION:
                                  This field is if the patient was left a message.  

                TECHNICAL DESCR:
                                  The Left Message field is a set of codes.  


409.863,4       SEQUENCE               1;4 NUMBER (Required)

                INPUT TRANSFORM:  K:+X'=X!(X>99)!(X<1)!(X?.E1"."1N.N) X
                LAST EDITED:      APR 17, 2017 
                HELP-PROMPT:      Type a number between 1 and 99, 0 decimal digits. 
                DESCRIPTION:
                                  This is the Sequence of this contact.  

                TECHNICAL DESCR:
                                  This field sequence is a numeric field.  


409.863,5       USER ENTERED CONTACT   1;5 POINTER TO NEW PERSON FILE (#200)

                LAST EDITED:      JUN 11, 2017 
                HELP-PROMPT:      Enter user who entered the contact! 
                DESCRIPTION:
                                  This is the user who entered the contact.  

                TECHNICAL DESCR:
                                  The User Entered Contact field is a pointer to file NEW PERSON(#200).  

                RECORD INDEXES:   AD (#1560) (WHOLE FILE #409.86)

409.863,6       DATE/TIME ENTERED      1;6 DATE

                INPUT TRANSFORM:  S %DT="ETX" D ^%DT S X=Y K:Y<1 X
                LAST EDITED:      JUN 12, 2017 
                HELP-PROMPT:      Enter date/time contact was entered. 
                DESCRIPTION:
                                  This is the date/time the contact was entered.  

                TECHNICAL DESCR:
                                  This is a date/time field for when the contact was entered.  

                RECORD INDEXES:   AD (#1560) (WHOLE FILE #409.86)




      FILES POINTED TO                      FIELDS

CLINIC STOP (#40.7)               SERVICE (#1.1)

HOSPITAL LOCATION (#44)           CLINIC (#1)

NEW PERSON (#200)                 DATE/TIME of CONTACT:USER ENTERED CONTACT (#5)

PATIENT (#2)                      PATIENT (#.01)

RECALL REMINDERS (#403.5)         SDEC REQUEST POINTER (#2.3)

REQUEST/CONSULTATION (#123)       SDEC REQUEST POINTER (#2.3)

SDEC APPT REQUEST (#409.85)       SDEC REQUEST POINTER (#2.3)


Subfile #409.863

  Record Indexes:

  AD (#1560)    RECORD    REGULAR    IR    SORTING ONLY    WHOLE FILE (#409.86)
      Short Descr:  Date/user entered cross-reference
      Description:  Cross-reference by date/time entered and user entered.  Used by audit statistics compiler (SDECAUD).  
        Set Logic:  S ^SDEC(409.86,"AD",X(1),X(2),DA(1),DA)=""
       Kill Logic:  K ^SDEC(409.86,"AD",X(1),X(2),DA(1),DA)
       Whole Kill:  K ^SDEC(409.86,"AD")
             X(1):  DATE/TIME ENTERED  (409.863,6)  (Subscr 1)  (forwards)
             X(2):  USER ENTERED CONTACT  (409.863,5)  (Subscr 2)  (forwards)


INPUT TEMPLATE(S):

PRINT TEMPLATE(S):

SORT TEMPLATE(S):

FORM(S)/BLOCK(S):