Does your BG care what you have called the "primary" and "secondary"?  Or is it the collection of food that was eaten?

Fwiw, I'm right now trying to tease out if this can be multiple events, or if we need the components of a meal to all be members of an array inside of a single food event.