As soon as practicable after the respondent's delivery to a facility under Iowa Code section 229.22, the magistrate shall identify or appoint an attorney for the respondent and shall immediately notify such attorney of respondent's emergency detention. If counsel can be identified at the time of respondent's arrival at a facility, or if legal services are available through a legal aid or public defender office, the magistrate must immediately notify such counsel and such counsel shall be afforded an opportunity to see the respondent and to make such preparation as is appropriate before or after the magistrate's order is issued.
R. Invo. Hosp. Ment. Ill Pers. 12.29