FUNC Use angularjs to add patients to groups