STANDARD DATA DICTIONARY #790.8 -- WV DATA NEEDING REVIEW FILE                                                    3/24/25    PAGE 1
STORED IN ^WV(790.8,  *** NO DATA STORED YET ***   SITE: WWW.BMIRWIN.COM   UCI: VISTA,VISTA                        (VERSION 1.0)   

DATA          NAME                  GLOBAL        DATA
ELEMENT       TITLE                 LOCATION      TYPE
-----------------------------------------------------------------------------------------------------------------------------------
Data stored in the PREGNANCY STATUSES and LACTATION STATUSES multiple fields in the WV PATIENT file are associated with an entry in
the VISIT file and an entry in the TIU DOCUMENT file. Since a user can reassign and retract documents, the data associated with
reassigned or retracted documents may no longer be valid for the patient, thus prompting a review of the patient's chart. This file
stores data that will assist case managers and/or maternity care coordinators in that review.  
 
The WV ACT ON DOCUMENT ACTION protocol (which is executed by the TIU DOCUMENT ACTION EVENT protocol) populates this file with data.
The Edit Pregnancy/Lactation Status Data [WV EDIT PREG/LAC STATUS DATA] option consumes data in this file.  


              DD ACCESS: @
              RD ACCESS: @
              WR ACCESS: @
             DEL ACCESS: @
           LAYGO ACCESS: @
           AUDIT ACCESS: @
IDENTIFIED BY: LOCATION OF DATA (#4)

CROSS
REFERENCED BY: VISIT(AC), VISIT(AVSIT), PATIENT(B)

INDEXED BY:    NEW VISIT (C), PATIENT & VISIT & LOCATION OF DATA (D), PATIENT & TIU DOCUMENT & LOCATION OF DATA (E)


    LAST MODIFIED: JUN 24,2020@12:13:59

790.8,.01     PATIENT                0;1 POINTER TO WV PATIENT FILE (#790) (Required)

              LAST EDITED:      JUN 12, 2017 
              HELP-PROMPT:      Select the patient whose pregnancy or lactation status data needs a review. 
              DESCRIPTION:      This field stores which patient has pregnancy or lactation status data that the case manager or
                                maternity care coordinator needs to review.  

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

              RECORD INDEXES:   D (#1592), E (#1593)

790.8,2       VISIT                  0;2 POINTER TO VISIT FILE (#9000010)

              INPUT TRANSFORM:  S DIC("S")="I $P($G(^(0)),U,5)=$P($G(^WV(790.8,DA,0)),U)" D ^DIC K DIC S DIC=$G(DIE),X=+Y K:Y<0 X
              LAST EDITED:      JUN 12, 2017 
              HELP-PROMPT:      Select the visit associated with the pregnancy or lactation status data needing review. 
              DESCRIPTION:      This field points to the visit that is associated with the pregnancy or lactation status data
                                needing review.  

              SCREEN:           S DIC("S")="I $P($G(^(0)),U,5)=$P($G(^WV(790.8,DA,0)),U)"
              EXPLANATION:      Only visits associated with the patient in the .01 field are selectable.
              CROSS-REFERENCE:  790.8^AC^MUMPS 
                                1)= D:$D(^AUPNVSIT(+X)) ADD^AUPNVSIT
                                2)= D:$D(^AUPNVSIT(+X)) SUB^AUPNVSIT
                                NOREINDEX)= 1
                                This cross-reference maintains the dependent entry count in the VISIT file (#9000010).  


              CROSS-REFERENCE:  790.8^AVSIT 
                                1)= S ^WV(790.8,"AVSIT",$E(X,1,30),DA)=""
                                2)= K ^WV(790.8,"AVSIT",$E(X,1,30),DA)
                                This is the standard cross-reference set for the Visit Tracking application. It allows that
                                application to identify entries that point to the VISIT file.  


              RECORD INDEXES:   D (#1592)

790.8,3       TIU DOCUMENT           0;3 POINTER TO TIU DOCUMENT FILE (#8925)

              INPUT TRANSFORM:  S DIC("S")="I $P($G(^AUPNPAT($P($G(^TIU(8925,+Y,0)),U,2),0)),U)=$P($G(^WV(790.8,DA,0)),U)" D ^DIC K
                                 DIC S DIC=$G(DIE),X=+Y K:Y<0 X
              LAST EDITED:      JUN 12, 2017 
              HELP-PROMPT:      Select the document associated with the pregnancy or lactation status data needing review. 
              DESCRIPTION:      This field points to the document that is associated with the pregnancy or lactation status data
                                needing review.  

              SCREEN:           S DIC("S")="I $P($G(^AUPNPAT($P($G(^TIU(8925,+Y,0)),U,2),0)),U)=$P($G(^WV(790.8,DA,0)),U)"
              EXPLANATION:      Only documents associated with the patient in the .01 field are selectable.
              RECORD INDEXES:   E (#1593)

790.8,4       LOCATION OF DATA       0;4 SET

                                '4' FOR PREGNANCY STATUSES; 
                                '5' FOR LACTATION STATUSES; 
              LAST EDITED:      JAN 17, 2017 
              HELP-PROMPT:      Select the field name in the WV PATIENT file (#790) that contains the data needing review. 
              DESCRIPTION:
                                This field stores the node in the WV PATIENT file (#790) that contains the data needing review.  

              RECORD INDEXES:   D (#1592), E (#1593)

790.8,10      ACTIVITIES             1;0 DATE Multiple #790.801

              DESCRIPTION:
                                This field stores all of the activities associated with the patient and visit.  


790.801,.01     ACTIVITY DATE/TIME     0;1 DATE

                INPUT TRANSFORM:  S %DT="ESTXR" D ^%DT S X=Y K:X<1 X
                LAST EDITED:      JUL 31, 2015 
                HELP-PROMPT:      Enter the date and time the activity occurred. 
                DESCRIPTION:
                                  This field stores the date and time the activity causing the need for data review occurred.  

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


790.801,2       ACTIVITY SOURCE        0;2 FREE TEXT

                INPUT TRANSFORM:  K:$L(X)>100!($L(X)<1) X
                MAXIMUM LENGTH:   100
                LAST EDITED:      MAY 09, 2017 
                HELP-PROMPT:      Enter the name of the object on which the activity occurred, 1-100 characters in length. 
                DESCRIPTION:
                                  This field stores the object on which the activity occurred.  

                TECHNICAL DESCR:  When the source is a TIU document, this field is formatted as: 
                                    DOCUMENT TITLE (X) 
                                   where X is the Internal Entry Number (IEN) in the TIU DOCUMENT file (#8925).  


790.801,3       ACTIVITY               0;3 SET

                                  'R' FOR REASSIGN; 
                                  'D' FOR DELETE; 
                LAST EDITED:      MAY 09, 2017 
                HELP-PROMPT:      Select the activity that occurred. 
                DESCRIPTION:
                                  This field stores the activity that occurred.  


790.801,4       ROOT ACTIVITY          0;4 SET

                                  '1' FOR YES; 
                LAST EDITED:      MAY 09, 2017 
                HELP-PROMPT:      Enter YES if this activity is directly related to the original visit containing the data. 
                DESCRIPTION:      This field denotes whether the activity is directly related to the original visit (field #1 in
                                  file #790.8) containing the data.  

                CROSS-REFERENCE:  790.801^AC 
                                  1)= S ^WV(790.8,DA(1),1,"AC",$E(X,1,30),DA)=""
                                  2)= K ^WV(790.8,DA(1),1,"AC",$E(X,1,30),DA)
                                  This index is used to identify all of the activities that are directly related to the original
                                  visit (field #1 in file #790.8) containing the data.  



790.801,11      NEW PATIENT            1;1 POINTER TO WV PATIENT FILE (#790)

                LAST EDITED:      JUN 12, 2017 
                HELP-PROMPT:      For the reassign activity, select the patient to which data may need to be moved to. 
                DESCRIPTION:
                                  This field contains the patient to which data may need to be moved to.  

                TECHNICAL DESCR:
                                  This field is only populated when the ACTIVITY field is set to REASSIGN.  


790.801,12      NEW VISIT              1;2 POINTER TO VISIT FILE (#9000010)

                INPUT TRANSFORM:S DIC("S")="I $P($G(^(0)),U,5)=$S($G(DG(""1;1""))>0:DG(""1;1""),1:$P($G(^WV(790.8,DA(1),1,DA,1)),U)
                                )" D ^DIC K DIC S DIC=$G(DIE),X=+Y K:Y<0 X
                LAST EDITED:    JUL 31, 2015 
                HELP-PROMPT:    Select the visit to which data may need to be moved to. 
                DESCRIPTION:
                                This field points to the visit that data may need to be moved to.  

                SCREEN:         S DIC("S")="I $P($G(^(0)),U,5)=$S($G(DG(""1;1""))>0:DG(""1;1""),1:$P($G(^WV(790.8,DA(1),1,DA,1)),U)
                                )"
                EXPLANATION:    Only visits associated with the NEW PATIENT are selectable.
                FIELD INDEX:    C (#1591)    REGULAR    IR    LOOKUP & SORTING    WHOLE FILE (#790.8)
                  Short Descr:  Allows lookup by NEW VISIT value.
                  Description:  This index allows entry lookup when given the NEW VISIT field value.  
                    Set Logic:  S ^WV(790.8,"C",X,DA(1),DA)=""
                   Kill Logic:  K ^WV(790.8,"C",X,DA(1),DA)
                   Whole Kill:  K ^WV(790.8,"C")
                         X(1):  NEW VISIT  (790.801,12)  (Subscr 1)  (forwards)


790.801,20      NEXT ACTIVITIES      2;0 Multiple #790.802

                DESCRIPTION:    This field stores the internal entry numbers (IENs) of the activities associated with a visit in
                                the order they occurred.  


790.802,.01       NEXT ACTIVITY        0;1 NUMBER

                  INPUT TRANSFORM:K:'$D(^WV(790.8,DA(2),1,X,0)) X
                  LAST EDITED:    JUN 12, 2017 
                  HELP-PROMPT:    Enter the internal entry number of the activity that occurred after this activity. 
                  DESCRIPTION:    This field stores the internal entry number (IEN) of the activity that occurred after this
                                  activity. In situations when data is not reviewed in a timely manner, it is possible that data
                                  may have moved again to another patient. The reviewer needs to know the complete movement path to
                                  ensure that all patients' records are accurate.  

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

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







      FILES POINTED TO                      FIELDS

TIU DOCUMENT (#8925)              TIU DOCUMENT (#3)

VISIT (#9000010)                  VISIT (#2)
                                  ACTIVITIES:NEW VISIT (#12)

WV PATIENT (#790)                 PATIENT (#.01)
                                  ACTIVITIES:NEW PATIENT (#11)


File #790.8

  Record Indexes:

  D (#1592)    RECORD    REGULAR    IR    LOOKUP & SORTING
      Short Descr:  Lookup by VISIT.
      Description:  This cross-reference allows the user to lookup records given a patient, a VISIT reference and the LOCATION OF
                    DATA.  
        Set Logic:  S ^WV(790.8,"D",X(1),X(2),X(3),DA)=""
       Kill Logic:  K ^WV(790.8,"D",X(1),X(2),X(3),DA)
       Whole Kill:  K ^WV(790.8,"D")
             X(1):  PATIENT  (790.8,.01)  (Subscr 1)  (forwards)
             X(2):  VISIT  (790.8,2)  (Subscr 2)  (forwards)
             X(3):  LOCATION OF DATA  (790.8,4)  (Subscr 3)  (forwards)

  E (#1593)    RECORD    REGULAR    IR    LOOKUP & SORTING
      Short Descr:  Lookup by TIU DOCUMENT.
      Description:  This cross-reference allows the user to lookup records given a patient, a TIU DOCUMENT reference and the
                    LOCATION OF DATA.  
        Set Logic:  S ^WV(790.8,"E",X(1),X(2),X(3),DA)=""
       Kill Logic:  K ^WV(790.8,"E",X(1),X(2),X(3),DA)
       Whole Kill:  K ^WV(790.8,"E")
             X(1):  PATIENT  (790.8,.01)  (Subscr 1)  (forwards)
             X(2):  TIU DOCUMENT  (790.8,3)  (Subscr 2)  (forwards)
             X(3):  LOCATION OF DATA  (790.8,4)  (Subscr 3)  (forwards)


INPUT TEMPLATE(S):

PRINT TEMPLATE(S):

SORT TEMPLATE(S):

FORM(S)/BLOCK(S):