<commit_before>{% extends "pttrack/base.html" %}

{# unclear if this should be done in base.html or here... #}
{% load bootstrap3 %}

{% block title %}
Patient Details: {{ patient.last_name }}, {{ patient.first_name }} {{ patient.middle_name }}
{% endblock %}

{% block header %}
<div class="col-md-5">
	<div class="col-md-1">
		<h2><br><a href="{% url 'all-patients' %}">{% bootstrap_icon "chevron-left" %}</a></h2>
	</div>
	<div class="col-md-11">
		<h2>{{ patient.last_name }}, {{ patient.first_name }} {{ patient.middle_name }} <a href="{% url 'patient-update' pk=patient.id %}"><small>{% bootstrap_icon "pencil" %}</small></a></h2>
		<p class="lead">{{ patient.age }} y/o {{ patient.ethnicities.iterator | join:", " }} {{ patient.gender | lower }}</p>
		<p class="lead"><strong>Status:</strong> {{ patient.status }}</p>
		{% if patient.needs_workup %}
        <p class="lead"> Patient is Active <a href="{% url 'patient-activate' pk=patient.id %}">{% bootstrap_icon "remove-circle" %}</a></p>
        {% endif %}
        {% if not patient.needs_workup %}
        <p class="lead"> Patient is Inactive <a href="{% url 'patient-activate' pk=patient.id %}">{% bootstrap_icon "play-circle" %}</a></p>
        {% endif %}
	</div>
</div>
<div class="col-md-5 pull-right">
	<h3 class='text-center'> Actions </h3>
	<div class="btn-group">
	    <a class="btn btn-primary" href="{% url 'followup-choice' pt_id=patient.pk %}" role="button">Followup</a>
	    <a class="btn btn-success" href="{% url 'new-workup' pt_id=patient.pk %}" role="button">Workup</a>
	    <a class="btn btn-info" href="{% url 'new-action-item' pt_id=patient.pk %}" role="button">Action Item</a>
	    <a class="btn btn-warning" href="{% url 'new-document' pt_id=patient.pk %}" role="button">Upload Document</a>
	</div>
</div>
{% endblock %}

{% block content %}

{% if error_message %}<p><strong>{{ error_message }}</strong></p>{% endif %}

<div class="container">
	<div class="row">
		<h3>Info</h3><commit_msg>Modify patient-detail Actions bar to only display followup to Coordinators.<commit_after>{% extends "pttrack/base.html" %}

{# unclear if this should be done in base.html or here... #}
{% load bootstrap3 %}

{% block title %}
Patient Details: {{ patient.last_name }}, {{ patient.first_name }} {{ patient.middle_name }}
{% endblock %}

{% block header %}
<div class="col-md-5">
	<div class="col-md-1">
		<h2><br><a href="{% url 'all-patients' %}">{% bootstrap_icon "chevron-left" %}</a></h2>
	</div>
	<div class="col-md-11">
		<h2>{{ patient.last_name }}, {{ patient.first_name }} {{ patient.middle_name }} <a href="{% url 'patient-update' pk=patient.id %}"><small>{% bootstrap_icon "pencil" %}</small></a></h2>
		<p class="lead">{{ patient.age }} y/o {{ patient.ethnicities.iterator | join:", " }} {{ patient.gender | lower }}</p>
		<p class="lead"><strong>Status:</strong> {{ patient.status }}</p>
		{% if patient.needs_workup %}
        <p class="lead"> Patient is Active <a href="{% url 'patient-activate' pk=patient.id %}">{% bootstrap_icon "remove-circle" %}</a></p>
        {% endif %}
        {% if not patient.needs_workup %}
        <p class="lead"> Patient is Inactive <a href="{% url 'patient-activate' pk=patient.id %}">{% bootstrap_icon "play-circle" %}</a></p>
        {% endif %}
	</div>
</div>
<div class="col-md-4 text-center pull-right">
	<h3> Actions </h3>
	<div class="btn-group">
			{# if request.session.clintype_pk == "Coordinator" #}
	    <a class="btn btn-primary" href="{% url 'followup-choice' pt_id=patient.pk %}" role="button">Followup</a>
	    {# endif #}
	    <a class="btn btn-success" href="{% url 'new-workup' pt_id=patient.pk %}" role="button">Workup</a>
	    <a class="btn btn-info" href="{% url 'new-action-item' pt_id=patient.pk %}" role="button">Action Item</a>
	    <a class="btn btn-warning" href="{% url 'new-document' pt_id=patient.pk %}" role="button">Upload</a>
	</div>
</div>
{% endblock %}

{% block content %}

{% if error_message %}<p><strong>{{ error_message }}</strong></p>{% endif %}

<div class="container">
	<div class="row">
		<h3>Info</h3>
{'fraction_non_alphanumeric': 0.23065585851142226, 'fraction_numerical': 0.006877916973716531, 'mean_word_length': 4.233933161953727, 'pattern_counts': {'":': 0, '<': 109, '<?xml version=': 0, '>': 109, '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': '6430371', 'n_tokens_mistral': 1573, 'n_tokens_neox': 1420, 'n_words': 329}