= render "renalware/patients/header"

.row
  table
    thead
      tr
        th
        th Name
        th NHS No.
        th KCH No.
        th Sex
        th Date of Birth
        th Date of Death
        th.column-6-width Age

    tbody
      - @patients.each do |patient|
        tr
          td
            = link_to "Demographics", patient_path(patient), title: "Demographics"
            = pipe_separator
            = link_to "Edit death details", edit_patient_death_path(patient.id), title: "Edit death details"
          td= patient.to_s(:full_name)
          td= patient.nhs_number
          td= patient.local_patient_id
          td= I18n.t("enums.gender.#{patient.sex}")
          td= patient.birth_date
          td= patient.death_date
          td= patient.age

= render "renalware/patients/header"

.row
  table
    thead
      tr
        th
        th Name
        th NHS No.
        th KCH No.
        th Sex
        th Date of Birth
        th Date of Death
        th.column-6-width Age

    tbody
      - @patients.each do |patient|
        tr
          td
            = link_to "Demographics", patient_path(patient), title: "Demographics"
            = pipe_separator
            = link_to "Edit death details", edit_patient_death_path(patient.id), title: "Edit death details"
          td= patient.to_s(:full_name)
          td= patient.nhs_number
          td= patient.local_patient_id
          td= patient.sex
          td= patient.birth_date
          td= patient.death_date
          td= patient.age

Correct call to patient sex in index template
Correct call to patient sex in index template

airslie/renalware-core,airslie/renalware-core,airslie/renalware-core,airslie/renalware-core