Upon commitment, the patient shall be confined in a facility designated by the department of health and senior services until such time as the patient’s discharge will not endanger public health.