1 The public prosecutor or courts may have an accused admitted to hospital if this is required in order to prepare a medical report.
2 The public prosecutor shall apply to the compulsory measures court for the accused to be admitted to hospital unless the accused is already on remand. The compulsory measures court shall issue a final judgment on the matter in written proceedings.
3 If an in-patient assessment proves necessary during the court proceedings, the court concerned shall issue a final decision on the matter in written proceedings.
4 The time spent in hospital shall be taken into account in the sentence.
5 In addition, the in-patient assessment is governed by mutatis mutandis by the regulations on remand and preventive detention.