{% extends "base.html" %} {% load static %} {% block title %}Delete Note Template: {{ template.title }}{% endblock %} {% block css %} {% endblock %} {% block content %}

Delete Note Template Confirm template deletion

Confirm Deletion

Warning: You are about to delete a note template

You are about to permanently delete the note template "{{ template.title }}". This action cannot be undone.

Deleting this template will remove it from the template library and it will no longer be available for creating new clinical notes. This will not affect existing notes that were created using this template.

{% if template.usage_count > 0 %}
Warning: This template has been used {{ template.usage_count }} times to create clinical notes. Consider archiving instead of deleting.
{% endif %}
Template Summary
Template ID {{ template.template_id }}
Title {{ template.title }}
Note Type {{ template.get_note_type_display }}
Version {{ template.version }}
Status {{ template.get_status_display }}
Created By {{ template.created_by.get_full_name }}
Created {{ template.created_at }}
Last Updated {{ template.updated_at }}
Usage Count {{ template.usage_count }}
Impact Assessment

Deleting this template will have the following impact:

Usage Statistics
Department Usage
{% if template.department_usage %}
    {% for dept in template.department_usage %}
  • {{ dept.name }} ({{ dept.count }} uses)
  • {% endfor %}
{% else %}

No department usage data available.

{% endif %}
Version History
{% if template.version_history %}

This template has {{ template.version_history|length }} version(s) in its history:

    {% for version in template.version_history %}
  • Version {{ version.version }} - Created on {{ version.created_at|date:"M d, Y" }} by {{ version.created_by.get_full_name }}
  • {% endfor %}

All version history will be permanently deleted.

{% else %}

No version history available for this template.

{% endif %}
Alternative Actions

Instead of deleting this template, consider these alternatives:

Archive Template

Archive the template to make it unavailable for new notes while preserving it for reference.

Archive Template
Mark as Deprecated

Mark the template as deprecated to indicate it should no longer be used.

Mark as Deprecated
Create New Version

Create a new version of this template instead of deleting it.

Create New Version
{% csrf_token %}
{% if template.usage_count > 0 %}
{% endif %}
Please provide a detailed reason for deleting this template.
Cancel
{% endblock %} {% block js %} {% endblock %}