SDES2 GET CLINIC AVAIL BY SVC (5038)    REMOTE PROCEDURE (8994)

Name Value
NAME SDES2 GET CLINIC AVAIL BY SVC
TAG CLINICAVAIL
ROUTINE SDES2GETCLINAVL
RETURN VALUE TYPE GLOBAL ARRAY
AVAILABILITY RESTRICTED
WORD WRAP ON FALSE
APP PROXY ALLOWED Yes
DESCRIPTION
This RPC returns clinic availability given station number, start/end 
dates, and primary/secondary AMIS code(s).
INPUT PARAMETER
  • SDCONTEXT
    PARAMETER TYPE:   LIST
    REQUIRED:   YES
    SEQUENCE NUMBER:   1
    DESCRIPTION:   
    SDCONTEXT("ACHERON AUDIT ID")
    SDCONTEXT("PATIENT ICN")
     - The ICN of the target patient from the calling application.
     - Up to 40 Character unique ID number. 
     - Ex: 11d9dcc6-c6a2-4785-8031-8261576fca37
    SDCONTEXT("USER DUZ")
     - The DUZ of the user taking action in the calling application.
    SDCONTEXT("USER SECID")
     - The SECID of the user taking action in the calling application.
    SDCONTEXT("PATIENT DFN")
     - The DFN/IEN of the target patient from the calling application.
    
  • SDINPUT
    PARAMETER TYPE:   LIST
    REQUIRED:   YES
    SEQUENCE NUMBER:   2
    DESCRIPTION:   
     
    SDINPUT("PRIMARY AMIS")=PRIMARY AMIS CODE
    SDINPUT("CREDIT AMIS",CREDIT AMIS CODE)=""  - can have multiple credit 
    AMIS codes
    SDINPUT("START DATE")=START DATE
    SDINPUT("END DATE")=ENDDATE
    SDINPUT("NUMBER RETURNED")=NUMBER OF AVAILABLE SLOTS TO RETURN
                               1-500, defaults to 500
    SDINPUT("STATION")=STATION NUMBER FOR LOCATION
    
RETURN PARAMETER DESCRIPTION
 
   "ClinicTimeZone": "CHAMORRO",
   "Provider": [
    {
     "DefaultProvider": 0,
     "ProviderId": 520641089,
     "ProviderName": "TEST,PROVIDER R"
    },
    {
     "DefaultProvider": 1,
     "ProviderId": 520638595,
{
     "ProviderName": "TEST,PROVIDER E"
    }
   ],
   "Visn": 21
  }
 ]
}
 "ClinicAvailability": [
  {
   "AppointmentEnd": "2024-05-24T08:30-0400",
   "AppointmentStart": "2024-05-24T08:00-0400",
   "AvailableSlots": 3,
   "ClinicID": 5263,
   "ClinicName": "TEST CLINIC 12",