Immediate releases from total confinement; transfer of person to department; time limitations on assessment, notification, and filing petition to hold in custody; filing petition after release; order into custody of department after release.