extract_conditions function

Create vector of integers containing treatment condition identifiers