The provisions of section 1-c and 1-d of chapter 9, relative to psychiatrists and expenses of confinement shall be applicable to proceedings taken under this chapter.