(a) When an individual is detained or involuntarily admitted to a mental health facility under the Behavioral Health Crisis Intervention Protocol Act of 2017, § 20-47-801 et seq., or to the state's mental health system, the costs of proceedings shall be paid according to § 20-47-201 et seq.
(b) If the individual alleged to be in need of involuntary admission to the state's mental health system or who was detained under the Behavioral Health Crisis Intervention Protocol Act of 2017, § 20-47-801 et seq., is discharged without admission, the costs of proceedings shall be paid by the person at whose instance the proceedings were held, unless waived by the court.