Legal action is being considered by the child's parents, who say a six-year-old is not old enough to decide their gender.