39Upon a restriction direction in respect of a patient who immediately before the commencement of this Act was a transferred patient within the meaning of paragraph 15 of Schedule 6 to the Mental Health Act 1959 ceasing to have effect, the responsible medical officer shall record his opinion whether the patient is suffering from mental illness, severe mental impairment, psychopathic disorder or mental impairment, and references in this Act to the form or forms of mental disorder specified in the relevant application, order or direction shall be construed as including references to the form or forms of mental disorder recorded under this paragraph or under paragraph 17 of the said Schedule 6.