Hacienda HealthCare agrees to give licensing authority over to Department of Health