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

{% block content %}

{% if request.GET.debug %}<pre>{{ concept|pprint }}</pre>{% endif %}

<div class="row" style="border-bottom:1px solid #e5e5e5;padding-top:20px;padding-bottom:20px;margin-bottom:20px;">
	<div class="col-md-3" style="text-align:right;padding-top:10px;">
		<span style="font-size:32pt;color:#e5e5e5;"><span class="glyphicon glyphicon-tag"></span></span>
	</div>
	<div class="col-md-9">
		<h4>
			<a href="{% url 'org-detail' org=concept.owner %}" class="label label-warning">
				<span class="glyphicon glyphicon-{% if concept.ownerType == 'Organization' %}home{% elif concept.ownerType == 'User' %}user{% endif %}"></span>&nbsp;&nbsp;{{ concept.owner }}</a>
			/
			<a href="{% url 'source-detail' org=concept.owner source=concept.source %}" class="label label-success">
				<span class="glyphicon glyphicon-th-list"></span>&nbsp;&nbsp;{{ concept.source }}</a>
			/
			<span class="label label-primary"><span class="glyphicon glyphicon-tag"></span>&nbsp;&nbsp;{{ concept.id }}</span>
		</h4>
		<p>
			{{ concept.displayName }} {% if concept.displayLocale %}<span class="small"><em>[{{ concept.displayLocale }}]</em></span>{% endif %}&nbsp;&nbsp;<span id="element-info" data-toggle="tooltip" data-placement="right" title="Preferred name in selected language"><span class="glyphicon glyphicon-info-sign"></span></span><br />
			<em>Class:</em> {{ concept.conceptClass }},
			<em>Datatype:</em> {{ concept.datatype }}
			<!--span class="text-muted">Last Updated 2010</span-->
		</p>
		<!--p><a href="#">More &blacktriangledown;</a></p-->
	</div>
</div>
<div class="row">
	<div class="col-md-3" style="text-align:right;">
		<span style="font-weight:bold;color:#999;">Preferred Name</span>
		<span id="preferred-name-info" data-toggle="tooltip" data-placement="right" title="Primary name in user's preferred language."><span class="glyphicon glyphicon-info-sign"></span></span>
	</div>
	<div class="col-md-9">
		{{ concept.displayName }} <span class="small"><em>[{{ concept.displayLocale }}]</em></span>
	</div>
</div>
<div class="row">
	<div class="col-md-3" style="text-align:right;font-weight:bold;color:#999;">
		Class
	</div>
	<div class="col-md-9">
		{{ concept.conceptClass }}
	</div>
</div>
<div class="row">
	<div class="col-md-3" style="text-align:right;font-weight:bold;color:#999;">
		Datatype
	</div>
	<div class="col-md-9">
		{{ concept.datatype }}
	</div>
</div>
<div class="row">
	<div class="col-md-3" style="text-align:right;font-weight:bold;color:#999;">
		Synonyms
	</div>
	<div class="col-md-9">
		<ul class="list-group">
		{% for name in concept.names %}
			<li class="list-group-item {% if name.localePreferred %}list-group-item-info{% endif %}">{{ name.name }} <span class="small"><em>[{{ name.locale }}]</em></span> 
				{% if name.localePreferred %}&nbsp;<span id="locale-preferred-name-tooltip{{ forloop.counter }}" data-toggle="tooltip" data-placement="right" title="Locale preferred concept"><span class="glyphicon glyphicon-flag"></span></span>{% endif %}
				{% if request.GET.debug %}<br /><pre>{{ name|pprint }}</pre>{% endif %}</li>
		{% empty %}
			<li class="small"><em>None</em></li>
		{% endfor %}
		</ul>
	</div>
</div>
<div class="row">
	<div class="col-md-3" style="text-align:right;font-weight:bold;color:#999;">
		Description
	</div>
	<div class="col-md-9">
		<ul class="list-group">
		{% for desc in concept.descriptions %}
			<li class="list-group-item {% if desc.localePreferred %}list-group-item-info{% endif %}">{{ desc.name }} <span class="small"><em>[{{ desc.locale }}]</em></span> 
				{% if desc.localePreferred %}&nbsp;<span id="locale-preferred-desc-tooltip{{ forloop.counter }}" data-toggle="tooltip" data-placement="right" title="Locale preferred concept"><span class="glyphicon glyphicon-flag"></span></span>{% endif %}
				{% if request.GET.debug %}<br /><pre>{{ desc|pprint }}</pre>{% endif %}</li>
		{% empty %}
			<li class="small"><em>None</em></li>
		{% endfor %}
		</ul>
	</div>
