DSIR ADD NONCOMP PAT

TITLEVALUE
NAMEDSIR ADD NONCOMP PAT
DESCRIPTIONRoutine for adding or updating an non-computerized patient for ROI.
TAGADDNCPR
ROUTINEDSIROI0
INPUT PARAMETERSSEQUENCE NUMBER1
INPUT PARAMETERNAME
DESCRIPTIONThis is the patient name.
PARAMETER TYPELITERAL
REQUIREDYES
MAXIMUM DATA LENGTH30

INPUT PARAMETERSSEQUENCE NUMBER2
INPUT PARAMETERSSN
DESCRIPTIONThis is the patient Social Security Number
PARAMETER TYPELITERAL
REQUIREDNO
MAXIMUM DATA LENGTH11

INPUT PARAMETERSSEQUENCE NUMBER3
INPUT PARAMETERDOB
DESCRIPTIONThis is the date of birth used for unique identification.
patient file and the dsir noncomputerized record patient file.
PARAMETER TYPELITERAL
REQUIREDNO
MAXIMUM DATA LENGTH7

INPUT PARAMETERSSEQUENCE NUMBER4
INPUT PARAMETEROVRD
DESCRIPTIONThis is a flag (0 or 1) to override/bypass the lookups into xrefs. If
true the RPC will laygo into file 19620.96 without checking for
duplicates.
PARAMETER TYPELITERAL
REQUIREDNO
MAXIMUM DATA LENGTH1

INPUT PARAMETERSSEQUENCE NUMBER5
INPUT PARAMETERNCPIEN
DESCRIPTIONThis is the desired IEN. If this exists then it is an update not an add.
PARAMETER TYPELITERAL
REQUIREDNO
MAXIMUM DATA LENGTH99

RETURN VALUE TYPEARRAY
RETURN PARAMETER DESCRIPTIONReturn values may be one of the following:

-1^Error text
or
1^NNNN;DSIR(19620.96,^NAME,PATIENT
Where NNNN is the IEN in 19620.96
SSN exists in patient file #2.

0^NNNN;DSIR(19620.96,^NAME,PATIENT^FileMan Birth Date
This is returned if the SSN exists in file 19620.96, the calling
program must determine if this is the same name entered.

1^NNNN;DSIR(19620.96,^NAME,PATIENT
This is returned upon completion of a new entry being created or
updated.

-3^Unable to create record! or -3^Unable to update record!
Unknown reason why entry in file 19620.96 was unsuccessful.

-4^Unable to update, record not on file!
Return This is returned if an IEN is passed that does not exist.

-5^Unable to update, SSN 123456789 already on non-registered file!
This is returned if a SSN is passed that already exists on19620.96.
AVAILABILITY
INACTIVE
CLIENT MANAGER
WORD WRAP ON
VERSION
SUPPRESS RDV USER SETUP
APP PROXY ALLOWED