Refactored c_dob_through_participant. Extract the possible conditions into a new method. Added specs. #3414