</div>



<h4 style="padding-top:20px;"><small>All Concept Fields:</small></h4>
<div class="row" style="border-bottom:1px solid #e5e5e5;margin-bottom:20px;"></div>

{% for key, value in concept.items %}
<div class="row">
	<div class="col-md-3" style="text-align:right;font-weight:bold;color:#999;">{{ key }}</div>
	<div class="col-md-9">{{ value }}</div>
</div>
{% endfor %}



<!--
<h4 style="padding-top:20px;"><small>Static Examples:</small></h4>
<div class="row" style="border-bottom:1px solid #e5e5e5;margin-bottom:20px;"></div>

<div class="row">
	<div class="col-md-3" style="text-align:right;font-weight:bold;color:#999;">
		Description
	</div>
	<div class="col-md-9">
		Distal intestinal obstruction syndrome<br />
		Meconium ileus in cystic fibrosis+ (P75*)<br />
		Excl.:<br />
		meconium obstruction in cases where cystic fibrosis is known not to be present (P76.0)
	</div>
</div>
<div class="row">
	<div class="col-md-3" style="text-align:right;font-weight:bold;color:#999;">
		Relationships
	</div>
	<div class="col-md-9">
		Parent - <a href="{% url "concept" %}" class="label label-primary"><span class="glyphicon glyphicon-tag"></span>&nbsp;&nbsp;WHO / ICD-10-WHO / E84 &ndash; Cystic fibrosis</a>
	</div>
</div>
<div class="row">
	<div class="col-md-3" style="text-align:right;font-weight:bold;color:#999;">
		Collections
	</div><commit_msg>Formatting update<commit_after>{% extends "base.html" %}

{% block content %}

{% if request.GET.debug %}<pre>{{ concept|pprint }}</pre>{% endif %}

<div class="row" style="border-bottom:1px solid #e5e5e5;padding-top:20px;padding-bottom:20px;margin-bottom:20px;">
	<div class="col-md-3" style="text-align:right;padding-top:10px;">
		<span style="font-size:32pt;color:#e5e5e5;"><span class="glyphicon glyphicon-tag"></span></span>
	</div>
	<div class="col-md-9">
		<h4>
			<a href="{% url 'org-detail' org=concept.owner %}" class="label label-warning">
				<span class="glyphicon glyphicon-{% if concept.ownerType == 'Organization' %}home{% elif concept.ownerType == 'User' %}user{% endif %}"></span>&nbsp;&nbsp;{{ concept.owner }}</a>
			/
			<a href="{% url 'source-detail' org=concept.owner source=concept.source %}" class="label label-success">
				<span class="glyphicon glyphicon-th-list"></span>&nbsp;&nbsp;{{ concept.source }}</a>
			/
			<span class="label label-primary"><span class="glyphicon glyphicon-tag"></span>&nbsp;&nbsp;{{ concept.id }}</span>
		</h4>
		<p>
			{{ concept.displayName }} {% if concept.displayLocale %}<span class="small"><em>[{{ concept.displayLocale }}]</em></span>{% endif %}&nbsp;&nbsp;<span id="element-info" data-toggle="tooltip" data-placement="right" title="Preferred name in selected language"><span class="glyphicon glyphicon-info-sign"></span></span><br />
			<em>Class:</em> {{ concept.conceptClass }},
			<em>Datatype:</em> {{ concept.datatype }}
			<!--span class="text-muted">Last Updated 2010</span-->
		</p>
		<!--p><a href="#">More &blacktriangledown;</a></p-->
	</div>
</div>
<div class="row">
	<div class="col-md-3" style="text-align:right;">
		<span style="font-weight:bold;color:#999;">Preferred Name</span>
		<span id="preferred-name-info" data-toggle="tooltip" data-placement="right" title="Primary name in user's preferred language."><span class="glyphicon glyphicon-info-sign"></span></span>
	</div>
	<div class="col-md-9">
		{{ concept.displayName }} <span class="small"><em>[{{ concept.displayLocale }}]</em></span>
	</div>
