The children's court may order a medical examination for a minor who is alleged to be a juvenile offender.