VIAA GET EMPLOYEE DATA

TITLEVALUE
NAMEVIAA GET EMPLOYEE DATA
DESCRIPTIONExtract Employee (New Person) Data
TAGRTLSNP
ROUTINEVIAANPR
INPUT PARAMETERSSEQUENCE NUMBER1
INPUT PARAMETERREQDATA
DESCRIPTION"SSN" defines DATAID as a Social Security Number
"NAME" defines DATAID as a Name or Partial Name
PARAMETER TYPELITERAL
REQUIREDYES
MAXIMUM DATA LENGTH255

INPUT PARAMETERSSEQUENCE NUMBER2
INPUT PARAMETERDATAID
DESCRIPTIONSSN if REQDATA="SSN"
NAME/PARTIAL NAME if REQDATA="NAME"
PARAMETER TYPELITERAL
REQUIREDYES
MAXIMUM DATA LENGTH255

RETURN VALUE TYPEARRAY
RETURN PARAMETER DESCRIPTIONFor a successful call execution, the output for the client will be placed
in ^TMP(x,$J,n) Where x='VIAAIEN' for an Internal Entry Number call or
x='VIAANAME' for an Employee Name call. n=An incremental count of the
records returned. The value is returned via the variable RETSTA; it will
consist of the following fields from the New Person File #200 using '^'
a delimiter:

IEN
NAME
DIVISION
SEX
DOB
TITLE
SERVICE/SECTION

If an error occurs during call execution, a message will be returned to
the client using the following format in ^TMP:

^TMP(x,$J,0)='-###^reason_for_failure', where '###' is a 3-digit http
status code. The piece 'reason_for_failure' explains what caused the error
in VistA.
Where x='VIAAIEN' for an Internal Entry Number call or x='VIAANAME' for an
Employee Name call.
an Employee Name call.
AVAILABILITYRESTRICTED
INACTIVE
CLIENT MANAGER
WORD WRAP ONTRUE
VERSION
SUPPRESS RDV USER SETUP
APP PROXY ALLOWEDYes