SDES2 GET APPTS BY CLIN LIST (4994)    REMOTE PROCEDURE (8994)

Name Value
NAME SDES2 GET APPTS BY CLIN LIST
TAG APPTBYCLINICLIST
ROUTINE SDES2CLINICLIST
RETURN VALUE TYPE ARRAY
AVAILABILITY RESTRICTED
WORD WRAP ON FALSE
APP PROXY ALLOWED Yes
DESCRIPTION
Accepts array of clinic IENs and returns appointments for today. Today 
is defined by clinic's time zone.
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.
    
  • SDPARAM
    PARAMETER TYPE:   LIST
    MAXIMUM DATA LENGTH:   32000
    REQUIRED:   YES
    SEQUENCE NUMBER:   2
    DESCRIPTION:   
    The clinic IEN from HOSPITAL LOCATION (#44) to list appointments
      
     SDPARAM("CLINIC IEN",1)=IEN1   (required)
     SDPARAM("CLINIC IEN",2)=IEN2   (optional)
     SDPARAM("CLINIC IEN",3)=IEN3   (optional)
     SDPARAM("CLINIC IEN",n)=IENn   (optional)
    
RETURN PARAMETER DESCRIPTION
{
     "CancelledByUser": [
     "Provider": {
      "ID": 520638595,
      "Name": "PROVIDER,TEST E",
      "SecId": ""
     },
     "RequestIEN": 263805,
     "RequestType": "APPT",
     "Resource": {
      "ClinicIEN": 5263,
      "Name": "TEST CLINIC 12"
      ""
     },
     "ResourceIEN": 3635,
     "StartTime": "JAN 24, 2024@11:30",
     "StartTimeFM": 3240124.113,
     "Status": "NON-COUNT",
     "StatusCancelDateTime": "",
     "Walkin": ""
    }
   ],
   "IEN": 5263,
     ],
   "Station": 442
  }
 ]
}
     "CheckIn": "",
     "CheckInEntered": "",
     "CheckInSteps": "",
     "CheckOut": "",
     "Clinic": {
      "ClinicIEN": 5263,
      "CreditStopCodeAMIS": 701,
 "Clinics": [
      "CreditStopCodeName": "BP EVAL",
      "CurrentEligibilityCode": "TRICARE",
      "DisplayClinicAppt": "YES",
      "Division": "CHEYENNE VAMROC",
      "ECheckinAllowed": "YES",
      "EligibilityOfVisit": "TRICARE",
      "IsOverbook": 0,
      "Name": "ZZBWF TEST CLINIC 12",
      "PatientFriendlyName": "BRADT1VSE5523EDITCLIN",
      "PbspID": "PBSP TEST ID",
  {
      "PhysicalLocation": "PHYSLOC",
      "PreCheckinAllowed": "YES",
      "StationNumber": 442,
      "StopCodeAMIS": 147,
      "StopCodeName": "TELEPHONE/ANCILLARY",
      "Telephone": "888-123-4567",
      "TelephoneExtension": "x228",
      "TimeZone": "EASTERN",
      "TimeZoneDetails": [
       {
   "Appt": [
        "Offset": "-0500",
        "TimeFrame": "STANDARD",
        "TimeZoneCode": "EST"
       },
       {
        "Offset": "-0400",
        "TimeFrame": "DAYLIGHT SAVINGS",
        "TimeZoneCode": "EDT"
       }
      ],
    {
      "TimeZoneException": ""
     },
     "CurrentStatus": "NON-COUNT",
     "DFN": 7172311,
     "EASTrackingNumber": "",
     "EndTime": "JAN 24, 2024@12:00",
     "LengthOfAppt": 30,
     "Note": [
      "MRTC CALC PREF DATES ISSUE"
     ],
     "AppointmentIEN": 298327,
     "Patient": {
      "DFN": 7172311,
      "DOBE": "1982-10-08",
      "DOBI": 2821008,
      "DateOfBirth": "1982-10-08",
      "DateOfDeath": "",
      "EligibilityE": "TRICARE",
      "EligibilityI": 20,
      "EligibilityIEN": 20,
      "FugitiveFelonFlag": "NO",
     "AppointmentTypeIEN": 9,
      "Gender": "MALE",
      "ICN": "XXXXXXXXXXXXXX",
      "LocalFlag": [
       {
        "AssignedDate": "2023-04-18T16:42:27-0400",
        "Category": "II (LOCAL)",
        "Name": "DYSPHAGIA ALERT",
        "Narrative": [
         "TESTING FLAG ASSIGNMENT/UNASSIGNMENT"
        ],
     "CancelDateTime": "",
        "OriginatingSiteID": 442,
        "OriginatingSiteName": "CHEYENNE VA MEDICAL",
        "OwnerSiteID": 442,
        "OwnerSiteName": "CHEYENNE VA MEDICAL",
        "ReviewDate": "2023-06-17",
        "Type": "CLINICAL"
       }
      ],
      "Name": "VSETEST,ONE D",
      "NationalFlag": [
     "CancellationReason": "",
       ""
      ],
      "NeedInsuranceVerification": 1,
      "RegistrationEditDate": "",
      "SSN": 5555,
      "SensitiveRecord": 0
     },
     "PatientComments": [
      ""
     ],