It is possible to know if a penalty was applied by poison/disease?

As the title says, i’m creating an ability that can heal both poison and disease and i was checking the remeffect script that is used for most spells that removes penalties and i noticed that Neutralize poison only removes the poison effect while Remove Disease removes both the effect and all ability score damage which this one seem odd to me since it should only remove what was applied by the disease only.

In short, what i want to know if there is any way to know if a penalty was applied by a poison/disease.

I was thinking maybe with GetEffectInteger or if GetEffectSpellId returns -1.