Section 47 applies if the Ministry of Justice orders you to be transfered from prison to hospital for treatment of you mental health problems. You can be kept under this section for up to 6 months, renewable for a second 6 months, and then 1 year at a time.