{% extends "site.html" %}
{% block head %}
{{ block.super }}
{% endblock %}
{% block pagehead %}
{% include 'pagehead.html' %}
{% endblock %}
{% block content %}
Search Results for '{{ search_val }}':
{% if rx_list %}
Rx Search Results
{% for rx in rx_list|slice:":5" %}
|
{{ rx.rx_number }}-{{ rx.fill_instance }}
|
{{ rx.rx_quantity|floatformat:"-2" }} |
{% if drugnum_type == 'NDC' and show_ndc_dashes == True %}{% if rx.drug_number|length > 8 %}
{{ rx.drug_number|slice:"0:5" }}-
{{ rx.drug_number|slice:"5:9" }}
{% if rx.drug_number|length > 10 %}-
{{ rx.drug_number|slice:"9:11" }}{% else %}-XX
{% endif %}{% endif %}{% else %}{{ rx.drug_number }}{% endif %} |
{{ rx.drug_name }} |
{{ rx.receive_dts|date:"m/d/Y h:i:s A" }} |
{{ rx.order_type }} |
{{ rx.req_state }} |
{% endfor %}
{% for rx in rx_list|slice:"5:" %}
{% endfor %}
{% if rx_list|length > 5 %}
{% endif %}
{% endif %}
{% if workorder_list %}
Workorder Search Results
{% for ord in workorder_list|slice:":5" %}
| {% if ord.group_type == 'WO_GP_TYPE_RX' %}
{{ ord.wo_id }}
{% else %}{{ ord.wo_id }}{% endif %}
|
{{ ord.order_type }} |
{{ ord.dts_create }} |
{% endfor %}
{% for ord in workorder_list|slice:"5:" %}
{% endfor %}
{% if workorder_list|length > 5 %}
{% endif %}
{% endif %}
{% if order_list %}
Order Request Search Results
{% for ord in order_list|slice:":5" %}
|
{% if ord.group_type == 'WO_GP_TYPE_RX' %}
{{ ord.req_id }}
{% else %}
{{ ord.req_id }}
{% endif %}
|
{{ ord.order_type }} |
{{ ord.receive_dts }} |
{% endfor %}
{% for ord in order_list|slice:"5:" %}
{% endfor %}
{% if order_list|length > 5 %}
{% endif %}
{% endif %}
{% if canister_list %}
Canister Search Results
{% for can in canister_list|slice:":5" %}
| {{ can.serial_number }} |
{% if drugnum_type == 'NDC' and show_ndc_dashes == True %}
{% if can.instance.authority.drug_number|length >= 9 %}{{ can.instance.authority.drug_number|slice:"0:5" }}-{{ can.instance.authority.drug_number|slice:"5:9" }}-{% if can.instance.authority.drug_number|length >= 11 %}{{ can.instance.authority.drug_number|slice:"9:11" }}{% else %}XX{% endif %}
{% else %}{{ can.instance.authority.drug_number }}{% endif %}{% else %}{{ can.instance.authority.drug_number }}{% endif %} |
{{ can.instance.authority.pharmaceutical.drug_name.label_name }}
{{ can.instance.authority.pharmaceutical.strength.label_name }}
{{ can.instance.authority.pharmaceutical.unit.label_name }}
{{ can.instance.authority.pharmaceutical.form.label_name }} |
{% if can.map.all|length <= 0 %}Shelf{% else %}{% for map in can.map.all %}{{ map.dafe.display_name }} ({{ map.canister_position.tag }}){% endfor %}{% endif %} |
{{ can.quantity }} |
{{ can.display_status.description }} |
{{ can.active }} |
{% endfor %}
{% for can in canister_list|slice:"5:" %}
{% endfor %}
{% if canister_list|length > 5 %}
{% endif %}
{% endif %}
{% if drug_list %}
{% if drug_list|length > 5 %}
{% endif %}
{% endif %}
{% endblock %}