{% extends "base.html" %} {% load static %} {% block title %}Delete Consent Form - Patients{% endblock %} {% block content %}

Delete Consent Form Confirmation Required

Confirm Form Deletion

Warning

You are about to delete this consent form template. This action cannot be undone and may impact patient consent management and legal compliance.

Form Details:
Title: {{ object.title }}
Category: {{ object.get_category_display }}
Status: {{ object.get_status_display }}
Version: v{{ object.version }}
Created: {{ object.created_at|date:"M d, Y H:i" }}
Created By: {{ object.created_by.get_full_name }}
Usage Information:
Required: {% if object.is_required %} Required {% else %} Optional {% endif %}
Signed: {{ object.signed_count }} times
Pending: {{ object.pending_count }} signatures
Effective: {{ object.effective_date|date:"M d, Y"|default:"Not set" }}
Expiration: {% if object.has_expiration %} {{ object.expiration_days }} days {% else %} No expiration {% endif %}
Last Updated: {{ object.updated_at|date:"M d, Y H:i" }}
Form Content Preview
{{ object.content|truncatewords:100|safe }}
{% if object.content|wordcount > 100 %}
Content truncated for preview. Full form contains {{ object.content|wordcount }} words.
{% endif %}
Impact Assessment
  • Template Removal: Form template will be permanently removed from the system
  • Existing Signatures: Previously signed forms will remain in patient records
  • Pending Signatures: Any pending signature requests will be cancelled
  • Legal Compliance: Ensure deletion complies with consent management policies
  • Patient Care: May impact ability to obtain required consents
  • Audit Trail: Deletion will be logged for compliance purposes
{% if object.is_required %}
Required Form Warning

This is a required consent form. Deleting it will:

  • Remove a mandatory consent requirement for all patients
  • Potentially impact patient admission and treatment processes
  • May violate institutional consent policies
  • Could affect legal compliance and patient safety protocols
  • Impact ability to provide certain treatments or procedures
{% endif %} {% if object.status == 'ACTIVE' %}
Active Form Warning

This form is currently active. Deleting it will:

  • Remove an active consent form from patient workflows
  • Cancel any pending signature requests
  • Potentially disrupt ongoing patient consent processes
  • May impact scheduled procedures requiring this consent
  • Could affect patient care continuity
{% endif %} {% if object.signed_count > 0 %}
Signed Forms Warning

This form has been signed {{ object.signed_count }} time{{ object.signed_count|pluralize }}. Deleting it will:

  • Remove the template but preserve existing signed forms
  • Prevent future use of this consent form
  • May impact ability to track consent form versions
  • Could affect consent renewal processes
  • May impact reporting and compliance tracking
{% endif %} {% if object.pending_count > 0 %}
Pending Signatures Warning

This form has {{ object.pending_count }} pending signature{{ object.pending_count|pluralize }}. Deleting it will:

  • Cancel all pending signature requests
  • Notify patients and staff of cancellation
  • May delay patient care or procedures
  • Could require alternative consent arrangements
  • May impact scheduled appointments or treatments
{% endif %} {% if object.has_expiration %}
Expiration Information

This form has expiration settings ({{ object.expiration_days }} days). Deleting it will:

  • Remove automatic expiration tracking for this consent type
  • Cancel any scheduled renewal reminders
  • May impact consent renewal workflows
  • Could affect compliance monitoring
{% endif %}
{{ object.content|wordcount }}
Words
{{ object.signed_count }}
Signed
{{ object.pending_count }}
Pending
v{{ object.version }}
Version
Alternative Actions

Consider these alternatives instead of deletion:

  • Create new version instead of deleting
  • Deactivate form temporarily
{% csrf_token %}
Deletion Confirmation
{% if object.is_required %}
{% endif %} {% if object.status == 'ACTIVE' %}
{% endif %} {% if object.signed_count > 0 %}
{% endif %} {% if object.pending_count > 0 %}
{% endif %}
{% endblock %} {% block js %} {% endblock %}