If upon completion of the evaluation required in § 27A-15-17.1, it is determined that a hearing shall be held and the minor has not retained his own attorney, the chairman of the board of mental illness which will be holding the hearing shall immediately appoint counsel for the minor and inform the minor of the date, time and place of the hearing. In no case shall the minor's attorney be a person who, in the previous two years, has advised or represented the person who admitted the minor or who would otherwise have a conflict of interest.
SDCL 27A-15-15.3