SDES2 CREATE WALKIN APPT2 (5192)    REMOTE PROCEDURE (8994)

Name Value
NAME SDES2 CREATE WALKIN APPT2
TAG CREATEWALKIN
ROUTINE SDES2CRTWALKIN2
RETURN VALUE TYPE ARRAY
AVAILABILITY RESTRICTED
INACTIVE ACTIVE
CLIENT MANAGER YES
APP PROXY ALLOWED Yes
DESCRIPTION
Creates the SDEC APPT REQUEST (#409.85) file record, the SDEC APPOINTMENT
(#409.84) file record, and completes the check-in process for a walk-in
appointment. Returns the full appointment object.
 
Can only be invoked by Acheron.
INPUT PARAMETER
  • SDCONTEXT
    PARAMETER TYPE:   LIST
    REQUIRED:   YES
    SEQUENCE NUMBER:   1
    DESCRIPTION:   
       SDCONTEXT("ACHERON AUDIT ID") = 40 character unique ID number.
                                  the calling application.
      
       SDCONTEXT("PATIENT ICN") = The ICN of the Veteran/user taking action 
                                  on the 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 Security ID of the user taking action on
     
       SDCONTEXT("PATIENT DFN") = The DFN of the Veteran/user taking action on
    
  • PARAMS
    PARAMETER TYPE:   LIST
    REQUIRED:   YES
    SEQUENCE NUMBER:   2
    DESCRIPTION:   
       Information array to create both appointment request and appointment for 
       PARAMS("APPOINTMENT TYPE NAME") = APPT. TYPE NAME - (REQUIRED) 
       PARAMS("PATIENT STATUS") = PATIENT STATUS - (N/E) N:NEW E:ESTABLISHED
       PARAMS("APPT LENGTH") = APPT. LENGTH - (REQUIRED)
       PARAMS("SDSERVCONN") = SERVICE CONNECTED - YES/NO
       PARAMS("SDSERVCONNPERC") = SERVICE CONNECTED PERCENTAGE - 0-100
       PARAMS("SDPATELIG") = PATIENT ELIGIBILITY
       PARAMS("OVERBOOK") = OVERBOOK
       PARAMS("SDCOLLATERAL") = COLLATERAL
       PARAMS("INSTITUTION NAME") = INSTITUTION NAME (OR STATION NUMBER REQ.) 
       PARAMS("STATION NUMBER") = STATION NUMBER (OR INSTITUTION NAME REQ.)
       walkin:
       PARAMS("VAOS GUID") = VAOS GUID
       PARAMS("MODALITY") = MODALITY
       PARAMS("STOP CODE") = STOP CODE
       PARAMS("SECONDARY STOP CODE") = SECONDARY STOP CODE
       PARAMS("PRIORITY GROUP") = PRIORITY GROUP
       
       PARAMS("APPT START") = APPT. START TIME - (REQUIRED) ISO FORMAT
       PARAMS("APPT END") = APPT. END TIME - (REQUIRED) ISO FORMAT
       PARAMS("DFN") = PATIENT ID - (REQUIRED)
       PARAMS("PATIENT INDICATED DATE") = DESIRED DATE/TIME - (REQUIRED)
       PARAMS("CLINIC IEN") = CLINIC IEN - (REQUIRED)
       PARAMS("SDNOTE") = NOTE
    
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%",
  "Appointment": [
                         "DFN": 7239093,
                         "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,
                 "AppointmentIEN": 301736,
                 "RequestIEN": 267554,
                 "RequestType": "APPT",
                 "Resource": {
                         "ClinicIEN": 5677,
                         "Name": "CHY BZZZZZ CLINIC"
                 },
                 "ResourceIEN": 4105,
                 "RoutingSlipPrintDate": "",
                 "RoutingSlipPrinted": "",
                 "SchedulerName": "",
                 "AppointmentType": "COMPENSATION & PENSION",
                 "SchedulingApplication": "",
                 "SchedulingRequestType": "'NEXT AVAILABLE' APPT.",
                 "SpecialSurveyDisposition": "",
                 "StartTimeFM": 3260319.09,
                 "Status": "FUTURE",
                 "StatusCancelDateTime": "",
                 "VVSApptID": "",
                 "VeteranVideoCallURL": "",
                 "Walkin": "NO",
                 "WardLocation": "",
                 "AppointmentTypeIEN": 1,
                 "XRAY": "",
                 "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": "",
                 "Invalid Appointment Start Date and Time.",
                         "PreCheckinAllowed": "NO",
                         "ProhibitedClinic": 0,
                         "StationNumber": 442,
                         "StopCodeAMIS": 323,
                         "StopCodeName": "PRIMARY CARE/MEDICINE",
                         "Telephone": "222-555-7654",
                         "TelephoneExtension": "",
                         "TimeZone": "EASTERN",
                         "TimeZoneDetails": [
                                 {
                 "Invalid Appointment End Date and Time."
                                         "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": [