SDES2 PRINT APPT LETTER (5076)    REMOTE PROCEDURE (8994)

Name Value
NAME SDES2 PRINT APPT LETTER
TAG PRINTLETTER
ROUTINE SDES2APTLETTER
RETURN VALUE TYPE ARRAY
AVAILABILITY RESTRICTED
APP PROXY ALLOWED Yes
DESCRIPTION
Print single appointment letter.
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
    
  • SDINPUT
    PARAMETER TYPE:   LIST
    MAXIMUM DATA LENGTH:   32000
    REQUIRED:   YES
    SEQUENCE NUMBER:   2
    DESCRIPTION:   
    SDINPUT("Appointment IEN")=IEN of the Appointment from file 409.84
    SDINPUT("Letter Type")=Letter type - "N"=No Show; "P"=Pre-Appointment; 
                          "A"=Cancelled by Patient; "C"=Cancelled by Clinic
    
RETURN PARAMETER DESCRIPTION
{
                "initialParagraph": [
                        "This is a reminder of your appointment at the 
CHY BOYDA TEST on:"
                ],
                "salutation": [
                        "Dear Testappt Sqa,"
                ],
                "scheduledAppointments": [
                        "     Date/Time: FRIDAY   NOV 8, 2024  9:00 AM 
EASTERN",
"letters": [
                        "        Clinic:  CHY BOYDA TEST",
                        "     Location:  ROOM AC-1234",
                        "    Telephone:  222-333-9876   Telephone Ext.:  
887",
                        "     Provider:  CHINWEZE,KARINA M"
                ],
                "textClosing": [
                " ",
                "You should plan to arrive at the CHEYENNE VAMC 15 
minutes prior to your",
        {
                "scheduled appointment.  If for any reason you are unable 
to keep your",
                "appointment, please call (307) 778-7550 or toll free 
1-888-483-9127",
                "outside of Laramie County, Wyoming to cancel and/or 
reschedule.  We will",
                "do our best to see that you are promptly rescheduled.",
                " ",
                "If lab work, ultrasound or CT scan has been ordered for 
you, please ",
                "addressPatient": [
                "remember that this may require a 12 hour fast.  If you 
have any questions ",
                "on whether you should fast, or whether you are scheduled 
for any lab ",
                "work, please call either of the above numbers for 
instructions.",
                " ",
                " ",
                "Sincerely,",
                " ",
                        "           TESTAPPT SQA",
                " ",
                "Cheyenne VA Business Office (136)"
        ],
        "topSection": [
                
"                                                                
11/08/2024",
                
"                                                                4853"
        ]
                        "           968 SALTWATER CIR",
}
]
}
 
Example Error output:
{
        "Error": [
                "Invalid Letter Type: B.",
                "Invalid Appointment ID: 300667."
        ],
                        "           SAINT AUGUSTINE FL  32080-6305"
        "letters": [
                ""
        ]
}
                ],
                "appointmentID": 300647,