VAFH PIVOT PURGE (7997)    OPTION (19)

View in ViViaN Menu
Name Value
NAME VAFH PIVOT PURGE
MENU TEXT Purge PIMS HL7 PIVOT file
UPPERCASE MENU TEXT PURGE PIMS HL7 PIVOT FILE
ROUTINE EN^VAFHPURG
DESCRIPTION
This option will purge all entries from the PIMS HL7 PIVOT file 
in file #391.71 when the VAFH PIVOT PURGE option is run.
  
For example, if the site updates this field with a value of 100, then
any record with a date earlier than TODAY-100 days will be deleted
during the purge.  If the site does not update this field (i.e., the
field value remains null), then the VAFH PIVOT PURGE option will use
a default value of 547 days (approximately 18 months).
   
However, before any file #391.71 record is deleted two checks will
be performed on the record.  (1) If the internal entry number of the
(#391.71) that are older than a specific number of days as determined
record exists in the "AXMIT" cross-reference, it will not be deleted.
(2) If the TYPE OF EVENT field (#.04) of the record is "1" (i.e.,
INPATIENT EVENTS) and if the PATIENT MOVEMENT file (#405) does not
reflect a discharge for the admission, the file #391.71 record will
not be deleted.
by the site.  There is no user input required.
  
A field in the MAS PARAMETERS file (#43) is used in conjunction with
this option.  The name of the field is PIVOT FILE DAYS TO RETAIN and
the field number is 391.702.  The field may be updated with a numeric
value between 30 and 999 using the Enter/Edit option of VA FileMan.  
This value represents the number of days worth of data to retain 
CREATOR USER,ONE
TYPE run routine