14.3.167. crate_anon/crateweb/research/templates/pid_lookup_result.html

{# crate_anon/crateweb/research/templates/pid_lookup_result.html #}

{% extends "base.html" %}

{% block content %}

    <h1>Lookup of patient identifiers (CONFIDENTIAL)</h1>

    {% if lookups %}

        <table>
            <tr>
                <th><i>TRID</i><br>{{ trid_field }}: {{ trid_description }}</th>
                <th><i>RID</i><br>{{ rid_field }}: {{ rid_description }}</th>
                <th><i>MRID</i><br>{{ mrid_field }}: {{ mrid_description }}</th>
                <th><i>PID</i><br>{{ pid_description }}</th>
                <th><i>MPID</i><br>{{ mpid_description }}</th>
            </tr>
            {% for lookup in lookups %}
                <tr>
                    <td>{{ lookup.trid }}</td>
                    <td>{{ lookup.rid }}</td>
                    <td>{{ lookup.mrid }}</td>
                    <td><b>{{ lookup.pid }}</b></td>
                    <td><b>{{ lookup.mpid }}</b></td>
                </tr>
            {% endfor %}
        </table>

        <h2>Plain PID list</h2>
        <pre>{% for lookup in lookups %}{{ lookup.pid }}<br>{% endfor %}</pre>

        <h2>Plain MPID list</h2>
        <pre>{% for lookup in lookups %}{{ lookup.mpid }}<br>{% endfor %}</pre>

    {% else %}

        <div>None found.</div>

    {% endif %}

    <h2>Key</h2>
    {% include "pid_abbrev_explanation.html" %}

    <h2>Again?</h2>
    <div><a href="{% url 'pidlookup' %}">Look up more</a></div>

{% endblock %}