This refers to Section 117 of the Mental Health Act 1983, which places a duty on the NHS and local councils to provide mental health after-care support for people who have been detained in hospital under certain sections of the 1983 Act.