SDES2 EDIT APPOINTMENT 2 (5194)    REMOTE PROCEDURE (8994)

Name Value
NAME SDES2 EDIT APPOINTMENT 2
TAG EDIT
ROUTINE SDES2EDITAPPT2
RETURN VALUE TYPE ARRAY
AVAILABILITY RESTRICTED
CLIENT MANAGER YES
APP PROXY ALLOWED Yes
DESCRIPTION
This RPC allows the editing of the note tied to the 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") = 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
    
  • SDINPUT
    PARAMETER TYPE:   LIST
    REQUIRED:   YES
    SEQUENCE NUMBER:   2
    DESCRIPTION:   
     SDINPUT("APPTIEN") = Appointment IEN from File #409.84
     SDINPUT("NOTE")    = Note being added to the appointment.
    
RETURN PARAMETER DESCRIPTION
This is the note that will replace the existing note.
                        "AppointmentTypeIEN": 1,
                                        "NoteAddedByDUZ": 520881949,
                                        "NoteAddedByName": "BAYES,MEGAN C"
                                },
                                {
                                        "DateNoteAdded": 
"2026-04-02T15:35:10-0400",
                                        "Note": 2,
                                        "NoteAddedByDUZ": 520881949,
                                        "NoteAddedByName": "BAYES,MEGAN C"
                                }
                        "AppointmentTypeSubCategory": "",
                        ],
                        "NumberOfCollateralSeen": "",
                        "OriginatingRequestType": "APPT",
                        "OtherTests": "Testing Editing notes2",
                        "OtherTravel": "Testing Editing notes2",
                        "OutpatientEncounter": "",
                        "OverLaidAppointmentData": "NO",
                        "OverbookFlag": "",
                        "ParentRecordRequest": "",
                        "Patient": {
                        "AutoRebookedApptDateTime": "",
                                "CurrentEligibilityCode": "",
                                "DFN": 7242680,
                                "DateOfBirth": "1900-01-11",
                                "DateOfBirthInternal": 1111111,
                                "DateOfDeath": "",
                                "DemographicsNeedUpdate": 1,
                                "Eligibility": "",
                                "EligibilityIEN": "",
                                "EligibilityOfVisit": "AID & ATTENDANCE",
                                "EnrollmentCode": "",
                        "CancelDateTime": "",
                                "EnrollmentDate": "",
                                "FugitiveFelonFlag": "NO",
                                "Gender": "FEMALE",
                                "ICN": "4420062650V799525",
                                "LastRegistrationDate": "",
                                "LocalFlag": [
                                        ""
                                ],
                                "Name": "TEST,TEST",
                                "NationalFlag": [
                        "CancellationReason": "",
                                        ""
                                ],
                                "NeedInsuranceVerification": 1,
                                "OriginalRegistrationDate": "",
                                "PreferredName": "",
                                "SSN": 6666,
                                "SensitivePatientRestrictedRecord": 0,
                                "SensitivePatientType": 0,
                                "Street": "3663 RIDGE RD",
                                "cellularPhone": "",
                        "CancellationRemarks": "",
                                "residentialPhone": 1234567891
                        },
                        "PatientComments": [
                                "TESTING NOTES"
                        ],
                        "PriorXRayResults": "",
                        "Provider": {
                                "ID": 520881805,
                                "Name": "TEST,BRANDON L",
                                "SecId": 1046169286
                        "CancelledByUser": [
                        },
                        "PurposeOfVisit": "C&P",
                        "RealAppointment": 1,
                        "RequestIEN": 267630,
                        "RequestType": "APPT",
                        "Resource": {
                                "ClinicIEN": 5967,
                                "Name": "TEST MEGANB"
                        },
                        "ResourceIEN": 4396,
                                ""
                        "RoutingSlipPrintDate": "",
                        "RoutingSlipPrinted": "",
                        "SchedulerName": "",
                        "SchedulingApplication": "",
                        "SchedulingRequestType": "'NEXT AVAILABLE' APPT.",
                        "SpecialSurveyDisposition": "",
                        "StartTimeFM": 3260402.16,
                        "Status": "NON-COUNT",
                        "StatusCancelDateTime": "",
                        "VVSApptID": "",
                        ],
                        "VeteranVideoCallURL": "",
                        "Walkin": "NO",
                        "WardLocation": "",
                        "XRAY": "",
                        "XrayDateTime": "2026-11-09T09:00-0500"
                }
        ]
}
 
