SDES2 CREATE APPOINTMENT2 (5185)    REMOTE PROCEDURE (8994)

Name Value
NAME SDES2 CREATE APPOINTMENT2
TAG CREATE
ROUTINE SDES2CREATEAPPT2
RETURN VALUE TYPE ARRAY
AVAILABILITY RESTRICTED
APP PROXY ALLOWED Yes
DESCRIPTION
This RPC will create appointments within files 409.84, 44, and 2.
  
 Can only be invoked by Acheron
INPUT PARAMETER
  • SDCONTEXT
    PARAMETER TYPE:   LITERAL
    MAXIMUM DATA LENGTH:   32000
    REQUIRED:   YES
    SEQUENCE NUMBER:   1
    DESCRIPTION:   
       SDCONTEXT("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 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.
    
  • APPOINTMENT
    PARAMETER TYPE:   LIST
    MAXIMUM DATA LENGTH:   32000
    REQUIRED:   YES
    SEQUENCE NUMBER:   2
    DESCRIPTION:   
    APPOINTMENT("START DATE TIME")="2024-09-20T10:00-04:00"
    APPOINTMENT("CLINIC IEN")=2147
    APPOINTMENT("NOTE")="THIIA NOTE"
    APPOINTMENT("APPOINTMENT TYPE")=1
    APPOINTMENT("APPOINTMENT TYPE NAME")=""
    APPOINTMENT("PATIENT STATUS")="N"
    APPOINTMENT("APPOINTMENT LENGTH")=30
    APPOINTMENT("SERVICE CONNECTED")=1
    APPOINTMENT("SERVICE CONNECTED PERCENTAGE")=50
    APPOINTMENT("MRTC")=1
    APPOINTMENT("MRTC PARENT")=252559
    APPOINTMENT("END DATE TIME")="2024-09-20T10:30-04:00"
    APPOINTMENT("APPOINTMENT REASON")="TEST"
    APPOINTMENT("PATIENT ELIGIBILITY")=2
    APPOINTMENT("OVERBOOK")="O"
    APPOINTMENT("LAB DATE TIME")="2022-08-09T10:00-04:00"
    APPOINTMENT("XRAY DATE TIME")="2022-08-09T10:00-04:00"
    APPOINTMENT("EKG DATE TIME")="2022-08-09T10:00-04:00"
    APPOINTMENT("PURPOSE")=1
    APPOINTMENT("COLLATERAL")=1
    APPOINTMENT("SCHEDULE REQUEST TYPE")="N"
    APPOINTMENT("NEXT AVAILABLE APPOINTMENT")=1
    APPOINTMENT("DFN")=7242620
    APPOINTMENT("FOLLOWUP")=1
    APPOINTMENT("RESOURCE IEN")=1058
    APPOINTMENT("WALKIN")="n"
    APPOINTMENT("PATIENT INDICATED DATE")="2022-08-09"
    APPOINTMENT("EXTERNAL ID")="THIIA FREE TEXT EXTERNAL ID FIELD"
    APPOINTMENT("REQUEST TYPE")="A|263593"
    APPOINTMENT("PROVIDER IEN")=520881805
    
RETURN PARAMETER DESCRIPTION
Return object example if there are errors in the input parameters
Return object if successful creation of an appointment
"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,
                        "DateOfBirth": "1946-12-30",
                        "DateOfBirthInternal": 2461230,
 "Appointment": [
                        "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": [
                                ""
                        ],
                        "NeedInsuranceVerification": 1,
                        "OriginalRegistrationDate": "",
                "AppointmentCancelled": "",
                        "PreferredName": "",
                        "SSN": 8374,
                        "SensitivePatientRestrictedRecord": 0,
                        "SensitivePatientType": 0,
                        "Street": "112 W MUSKEGON ST ",
                        "cellularPhone": "",
                        "residentialPhone": "(111) 111-1111"
                },
                "PatientComments": [
                        ""
                "AppointmentDateTime": "2026-03-19T09:00-0400",
                ],
                "PriorXRayResults": "",
                "Provider": [
                        ""
                ],
                "PurposeOfVisit": "C&P",
                "RealAppointment": 1,
                "RequestIEN": 267554,
                "RequestType": "APPT",
                "Resource": {
                "AppointmentIEN": 301736,
                        "ClinicIEN": 5677,
                        "Name": "CHY BZZZZZ CLINIC"
                },
                "ResourceIEN": 4105,
                "RoutingSlipPrintDate": "",
                "RoutingSlipPrinted": "",
                "SchedulerName": "",
                "SchedulingApplication": "",
                "SchedulingRequestType": "'NEXT AVAILABLE' APPT.",
                "SpecialSurveyDisposition": "",
                "AppointmentType": "COMPENSATION & PENSION",
                "StartTimeFM": 3260319.09,
                "Status": "FUTURE",
                "StatusCancelDateTime": "",
                "VVSApptID": "",
                "VeteranVideoCallURL": "",
                "Walkin": "NO",
                "WardLocation": "",
                "XRAY": "",
                "XrayDateTime": ""
   }
                "AppointmentTypeIEN": 1,
  ]
}
                "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 LOC",
        "Error": [
                        "DisplayClinicAppt": "YES",
                        "Division": "CHEYENNE VAMROC",
                        "ECheckinAllowed": "NO",
                        "IsOverbook": 0,
                        "Name": "CHY BZZZZZ CLINIC",
                        "NonCountClinic": 0,
                        "PatientFriendlyName": "CHY CARE BZZZZZ",
                        "PbspID": "",
                        "PhysicalLocation": "",
                        "PreCheckinAllowed": "NO",
                "Invalid Appointment Start Date and Time.",
                        "ProhibitedClinic": 0,
                        "StationNumber": 442,
                        "StopCodeAMIS": 323,
                        "StopCodeName": "PRIMARY CARE/MEDICINE",
                        "Telephone": "222-555-7654",
                        "TelephoneExtension": "",
                        "TimeZone": "EASTERN",
                        "TimeZoneDetails": [
                                {
                                        "Offset": "-0500",
                "Invalid Appointment End Date and Time."
                                        "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": [
                        {
                                "DateNoteAdded":