SDES2 CREATE VET REQ AND APPT (4987)    REMOTE PROCEDURE (8994)

Name Value
NAME SDES2 CREATE VET REQ AND APPT
TAG CREATEREQANDAPPT
ROUTINE SDES2CRTVETAPPT
RETURN VALUE TYPE ARRAY
AVAILABILITY RESTRICTED
INACTIVE ACTIVE
WORD WRAP ON FALSE
APP PROXY ALLOWED Yes
DESCRIPTION
This RPC will generate both an appointment request and an appointment, 
disposition the appointment request, then return the new request IEN and 
appointment IEN.
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.
                                 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.
    
  • request
  • REQUEST
    PARAMETER TYPE:   LIST
    MAXIMUM DATA LENGTH:   32000
    REQUIRED:   YES
    SEQUENCE NUMBER:   2
    DESCRIPTION:   
    ;  REQUEST("APPOINTMENT END TIME")          = (Required) APPT END TIME - 
    CCYY-MM-DDTHH:MM-NNNN)
     ;  REQUEST("PATIENT INDICATED DATE")        = (Required) CID/PID DATE - 
    ISO FORMAT
     ;  REQUEST("DFN")                           = (Required) PATIENT IEN
     ;  REQUEST("APPOINTMENT REASON")            = (Optional) FREE TEXT 
    (1-150)
     ;  REQUEST("COLLATERAL VISIT")              = (Optional) COLLATERAL - 1 
    FOR YES
     ;  REQUEST("APPOINTMENT TYPE IEN")          = (Optional) POINTER TO 
    APPOINTMENT TYPE FILE (#409.1)
    ISO FORMAT
     ;   Either APPOINTMENT TYPE IEN or APPOINTMENT TYPE NAME is Required
     ;  REQUEST("APPOINTMENT TYPE NAME")         = (Optional) NAME from 
    APPOINTMENT TYPE FILE (#409.1)
     ;  REQUEST("FOLLOWUP")                      = (Optional) FOLLOWUP VISIT 
    - 1 FOR YES 0 FOR NO
     ;  REQUEST("INSTITUTION NAME")              = (Optional) Institution 
    name from the INSTITUTION file
     ;  REQUEST("MODALITY")                      = (Optional) Valid Values: 
    FACE2FACE, TELEPHONE, VIDEO
     ;  REQUEST("NOTE")                          = (Optional) NOTE - FREE 
     ;  REQUEST("APPOINTMENT LENGTH")            = (Required) APPT LENGTH IN 
    TEXT 1-150
     ;  REQUEST("OVERBOOK")                      = (Optional) OVERBOOK (0 for 
    no, 1 for yes)
     ;  REQUEST("PATIENT COMMENT")               = (Optional) Patient-entered 
    comments when using VAOS or other web-service (stored at 409.85,60 a word 
    processing field)
     ;  REQUEST("PATIENT ELIGIBILITY IEN")       = (Optional) ELIGIBILITY IEN
     ;  REQUEST("PATIENT PREFERRED END DATE",1)  = (Optional) PATIENT 
    PREFERRED END DATE 1 - ISO FORMAT
     ;  REQUEST("PATIENT PREFERRED END DATE",2)  = (Optional) PATIENT 
    MINUTES (5-120)
    PREFERRED END DATE 2 - ISO FORMAT
     ;  REQUEST("PATIENT PREFERRED END DATE",3)  = (Optional) PATIENT 
    PREFERRED END DATE 3 - ISO FORMAT
     ;  REQUEST("PATIENT PREFERRED START DATE",1)= (Optional) PATIENT 
    PREFERRED START DATE 1 - ISO FORMAT
     ;  REQUEST("PATIENT PREFERRED START DATE",2)= (Optional) PATIENT 
    PREFERRED START DATE 2 - ISO FORMAT
     ;  REQUEST("PATIENT PREFERRED START DATE",3)= (Optional) PATIENT 
    PREFERRED START DATE 3 - ISO FORMAT
     ;  REQUEST("PATIENT STATUS")                = (Optional) PATIENT STATUS 
     ;  REQUEST("APPOINTMENT START TIME")        = (Required) APPT START TIME 
    - "NEW" OR "ESTABLISHED
     ;  REQUEST("PRIORITY")                      = (Optional) PRIORITY - 
    "ASAP" or FUTURE
     ;  REQUEST("PRIORITY GROUP")                = (Optional) ENROLLMENT 
    PRIORITY - GROUP 1 - GROUP 7
     ;  REQUEST("REQUEST COMMENT")               = (Optional) REQUEST COMMENT
     ;  REQUEST("SECONDARY STOP CODE")           = (Optional) Secondary Stop 
    Code Number pointer to CLINIC STOP file #40.7 used to populate the REQ 
    SECONDARY STOP CODE field in 409.85
     ;  REQUEST("SERVICE CONNECTED")             = (Optional) Valid Values: 
    - ISO FORMAT
    YES, NO
     ;  REQUEST("SERVICE CONNECTED PERCENTAGE")  = (Optional) SC % = 0-100
     ;  REQUEST("STATION NUMBER")                = (Optional) STATION NUMBER 
    (#99),INSTITUTION (#4)
     ;  REQUEST("STOP CODE")                     = (Optional) CLINIC STOP 
    pointer to CLINIC STOP file 40.7 used to populate the REQ 
    SERVICE/SPECIALTY field in 409.85
     ;  REQUEST("VAOS GUID")                     = (Optional) VAOS GUID
     ;  REQUEST("CLINIC IEN")                    = (Required) CLINIC IEN
     ;  REQUEST("CREATE DATE")                   = (Required) DATE/TIME 
    ENTERED (#409.85,9.5) in ISO8601 date/time format to include offset (e.g. 
    
RETURN PARAMETER DESCRIPTION
{
         "Appointment": {
                 "IEN": 292007
         },
         "Request": {
                 "IEN": 255931
         }
}