General Error Return Object:
                        "CheckIn": "",
 
{
        "Appointment": [
                ""
        ],
        "Error": [
                "Missing Note.",
                "Missing Appointment ID."
        ]
}
 RETURN PARAMETER DESCRIPTION:  
                        "CheckInEntered": "",
                        "CheckInSteps": [
                                ""
                        ],
                        "CheckInUser": "",
                        "CheckOut": "",
                        "CheckOutEntered": "",
                        "CheckOutUser": "",
                        "Clinic": {
                                "ClinicIEN": 5967,
 {
                                "CreditStopCodeAMIS": "",
                                "CreditStopCodeName": "",
                                "DisplayClinicAppt": "YES",
                                "Division": "CHEYENNE VAMROC",
                                "ECheckinAllowed": "YES",
                                "IsOverbook": 0,
                                "Name": "TEST MEGANB",
                                "NonCountClinic": 1,
                                "PatientFriendlyName": "TEST MEGANB",
                                "PbspID": "",
        "Appointment": [
                                "PhysicalLocation": "PHYSLOC",
                                "PreCheckinAllowed": "YES",
                                "ProhibitedClinic": 0,
                                "StationNumber": 442,
                                "StopCodeAMIS": 120,
                                "StopCodeName": "HEALTH SCREENING",
                                "Telephone": "888-123-4567",
                                "TelephoneExtension": 230,
                                "TimeZone": "EASTERN",
                                "TimeZoneDetails": [
                {
                                        {
                                                "Offset": "-0500",
                                                "TimeFrame": "STANDARD",
                                                "TimeZoneCode": "EST"
                                        },
                                        {
                                                "Offset": "-0400",
                                                "TimeFrame": "DAYLIGHT 
SAVINGS",
                                                "TimeZoneCode": "EDT"
                        "AppointmentCancelled": "",
                                        }
                                ],
                                "TimeZoneException": "",
                                "VeteranSelfCancel": "YES"
                        },
                        "CollateralVisit": "YES",
                        "ConsultLink": "",
                        "CurrentStatus": "NON-COUNT",
                        "DataEntryClerk": "Test,TEST",
                        "DateAppointmentMade": "2026-04-02T14:27:50-0400",
                        "AppointmentDateTime": "2026-04-02T16:00-0400",
                        "DesiredDateOfAppointment": "2026-04-02",
                        "DuplicateApptSameDay": "",
                        "EASTrackingNumber": "VSE-10981 BEFORE Testing",
                        "EkgDateTime": "2026-11-09T09:00-0500",
                        "EncounterConversionStatus": "",
                        "EncounterFormsAsAddOns": "",
                        "EncounterFormsPrinted": "",
                        "EndTime": "2026-04-02T16:30-0400",
                        "FollowUpVisit": "YES",
                        "InpatientFlag": 0,
                        "AppointmentIEN": 301787,
                        "LabDateTime": "2026-11-09T09:00-0500",
                        "LengthOfAppt": 30,
                        "MRTCFlag": 0,
                        "NextAvaApptIndicator": "'NEXT AVA.' APPT. 
INDICATED BY USER",
                        "NoShowCancelDateTime": "",
                        "NoShowCancelledBy": "",
                        "Note": "",
                        "NoteAuditing": [
                                {
                        "AppointmentType": "COMPENSATION & PENSION",
                                        "DateNoteAdded": 
"2026-04-02T14:27:50-0400",
                                        "Note": "TESTING NOTE",
                                        "NoteAddedByDUZ": 520881949,
                                        "NoteAddedByName": "BAYES,MEGAN C"
                                },
                                {
                                        "DateNoteAdded": 
"2026-04-02T14:28:33-0400",
                                        "Note": "ing notes",