The public prosecutor or courts may have an accused admitted to hospital if this is required in order to prepare a medical report.
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 decide on the matter in written proceedings.105
If an in-patient assessment proves necessary during the court proceedings, the court concerned shall decide on the matter in written proceedings.106
The time spent in hospital shall be taken into account in the sentence.
In addition, the in-patient assessment is governed by mutatis mutandis by the regulations on remand and preventive detention.