{% extends "layout.html" %} {% block title %}

List of Patients

{% endblock %} {% block body %}
{% for patient in patients %} {% endfor %}
Name Age Gender Health State Doctor
{{ patient['first_name'] }} {{ patient['last_name'] }} {{ patient['age'] }} {{ patient['gender'] }} {{ patient['health_state'] }} {% set doctor = patient['doctor'] %} {% if doctor %} {{ doctor['first_name'] }} {{ doctor['last_name'] }} {% endif %}
{% endblock %}