SDESAPTREQ44 ;ALB/ANU,KML - APPOINTMENT REQUEST CREATE/UPDATE IN FILE44 ;Feb 16, 2022
Source file <SDESAPTREQ44.m>
| Name | Comments | DBIA/ICR reference | 
|---|---|---|
| ARSET(RETURN,ARUPD,ARIEN,DFN,ARDAPTDT,ARLEN,ARRSN,ARUSER,ARODT,PATELG,AROVR) | ; Create/Update Appointment Request
 ; INP - Input parameters array ; ARUPD = (integer) 1 for Update and 0 for Create Appointment ; ARIEN = (integer) IEN point to HOSPTIAL LOCATION file 44 ; If null, a new entry will be added ; DFN = (text) DFN Pointer to the PATIENT file 2 ; ARDAPTDT = (date/time) APPOINTMENT DATE/TIME in ISO8601 extended format (e.g. 2021-12-22T20:30-0500) ;vse-2097 ; ARLEN = (integer) Appointment length in minutes (5 - 120) ; ARRSN = (text) Reason for Appointment upto 150 characters ; ARUSER = (text) Originating User name - NAME field in NEW PERSON file 200 ; ARODT = (date ONLY) DATE APPOINTMENT MADE in ISO8601 extended format (e.g. 2021-12-22) ; PATELG = (text) Eligibility of Visit ; AROVR = (integer) Overbook flag - 1=yes  | 
|
| VALIDATE | ;
 | 
|
| CREATE | ;Build FDA array to creat a new entry in 44
 ; add appt to file 44  | 
|
| UPDATE | ;Find ien for appt in file 44
 | 
|
| BUILDER | ;Convert data to JSON
 |