SDES2 GET APPTS CLINIEN LIST (4988)    REMOTE PROCEDURE (8994)

Name Value
NAME SDES2 GET APPTS CLINIEN LIST
TAG APPTBYCLNLIST
ROUTINE SDES2APPTCLNLST
RETURN VALUE TYPE ARRAY
AVAILABILITY RESTRICTED
VERSION 1
APP PROXY ALLOWED Yes
DESCRIPTION
Accepts input array of clinic IENs and returns appointments for today.
Today is defined by the clinic's time zone.
INPUT PARAMETER
  • SDCONTEXT
    PARAMETER TYPE:   LIST
    MAXIMUM DATA LENGTH:   32000
    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.
    
  • SDPARAM
    PARAMETER TYPE:   LIST
    MAXIMUM DATA LENGTH:   32000
    REQUIRED:   YES
    SEQUENCE NUMBER:   2
    DESCRIPTION:   
    Note: one SDPARAM("CLINIC IEN",1) is required additional clinics can be
    specified but are optional.
     
    SDPARAM("CLINIC IEN",1)=IEN1   The clinic IEN from HOSPITAL LOCATION 
    (#44) 
                                   to list appointments (required)
    SDPARAM("CLINIC IEN",2)=IEN2   (optional)
    SDPARAM("CLINIC IEN",3)=IEN3   (optional)
    
RETURN PARAMETER DESCRIPTION
Lists the entire Appt Object(wrapper logic from all 3 files #409.84#2#44)
       "AppointmentDateTime": "2023-02-24T08:00-0500",
        "EnrollmentDate": "",
        "FugitiveFelonFlag": "NO",
        "Gender": "FEMALE",
        "ICN": "4420062172V859025",
        "NeedInsuranceVerification": 1,
        "LocalFlag": [
         ""
        ],
        "Name": "GEORGE,TEST",
        "NationalFlag": [
       "AppointmentIEN": 295747,
         ""
        ],
        "RegistrationEditDate": "",
        "SSN": 9812,
        "SensitiveRecord": 0,
        "Street": "923 SMITHY STREET"
       },
   "PatientComments": "",    
   "PreCheckinAllowed": "", 
   "PriorXRayResults": "",
       "AppointmentType": "CLASS II DENTAL",
       "Provider": {
        "ID": 520658009,
        "Name": "BRICKEY,MARISSA L",
        "SecId": ""
       },
       "PurposeOfVisit": "SCHEDULED VISIT",
       "RealAppointment": 1,
       "Request": 249331,
       "RequestType": "APPT",
       "Resource": {
       "AppointmentTypeIEN": 2,
        "ClinicIEN": 4118,
        "Name": "CHY ACUTE CARE 3"
       },
       "ResourceIEN": 2410,
       "RoutingSlipPrintDate": "",
       "RoutingSlipPrinted": "",
       "SchedulerName": "",
       "SchedulingApplication": "",
       "SchedulingRequestType": "OTHER THAN 'NEXT AVA.' (CLINICIAN REQ.)",
       "SpecialSurveyDisposition": "",
       "AppointmentTypeSubCategory": "",
       "StartTimeFM": 3230224.08,
       "Status": "NO ACTION TAKEN/TODAY",
       "StatusCancelDateTime": "",
       "VVSApptID": "",
       "VeteranVideoCallURL": "",
       "Walkin": "",
       "WardLocation": "",
       "XRAY": "",
       "XrayDateTime": ""
      }
       "AutoRebookedApptDateTime": "",
     ],
     "IEN": 4118,
     "Station": 442
    },
    {
     "Appt": "",
     "IEN": 5367,
     "Station": 442
    }
   ]
       "CancelDateTime": "",
  }
 }
       "CancellationReason": "",
       "CancellationRemarks": "",
       "CancelledByUser": [
for each Appointment in that Clinic for that day.
        ""
       ],
       "CheckIn": "",
       "CheckInEntered": "",
       "CheckInSteps": [
        ""
       ],
       "CheckInUser": "",
       "CheckOut": "",
       "CheckOutEntered": "",
Else gives appropriate error.
       "CheckOutUser": "",
       "Clinic": {
        "ClinicIEN": 4118,
        "Division": "CHEYENNE VAMROC",
        "IsOverbook": 0,
        "Name": "CHY ACUTE CARE 3",
        "PatientFriendlyName": "CHY ACUTE CARE BAKER",
        "PhysicalLocation": "",
        "StationNumber": 442,
        "Telephone": "",
  {
        "TelephoneExtension": "",
        "DisplayClinicAppt": "YES",      
        "StopCodeAMIS": 323
        "StopCodeName": "PRIMARY CARE",  
        "CreditStopCodeAMIS": 710,    
        "CreditStopCodeName": "IMMUNIZATION"    
        "TimeZone": "EASTERN",
        "TimeZoneDetails": [
         {
          "Offset": "-0500",
   "Clinics": [
          "TimeFrame": "STANDARD",
          "TimeZoneCode": "EST"
         },
         {
          "Offset": "-0400",
          "TimeFrame": "DAYLIGHT SAVINGS",
          "TimeZoneCode": "EDT"
         }
   
       ],
    {
        "TimeZoneException": ""
       },
       "CollateralVisit": "",
       "ConsultLink": "",
       "CurrentStatus": "NO ACTION TAKEN/TODAY",
       "DataEntryClerk": "TEST,TEST A",
       "DateAppointmentMade": "2023-02-24T13:26:27-0500",
       "DesiredDateOfAppointment": "2021-06-11",
       "DuplicateApptSameDay": "",
       "EASTrackingNumber": "",
     "Appt": [
   "ECheckinAloowed": "",    
   "EkgDateTime": "",
       "EncounterConversionStatus": "",
       "EncounterFormsAsAddOns": "",
       "EncounterFormsPrinted": "",
       "EndTime": "2023-02-24T08:30-0500",
       "FollowUpVisit": "NO",
       "LabDateTime": "",
       "LengthOfAppt": 30,
       "NextAvaApptIndicator": "NOT INDICATED TO BE A 'NEXT AVA.' APPT.",
      {
       "NoShowCancelDateTime": "",
       "NoShowCancelledBy": "",
       "Note": "",
       "NumberOfCollateralSeen": "",
       "OtherTests": "",
       "OtherTravel": "  ",
       "OutpatientEncounter": "2023-02-24T08:00-0500",
       "OverLaidAppointmentData": "NO",
       "OverbookFlag": "",
       "ParentRecordRequest": "",
       "AppointmentCancelled": "",
       "Patient": {
        "CurrentEligibilityCode": "SC LESS THAN 50%",
        "DFN": 7242560,
        "DOBE": "1970-03-24",
        "DOBI": 2700324,
        "EligibilityE": "SC LESS THAN 50%",
        "EligibilityI": 3,
        "EligibilityIEN": 3,
        "EligibilityOfVisit": "SC LESS THAN 50%",
        "EnrollmentCode": "",