<commit_before>{% extends 'main/base.html' %}

{% block content %}

<h1>Report</h1>

<h4>Count Stats</h4>
<table class="table table-bordered">
	<tr>
		<th>Site</th>
        <td>{{bonemarrowbackground.site}}</td>
	</tr>
	<tr>
		<th>Ease of Aspiration</th>
        <td>{{bonemarrowbackground.ease_of_aspiration}}</td>	
	</tr>
	<tr>
		<th>Particle Number</th>
        <td>{{bonemarrowbackground.particulate}}</td>
	</tr>
	<tr>
		<th>Cellularity</th>
        <td>{{bonemarrowbackground.particle_cellularity}}</td>
	</tr>
	<tr>
		<th>Trail Cellularity</th>
        <td>{{bonemarrowbackground.trail_cellularity}}</td>
	</tr>
	<tr>
		<th>Haemodilution</th>
        <td>{{bonemarrowbackground.haemodilution}}</td>
	</tr>
	<tr>
		<th>Myeloid/Erythroid Ratio</th>
        <td>{{cellcount.myeloid_erythroid_ratio}}</td>
	</tr>
</table>

<h4>Cell Counts</h4>
<table class="table table-bordered table-striped">
    <tr><th>Cell Type</th><th>Normal Count</th><th>Abnormal Count</th><th>Percentage</th></tr>
    {% for count in cellcount_list %}
    <tr>
        <td>{{count.cell.readable_name}}</td>
        <td>{{count.normal_count}}</td>
        <td>{{count.abnormal_count}}</td>
        <td>{{count.percentage}}</td>
    </tr>
    {% if count.comment %}<tr><td colspan=4>{{count.comment}}</td></tr>{% endif %}
    {% endfor %}
</table>

<h4>Megakaryocytes</h4>
<table class="table table-bordered">
	<tr>
		<th>Number</th>
        <td>{{megakaryocytes.relative_count}}</td>
	</tr>
	<tr>
		<th>Features</th>
		<td>{{megakaryocytes.dysplasia}}</td>
	</tr>
	<tr>
        <td colspan=2><b>Comment:</b> {% if not megakaryocytes.comment%}None{% else %}{{megakaryocytes.comment}}{%endif%}</td>
	</tr>
</table>

<h4>Erythropoiesis</h4>
<table class="table table-bordered">
	<tr>
		<th>Features</th>
		<td>{{erythropoiesis.dysplasia}}</td>
	</tr>
	<tr>
        <td colspan=2><b>Comment:</b> {% if not erythropoiesis.comment%}None{% else %}{{erythropoiesis.comment}}{%endif%}</td>
	</tr>
</table>

<h4>Granulopoiesis</h4>
<table class="table table-bordered">
	<tr>
		<th>Features</th>
        <td>{{granulopoiesis.dysplasia}}</td>
	</tr>
	<tr>
        <td colspan=2><b>Comment:</b> {% if not granulopoiesis.comment%}None{% else %}{{granulopoiesis.comment}}{%endif%}</td>
	</tr>
</table>

<h4>Iron Stain Findings</h4>
<table class="table table-bordered">
{% if not ironstain.stain_performed %}
    <tr>
        <td>Not performed</td>
    </tr>
{% else %}
    <tr>
        <th>Iron</th><td>{{ironstain.get_iron_content_display}}</td>
    </tr>
    <tr>
        <th>Ringed Sideroblasts</th><td>{%if ironstain.ringed_sideroblasts %}Present{% else %}Absent{%endif%}</td>
    </tr>
    <tr>
        <td colspan=2><b>Comment:</b>{% if not ironstain.comment%}None{% else %}{{ironstain.comment}}{%endif%}</td>
    </tr>
{% endif %}
</table>

