In any case in which the court refers an application to the commissioner, the commissioner shall conduct the directed outpatient commitment under W.S. 25-10-110.1 or the involuntary hospitalization proceedings under this section and on the basis thereof shall either recommend dismissal of the application or hold a hearing as provided in this section and make recommendations to the court regarding the disposition of the proposed patient and of the proceedings. (m) An appointed examiner shall receive for his services in each court ordered examination a reasonable fee fixed by the court. (n) The court shall inquire into the medical condition of every patient found to be mentally ill. If the court determines based upon the advice of a physician or other qualified professional, and in consultation with any gatekeeper designated by the department pursuant to W.S. 25-10-112(g), that the patient's present primary need is for medical treatment or care and whose need for psychiatric care is secondary, the court may delay ordering directed outpatient commitment or involuntary hospitalization of the patient until such time as the patient receives medical care and the patient's need for psychiatric care is primary. (o) In proceedings under this section involving a minor, the court shall, to the extent feasible, consult with the minor's parents or legal guardian.