SDES2 GET APPTS CLINIEN LIST

TITLEVALUE
NAMESDES2 GET APPTS CLINIEN LIST
DESCRIPTIONAccepts input array of clinic IENs and returns appointments for today.
Today is defined by the clinic's time zone.
TAGAPPTBYCLNLIST
ROUTINESDES2APPTCLNLST
INPUT PARAMETERSSEQUENCE NUMBER1
INPUT PARAMETERSDCONTEXT
DESCRIPTIONSDCONTEXT("ACHERON AUDIT ID")
- 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.
SDCONTEXT("PATIENT ICN")
- The ICN of the target patient from the calling application.
PARAMETER TYPELIST
REQUIREDYES
MAXIMUM DATA LENGTH32000

INPUT PARAMETERSSEQUENCE NUMBER2
INPUT PARAMETERSDPARAM
DESCRIPTIONNote: 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)
PARAMETER TYPELIST
REQUIREDYES
MAXIMUM DATA LENGTH32000

RETURN VALUE TYPEARRAY
RETURN PARAMETER DESCRIPTIONLists the entire Appt Object(wrapper logic from all 3 files #409.84#2#44)
for each Appointment in that Clinic for that day.
Else gives appropriate error.
{
"Clinics": [
{
"Appt": [
{
"AppointmentCancelled": "",
"AppointmentDateTime": "2023-02-24T08:00-0500",
"AppointmentIEN": 295747,
"AppointmentType": "CLASS II DENTAL",
"AppointmentTypeIEN": 2,
"AppointmentTypeSubCategory": "",
"AutoRebookedApptDateTime": "",
"CancelDateTime": "",
"CancellationReason": "",
"CancellationRemarks": "",
"CancelledByUser": [
""
],
"CheckIn": "",
"CheckInEntered": "",
"CheckInSteps": [
""
],
"CheckInUser": "",
"CheckOut": "",
"CheckOutEntered": "",
"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",
"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": "",
"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": "",
"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": "",
"EnrollmentDate": "",
"FugitiveFelonFlag": "NO",
"Gender": "FEMALE",
"ICN": "4420062172V859025",
"NeedInsuranceVerification": 1,
"LocalFlag": [
""
],
"Name": "GEORGE,TEST",
"NationalFlag": [
""
],
"RegistrationEditDate": "",
"SSN": 9812,
"SensitiveRecord": 0,
"Street": "923 SMITHY STREET"
},
"PatientComments": "",
"PreCheckinAllowed": "",
"PriorXRayResults": "",
"Provider": {
"ID": 520658009,
"Name": "BRICKEY,MARISSA L",
"SecId": ""
},
"PurposeOfVisit": "SCHEDULED VISIT",
"RealAppointment": 1,
"Request": 249331,
"RequestType": "APPT",
"Resource": {
"ClinicIEN": 4118,
"Name": "CHY ACUTE CARE 3"
},
"ResourceIEN": 2410,
"RoutingSlipPrintDate": "",
"RoutingSlipPrinted": "",
"SchedulerName": "",
"SchedulingApplication": "",
"SchedulingRequestType": "OTHER THAN 'NEXT AVA.' (CLINICIAN REQ.)",
"SpecialSurveyDisposition": "",
"StartTimeFM": 3230224.08,
"Status": "NO ACTION TAKEN/TODAY",
"StatusCancelDateTime": "",
"VVSApptID": "",
"VeteranVideoCallURL": "",
"Walkin": "",
"WardLocation": "",
"XRAY": "",
"XrayDateTime": ""
}
],
"IEN": 4118,
"Station": 442
},
{
"Appt": "",
"IEN": 5367,
"Station": 442
}
]
}
}
AVAILABILITYRESTRICTED
INACTIVE
CLIENT MANAGER
WORD WRAP ON
VERSION1
SUPPRESS RDV USER SETUP
APP PROXY ALLOWEDYes