<h2>Reference Links</h2>
<table class="table table-bordered">
<tbody><tr>
<th>Lymphoid</th>
<th>Myeloid</th>
<th>Myeloma</th>
<th>MPD</th>
<th>Transplant</th>
<th>Haemostasis</th>
<th>Miscellany</th>
</tr>
<tr>
<td><a href="http://www.bloodref.com/lymphoid/ann-arbor">Ann Arbor</a><br><a href="http://www.bloodref.com/lymphoid/cll-immunophenotyping">CLL score</a><br><a href="http://www.bloodref.com/lymphoid/binet-rai">CLL staging</a><br><a href="http://www.bloodref.com/lymphoid/cll-response">CLL response</a><br><a href="http://www.bloodref.com/lymphoid/ipi">IPI</a><br><a href="http://www.bloodref.com/lymphoid/r-ipi">R-IPI</a><br><a href="http://www.bloodref.com/lymphoid/isswm">ISSWM</a><br><a href="http://www.bloodref.com/lymphoid/flipi">FLIPI</a><br><a href="http://www.bloodref.com/lymphoid/flipi2">FLIPI-2</a><br><a href="http://www.bloodref.com/lymphoid/lugano">Lugano staging</a><br><a href="http://www.bloodref.com/lymphoid/hasenclever">Hasenclever</a><br><a href="http://www.bloodref.com/lymphoid/mipi">MIPI</a><br><a href="http://www.bloodref.com/lymphoid/ptcl-pit">PIT</a></td>
<td><a href="http://www.bloodref.com/myeloid/aml-cytogenetics">AML cytogenetics</a><br><a href="http://www.bloodref.com/myeloid/aml-diagnosis">AML diagnosis</a><br><a href="http://www.bloodref.com/myeloid/aml-response">AML response</a><br><a href="http://www.bloodref.com/myeloid/aml-relapse">AML relapse</a><br><a href="http://www.bloodref.com/myeloid/aa">Aplastic anemia</a><br><a href="http://www.bloodref.com/myeloid/cml-diagnosis">CML diagnosis</a><br><a href="http://www.bloodref.com/myeloid/cml-prognosis">CML prognosis</a><br><a href="http://www.bloodref.com/myeloid/cml-response">CML response</a><br><a href="http://www.bloodref.com/myeloid/cmml-diagnosis">CMML diagnosis</a><br><a href="http://www.bloodref.com/myeloid/cmml-prognosis">CMML prognosis</a><br><a href="http://www.bloodref.com/myeloid/jmml-diagnosis">JMML diagnosis</a><br><a href="http://www.bloodref.com/myeloid/mds-diagnosis">MDS diagnosis</a><br><a href="http://www.bloodref.com/myeloid/mds-ipss">MDS IPSS</a><br><a href="http://www.bloodref.com/myeloid/mds-wpss">MDS WPSS</a></td>
<td><a href="http://www.bloodref.com/myeloma/asymptomatic">Asymptomatic</a><br><a href="http://www.bloodref.com/myeloma/diagnosis">Diagnosis</a><br><a href="http://www.bloodref.com/myeloma/iss">ISS staging</a><br><a href="http://www.bloodref.com/myeloma/response">Response criteria</a><br><a href="http://www.bloodref.com/myeloma/mgus-risk">MGUS risk</a></td>
<td><a href="http://www.bloodref.com/mpd/et-diagnosis">ET diagnosis</a><br><a href="http://www.bloodref.com/mpd/et-risk">ET risk</a><br><a href="http://www.bloodref.com/mpd/mf-diagnosis">MF diagnosis</a><br><a href="http://www.bloodref.com/mpd/mf-response">MF response</a><br><a href="http://www.bloodref.com/mpd/mf-prognosis">MF prognosis</a><br><a href="http://www.bloodref.com/mpd/pv-diagnosis">PV diagnosis</a><br><a href="http://www.bloodref.com/mpd/sm-diagnosis">SM</a><p></p>
</td><td><a href="http://www.bloodref.com/transplant/agvhd">aGVHD grading</a><br><a href="http://www.bloodref.com/transplant/aml-mds-all">AML/MDS/ALL</a><br><a href="http://www.bloodref.com/transplant/cgvhd-diagnosis">cGVHD diagnosis</a><br><a href="http://www.bloodref.com/transplant/cgvhd-scoring">cGVHD assessment</a><br><a href="http://www.bloodref.com/transplant/cgvhd-prognosis">cGVHD prognosis</a><br><a href="http://www.bloodref.com/transplant/ebmt-risk">EBMT risk</a><br><a href="http://www.bloodref.com/transplant/pam">PAM score</a><br><a href="http://www.bloodref.com/transplant/vod-sos">VOD/SOS</a></td>
<td><a href="http://www.bloodref.com/hemostasis/aps">APS diagnosis</a><br><a href="http://www.bloodref.com/hemostasis/hit">HIT diagnosis</a><br><a href="http://www.bloodref.com/hemostasis/isth-bleeding">ISTH bleeding</a><br><a href="http://www.bloodref.com/hemostasis/hsc-bleeding">HSC bleeding</a><br><a href="http://www.bloodref.com/hemostasis/vwd-type1">Type 1 vWD</a><br><a href="http://www.bloodref.com/hemostasis/vwd-type2">Type 2 vWD</a><p></p>
</td><td><a href="http://www.bloodref.com/miscellaneous/calculators">Calculators</a><br><a href="http://www.bloodref.com/myeloid/hlh-diagnosis">HLH diagnosis</a><br><a href="http://www.bloodref.com/miscellaneous/performance-status">Performance status</a></td>
</tr>
</tbody></table>
<p><i>With thanks to www.bloodref.com</i></p>

