[OE-3737] Fixed calculating the list of active elements. Fixes the clinical management dropdown.