XUS MVI NEW PERSON RMTE AUDIT

TITLEVALUE
NAMEXUS MVI NEW PERSON RMTE AUDIT
DESCRIPTIONThis restricted RPC is used exclusively by the Master Veteran Index (MVI)
to return audit data from the AUDIT (#1.1) file at a facility for a
specific user's record in the NEW PERSON (#200) file.
TAGAUDIT
ROUTINEXURNPAUD
INPUT PARAMETERSSEQUENCE NUMBER1
INPUT PARAMETERPARAM
DESCRIPTION Required input:
--------------
PARAM("SourceSystemID") = Facility Station Number
PARAM("SourceID") = Source ID (DUZ)

Optional input:
--------------
PARAM("IDTYPE") = Source ID Type (e.g., "PN")
PARAM("ASSIGNAUTH") = Assigning Authority (e.g., "USDVA")
PARAM("BegDate") = The earliest recorded date of the audit records to
return. Must contain a year, month, and day.
(Defaults to the date of the first audit record.)

PARAM("EndDate") = The latest recorded date of the audit records to
return. Must contain a year, month, and day.
(Defaults to the date of the last audit record.)
PARAMETER TYPELIST
REQUIREDYES
MAXIMUM DATA LENGTH

RETURN VALUE TYPEGLOBAL ARRAY
RETURN PARAMETER DESCRIPTION First Line
----------
The first line returned contains basic information, including the data
that was passed to the remote procedure:

@Return@(0) = 1^^^
^^^
^

where,

= The Facility Station Number passed in
PARAM("SourceSystemID").
= The Source ID passed in PARAM("SourceID").
= The Source ID Type if passed in PARAM("IDTYPE").
= The Assigning Authority if passed in
PARAM("ASSIGNAUTH").
= The earliest recorded date passed in
PARAM("BegDate") in yyyymmdd format.
= The latest recorded date passed in
PARAM("EndDate") in yyyymmdd format.

Subsequent lines
----------------
Each subsequent line contains data from one of the Audit records that
fall within the specified date range:

@Return@(n) = ^
^^
^^
^^

where,

= The Date and Time the Audit was recorded, in
FileMan external format MMM DD, YYYY@hh:mm:ss
e.g., MAR 03, 2021@14:25:30
= The name of the field that was changed.
= The name of the user that made the change.
= The DUZ of the user that made the change.
= The old value of the field before the change.
If there was no old value, " value>" is returned.
= The new value of the field after the change.
If there was no new value, "" is
returned.
= The name of the Option in the Kernel menu
system that was used to change the data (if
any).
= The name of the Protocol or the protocol-type
Option that was used (if any).

Error
-----
If there was some problem with the input parameters or in obtaining the
audit data, a single line is returned in the following format:

@Return@(0) = -1^

where,

= An error message, such as:

SourceSystemID: Facility Station Number is required
SourceID: Source ID is required
BegDate: Beginning Date is not a valid date
EndDate: Ending Date is not a valid date
AVAILABILITYAGREEMENT
INACTIVE
CLIENT MANAGER
WORD WRAP ONTRUE
VERSION1
SUPPRESS RDV USER SETUP
APP PROXY ALLOWEDYes