{% endblock %}
<commit_msg>Rename table to 'Differential'<commit_after>{% extends 'main/base.html' %}

{% block content %}

<h1>Report</h1>

<h4>Count Stats</h4>
<table class="table table-bordered">
	<tr>
		<th>Site</th>
        <td>{{bonemarrowbackground.site}}</td>
	</tr>
	<tr>
		<th>Ease of Aspiration</th>
        <td>{{bonemarrowbackground.ease_of_aspiration}}</td>	
	</tr>
	<tr>
		<th>Particle Number</th>
        <td>{{bonemarrowbackground.particulate}}</td>
	</tr>
	<tr>
		<th>Cellularity</th>
        <td>{{bonemarrowbackground.particle_cellularity}}</td>
	</tr>
	<tr>
		<th>Trail Cellularity</th>
        <td>{{bonemarrowbackground.trail_cellularity}}</td>
	</tr>
	<tr>
		<th>Haemodilution</th>
        <td>{{bonemarrowbackground.haemodilution}}</td>
	</tr>
	<tr>
		<th>Myeloid/Erythroid Ratio</th>
        <td>{{cellcount.myeloid_erythroid_ratio}}</td>
	</tr>
</table>

<h4>Differential</h4>
<table class="table table-bordered table-striped">
    <tr><th>Cell Type</th><th>Normal Count</th><th>Abnormal Count</th><th>Percentage</th></tr>
    {% for count in cellcount_list %}
    <tr>
        <td>{{count.cell.readable_name}}</td>
        <td>{{count.normal_count}}</td>
        <td>{{count.abnormal_count}}</td>
        <td>{{count.percentage}}</td>
    </tr>
    {% if count.comment %}<tr><td colspan=4>{{count.comment}}</td></tr>{% endif %}
    {% endfor %}
</table>

<h4>Megakaryocytes</h4>
<table class="table table-bordered">
	<tr>
		<th>Number</th>
        <td>{{megakaryocytes.relative_count}}</td>
	</tr>
	<tr>
		<th>Features</th>
		<td>{{megakaryocytes.dysplasia}}</td>
	</tr>
	<tr>
        <td colspan=2><b>Comment:</b> {% if not megakaryocytes.comment%}None{% else %}{{megakaryocytes.comment}}{%endif%}</td>
	</tr>
