<commit_before>table#drug-type-prescriptions
  thead
    tr
      th.hosp_no= sort_link([:renalware, search], :patient_local_patient_id, t(".patient_local_patient_id"))
      th.patient_name= sort_link([:renalware, search], "patient_family_name", t(".patient_name"))
      th.patient_age= sort_link([:renalware, search], "patient_born_on", t(".patient_age"))
      th.patient_sex= t(".patient_sex")
      th.modality= t(".modality")
      th.col-width-date= sort_link([:renalware, search], "prescribed_on", t(".prescribed_on"))
      th.col-width-date.hide-for-small-only
        = sort_link([:renalware, search], "terminated_on", t(".terminated_on"))
      th.drug_name= sort_link([:renalware, search], "drug_name", t(".drug_name"))
      th.dose= t(".dose")
      th.route_code= t(".route_code")
      th.frequency= t(".frequency")
      th.weekly_units= t(".weekly_units")
  tbody
    - prescriptions.each do |prescription|
      tr
        td= link_to(prescription.patient_local_patient_id, patient_path(prescription.patient_id))
        td= prescription.patient_name
        td= prescription.patient_age
        td= prescription.patient_sex
        td= prescription.patient_current_modality_name
        td= l(prescription.prescribed_on)
        td= prescription.terminated_on && l(prescription.terminated_on)
        td= prescription.drug_name
        td= prescription.dose
        td= prescription.route_code
        td= prescription.frequency
        td=

= paginate prescriptions<commit_msg>ESA Patients link to clinical summary<commit_after>table#drug-type-prescriptions
  thead
    tr
      th.hosp_no= sort_link([:renalware, search], :patient_local_patient_id, t(".patient_local_patient_id"))
      th.patient_name= sort_link([:renalware, search], "patient_family_name", t(".patient_name"))
      th.patient_age= sort_link([:renalware, search], "patient_born_on", t(".patient_age"))
      th.patient_sex= t(".patient_sex")
      th.modality= t(".modality")
      th.col-width-date= sort_link([:renalware, search], "prescribed_on", t(".prescribed_on"))
      th.col-width-date.hide-for-small-only
        = sort_link([:renalware, search], "terminated_on", t(".terminated_on"))
      th.drug_name= sort_link([:renalware, search], "drug_name", t(".drug_name"))
      th.dose= t(".dose")
      th.route_code= t(".route_code")
      th.frequency= t(".frequency")
      th.weekly_units= t(".weekly_units")
  tbody
    - prescriptions.each do |prescription|
      tr
        td= prescription.patient_local_patient_id
        td= default_patient_link(prescription.patient)
        td= prescription.patient_age
        td= prescription.patient_sex
        td= prescription.patient_current_modality_name
        td= l(prescription.prescribed_on)
        td= prescription.terminated_on && l(prescription.terminated_on)
        td= prescription.drug_name
        td= prescription.dose
        td= prescription.route_code
        td= prescription.frequency
        td=

= paginate prescriptions
{'fraction_non_alphanumeric': 0.13097226862679587, 'fraction_numerical': 0.0, 'mean_word_length': 3.5920245398773005, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '3958356', 'n_tokens_mistral': 975, 'n_tokens_neox': 943, 'n_words': 157}