Question juridique clé
Whether the defendant's right to be heard was violated by the order of safety detention
Solution extraite
The omission was a procedural defect, but it was cured on appeal because the defendant could fully argue before the cantonal appeal court, which had full review powers.
Motifs extraits
A violation of the right to be heard can be remedied if it is not particularly serious and the party can be heard before an authority with full factual and legal review; that occurred here.