</table>

<h4>Erythropoiesis</h4>
<table class="table table-bordered">
	<tr>
		<th>Features</th>
		<td>{{erythropoiesis.dysplasia}}</td>
	</tr>
	<tr>
        <td colspan=2><b>Comment:</b> {% if not erythropoiesis.comment%}None{% else %}{{erythropoiesis.comment}}{%endif%}</td>
	</tr>
</table>

<h4>Granulopoiesis</h4>
<table class="table table-bordered">
	<tr>
		<th>Features</th>
        <td>{{granulopoiesis.dysplasia}}</td>
	</tr>
	<tr>
        <td colspan=2><b>Comment:</b> {% if not granulopoiesis.comment%}None{% else %}{{granulopoiesis.comment}}{%endif%}</td>
	</tr>
</table>

<h4>Iron Stain Findings</h4>
<table class="table table-bordered">
{% if not ironstain.stain_performed %}
    <tr>
        <td>Not performed</td>
    </tr>
{% else %}
    <tr>
        <th>Iron</th><td>{{ironstain.get_iron_content_display}}</td>
    </tr>
    <tr>
        <th>Ringed Sideroblasts</th><td>{%if ironstain.ringed_sideroblasts %}Present{% else %}Absent{%endif%}</td>
    </tr>
    <tr>
        <td colspan=2><b>Comment:</b>{% if not ironstain.comment%}None{% else %}{{ironstain.comment}}{%endif%}</td>
    </tr>
{% endif %}
</table>

