STANDARD DATA DICTIONARY #790.9 -- WV PREGNANCY/LACTATION STATUS CONFLICT EVENTS FILE                             6/27/25    PAGE 1
STORED IN ^WV(790.9,  *** NO DATA STORED YET ***   SITE: WWW.BMIRWIN.COM   UCI: VISTA,VISTA                        (VERSION 1.0)   

DATA          NAME                  GLOBAL        DATA
ELEMENT       TITLE                 LOCATION      TYPE
-----------------------------------------------------------------------------------------------------------------------------------
The pregnancy and lactation status of a patient are stored in up to four different locations within VistA: the women's health
package (data was obtained verbally from the patient), the laboratory package (a pregnancy test was resulted), the patient care
encounter (PCE) package (a diagnosis or procedure code was recorded that indicates the patient's pregnancy or lactation status) and
the registration package (a diagnosis or procedure code was recorded that indicates the patient's pregnancy or lactation status).
To ensure that all four packages are in agreement as to the patient's current pregnancy or lactation status, the laboratory, PCE
and registration packages are monitored for changes. When a conflict is identified, a Computerized Patient Record System (CPRS)
notification is generated that when processed, allows the recipient to update the appropriate status in the women's health package.
This file stores the events that triggered that status conflict notification.  



   APPLICATION GROUP(S): WV
IDENTIFIED BY: PATIENT (#2), STATUS TYPE (#3)

CROSS
REFERENCED BY: DATE/TIME OCCURRED(B)

INDEXED BY:    PATIENT & STATUS TYPE (AC), PATIENT & DATE OF INTEREST & CODING SYSTEM & CODE (C)


    LAST MODIFIED: DEC 7,2021@15:11:18

790.9,.01     DATE/TIME OCCURRED     0;1 DATE (Required)

              INPUT TRANSFORM:  S %DT="ESTXR" D ^%DT S X=Y K:X<1 X
              LAST EDITED:      OCT 08, 2019 
              HELP-PROMPT:      Enter the date and time of the event that caused the status conflict. 
              DESCRIPTION:
                                This field stores the date and time the event occurred.  

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


790.9,2       PATIENT                0;2 POINTER TO PATIENT FILE (#2)

              INPUT TRANSFORM:  I +X>0,$P($G(^DPT(X,0)),U,2)'="F" K X D EN^DDIOL("Patient is not female.")
              LAST EDITED:      DEC 03, 2020 
              HELP-PROMPT:      Select the female patient associated with this event. 
              DESCRIPTION:
                                This field stores the patient associated with the event.  

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

              RECORD INDEXES:   AC (#1594), C (#1595)

790.9,3       STATUS TYPE            0;3 SET

                                'P' FOR PREGNANCY; 
                                'L' FOR LACTATION; 
              LAST EDITED:      DEC 03, 2020 
              HELP-PROMPT:      Select the type of status associated with this event. 
              DESCRIPTION:
                                This field stores the type of status associated with the event.  

              RECORD INDEXES:   AC (#1594)

790.9,4       CODING SYSTEM          0;4 FREE TEXT

              INPUT TRANSFORM:  K:$L(X)>7!($L(X)<3) X
              MAXIMUM LENGTH:   7
              LAST EDITED:      OCT 08, 2019 
              HELP-PROMPT:      Enter the coding system from which the code that generated this event comes from, 3-7 characters in 
                                length. 
              DESCRIPTION:
                                This is the coding system that contains the code that generated this event.  

              RECORD INDEXES:   C (#1595)

790.9,5       CODE                   0;5 FREE TEXT

              INPUT TRANSFORM:  K:$L(X)>40!($L(X)<1) X
              MAXIMUM LENGTH:   40
              LAST EDITED:      OCT 08, 2019 
              HELP-PROMPT:      Enter the code that generated this event, 1-40 characters in length. 
              DESCRIPTION:
                                This is the code that generated this event.  

              RECORD INDEXES:   C (#1595)

790.9,6       DATE OF INTEREST       0;6 DATE

              INPUT TRANSFORM:  S %DT="E" D ^%DT S X=Y K:X<1 X
              LAST EDITED:      OCT 08, 2019 
              HELP-PROMPT:      Enter the date that should be used when resolving the CODING SYSTEM and CODE field values. 
              DESCRIPTION:      This is the date used to resolve the CODING SYSTEM (#4) and CODE (#5) fields, irrespective of code
                                set versions.  

              RECORD INDEXES:   C (#1595)

790.9,10      DESCRIPTION            1;0   WORD-PROCESSING #790.9001   (IGNORE "|")

              DESCRIPTION:      This field stores the text that is displayed to the user who processes the status conflict
                                notification. This text is a description of the data that is in conflict (for example, the name of
                                the pregnancy test, the date it was resulted on and the result of the test).  


                LAST EDITED:      JUN 12, 2017 
                HELP-PROMPT:      Describe the event that caused the  status conflict, such as details about the laboratory test or 
                                  encounter code. 
                DESCRIPTION:      This field stores the text that is displayed to the user who processes the status conflict
                                  notification. This text is a description of the data that is in conflict (for example, the name
                                  of the pregnancy test, the date it was resulted on and the result of the test).  





      FILES POINTED TO                      FIELDS

PATIENT (#2)                      PATIENT (#2)


File #790.9

  Record Indexes:

  AC (#1594)    RECORD    REGULAR    IR    SORTING ONLY
      Short Descr:  Sort events by patient and status type.
      Description:  This index enables retrieval of all events associated with a specific status type for a specific patient.  
        Set Logic:  S ^WV(790.9,"AC",X(1),X(2),DA)=""
       Kill Logic:  K ^WV(790.9,"AC",X(1),X(2),DA)
       Whole Kill:  K ^WV(790.9,"AC")
             X(1):  PATIENT  (790.9,2)  (Subscr 1)  (forwards)
             X(2):  STATUS TYPE  (790.9,3)  (Subscr 2)  (forwards)

  C (#1595)    RECORD    REGULAR    IR    LOOKUP & SORTING
      Short Descr:  This index identifies the codes recorded for each patient.
      Description:  This index sorts the events in this file by patient, then by coding system and then by code. It is used to
                    ensure that only one code is recorded per patient.  
        Set Logic:  S ^WV(790.9,"C",X(1),$E(X(2),1,7),$E(X(3),1,7),$E(X(4),1,40),DA)=""
       Kill Logic:  K ^WV(790.9,"C",X(1),$E(X(2),1,7),$E(X(3),1,7),$E(X(4),1,40),DA)
       Whole Kill:  K ^WV(790.9,"C")
             X(1):  PATIENT  (790.9,2)  (Subscr 1)  (forwards)
             X(2):  DATE OF INTEREST  (790.9,6)  (Subscr 2)  (forwards)
                      Transform (Storage):  S X=$P(X,".")
             X(3):  CODING SYSTEM  (790.9,4)  (Subscr 3)  (Len 7)  (forwards)
             X(4):  CODE  (790.9,5)  (Subscr 4)  (Len 40)  (forwards)


INPUT TEMPLATE(S):

PRINT TEMPLATE(S):

SORT TEMPLATE(S):

FORM(S)/BLOCK(S):