<commit_before>{% load panels %}
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#main-navbar">
  <span class="sr-only">Toggle navigation</span>
  <span class="icon-bar"></span>
  <span class="icon-bar"></span>
  <span class="icon-bar"></span>
</button>
<div class="container content-offset">
  <div class="panel panel-primary">
    <div class="panel-heading">
      <h2>
         <i class="fa fa-user"></i>
        [[patient.name]]
        [[patient.hospital_number]]
        <small>
          <span ng-show="patient.date_of_birth">
              ([[patient.date_of_birth | shortDate]])
          </span>
        </small>
      </h2>
    </div>
    <div class="panel-body">
        <div class="patient-timeline-container">
            <div class="row">
                <div class="col-md-6">
                    {% record_panel models.Allergies %}
                </div>
                <div class="col-md-6">
                    {% record_panel models.MicrobiologyTest editable="false" title="Alert Investigation Results" name="alertInvestigations()" detail_template="records/alert_investigations.html" %}
                </div>
            </div>
            <section ng-repeat="e in episodes">
                <div class="row">
                    <div class="col-md-12 text-center">
                        <a class="orange-link" ng-href="[[ getEpisodeLink(e) ]]">
                            <span ng-show="e.active">Current </span>
                            <span ng-show="e.category === 'inpatient'">Inpatient Admission</span>
                            <span ng-show="e.category !== 'inpatient'">[[ e.category | title ]] Episode</span>
                            <span ng-show="e.date_of_admission">
                                [[ e.date_of_admission | shortDate ]]
                                <span ng-show="e.date_of_discharge"> - [[ e.date_of_discharge | shortDate ]]</span
                            </span>
                            <span ng-show="!e.date_of_admission">
                                [[ e.date_of_episode | shortDate ]]
                            </span>
                        </a>
                    </div>
                </div>
                <hr class="patient-timeline-seperator">
                <div class="row">
                    <div parent-height class="col-md-6">
                        <div ng-if="$first" class="row">
                            <div class="col-md-12">
                                {% if inline_forms|length > 1 %}
                                <form>
                                    <div class="fake-select-wrapper">
                                        <select class="form-control attached-select" ng-model="inlineForm.name" ng-init="initialiseForm('{{ inline_forms.keys|first }}')">
                                            {% for form_name in inline_forms %}
                                                <option>{{ form_name }}</option>
                                            {% endfor %}
                                        </select>
                                    </div>
                                </form>
                                {% endif %}
                                {% for form_name, form_template in inline_forms.items %}
                                    {% if inline_forms|length > 1 %}
                                        <div class="select-attached" ng-show="inlineForm.name === '{{ form_name }}'">
                                    {% endif %}
                                    {% include form_template %}
                                    {% if inline_forms|length > 1 %}
                                        </div>
                                    {% endif %}
                                {% endfor %}
                            </div>
                        </div>
                        <div ng-if="$first" class="row">
                            <div class="col-md-3 patient-timeline">
                                <div class="patient-timeline-now">
                                    <div class="patient-timeline-now-text bg-secondary">
                                        Now
                                    </div>
                                </div>
                            </div>
                        </div>
                        <svg class="speech-bubble-timeline-container">
                             <line class="speech-bubble-timeline hidden-sm hidden-xs" x1="12.5%" y1="0" x2="12.5%" y2="500%" />
                             <line class="speech-bubble-timeline hidden-md hidden-lg" x1="50%" y1="0" x2="50%" y2="500%" />
                        </svg>
                        <div ng-repeat="microbiology_input in e.microbiology_input  | orderBy:'-when'" class="row content-offset-20">

                            <div class="col-md-3 patient-timeline">
                                <div class="patient-timeline-speech-bubble">
                                    <i class="fa fa-comments patient-timeline-speech-bubble-icon"></i>
                                </div>
                                <div ng-show="microbiology_input.when">
                                    <div class="patient-timeline-date">
                                        [[ microbiology_input.when.format("D MMM") ]]
                                    </div>
                                </div>
                            </div>
                            <div class="col-md-9">
                                <div class="patient-timeline-discussion">
                                    <b ng-show="microbiology_input.initials && microbiology_input.initials.trim().length">
                                      ([[microbiology_input.initials]]<span ng-show="microbiology_input.discussed_with"> with [[microbiology_input.discussed_with]]</span>)
                                      [[microbiology_input.reason_for_interaction]]
                                    <br />
                                    </b>
                                    [[ microbiology_input.clinical_discussion]]
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="col-md-6">
                        {% record_panel models.Diagnosis editable="e.id === episode.id" %}
                        {% record_panel models.MicrobiologyTest editable="e.id === episode.id" %}
                        {% record_panel models.Antimicrobial editable="e.id === episode.id" %}
                    </div>
                </div>
            </section>
        </div>
    </div>
  </div>


</div>
<div scroll-top="true" class="hidden-at-top scrollToTop"><div class="scrollToTopInner">Top</div></div><commit_msg>changing the order of the clinical advice modals<commit_after>{% load panels %}
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#main-navbar">
  <span class="sr-only">Toggle navigation</span>
  <span class="icon-bar"></span>
  <span class="icon-bar"></span>
  <span class="icon-bar"></span>
