SDES2 UNDO CHECKOUT (5026)    REMOTE PROCEDURE (8994)

Name Value
NAME SDES2 UNDO CHECKOUT
TAG UNDOCHECKOUT
ROUTINE SDES2UNDOCHKOUT
RETURN VALUE TYPE ARRAY
AVAILABILITY RESTRICTED
APP PROXY ALLOWED Yes
DESCRIPTION
This RPC will undo a checkout that has occurred against an appointment  
and return the full appointment object.
 
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") = Up to 40 Character unique ID number.
                 the calling application.
                 Ex: 11d9dcc6-c6a2-4785-8031-8261576fca37
      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.
      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
    
  • SDINPUT
    PARAMETER TYPE:   LIST
    MAXIMUM DATA LENGTH:   32000
    REQUIRED:   YES
    SEQUENCE NUMBER:   2
    DESCRIPTION:   
    SDINPUT("APPOINTMENT IEN")=SDIEN(Required)
        Appointment IEN from the SDES Appointment File #409.84
    
RETURN PARAMETER DESCRIPTION
Returns back the appointment object as well as a confirmation
    "AppointmentType": "REGULAR",
    "ParentRecordRequest": "",
    "Patient": {
     "CurrentEligibilityCode": "COLLATERAL OF VET.",
     "DFN": 7204597,
     "DateOfBirth": "1950-01-03",
     "DateOfBirthInternal": 2500103,
     "DateOfDeath": "",
     "DemographicsNeedUpdate": 1,
     "Eligibility": "COLLATERAL OF VET.",
     "EligibilityIEN": 12,
    "AppointmentTypeIEN": 9,
     "EligibilityOfVisit": "COLLATERAL OF VET.",
     "EnrollmentCode": "",
     "EnrollmentDate": "",
     "FugitiveFelonFlag": "NO",
     "Gender": "FEMALE",
     "ICN": "4420062581V571742",
     "LastRegistrationDate": "2010-11-02T10:24:13-0400",
     "LocalFlag": [
      ""
     ],
    "AppointmentTypeSubCategory": "",
     "Name": "SQA,REQUEST",
     "NationalFlag": [
      ""
     ],
     "NeedInsuranceVerification": 1,
     "OriginalRegistrationDate": "2010-09-28T15:04:37-0400",
     "PreferredName": "TESTING NAME",
     "SSN": 7667,
  
     "SensitivePatientRestrictedRecord": 0,
    "AutoRebookedApptDateTime": "",
     "SensitivePatientType": 0,
     "Street": "GENERAL DELIVERY",
     "cellularPhone": "",
     "residentialPhone": ""
    },
    "PatientComments": [
     ""
    ],
    "PriorXRayResults": "",
    "Provider": {
    "CancelDateTime": "2023-12-06T14:17:06-0500",
     "ID": 1824,
     "Name": "CERVANTES,DEWAYNE J",
     "SecId": 1034217513
    },
    "PurposeOfVisit": "SCHEDULED VISIT",
    "RealAppointment": 0,
    "RequestIEN": 263452,
    "RequestType": "APPT",
    "Resource": {
     "ClinicIEN": 2147,
    "CancellationReason": "PANDEMIC",
     "Name": "CHY CARDIOLOGY"
    },
    "ResourceIEN": 1058,
    "RoutingSlipPrintDate": "",
    "RoutingSlipPrinted": "",
    "SchedulerName": "",
    "SchedulingApplication": "",
    "SchedulingRequestType": "MULTIPLE APPT. BOOKING",
    "SpecialSurveyDisposition": "",
    "StartTimeFM": 3231206.08,
    "CancellationRemarks": "",
    "Status": "CANCELLED BY CLINIC",
    "StatusCancelDateTime": "2023-12-06T14:17:06-0500",
    "VVSApptID": "",
    "VeteranVideoCallURL": "",
    "Walkin": "",
    "WardLocation": "",
    "XRAY": "",
    "XrayDateTime": ""
   }
  ]
    "CancelledByUser": {
  "UndoCheckOut":[
        {"UndoCheckOutCompleted":1
 }
Example Error:
  {
  ""Appointment"":[""],
  ""Error"":[
                ""Missing Appointment ID.""],
  ""UndoCheckOut"":[""]
  }
     "ID": 520881841,
     "Name": "CALIS,NEDIME",
of the checkout being removed against the appointment.
     "SecId": 20010011913859
    },
    "CheckIn": "",
    "CheckInEntered": "",
    "CheckInSteps": [
     ""
    ],
    "CheckInUser": "",
    "CheckOut": "",
    "CheckOutEntered": "",
 
    "CheckOutUser": "",
    "Clinic": {
     "ClinicIEN": 2147,
     "CreditStopCodeAMIS": 179,
     "CreditStopCodeName": "RT CLIN VID CARE HOME",
     "DisplayClinicAppt": "YES",
     "Division": "CHEYENNE VAMROC",
     "ECheckinAllowed": "YES",
     "IsOverbook": 0,
     "Name": "CHY CARDIOLOGY",
{
     "NonCountClinic":1,
     "PatientFriendlyName": "CHY CARDIOLOGY",
     "PbspID": 73737379999777777,
     "PhysicalLocation": "ARROWHEAD BLD A1-16 OR 17",
     "PreCheckinAllowed": "YES",
     "ProhibitedClinic": 1,
     "StationNumber": 442,
     "StopCodeAMIS": 108,
     "StopCodeName": "LABORATORY",
     "Telephone": "(307)778-7550",
  "Appointment": [
     "TelephoneExtension": 1234,
     "TimeZone": "EASTERN",
     "TimeZoneDetails": [
      {
       "Offset": "-0500",
       "TimeFrame": "STANDARD",
       "TimeZoneCode": "EST"
      },
      {
       "Offset": "-0400",
   {
       "TimeFrame": "DAYLIGHT SAVINGS",
       "TimeZoneCode": "EDT"
      }
     ],
     "TimeZoneException": "",
     "VeteranSelfCancel": "NO"
    },
    "CollateralVisit": "",
    "ConsultLink": "",
    "CurrentStatus": "CANCELLED BY CLINIC",
    "AppointmentCancelled": "CANCELLED",
    "DataEntryClerk": "CALIS,NEDIME",
    "DateAppointmentMade": "2023-12-06",
    "DesiredDateOfAppointment": "2023-12-06",
    "DuplicateApptSameDay": "",
    "EASTrackingNumber": "",
    "EkgDateTime": "",
    "EncounterConversionStatus": "",
    "EncounterFormsAsAddOns": "",
    "EncounterFormsPrinted": "",
    "EndTime": "2023-12-06T08:30-0500",
    "AppointmentDateTime": "2023-12-06T08:00-0500",
    "FollowUpVisit": "NO",
    "InpatientFlag": 0,
    "LabDateTime": "",
    "LengthOfAppt": 30,
    "MRTCFlag": 1,
    "NextAvaApptIndicator": "'NEXT AVA.' APPT. INDICATED BY USER & 
 CALCULATION",
    "NoShowCancelDateTime": "2023-12-06T14:17:06-0500",
    "NoShowCancelledBy": "TEST,USER",
    "Note": "",
    "AppointmentIEN": 298114,
    "NoteAuditing": [
     ""
    ],
    "NumberOfCollateralSeen": "",
    "OriginatingRequestType": "APPT",
    "OtherTests": "",
    "OtherTravel": "  ",
    "OutpatientEncounter": "",
    "OverLaidAppointmentData": "NO",
    "OverbookFlag": "",