Upon the department's submission of an affidavit showing by clear and convincing evidence that the person or property which is the subject of the petition requires immediate custody in order to avoid a clear and immediate public health threat, a judge of the District Court or justice of the Superior Court may grant temporary custody of the subject of the petition to the department and may order specific emergency care, treatment or evaluation. [1989, c. 487, §11 (NEW).]