app/helpers/patients_helper.rb
# Returns the full name of a patient.
Returns the full name of a patient.
Returns the full name of a patient .
def full_name(patient)
    if patient.family_name.blank? && patient.animal_type.present?
      return [patient.given_name,
              "(#{animal_species_name(patient.animal_type)})"].join(' ').squish
    end
    [patient.given_name,
     patient.middle_name,
     patient.family_name,
     patient.family_name2,
     patient.partner_name].join(' ').squish
  end
def full_name ( patient ) if patient . family_name . blank? && patient . animal_type . present? return [ patient . given_name , "(#{animal_species_name(patient.animal_type)})" ] . join ( ' ' ) . squish end [ patient . given_name , patient . middle_name , patient . family_name , patient . family_name2 , patient . partner_name ] . join ( ' ' ) . squish end
Returns the full name of a patient.
Returns the full name of a patient .
patient
<not_specific>