<commit_before>.row
  %h5.g-center.fi-clipboard-notes.left
    = "Patient Info"
  %h5.g-center.right
    = link_to "Edit", edit_patient_path(@patient), :title => "Edit demographics", :class => "fi-clipboard-pencil"
.row
  .large-12.columns
    = field_set_tag do
      %legend
        Patient Demographics
  
      .large-3.columns
        %dl
          %dt NHS Number:
          %dd= "#{@patient.nhs_number}"

          %dt Local Patient ID:
          %dd= "#{@patient.local_patient_id}"

      .large-3.columns
        %dl    
          %dt Last Name:
          %dd= "#{@patient.surname}"

          %dt First Name:
          %dd= "#{@patient.forename}"

      .large-3.columns
        %dl
          %dt Sex:
          %dd= I18n.t("enums.gender.#{@patient.sex}")

          %dt Ethnicity:
          %dd= "#{@patient.ethnicity.name}"

      .large-3.columns
        %dl
          %dt Date of Birth:
          %dd= "#{@patient.dob}"

          %dt Paediatric Patient:
          %dd= "#{@patient.paediatric_patient_indicator}"

.row
  .large-4.columns
    = field_set_tag do
      %legend
        Organisation/Practice

      %dl
        %dt GP Practice Code:
        %dd= "#{@patient.gp_practice_code}"

      %dl
        %dt PCT Organisation Code:
        %dd= "#{@patient.pct_org_code}"

      %dl
        %dt Hospital Centre Code:
        %dd= "#{@patient.hosp_centre_code}"

      %dl
        %dt Primary ESRF Centre:
        %dd= "#{@patient.primary_esrf_centre}"

  .large-4.columns
    = field_set_tag do
      %legend
        Current Address
      <commit_msg>Updated demographics view to include date of death<commit_after>.row
  %h5.g-center.fi-clipboard-notes.left
    = "Patient Info"
  %h5.g-center.right
    = link_to "Edit", edit_patient_path(@patient), :title => "Edit demographics", :class => "fi-clipboard-pencil"
.row
  .large-12.columns
    = field_set_tag do
      %legend
        Patient Demographics
  
      .large-3.columns
        %dl
          %dt NHS Number:
          %dd= "#{@patient.nhs_number}"

          %dt Local Patient ID:
          %dd= "#{@patient.local_patient_id}"

      .large-3.columns
        %dl    
          %dt Last Name:
          %dd= "#{@patient.surname}"

          %dt First Name:
          %dd= "#{@patient.forename}"

      .large-3.columns
        %dl
          %dt Sex:
          %dd= I18n.t("enums.gender.#{@patient.sex}")

          %dt Ethnicity:
          %dd= "#{@patient.ethnicity.name}"

      .large-3.columns
        %dl
          %dt Date of Birth:
          %dd= "#{@patient.dob}"

          %dt Date of Death:
          %dd= "#{@patient.death_date}"
      .large-12.columns
        %dl
          %dt Paediatric Patient:
          %dd= "#{@patient.paediatric_patient_indicator}"

.row
  .large-4.columns
    = field_set_tag do
      %legend
        Organisation/Practice

      %dl
        %dt GP Practice Code:
        %dd= "#{@patient.gp_practice_code}"

      %dl
        %dt PCT Organisation Code:
        %dd= "#{@patient.pct_org_code}"

      %dl
        %dt Hospital Centre Code:
        %dd= "#{@patient.hosp_centre_code}"

      %dl
        %dt Primary ESRF Centre:
        %dd= "#{@patient.primary_esrf_centre}"

  .large-4.columns
    = field_set_tag do
      %legend
        Current Address
      
{'fraction_non_alphanumeric': 0.13575350823672971, 'fraction_numerical': 0.007931665649786455, 'mean_word_length': 1.7508389261744965, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6069930', 'n_tokens_mistral': 1164, 'n_tokens_neox': 1091, 'n_words': 231}