Refactored the participant to query the p_type. Using person.participant

https://code.bioinformatics.northwestern.edu/issues/issues/show/3746