Currently this fails in situation where the same attribute is used across multiple interventions. First noticed when using PtMedication table to extract drugs.