When any court orders a person to receive treatment under this chapter, the order shall include a statement that if the person is, or becomes, subject to supervision by the department of corrections, the person must notify the treatment provider and the person's mental health treatment information and substance use disorder treatment information must be shared with the department of corrections for the duration of the offender's incarceration and supervision, under RCW
71.05.445. Upon a petition by a person who does not have a history of one or more violent acts, the court may, for good cause, find that public safety would not be enhanced by the sharing of this person's information.