An Act of the Scottish Parliament to add public safety to the grounds for not discharging certain patients detained under the Mental Health (Scotland) Act 1984; to provide for appeal against the decision of the sheriff on applications by these patients for their discharge; and to amend the definition of "mental disorder" in that Act.