VPSAPPT2 ;SLOIFO/BT - VPS Appointment RPC;1/16/15 11:55
Source file <VPSAPPT2.m>
| Name | Comments | DBIA/ICR reference | 
|---|---|---|
| GETCHG(VPSAPPT,VPSQUEUE) | ; VPS GET CHANGED APPOINTMENTS
 ; This RPC will return the changed appointments on the queue since the last GET^VPSAPPT or GETCHG^VPSAPPT2 invoked  | 
|
| POPAPPTS(QUEUEID) | ;populate result array with new appointment and updated appointments
 ; INPUT ; QUEUEID : Unique Queue ID represents Vecna Appointment Queue.  | 
|
| UPDQUEUE(QUEUEID) | ; add new appointments or update modified appointments
 | 
|
| UPDATE(QUEUEID,APPT) | ; update the appointment in temporary storage (File #853.9)
 ; INPUT ; QUEUEID : Unique Queue ID represents Vecna Appointment Queue. ; APPTINFO : Extended appointment information for Vecna to display in the queue ; CLINIC IEN^CLINIC NAME^APPT DATE^DFN^PATIENT NAME^SSN^APPT TYPE IEN^APPT TYPE NAME^STATUS IEN^STATUS NAME^PRINTED STATUS ; RETURN ; TODO : "" (no changed - nothing todo) ; : "ADD" (instruct vecna to add the appointment to the queue) ; : "UPD" (instruct vecna to update the appointment in the queue) ; : "ERR" (notify vecna there is error during add/change appointment)  | 
|
| UPDAPPT(QUEUEID,APPTIEN,APPTINFO) | ;update appointment status/type changed
 ; INPUT ; QUEUEID : Unique Queue ID represents Vecna Appointment Queue. ; APPTIEN : Appointment ien in the queue ; APPTINFO : Appointment information in the queue file 853.9 ; CLINIC IEN^APPT DATE^DFN^APPT TYPE IEN^PRINTED STATUS ; RETURN ; TODO : "UPD" (instruct vecna to update the appointment in the queue) ; : "ERR" (notify vecna there is error during add/change appointment)  | 
|
| RMVAPPTS(QUEUEID) | ;remove appointment from queue if appointmentsd are no longer existed
 | 
|
| DELAPPT(QUEUEID,APPTIEN) | ;delete temp appointment from the queue to reflect current appointments
 ; INPUT ; QUEUEID : Unique Queue ID represents Vecna Appointment Queue. ; APPTIEN : Appointment ien in the queue  | 
|
| ADDDEL(APPTIEN) | ;notify vecna to remove the entry from the Vecna's VPS appointment queue
 ; INPUT ; APPTIEN : Appointment ien in the queue  | 
| RPC Name | Call Tags | 
|---|---|
| VPS GET CHANGED APPOINTMENTS | GETCHG | 
| FileNo | Call Tags | 
|---|---|
| ^VPS(853.9 - [#853.9] | GETS^DIQ |