{% if wrapped_appointment.visit_code_sequence == 0 %} {% if wrapped_appointment.appt_status == INCOMPLETE_APPT or wrapped_appointment.appt_status == COMPLETE_APPT %} {% endif %} {% else %} {% endif %}