SDES2 CANCEL APPOINTMENT (4995)    REMOTE PROCEDURE (8994)

Name Value
NAME SDES2 CANCEL APPOINTMENT
TAG CANCELAPPT
ROUTINE SDES2CANCELAPPT
RETURN VALUE TYPE ARRAY
INACTIVE ACTIVE
CLIENT MANAGER YES
APP PROXY ALLOWED Yes
DESCRIPTION
 This RPC will cancel an appointment from the SDEC APPOINTMENT (409.84)
 file, the PATIENT (#2) file, and the HOSPITAL LOCATION (#44) file.
INPUT PARAMETER
  • SDCONTEXT
    PARAMETER TYPE:   LIST
    REQUIRED:   YES
    SEQUENCE NUMBER:   1
    DESCRIPTION:   
       SDCONTEXT("ACHERON AUDIT ID") = 40 character unique ID number.
       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.
                                     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.
      
    
  • PARAMS
    PARAMETER TYPE:   LIST
    REQUIRED:   YES
    SEQUENCE NUMBER:   2
    DESCRIPTION:   
    REQUIRED PARAMETERS:
       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
       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
     
    
RETURN PARAMETER DESCRIPTION
  Successful Cancellation:
   
  Unsuccessful Cancellation:
 
  {
     "Error":[
        "{error message.}"
     ],
     "Appointment":[
        ""
     ]
   
  }
  {
     "Appointment":
        {
           "Cancelled":{Appointment IEN} 
        }
  }