<commit_before>-# Copyright (C) 2007, 2008, 2009 The Collaborative Software Foundation
-#
-# This file is part of TriSano.
-#
-# TriSano is free software: you can redistribute it and/or modify it under the terms of the
-# GNU Affero General Public License as published by the Free Software Foundation, either 
-# version 3 of the License, or (at your option) any later version.
-#
-# TriSano is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; 
-# without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  
-# See the GNU Affero General Public License for more details.
-# 
-# You should have received a copy of the GNU Affero General Public License along with TriSano. 
-# If not, see http://www.gnu.org/licenses/agpl-3.0.txt.

%span.section-header
  Clinical Information

- event_form.fields_for(:disease, @event.disease, :builder => ExtendedFormBuilder) do |d|
  - core_element_print :disease_id, d, :horiz do
    %span.print-label Disease:
    %span.print-value= @event.disease.disease.disease_name unless @event.disease.nil? || @event.disease.disease.nil?
  - core_element_print :disease_onset_date, d, :horiz do
    %span.print-label Onset date
    %span.print-value= @event.disease.disease_onset_date unless @event.disease.nil? || @event.disease.disease.nil?
  - core_element_print :date_diagnosed, d, :horiz do
    %span.print-label Date diagnosed:
    %span.print-value= @event.disease.date_diagnosed unless @event.disease.nil? || @event.disease.disease.nil?
  - core_element_print :hospitalized_id, d, :horiz do
    %span.print-label Hospitalized:
    %span.print-value= l @event.disease.hospitalized unless @event.disease.nil?
  - core_element_print :died_id, d, :horiz do
    %span.print-label Died:
    %span.print-value= l @event.disease.died unless @event.disease.nil?

- event_form.fields_for(:interested_party, @event.interested_party, :builder => ExtendedFormBuilder) do |active_patient_form|
  - active_patient_form.fields_for(:person_entity, @event.interested_party.person_entity, :builder => ExtendedFormBuilder) do |primary_form|
    - primary_form.fields_for(:person, @event.interested_party.person_entity.person, :builder => ExtendedFormBuilder) do |person_form|
      - core_element_print :date_of_death, person_form, :vert do
        %span.print-label Date of death:
        %span.print-value= entity_data.person.date_of_death

- event_form.fields_for(:interested_party, :builder => ExtendedFormBuilder) do |patient_fields|
  - patient_fields.fields_for(:risk_factor, :builder => ExtendedFormBuilder) do |risk_factor_form|
    - core_element_print :pregnant_id, risk_factor_form, :horiz do
      %span.print-label Pregnant:<commit_msg>Fix to get fb_disease_core_field_configs_selspec-05.rb passing.<commit_after>-# Copyright (C) 2007, 2008, 2009 The Collaborative Software Foundation
-#
-# This file is part of TriSano.
-#
-# TriSano is free software: you can redistribute it and/or modify it under the terms of the
-# GNU Affero General Public License as published by the Free Software Foundation, either 
-# version 3 of the License, or (at your option) any later version.
-#
-# TriSano is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; 
-# without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  
-# See the GNU Affero General Public License for more details.
-# 
-# You should have received a copy of the GNU Affero General Public License along with TriSano. 
-# If not, see http://www.gnu.org/licenses/agpl-3.0.txt.

%span.section-header
  Clinical Information

- event_form.fields_for(:disease_event, :builder => ExtendedFormBuilder) do |d|
  - core_element_print :disease_id, d, :horiz do
    %span.print-label Disease:
    %span.print-value= @event.disease.disease.disease_name unless @event.disease.nil? || @event.disease.disease.nil?
  - core_element_print :disease_onset_date, d, :horiz do
    %span.print-label Onset date
    %span.print-value= @event.disease.disease_onset_date unless @event.disease.nil? || @event.disease.disease.nil?
  - core_element_print :date_diagnosed, d, :horiz do
    %span.print-label Date diagnosed:
    %span.print-value= @event.disease.date_diagnosed unless @event.disease.nil? || @event.disease.disease.nil?
  - core_element_print :hospitalized_id, d, :horiz do
    %span.print-label Hospitalized:
    %span.print-value= l @event.disease.hospitalized unless @event.disease.nil?
  - core_element_print :died_id, d, :horiz do
    %span.print-label Died:
    %span.print-value= l @event.disease.died unless @event.disease.nil?

- event_form.fields_for(:interested_party, @event.interested_party, :builder => ExtendedFormBuilder) do |active_patient_form|
  - active_patient_form.fields_for(:person_entity, @event.interested_party.person_entity, :builder => ExtendedFormBuilder) do |primary_form|
    - primary_form.fields_for(:person, @event.interested_party.person_entity.person, :builder => ExtendedFormBuilder) do |person_form|
      - core_element_print :date_of_death, person_form, :vert do
        %span.print-label Date of death:
        %span.print-value= entity_data.person.date_of_death

- event_form.fields_for(:interested_party, :builder => ExtendedFormBuilder) do |patient_fields|
  - patient_fields.fields_for(:risk_factor, :builder => ExtendedFormBuilder) do |risk_factor_form|
    - core_element_print :pregnant_id, risk_factor_form, :horiz do
      %span.print-label Pregnant:
{'fraction_non_alphanumeric': 0.10551296093464768, 'fraction_numerical': 0.005841548010222709, 'mean_word_length': 4.625256673511293, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 15, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '2495674', 'n_tokens_mistral': 1863, 'n_tokens_neox': 1734, 'n_words': 466}