n examination or treatment of any person is necessary for the preservation and protection of the public health, he or she shall make an examination order in writing, setting forth the name of the person to be examined, the time and place of the examination, the treatment, and such other terms and conditions as may be necessary to protect the public health.