SDES2 BLOCK AND MOVE2 (5193)    REMOTE PROCEDURE (8994)

Name Value
NAME SDES2 BLOCK AND MOVE2
TAG BLOCKANDMOVE
ROUTINE SDES2BLCKANDMOV2
RETURN VALUE TYPE ARRAY
AVAILABILITY RESTRICTED
WORD WRAP ON FALSE
APP PROXY ALLOWED Yes
DESCRIPTION
 This RPC allows the user to block and move an appointment. This will 
 block the availability in the slot the appointment was originally in and 
 move it to a new clinic. Returns 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.
                               calling application.
                               Ex: 11d9dcc6-c6a2-4785-8031-8261576fca37
     SDCONTEXT("USER DUZ")   = The DUZ of the user taking action on the
                               calling application. 
     SDCONTEXT("USER SECID") = The SECID of the user taking action in the
                               calling application.
     SDCONTEXT("PATIENT DFN")= The name of the patient taking action on the
                               calling application.
     SDCONTEXT("PATIENT ICN")= The ICN of the patient taking action on the
    
  • BLOCKANDMOVE
    PARAMETER TYPE:   LIST
    MAXIMUM DATA LENGTH:   32000
    REQUIRED:   YES
    SEQUENCE NUMBER:   2
    DESCRIPTION:   
    This array contains the input parameters that are to be passed into block 
                                       appointment in ISO date/time format
     and move.
       
     BLOCKANDMOVE("APPOINTMENT IEN")= IEN of the Appointment to move from
                                      SDEC APPOINTMENT File (#409.84)
     BLOCKANDMOVE("TARGET CLINIC")= The target clinic to that will get the
                                    moved appointment. This is the IEN
                                    from HOSPITAL LOCATION File (#44)
     BLOCKANDMOVE("TARGET DATE TIME")= The date and time of the target
    
RETURN PARAMETER DESCRIPTION
 Return object example if there are errors in the input parameters
 Return object if successful creation of an appointment
                                 "DateNoteAdded": 
 "2026-03-17T08:58:01-0400",
                                 "Note": "NOTE for VSE-11416",
                                 "NoteAddedByDUZ": 520881895,
                                 "NoteAddedByName": "BZZZZZ,TZZZZZZ Z"
                         }
                 ],
                 "NumberOfCollateralSeen": "",
                 "OriginatingRequestType": "APPT",
                 "OtherTests": "TEST VSE-11416 Full appointment object",
 {
                 "OtherTravel": "  TEST VSE-11416 Full appointment 
object",
                 "OutpatientEncounter": "",
                 "OverLaidAppointmentData": "NO",
                 "OverbookFlag": "",
                 "ParentRecordRequest": "",
                 "Patient": {
                         "CurrentEligibilityCode": "SERVICE CONNECTED 50% 
 to100%",
                         "DFN": 7239093,
  "Appointment": [
                         "DateOfBirth": "1946-12-30",
                         "DateOfBirthInternal": 2461230,
                         "DateOfDeath": "",
                         "DemographicsNeedUpdate": 1,
                         "Eligibility": "SERVICE CONNECTED 50% to 100%",
                         "EligibilityIEN": 1,
                         "EligibilityOfVisit": "AID & ATTENDANCE",
                         "EnrollmentCode": "",
                         "EnrollmentDate": "",
                         "FugitiveFelonFlag": "NO",
         {
                         "Gender": "MALE",
                         "ICN": "",
                         "LastRegistrationDate": "",
                         "LocalFlag": [
                                 ""
                         ],
                         "Name": "BABABAZZZ,ADZZZZ RZZZZZ",
                         "NationalFlag": [
                                 ""
                         ],
                 "AppointmentCancelled": "",
                         "NeedInsuranceVerification": 1,
                         "OriginalRegistrationDate": "",
                         "PreferredName": "",
                         "SSN": 8374,
                         "SensitivePatientRestrictedRecord": 0,
                         "SensitivePatientType": 0,
                         "Street": "112 W MUSKEGON ST ",
                         "cellularPhone": "",
                         "residentialPhone": "(111) 111-1111"
                 },
                 "AppointmentDateTime": "2026-03-19T09:00-0400",
                 "PatientComments": [
                         ""
                 ],
                 "PriorXRayResults": "",
                 "Provider": [
                         ""
                 ],
                 "PurposeOfVisit": "C&P",
                 "RealAppointment": 1,
                 "RequestIEN": 267554,
                 "AppointmentIEN": 301736,
                 "RequestType": "APPT",
                 "Resource": {
                         "ClinicIEN": 5677,
                         "Name": "CHY BZZZZZ CLINIC"
                 },
                 "ResourceIEN": 4105,
                 "RoutingSlipPrintDate": "",
                 "RoutingSlipPrinted": "",
                 "SchedulerName": "",
                 "SchedulingApplication": "",
                 "AppointmentType": "COMPENSATION & PENSION",
                 "SchedulingRequestType": "'NEXT AVAILABLE' APPT.",
                 "SpecialSurveyDisposition": "",
                 "StartTimeFM": 3260319.09,
                 "Status": "FUTURE",
                 "StatusCancelDateTime": "",
                 "VVSApptID": "",
                 "VeteranVideoCallURL": "",
                 "Walkin": "NO",
                 "WardLocation": "",
                 "XRAY": "",
                 "AppointmentTypeIEN": 1,
                 "XrayDateTime": ""
    }
   ]
 }
                 "AppointmentTypeSubCategory": "",
 {
                 "AutoRebookedApptDateTime": "",
                 "CancelDateTime": "",
                 "CancellationReason": "",
                 "CancellationRemarks": "",
                 "CancelledByUser": [
                         ""
                 ],
                 "CheckIn": "",
                 "CheckInEntered": "",
                 "CheckInSteps": [
         "Appointment": "",
                         ""
                 ],
                 "CheckInUser": "",
                 "CheckOut": "",
                 "CheckOutEntered": "",
                 "CheckOutUser": "",
                 "Clinic": {
                         "ClinicIEN": 5677,
                         "CreditStopCodeAMIS": 679,
                         "CreditStopCodeName": "NC CVT TO HOME PROVID 
         "Error": [
LOC",
                         "DisplayClinicAppt": "YES",
                         "Division": "CHEYENNE VAMROC",
                         "ECheckinAllowed": "NO",
                         "IsOverbook": 0,
                         "Name": "CHY BZZZZZ CLINIC",
                         "NonCountClinic": 0,
                         "PatientFriendlyName": "CHY CARE BZZZZZ",
                         "PbspID": "",
                         "PhysicalLocation": "",
                 "Target clinic is not open on this day."
                         "PreCheckinAllowed": "NO",
                         "ProhibitedClinic": 0,
                         "StationNumber": 442,
                         "StopCodeAMIS": 323,
                         "StopCodeName": "PRIMARY CARE/MEDICINE",
                         "Telephone": "222-555-7654",
                         "TelephoneExtension": "",
                         "TimeZone": "EASTERN",
                         "TimeZoneDetails": [
                                 {
 
                                         "Offset": "-0500",
                                         "TimeFrame": "STANDARD",
                                         "TimeZoneCode": "EST"
                                 },
                                 {
                                         "Offset": "-0400",
                                         "TimeFrame": "DAYLIGHT SAVINGS",
                                         "TimeZoneCode": "EDT"
                                 }
                         ],
         ]
                         "TimeZoneException": "",
                         "VeteranSelfCancel": "YES"
                 },
                 "CollateralVisit": "YES",
                 "ConsultLink": "",
                 "CurrentStatus": "FUTURE",
                 "DataEntryClerk": "BZZZZZ,TZZZZZZ Z",
                 "DateAppointmentMade": "2026-03-17T08:58:01-0400",
                 "DesiredDateOfAppointment": "2026-03-19",
                 "DuplicateApptSameDay": "",
 }
                 "EASTrackingNumber": "VSE-11416-2026-03-17T08:57",
                 "EkgDateTime": "",
                 "EncounterConversionStatus": "",
                 "EncounterFormsAsAddOns": "",
                 "EncounterFormsPrinted": "",
                 "EndTime": "2026-03-19T09:30-0400",
                 "FollowUpVisit": "",
                 "InpatientFlag": 0,
                 "LabDateTime": "",
                 "LengthOfAppt": 30,
  
                 "MRTCFlag": 0,
                 "NextAvaApptIndicator": "'NEXT AVA.' APPT. INDICATED BY 
 USER",
                 "NoShowCancelDateTime": "",
                 "NoShowCancelledBy": "",
                 "Note": [
                         "NOTE for VSE-11416"
                 ],
                 "NoteAuditing": [
                         {