<h2>Reference Links</h2>
<table class="table table-bordered">
<tbody><tr>
<th>Lymphoid</th>
<th>Myeloid</th>
<th>Myeloma</th>
<th>MPD</th>
<th>Transplant</th>
<th>Haemostasis</th>
<th>Miscellany</th>
</tr>
<tr>
<td><a href="http://www.bloodref.com/lymphoid/ann-arbor">Ann Arbor</a><br><a href="http://www.bloodref.com/lymphoid/cll-immunophenotyping">CLL score</a><br><a href="http://www.bloodref.com/lymphoid/binet-rai">CLL staging</a><br><a href="http://www.bloodref.com/lymphoid/cll-response">CLL response</a><br><a href="http://www.bloodref.com/lymphoid/ipi">IPI</a><br><a href="http://www.bloodref.com/lymphoid/r-ipi">R-IPI</a><br><a href="http://www.bloodref.com/lymphoid/isswm">ISSWM</a><br><a href="http://www.bloodref.com/lymphoid/flipi">FLIPI</a><br><a href="http://www.bloodref.com/lymphoid/flipi2">FLIPI-2</a><br><a href="http://www.bloodref.com/lymphoid/lugano">Lugano staging</a><br><a href="http://www.bloodref.com/lymphoid/hasenclever">Hasenclever</a><br><a href="http://www.bloodref.com/lymphoid/mipi">MIPI</a><br><a href="http://www.bloodref.com/lymphoid/ptcl-pit">PIT</a></td>
<td><a href="http://www.bloodref.com/myeloid/aml-cytogenetics">AML cytogenetics</a><br><a href="http://www.bloodref.com/myeloid/aml-diagnosis">AML diagnosis</a><br><a href="http://www.bloodref.com/myeloid/aml-response">AML response</a><br><a href="http://www.bloodref.com/myeloid/aml-relapse">AML relapse</a><br><a href="http://www.bloodref.com/myeloid/aa">Aplastic anemia</a><br><a href="http://www.bloodref.com/myeloid/cml-diagnosis">CML diagnosis</a><br><a href="http://www.bloodref.com/myeloid/cml-prognosis">CML prognosis</a><br><a href="http://www.bloodref.com/myeloid/cml-response">CML response</a><br><a href="http://www.bloodref.com/myeloid/cmml-diagnosis">CMML diagnosis</a><br><a href="http://www.bloodref.com/myeloid/cmml-prognosis">CMML prognosis</a><br><a href="http://www.bloodref.com/myeloid/jmml-diagnosis">JMML diagnosis</a><br><a href="http://www.bloodref.com/myeloid/mds-diagnosis">MDS diagnosis</a><br><a href="http://www.bloodref.com/myeloid/mds-ipss">MDS IPSS</a><br><a href="http://www.bloodref.com/myeloid/mds-wpss">MDS WPSS</a></td>
<td><a href="http://www.bloodref.com/myeloma/asymptomatic">Asymptomatic</a><br><a href="http://www.bloodref.com/myeloma/diagnosis">Diagnosis</a><br><a href="http://www.bloodref.com/myeloma/iss">ISS staging</a><br><a href="http://www.bloodref.com/myeloma/response">Response criteria</a><br><a href="http://www.bloodref.com/myeloma/mgus-risk">MGUS risk</a></td>
<td><a href="http://www.bloodref.com/mpd/et-diagnosis">ET diagnosis</a><br><a href="http://www.bloodref.com/mpd/et-risk">ET risk</a><br><a href="http://www.bloodref.com/mpd/mf-diagnosis">MF diagnosis</a><br><a href="http://www.bloodref.com/mpd/mf-response">MF response</a><br><a href="http://www.bloodref.com/mpd/mf-prognosis">MF prognosis</a><br><a href="http://www.bloodref.com/mpd/pv-diagnosis">PV diagnosis</a><br><a href="http://www.bloodref.com/mpd/sm-diagnosis">SM</a><p></p>
</td><td><a href="http://www.bloodref.com/transplant/agvhd">aGVHD grading</a><br><a href="http://www.bloodref.com/transplant/aml-mds-all">AML/MDS/ALL</a><br><a href="http://www.bloodref.com/transplant/cgvhd-diagnosis">cGVHD diagnosis</a><br><a href="http://www.bloodref.com/transplant/cgvhd-scoring">cGVHD assessment</a><br><a href="http://www.bloodref.com/transplant/cgvhd-prognosis">cGVHD prognosis</a><br><a href="http://www.bloodref.com/transplant/ebmt-risk">EBMT risk</a><br><a href="http://www.bloodref.com/transplant/pam">PAM score</a><br><a href="http://www.bloodref.com/transplant/vod-sos">VOD/SOS</a></td>
<td><a href="http://www.bloodref.com/hemostasis/aps">APS diagnosis</a><br><a href="http://www.bloodref.com/hemostasis/hit">HIT diagnosis</a><br><a href="http://www.bloodref.com/hemostasis/isth-bleeding">ISTH bleeding</a><br><a href="http://www.bloodref.com/hemostasis/hsc-bleeding">HSC bleeding</a><br><a href="http://www.bloodref.com/hemostasis/vwd-type1">Type 1 vWD</a><br><a href="http://www.bloodref.com/hemostasis/vwd-type2">Type 2 vWD</a><p></p>
</td><td><a href="http://www.bloodref.com/miscellaneous/calculators">Calculators</a><br><a href="http://www.bloodref.com/myeloid/hlh-diagnosis">HLH diagnosis</a><br><a href="http://www.bloodref.com/miscellaneous/performance-status">Performance status</a></td>
</tr>
</tbody></table>
<p><i>With thanks to www.bloodref.com</i></p>

{% endblock %}

{'fraction_non_alphanumeric': 0.2416459541563104, 'fraction_numerical': 0.003728251864125932, 'mean_word_length': 5.150743099787686, 'pattern_counts': {'":': 0, '<': 729, '<?xml version=': 0, '>': 729, 'https://': 0, 'lorem ipsum': 0, 'www.': 114, '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': '2878989', 'n_tokens_mistral': 6343, 'n_tokens_neox': 5799, 'n_words': 592}