You threw in a number of different things here, lol. So, you think the goal is the greatest happiness and health of everyone because that enables a better growth to civilivation. However, you also say that happiness is secondary to life. I suppose that's fine. However, if happiness is secondary, then that supposes that we can live a good enough life without happiness. That's a tough pill to swallow. Personally, I can conceive of a life not worth living, be it so completely full of pain and misery and loneliness with no possibility of change.
You further said that continuity of society is more important than the individual. That's not logically inconsistent, but continuity of one's society leads to a stagnant society. And if you suppose that is more important than any one life, and you take life to be more important than happiness, then you must take society to be more important than happiness. So this idea allows for a society that is cruel. Now if you take the greatest happiness of all involved like a utilitarian, then you have a contradiction. Some responsibility to society and some responsibility to happiness.