the superintendent of the state institution (as defined in IC 12-7-2-184) or the director or medical director of the third party contractor, if the division of mental health and addiction has entered into a contract for the provision of competency restoration services by a third party, shall certify to the proper court whether the defendant has a substantial probability of attaining the ability to understand the proceedings and assist in the preparation of the defendant's defense within the foreseeable future.
whichever first occurs.
IC 35-36-3-3