After the 2018 PHB errata, the spell contagion now inflicts the Poisoned condition upon a successful melee spell attack. The relevant spell text is below, with updated portions highlighted in bold:
Your touch inflicts disease. Make a melee spell attack against a creature within your reach. On a hit, the target is poisoned.
At the end of each of the poisoned target's turns, the target must make a Constitution saving throw. If the target succeeds on three of these saves, it is no longer poisoned, and the spell ends. If the target fails three of these saves, the target is no longer poisoned, but choose one of the diseases below. The target is subjected to the chosen disease for the spell's duration.
Since this spell induces a natural disease in its target, any effect that removes a disease or otherwise ameliorates a disease's effects apply to it.
The wording of the spell leads me to conclude that this spell still inflicts a disease, which has the immediate effect of poisoning the target. Therefore, even if a target has poison immunity, they will still make Constitution saves as designated to see if the disease takes effect.
However, the line, "At the end of each of the poisoned target's turns..." also leads me to think that an enemy with poison-immunity cannot be the Poisoned target, therefore disallowing the remaining sequence of events.
Are targets with immunity to the Poisoned condition therefore immune to contagion?