court-ordered psychiatric treatment