Class: Renalware::Research::StudyParticipant

Inherits:
ApplicationRecord show all
Includes:
Accountable
Defined in:
app/models/renalware/research/study_participant.rb

Instance Method Summary collapse

Methods included from Accountable

#first_or_create_by!, #save_by, #save_by!, #update_by

Instance Method Details

#external_application_participant_urlObject



23
24
25
26
27
# File 'app/models/renalware/research/study_participant.rb', line 23

def external_application_participant_url
  return if study.application_url.blank?

  study.application_url.gsub("{external_id}", external_id.to_s)
end

#to_sObject



19
20
21
# File 'app/models/renalware/research/study_participant.rb', line 19

def to_s
  patient&.to_s
end