<commit_before><?php
/**
 * OpenEyes
 *
 * (C) OpenEyes Foundation, 2017
 * This file is part of OpenEyes.
 * OpenEyes is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
 * OpenEyes 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 General Public License for more details.
 * You should have received a copy of the GNU General Public License along with OpenEyes in a file titled COPYING. If not, see <http://www.gnu.org/licenses/>.
 *
 * @package OpenEyes
 * @link http://www.openeyes.org.uk
 * @author OpenEyes <<EMAIL>>
 * @copyright Copyright (c) 2017, OpenEyes Foundation
 * @license http://www.gnu.org/licenses/gpl-3.0.html The GNU General Public License V3.0
 */

?>

<script type="text/javascript" src="<?=$this->getJsPublishedPath('SystemicDiagnoses.js')?>"></script>
<script type="text/javascript" src="<?=$this->getJsPublishedPath('OpenEyes.UI.DiagnosesSearch.js')?>"></script>

<?php
    $model_name = CHtml::modelName($element);
?>

<div class="element-fields" id="<?=CHtml::modelName($element);?>_element">
<?php if(false): ?>
    <!--
      <?php
        $this->widget('application.widgets.DiagnosisSelection', array(
            'nowrapper' => true,
            'field' => 'disorder_id',
            'options' => CommonSystemicDisorder::getList($this->controller->firm),
            'restrict' => 'systemic',
            'default' => false,
            'loader' => '#find_systemic_diagnosis_loader',
            'callback' => 'OpenEyes.OphCiExamination.SystemicDiagnosesSelectDiagnosis',
            'allowClear' => true,
            'layoutColumns' => array(
                'label' => 2,
                'field' => 4,
            ),
        ))?>
    <div class="field-row row">
        <div class="large-2 column"><label for="<?= $model_name ?>_diagnosis_side">Side:</label></div>
        <div class="large-3 column end">
            <label class="inline"><input type="radio" name="<?= $model_name ?>_diagnosis_side" class="<?= $model_name ?>_diagnosis_side" value="" checked="checked" /> None </label>
            <?php foreach (Eye::model()->findAll(array('order' => 'display_order')) as $eye) {?>
                <label class="inline"><input type="radio" name="<?= $model_name ?>_diagnosis_side" class="<?= $model_name ?>_diagnosis_side" value="<?php echo $eye->id?>" /> <?php echo $eye->name ?></label>
            <?php }?>
        </div>
    </div>
    
    <div class="field-row row">
        <div class="large-2 column"><label for="<?= $model_name ?>_diagnosis_side">new :</label></div>
        <div class="large-3 column end">
            <input type="text" class="diagnoses-search-autocomplete" id="ddd_1">
        </div>
    </div>
    <div class="field-row row">
        <div class="large-2 column"><label for="<?= $model_name ?>_diagnosis_side">new 2 :</label></div>
        <div class="large-3 column end">
            <input type="text" class="diagnoses-search-autocomplete" id="ddd_2">
        </div>
    </div>
    -->
<?php endif; ?>
    
    
    <div class="row">
        <div class="large-8 column">
            <?php $this->render('application.views.patient._fuzzy_date', array('class' => $model_name . '_diagnosis_fuzzy_date')) ?>
        </div>
        <div class="large-4 column end">
            <button class="button small primary add-diagnosis" id="<?= $model_name ?>_add_diagnosis">Add</button>
        </div>
    </div>

    <input type="hidden" name="<?= $model_name ?>[present]" value="1" />
    <table id="<?= $model_name ?>_diagnoses_table">
        <thead><commit_msg>OE-6815 - Removing date row from previos version<commit_after><?php
/**
 * OpenEyes
 *
 * (C) OpenEyes Foundation, 2017
 * This file is part of OpenEyes.
 * OpenEyes is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
 * OpenEyes 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 General Public License for more details.
 * You should have received a copy of the GNU General Public License along with OpenEyes in a file titled COPYING. If not, see <http://www.gnu.org/licenses/>.
 *
 * @package OpenEyes
 * @link http://www.openeyes.org.uk
 * @author OpenEyes <<EMAIL>>
 * @copyright Copyright (c) 2017, OpenEyes Foundation
 * @license http://www.gnu.org/licenses/gpl-3.0.html The GNU General Public License V3.0
 */

?>

<script type="text/javascript" src="<?=$this->getJsPublishedPath('SystemicDiagnoses.js')?>"></script>
<script type="text/javascript" src="<?=$this->getJsPublishedPath('OpenEyes.UI.DiagnosesSearch.js')?>"></script>

<?php
    $model_name = CHtml::modelName($element);
?>

<div class="element-fields" id="<?=CHtml::modelName($element);?>_element">
<?php if(false): ?>
    <!--
      <?php
        $this->widget('application.widgets.DiagnosisSelection', array(
            'nowrapper' => true,
            'field' => 'disorder_id',
            'options' => CommonSystemicDisorder::getList($this->controller->firm),
            'restrict' => 'systemic',
            'default' => false,
            'loader' => '#find_systemic_diagnosis_loader',
            'callback' => 'OpenEyes.OphCiExamination.SystemicDiagnosesSelectDiagnosis',
            'allowClear' => true,
            'layoutColumns' => array(
                'label' => 2,
                'field' => 4,
            ),
        ))?>
    <div class="field-row row">
        <div class="large-2 column"><label for="<?= $model_name ?>_diagnosis_side">Side:</label></div>
        <div class="large-3 column end">
            <label class="inline"><input type="radio" name="<?= $model_name ?>_diagnosis_side" class="<?= $model_name ?>_diagnosis_side" value="" checked="checked" /> None </label>
            <?php foreach (Eye::model()->findAll(array('order' => 'display_order')) as $eye) {?>
                <label class="inline"><input type="radio" name="<?= $model_name ?>_diagnosis_side" class="<?= $model_name ?>_diagnosis_side" value="<?php echo $eye->id?>" /> <?php echo $eye->name ?></label>
            <?php }?>
        </div>
    </div>
    
    <div class="field-row row">
        <div class="large-2 column"><label for="<?= $model_name ?>_diagnosis_side">new :</label></div>
        <div class="large-3 column end">
            <input type="text" class="diagnoses-search-autocomplete" id="ddd_1">
        </div>
    </div>
    <div class="field-row row">
        <div class="large-2 column"><label for="<?= $model_name ?>_diagnosis_side">new 2 :</label></div>
        <div class="large-3 column end">
            <input type="text" class="diagnoses-search-autocomplete" id="ddd_2">
        </div>
    </div>

    
    
    <div class="row">
        <div class="large-8 column">
            <?php $this->render('application.views.patient._fuzzy_date', array('class' => $model_name . '_diagnosis_fuzzy_date')) ?>
        </div>
        <div class="large-4 column end">
            <button class="button small primary add-diagnosis" id="<?= $model_name ?>_add_diagnosis">Add</button>
        </div>
    </div>
    -->
<?php endif; ?>
    
    <input type="hidden" name="<?= $model_name ?>[present]" value="1" />
    <table id="<?= $model_name ?>_diagnoses_table">
        <thead>
{'fraction_non_alphanumeric': 0.16853055916775034, 'fraction_numerical': 0.007542262678803641, 'mean_word_length': 3.1685636856368564, 'pattern_counts': {'":': 0, '<': 153, '<?xml version=': 0, '>': 197, 'https://': 0, 'lorem ipsum': 0, 'www.': 6, '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': '1569142', 'n_tokens_mistral': 2377, 'n_tokens_neox': 2301, 'n_words': 611}