It sounds very upsetting. I've been sectioned for anorexia and it's incredibly distressing. Your instinct is of course not to comply, but you do. And then they might rescind the section. There's no other way but to comply and say you're happy to comply.
I hope the girl gets better. I don't know anything about the Scottish system unfortunately.
What's your take on the situation OP?