Court order made to determine if accused in apartment stabbi