SDES2 CANCEL APPOINTMENT

TITLEVALUE
NAMESDES2 CANCEL APPOINTMENT
DESCRIPTION This RPC will cancel an appointment from the SDEC APPOINTMENT (409.84)
file, the PATIENT (#2) file, and the HOSPITAL LOCATION (#44) file.

Can only be invoked by Acheron
TAGCANCELAPPT
ROUTINESDES2CANCELAPPT
INPUT PARAMETERSSEQUENCE NUMBER1
INPUT PARAMETERSDCONTEXT
DESCRIPTION SDCONTEXT("ACHERON AUDIT ID") = 40 character unique ID number.
Ex: 11d9dcc6-c6a2-4785-8031-8261576fca37

SDCONTEXT("USER DUZ") = The DUZ of the user taking action on the
calling application.

SDCONTEXT("USER SECID") = The Security ID of the user taking action on
the calling application.

SDCONTEXT("PATIENT DFN") = The DFN of the Veteran/user taking action on
the calling application.

SDCONTEXT("PATIENT ICN") = The ICN of the Veteran/user taking action
on the calling application.
PARAMETER TYPELIST
REQUIREDYES
MAXIMUM DATA LENGTH

INPUT PARAMETERSSEQUENCE NUMBER2
INPUT PARAMETERPARAMS
DESCRIPTIONREQUIRED PARAMETERS:

PARAMS("APPT IEN") - IEN of SDEC APPOINTMENT (#409.84) file record
to be cancelled (req)

PARAMS("CLINIC IEN") - Pointer to the HOSPITAL LOCATION (#44) file

PARAMS("DFN") - Pointer to the PATIENT (#2) file

PARAMS("CANCELLED BY") - Appt Cancelled By: "C" - Cancelled By Clinic,
"PC" - Cancelled By Patient

PARAMS("CANCEL REASON") - Cancellation Reason Name in the CANCELLATION
REASON (#409.2) file

OPTIONAL PARAMETERS:

PARAMS("NOTE") - Comments related to the cancellation

PARAMS("CANCEL HASH") - List of cancellation comment hash tags

PARAMS("NEW PID") - New/edited PID passed in when cancelling an
appointment by patient
PARAMETER TYPELIST
REQUIREDYES
MAXIMUM DATA LENGTH

RETURN VALUE TYPEARRAY
RETURN PARAMETER DESCRIPTION Successful Cancellation:

{
"Appointment":
{
"Cancelled":{Appointment IEN}
}
}


Unsuccessful Cancellation:

{
"Error":[
"{error message.}"
],
"Appointment":[
""
]
}
AVAILABILITYRESTRICTED
INACTIVEACTIVE
CLIENT MANAGERYES
WORD WRAP ON
VERSION
SUPPRESS RDV USER SETUP
APP PROXY ALLOWEDYes