For the purpose of collecting statistics, the department shall establish and require state and local agencies that operate a jail or other detention facility to use a standardized form to keep a record and report the admission of a minor. The record shall be limited to the name of the minor admitted, the minor's date of birth, the specific offense for which the minor was admitted, the date and time admitted, the date and time released, the sex of the minor, the ethnic origin of the minor, and other information required by federal law. Except for the notation of the date and time of the minor's release, the record shall be prepared at the time of the minor's admission. Unless otherwise provided by law, information and records obtained under this section are confidential and are not public records. They may be disclosed only for the purpose of compiling statistics and in a manner that does not reveal the identity of the minor.