fied a bug in methods not using map(&:patient_id)
uncommented cpde