STANDARD DATA DICTIONARY #26.21 -- PRF HL7 EVENT FILE                                                             3/24/25    PAGE 1
STORED IN ^DGPF(26.21,  *** NO DATA STORED YET ***   SITE: WWW.BMIRWIN.COM   UCI: VISTA,VISTA                      (VERSION 5.3)   

DATA          NAME                  GLOBAL        DATA
ELEMENT       TITLE                 LOCATION      TYPE
-----------------------------------------------------------------------------------------------------------------------------------
This file tracks patients that need to have one or more of their treating facilities checked for existing Patient Record Flag
assignments.  



POINTED TO BY: EVENT field (#.02) of the PRF HL7 QUERY LOG File (#26.19) 
               

CROSS
REFERENCED BY: PATIENT(B)

INDEXED BY:    CURRENT STATUS (ASTAT)




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

              LAST EDITED:      APR 01, 2005 
              HELP-PROMPT:      Enter the patient that requires a PRF query. 
              DESCRIPTION:
                                This field contains the patient associated with a Patient Record Flags query trigger.  

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


26.21,.02     INITIAL TIMESTAMP      0;2 DATE (Required)

              INPUT TRANSFORM:  S %DT="ESTXR" D ^%DT S X=Y K:Y<1 X
              LAST EDITED:      JUN 09, 2005 
              HELP-PROMPT:      Enter the date and time of the event trigger. 
              DESCRIPTION:
                                This field contains the date and time when the PRF event trigger fired.  


26.21,.03     CURRENT STATUS         0;3 SET (Required)

                                'C' FOR COMPLETE; 
                                'I' FOR INCOMPLETE; 
                                'E' FOR ERROR; 
              LAST EDITED:      JUN 29, 2005 
              HELP-PROMPT:      Enter C for COMPLETE, I for INCOMPLETE, or E for ERROR. 
              DESCRIPTION:      This field contains the current status of the Patient Record Flags HL7 query process.  An
                                INCOMPLETE status indicates that the HL7 query has either not been transmitted or that the query
                                was NAK'ed by all receiving sites.  A COMPLETE status indicates that the HL7 query has run
                                successfully to at least one of the patient's treating facilities or that the local facility is the
                                patient's only treating facility.  An ERROR status indicates that the maximum number of HL7 query
                                attempts has been reached without a successful result.  

              FIELD INDEX:      ASTAT (#692)    REGULAR    IR    SORTING ONLY
                  Short Descr:  Index records with INCOMPLETE and ERROR status
                    Set Logic:  S ^DGPF(26.21,"ASTAT",X,DA)=""
                     Set Cond:  S X=X2(1)="I"!(X2(1)="E")
                   Kill Logic:  K ^DGPF(26.21,"ASTAT",X,DA)
                   Whole Kill:  K ^DGPF(26.21,"ASTAT")
                         X(1):  CURRENT STATUS  (26.21,.03)  (Subscr 1)  (forwards)



      FILES POINTED TO                      FIELDS

PATIENT (#2)                      PATIENT (#.01)



INPUT TEMPLATE(S):

PRINT TEMPLATE(S):

SORT TEMPLATE(S):

FORM(S)/BLOCK(S):