SDESLOC ;ALB/ANU - VISTA SCHEDULING RPCS - USERS FOR HOSPITAL LOCATION ; May 09, 2022@15:20
Source file <SDESLOC.m>
| Name | Comments | DBIA/ICR reference | 
|---|---|---|
| UPDPRIV(ELGRETURN,ADDFLAG,LOCIEN,USRIEN) | ;Update the list of privileged user for a hospital location
 ; This RPC adds privileged user to a hospital location. ; Input: ; ELGRETURN - [required] - Success or Error message ; ADDFLAG - [required] - 1 (Add User), 0 (Delete User) ; LOCIEN - [required] - The Hopspital Location IEN ; USRIEN - [required] - The New Person IEN  | 
|
| RMVALLUSR(ELGRETURN,LOCIEN) | ;Remove all privileged user for a hospital location
 ; This RPC removes privileged user to a hospital location. ; Input: ; ELGRETURN - [required] - Success or Error message ; LOCIEN - [required] - The Hopspital Location IEN  | 
|
| RTNALLUSR(ELGRETURN,LOCIEN) | ;Return all privileged user for a hospital location
 ; This RPC removes privileged user to a hospital location. ; Input: ; ELGRETURN - [required] - Success or Error message ; LOCIEN - [required] - The Hopspital Location IEN  | 
|
| VALIDATE(ERRORS,ADDFLAG,LOCIEN,USRIEN) | ; Validate Location IEN, User IEN
 | 
|
| VALIDATER(ERRORS,LOCIEN) | ; Validate Location IEN
 | 
|
| ADDUSR(ELGARRAY,LOCIEN,USRIEN) | ; Add User
 | 
|
| RMVUSR(ELGARRAY,LOCIEN,USRIEN) | ; Delete User
 | 
|
| RMVAUSR(ELGARRAY,LOCIEN) | ; Delete Users
 | 
|
| RTNAUSR(ELGARRAY,LOCIEN) | ; Return all Users
 | 
|
| EMPTYJSON(RETURN) | ;return an empty string JSON Format if an Error occur or no data found
 | 
|
| CLEANUP | ; Cleanup
 |