
| Name | Value | 
|---|---|
| NAME | MAGV ATTACH STUDY | 
| TAG | ATSTUDY | 
| ROUTINE | MAGVRS05 | 
| RETURN VALUE TYPE | ARRAY | 
| AVAILABILITY | RESTRICTED | 
| DESCRIPTION | This RPC allows a study to be attached to a patient and, optionally, a procedure.  | 
| INPUT PARAMETER | 
  | 
| RETURN PARAMETER DESCRIPTION | The first and only element of the return array will be formatted as [ERRORCODE]~[TEXT]~[ASSIGNED IEN]. An ERRORCODE value of 0 indicates success; all others indicate failure, as described in TEXT, and no IEN will be assigned.  |