Need clarification of MAV_SYS_STATUS_SENSOR

I am checking the values of SYS_STATUS, more specifically the onboard_control_sensor parameters, to see how I could implement the flags inside my script. So I extract onboard_control_sensors_health and get the value of 1399954479. My assumption is that this value is the sum of all the flag values of MAV_SYS_STATUS_SENSOR that are active/enabled. Is my assumption correct?

Yes, health flags are individual bits of that number.
Here is a sample script to get prearm bit.

Thank you for the answer.
I also sent you a private message of a unrelated subject