(a) At any time pursuant to section two, three or four of this article an individual is court ordered to a mental health facility, the individual has the right to receive treatment under the standards of medical management.
(b) An individual with health care decision-making capacity may refuse medications or other management unless court-ordered to be treated or unless a treating clinician determines that medication or other management is necessary in emergencies or to prevent danger to the individual or others.