Regarding the CS (having just read the judgement), I think it's pretty clear that they did the right thing.
This lady was in hospital suffering from psychotic episodes & delusional beliefs. Whether this was because she couldn't take her medication or the medication wasn't fully effective, we don't know - but she was suffering in this way. Her psychiatrist, who had worked with her for some time, made that clear. (The Judge was careful to point out that this wasn't a random psychiatrist who'd just seen her once to make a report).
She was heavily pregnant & having had two CS's previously, she faced the risk of uterine rupture if she attempted a VD.
This risk is manageable in mothers with full capacity. Monitoring can take place during labour to avert disaster etc.
In this woman's situation, they faced the real risk that she might hinder their attempts at monitoring, as a direct result of her delusional beliefs. She might, firstly, refuse to acknowledge or alert anyone that she was in labour, and she then might refuse to allow any examinations & monitoring - which means that a situation potentially manageable becomes very risky. And I suspect that the nature of her delusions may have led her doctors to believe that she would seek to prevent intervention or monitoring.
It's all about the least risky option for the patient - who, it is clear, lacked the capacity to make the best decision for herself.
Allowing her to proceed to VD & then finding that she refuses permission to be monitored was tremendously risky. If this happened, it could have been too late for a court order.
Far less risky was for them to plan a CS for her.
It was all about the least risky course of action for the patient. Fingers crossed & hope for the best was far, far more risky.
They did the right thing.
The matter of whether the child should have been taken into care &/or adopted is another, separate issue.