SDES2 GET NEXT CLINIC SLOT (5195)    REMOTE PROCEDURE (8994)

Name Value
NAME SDES2 GET NEXT CLINIC SLOT
TAG GETNEXTSLOT
ROUTINE SDES2GETNEXTSLOT
RETURN VALUE TYPE ARRAY
AVAILABILITY RESTRICTED
INACTIVE ACTIVE
APP PROXY ALLOWED Yes
DESCRIPTION
This RPC will provide the next available clinic slot time for each 
clinic sent in.
 
Can only be invoked by Acheron
INPUT PARAMETER
  • SDCONTEXT
    PARAMETER TYPE:   LIST
    MAXIMUM DATA LENGTH:   32000
    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.
     
    
  • SDINPUT
    PARAMETER TYPE:   LIST
    MAXIMUM DATA LENGTH:   32000
    REQUIRED:   YES
    SEQUENCE NUMBER:   2
    DESCRIPTION:   
    The list of clinic IENs to search for first availability:
      SDINPUT("SEARCH LIMIT")=90 (optional) If not passed will default to each
                              clinic's MAX # DAYS FOR FUTURE BOOKING (#2002) 
                              field from the HOSPITAL LOCATION (#44) file.
     
      SDINPUT("CLINIC IEN",1)=6061 (required)
      SDINPUT("CLINIC IEN",2)=6000 (optional)
      SDINPUT("CLINIC IEN",3)=6012 (optional)
     
     
    How many days into the future to search for first availability:
     
    
RETURN PARAMETER DESCRIPTION
Standard Return Object:
         "beginDateTime": "2026-04-10T08:00-0400",
         "clinicIEN": 6061,
         "endDateTime": "2026-04-10T08:30-0400",
         "hasAvailability": 1
      },
      {
         "clinicIEN": 6000,
         "hasAvailability": 0
      },
      {
 
         "beginDateTime": "2026-04-13T08:00-0400",
         "clinicIEN": 6012,
         "endDateTime": "2026-04-13T08:30-0400",
         "hasAvailability": 1
      }
   ]
}
 
 
General Error Return Object:
{
 
{
   "Error": [
      "Missing ACHERON AUDIT ID."
   ],
   "nextAvailableTimeSlot": ""
}
   "Error": [
      "ClinicIEN 1234567: Invalid Clinic ID.",
      "ClinicIEN 5643: Invalid Clinic Resource ID."
   ],
   "nextAvailableTimeSlot": [
      {