{% for meds in resident.medication_set.all %} {% endfor %}
Medicine Dosage Frequency Quantity Due Last Modified
{{ meds.medicine.generic_name }} {% if meds.medicine.brand_name %}({{ meds.medicine.brand_name }}){% endif %} {{ meds.medicine.dosage }} {{ meds.frequency }} {% if meds.quantity %}{{ meds.quantity }}{% endif %} {% if meds.due %}{{ meds.due }}{% endif %} {{ meds.last_modified }}