<commit_before>.exit-site-form
  = es.hidden_field :id
  = es.hidden_field :patient_id

.row
  = field_set_tag do
    legend Infection

    = es.label :diagnosis_date
    = es.date_select(:diagnosis_date, { start_year: (1.year.ago).year, end_year: (1.year.since).year, order: [:day, :month, :year] }, class: "datetime")

    = es.label :outcome, "Outcome"
    = es.text_area :outcome, cols: 50, rows: 6

    = es.label :treatment, "Treatment"
    = es.text_area :treatment, cols: 50, rows: 6

.row
  .large-12.columns
    .section-underliner
      h5 Organisms and their sensitivities

    = es.fields_for :infection_organisms do |io|

      = render partial: 'renalware/infection_organisms/forms', locals: { io: io }

    .large-12.columns
      = es.link_to_add 'Record a new organism and sensitivity', :infection_organisms, class: 'add-organism-sensitivity right mt'

.row
  .large-12.columns
    .section-underliner
      h5 Medications administered

    = render partial: 'renalware/medications/medication_forms', locals: { object: es }

    .large-12.columns
      = es.link_to_add 'Add a new medication', :medications, model_object: Renalware::Medication.exit_site, class: 'add-medication right mt'

.row
  = field_set_tag do
    legend Comments

    = es.label :notes, "General notes about this infection"
    = es.text_area :notes, cols: 50, rows: 6

<commit_msg>Pass legend to field set tag<commit_after>.exit-site-form
  = es.hidden_field :id
  = es.hidden_field :patient_id

.row
  = field_set_tag "Infection" do
    = es.label :diagnosis_date
    = es.date_select(:diagnosis_date, { start_year: (1.year.ago).year, end_year: (1.year.since).year, order: [:day, :month, :year] }, class: "datetime")

    = es.label :outcome, "Outcome"
    = es.text_area :outcome, cols: 50, rows: 6

    = es.label :treatment, "Treatment"
    = es.text_area :treatment, cols: 50, rows: 6

.row
  .large-12.columns
    .section-underliner
      h5 Organisms and their sensitivities

    = es.fields_for :infection_organisms do |io|

      = render partial: 'renalware/infection_organisms/forms', locals: { io: io }

    .large-12.columns
      = es.link_to_add 'Record a new organism and sensitivity', :infection_organisms, class: 'add-organism-sensitivity right mt'

.row
  .large-12.columns
    .section-underliner
      h5 Medications administered

    = render partial: 'renalware/medications/medication_forms', locals: { object: es }

    .large-12.columns
      = es.link_to_add 'Add a new medication', :medications, model_object: Renalware::Medication.exit_site, class: 'add-medication right mt'

.row
  = field_set_tag "Comments" do
    = es.label :notes, "General notes about this infection"
    = es.text_area :notes, cols: 50, rows: 6


{'fraction_non_alphanumeric': 0.12194231471339904, 'fraction_numerical': 0.01533406352683461, 'mean_word_length': 3.4918032786885247, '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': '4936440', 'n_tokens_mistral': 1009, 'n_tokens_neox': 922, 'n_words': 233}