</button>
<div class="container content-offset">
  <div class="panel panel-primary">
    <div class="panel-heading">
      <h2>
         <i class="fa fa-user"></i>
        [[patient.name]]
        [[patient.hospital_number]]
        <small>
          <span ng-show="patient.date_of_birth">
              ([[patient.date_of_birth | shortDate]])
          </span>
        </small>
      </h2>
    </div>
    <div class="panel-body">
        <div class="patient-timeline-container">
            <div class="row">
                <div class="col-md-6">
                    {% record_panel models.Allergies %}
                </div>
                <div class="col-md-6">
                    {% record_panel models.MicrobiologyTest editable="false" title="Alert Investigation Results" name="alertInvestigations()" detail_template="records/alert_investigations.html" %}
                </div>
            </div>
            <section ng-repeat="e in episodes">
                <div class="row">
                    <div class="col-md-12 text-center">
                        <a class="orange-link" ng-href="[[ getEpisodeLink(e) ]]">
                            <span ng-show="e.active">Current </span>
                            <span ng-show="e.category === 'inpatient'">Inpatient Admission</span>
                            <span ng-show="e.category !== 'inpatient'">[[ e.category | title ]] Episode</span>
                            <span ng-show="e.date_of_admission">
                                [[ e.date_of_admission | shortDate ]]
                                <span ng-show="e.date_of_discharge"> - [[ e.date_of_discharge | shortDate ]]</span
                            </span>
                            <span ng-show="!e.date_of_admission">
                                [[ e.date_of_episode | shortDate ]]
                            </span>
                        </a>
                    </div>
                </div>
                <hr class="patient-timeline-seperator">
                <div class="row">
                    <div parent-height class="col-md-6">
                        <div ng-if="$first" class="row">
                            <div class="col-md-12">
                                {% if inline_forms|length > 1 %}
                                <form>
                                    <div class="fake-select-wrapper">
                                        <select class="form-control attached-select" ng-model="inlineForm.name" ng-init="initialiseForm('{{ inline_forms.keys|first }}')">
                                            {% for form_name in inline_forms %}
                                                <option>{{ form_name }}</option>
                                            {% endfor %}
                                        </select>
                                    </div>
                                </form>
                                {% endif %}
                                {% for form_name, form_template in inline_forms.items %}
                                    {% if inline_forms|length > 1 %}
                                        <div class="select-attached" ng-show="inlineForm.name === '{{ form_name }}'">
                                    {% endif %}
                                    {% include form_template %}
                                    {% if inline_forms|length > 1 %}
                                        </div>
                                    {% endif %}
                                {% endfor %}
                            </div>
                        </div>
                        <div ng-if="$first" class="row">
                            <div class="col-md-3 patient-timeline">
                                <div class="patient-timeline-now">
                                    <div class="patient-timeline-now-text bg-secondary">
                                        Now
                                    </div>
                                </div>
                            </div>
                        </div>
                        <svg class="speech-bubble-timeline-container">
                             <line class="speech-bubble-timeline hidden-sm hidden-xs" x1="12.5%" y1="0" x2="12.5%" y2="500%" />
                             <line class="speech-bubble-timeline hidden-md hidden-lg" x1="50%" y1="0" x2="50%" y2="500%" />
                        </svg>
                        <div ng-repeat="microbiology_input in e.microbiology_input  | orderBy:'-when'" class="row content-offset-20">

                            <div class="col-md-3 patient-timeline">
                                <div class="patient-timeline-speech-bubble">
                                    <i class="fa fa-comments patient-timeline-speech-bubble-icon"></i>
                                </div>
                                <div ng-show="microbiology_input.when">
                                    <div class="patient-timeline-date">
                                        [[ microbiology_input.when.format("D MMM") ]]
                                    </div>
                                </div>
                            </div>
                            <div class="col-md-9">
                                <div class="patient-timeline-discussion">
                                    <b ng-show="microbiology_input.initials && microbiology_input.initials.trim().length">
                                      ([[microbiology_input.initials]]<span ng-show="microbiology_input.discussed_with"> with [[microbiology_input.discussed_with]]</span>)
                                      [[microbiology_input.reason_for_interaction]]
                                    <br />
                                    </b>
                                    [[ microbiology_input.clinical_discussion]]
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="col-md-6">
                        {% record_panel models.Antimicrobial editable="e.id === episode.id" %}
                        {% record_panel models.MicrobiologyTest editable="e.id === episode.id" %}
                        {% record_panel models.Diagnosis editable="e.id === episode.id" %}
                    </div>
                </div>
            </section>
        </div>
    </div>
  </div>


</div>
<div scroll-top="true" class="hidden-at-top scrollToTop"><div class="scrollToTopInner">Top</div></div>
{'fraction_non_alphanumeric': 0.12679862683514717, 'fraction_numerical': 0.006427580162150318, 'mean_word_length': 1.0176834659593281, 'pattern_counts': {'":': 0, '<': 227, '<?xml version=': 0, '>': 231, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 86, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3931735', 'n_tokens_mistral': 3522, 'n_tokens_neox': 3173, 'n_words': 552}