
| Name | Value |
|---|---|
| NAME | PSB WITNESS |
| TAG | WITNESS |
| ROUTINE | PSBRPC1 |
| RETURN VALUE TYPE | ARRAY |
| AVAILABILITY | PUBLIC |
| DESCRIPTION | Used by frmWintess to validate if a Witness at the client is authorized to be a witness for a BCMA action, i.e. High Risk Drug administration. Validation is achieved via not allowing the logged in person to witness for themselves, also persons that hold certain keys can't be a valid witness. |
| INPUT PARAMETER |
|
| RETURN PARAMETER DESCRIPTION |
Results array is returned in the following forms:
Or '-1^Cannot Witness for yourself'
Or '-1^A student does not have authority to witness a
High Risk/High Alert administration.'
Or '-1^You do not have authority to witness a
High Risk/High Alert administration.'
Or '-1^Read-Only users do not have authority to witness a
High Risk/High Alert administration.'
Or '-1^Invalid VistA user - No Primary menu setup for
this user in the NEW PERSON file.'
Or '-1^A non-BCMA user does not have authority to witness
a High Risk/High Alert administration.'
Success of the call is validated by the first up-arrow piece of data
being greater than 0.
Valid authorization of Witness.
Results[0] = 'Witness DUZ^Witness Name'
Invalid authorization of Witness.
Results[0] = '-1^Invalid Witness sign-on'
|