</div>
<div class="row">
	<div class="col-md-3" style="text-align:right;font-weight:bold;color:#999;">
		Class
	</div>
	<div class="col-md-9">
		{{ concept.conceptClass }}
	</div>
</div>
<div class="row">
	<div class="col-md-3" style="text-align:right;font-weight:bold;color:#999;">
		Datatype
	</div>
	<div class="col-md-9">
		{{ concept.datatype }}
	</div>
</div>
<div class="row">
	<div class="col-md-3" style="text-align:right;font-weight:bold;color:#999;">
		Synonyms
	</div>
	<div class="col-md-9">
		<ul class="list-group">
		{% for name in concept.names %}
			<li class="list-group-item {% if name.localePreferred %}list-group-item-info{% endif %}">{{ name.name }} <span class="small"><em>[{{ name.locale }}]</em></span> 
				{% if name.localePreferred %}&nbsp;<span id="locale-preferred-name-tooltip{{ forloop.counter }}" data-toggle="tooltip" data-placement="right" title="Locale preferred concept"><span class="glyphicon glyphicon-flag"></span></span>{% endif %}
				{% if request.GET.debug %}<br /><pre>{{ name|pprint }}</pre>{% endif %}</li>
		{% empty %}
			<li class="small"><em>None</em></li>
		{% endfor %}
		</ul>
	</div>
</div>
<div class="row">
	<div class="col-md-3" style="text-align:right;font-weight:bold;color:#999;">
		Description
	</div>
	<div class="col-md-9">
		<ul class="list-group">
		{% for desc in concept.descriptions %}
			<li class="list-group-item {% if desc.localePreferred %}list-group-item-info{% endif %}">{{ desc.name }} <span class="small"><em>[{{ desc.locale }}]</em></span> 
				{% if desc.localePreferred %}&nbsp;<span id="locale-preferred-desc-tooltip{{ forloop.counter }}" data-toggle="tooltip" data-placement="right" title="Locale preferred concept"><span class="glyphicon glyphicon-flag"></span></span>{% endif %}
				{% if request.GET.debug %}<br /><pre>{{ desc|pprint }}</pre>{% endif %}</li>
		{% empty %}
			<li class="small"><em>None</em></li>
		{% endfor %}
		</ul>
	</div>
</div>


<!--
<h4 style="padding-top:20px;"><small>All Concept Fields:</small></h4>
<div class="row" style="border-bottom:1px solid #e5e5e5;margin-bottom:20px;"></div>

{% for key, value in concept.items %}
<div class="row">
	<div class="col-md-3" style="text-align:right;font-weight:bold;color:#999;">{{ key }}</div>
	<div class="col-md-9">{{ value }}</div>
</div>
{% endfor %}
-->


<!--
<h4 style="padding-top:20px;"><small>Static Examples:</small></h4>
<div class="row" style="border-bottom:1px solid #e5e5e5;margin-bottom:20px;"></div>

<div class="row">
	<div class="col-md-3" style="text-align:right;font-weight:bold;color:#999;">
		Description
	</div>
	<div class="col-md-9">
		Distal intestinal obstruction syndrome<br />
		Meconium ileus in cystic fibrosis+ (P75*)<br />
		Excl.:<br />
		meconium obstruction in cases where cystic fibrosis is known not to be present (P76.0)
	</div>
</div>
<div class="row">
	<div class="col-md-3" style="text-align:right;font-weight:bold;color:#999;">
		Relationships
	</div>
	<div class="col-md-9">
		Parent - <a href="{% url "concept" %}" class="label label-primary"><span class="glyphicon glyphicon-tag"></span>&nbsp;&nbsp;WHO / ICD-10-WHO / E84 &ndash; Cystic fibrosis</a>
	</div>
</div>
<div class="row">
	<div class="col-md-3" style="text-align:right;font-weight:bold;color:#999;">
		Collections
	</div>
{'fraction_non_alphanumeric': 0.23487179487179488, 'fraction_numerical': 0.018275058275058275, 'mean_word_length': 5.157290470723306, 'pattern_counts': {'":': 0, '<': 336, '<?xml version=': 0, '>': 334, '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': '4214867', 'n_tokens_mistral': 4296, 'n_tokens_neox': 3779, 'n_words': 738}