{% extends "base.html" %}{% set active="search" %}{% block title %}Patient Search{% endblock %}{% block page_title %}Patient Search{% endblock %} {% block content %}
{% if q %}Clear{% endif %}
{% if q and not patients %}
🔍

No patients found for "{{ q }}".

{% elif patients %}
{{ patients|length }} result{{ 's' if patients|length != 1 }} for "{{ q }}"
{% for p in patients %}{% endfor %}
IDNameEmailPhoneInsuranceApptsLast VisitActions
#{{ p.patient_id }} {{ p.name }}{% if not p.is_active %}Inactive{% endif %} {{ p.email }}{{ p.phone or '—' }} {{ p.insurance_provider or '—' }}{{ p.total_apts }} {{ p.last_apt[:10] if p.last_apt else 'Never' }} + Book History
{% else %}
🔍

Enter a search term above to find patients.

{% endif %} {% endblock %}