Drug allocation during a shortage

What criteria are used at facilities to determine which patients receive drugs during an extreme drug shortage when only a limited supply is available within the facility? How is this issue communicated to patients, if at all?