When you take ongoing damage, you only apply the highest ongoing damage from a given effect type (fire, cold, poison, etc).
For instance, in your case, you would only be subject to ongoing 5 poison damage that would then be negated by your resist 5 poison. However, if you were taking 5 ongoing...