ADMISSION_REFERRAL_SET()
ADMISSION_REFERRAL_SET(team, user]) |
Introduced in API Version 2.7.23
Changes the referral of the ADMISSION
The ADMISSION affected is always the one in the execution context of the FORMULA.
This formula allows to change the currently assigned referral to a new one. Note that the team
and user
provided must correspond to a professional that has role CASE MANAGER in the ADMISSION’s SUBSCRIPTION, otherwise an error will be returned.
This FORMULA will only work if the selected user
is a CASE MANAGER of the SUBSCRIPTION in the team
provided. Otherwise an error will occur.
Input Parameters
Parameter | Type | Default | Required | Description |
---|---|---|---|---|
|
| Yes | Reference to the TEAM of the professional that will be assigned as referral of the ADMISSION Two types of value are accepted
| |
|
| No | Reference to the professional that will be assigned as the referral of the ADMISSION. You can get a list of valid values using the FORMULA † GET_LIST_MEMBERS() |
Return value
The value 1 if the execution is successful.
Otherwise the function returns NULL
Execution
When the FORM containing the FORMULA is closed
Examples
Formula | Description |
---|---|
ADMISSION_REFERRAL_SET(“LINKCARE”, 23432) | Set the referral of the ADMISSION to be the user identified by 23432 with team “LINKCARE” |