Check the category of the episode instead of the 'active' status.

It's far more clinically relevant.
refs openhealthcare/elcid#333