SDEC FAPPTGET

TITLEVALUE
NAMESDEC FAPPTGET
DESCRIPTIONGet Future appointments for a given patient and date range from the
APPOINTMENT multiple of the PATIENT file 2.
TAGFAPPTGET
ROUTINESDEC
INPUT PARAMETERSSEQUENCE NUMBER1
INPUT PARAMETERDFN
DESCRIPTIONPatient ID - Pointer to the PATIENT file 2.
PARAMETER TYPELITERAL
REQUIREDYES
MAXIMUM DATA LENGTH

INPUT PARAMETERSSEQUENCE NUMBER2
INPUT PARAMETERSDBEG
DESCRIPTIONBegin of date range to search for appointments in external format.
PARAMETER TYPELITERAL
REQUIREDNO
MAXIMUM DATA LENGTH

INPUT PARAMETERSSEQUENCE NUMBER3
INPUT PARAMETERSDEND
DESCRIPTIONEnd of date range to serch for appointments in external format.
PARAMETER TYPELITERAL
REQUIREDNO
MAXIMUM DATA LENGTH

INPUT PARAMETERSSEQUENCE NUMBER4
INPUT PARAMETERSDANC
DESCRIPTIONancillary flag 0=all appointments; 1=only ancillary appointments
PARAMETER TYPELITERAL
REQUIREDNO
MAXIMUM DATA LENGTH

RETURN VALUE TYPEGLOBAL ARRAY
RETURN PARAMETER DESCRIPTIONSuccessful Return:
Global Array in which each array entry contains Appointment Data from
the
PATIENT file

Data is separated by ^:
1. DFN
2. Clinic IEN
3. Clinic Name
4. Appointment Date in external format
5. Status text
6. Ancillary Text
7. APPT REQUEST TYPE Field (#22) from the
SDEC APPOINTMENT File (#409.84)
8. Appointment request IEN
9. Appointment type IEN
10. Appointment type Name
11. Cancel/noshow date
12. Pre-registration Date

"T00020DFN^T00020CLINIC_IEN^T00030CLINIC_NAME^T00020APPT_DATE^T00020STATUS
^T00100ANCTXT^^T00030PRECKNCOMPLETE^T00030TIMEZONE"
^T00030CANDATE"

Caught Exception Return:
A single entry in the Global Array in the format "-1^"
"T00020RETURNCODE^T00100TEXT"
Unexpected Exception Return:
Handled by the RPC Broker.
M errors are trapped by the use of M and Kernel error handling.
The RPC execution stops and the RPC Broker sends the error generated
text back to the client.
AVAILABILITYRESTRICTED
INACTIVEACTIVE
CLIENT MANAGER
WORD WRAP ONFALSE
VERSION
SUPPRESS RDV USER SETUP
APP PROXY ALLOWEDYes