Class: Renalware::Research::StudyParticipant

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

Constant Summary

Constants included from PatientsRansackHelper

PatientsRansackHelper::UUID_REGEXP

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



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

def external_application_participant_url
  return if study.application_url.blank?

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

#to_sObject



21
22
23
# File 'app/models/renalware/research/study_participant.rb', line 21

def to_s
  patient&.to_s
end