{% extends "base.html" %} {% load static %} {% block title %}Delete Equipment - {{ object.name }}{% endblock %} {% block content %}

Delete Equipment

Confirm Equipment Deletion

Warning

You are about to permanently delete this equipment record. This action cannot be undone and will affect scheduling and historical data.

Equipment Information
Name: {{ object.name }}
Modality: {{ object.get_modality_display }}
Location: {{ object.location }}
Manufacturer: {{ object.manufacturer|default:"Not specified" }}
Model: {{ object.model|default:"Not specified" }}
Serial Number: {{ object.serial_number|default:"Not specified" }}
Status: {{ object.get_status_display }}
Usage Statistics
Total Studies: {{ object.total_studies|default:0 }}
Studies This Month: {{ object.studies_this_month|default:0 }}
Last Used: {{ object.last_used|date:"M d, Y"|default:"Never" }}
Installation Date: {{ object.installation_date|date:"M d, Y"|default:"Unknown" }}
Purchase Cost: {{ object.purchase_cost|default:"Not specified" }}
Utilization Rate: {{ object.utilization_rate|default:0 }}%
{% if object.active_studies_count > 0 %}
Active Studies Warning

This equipment has {{ object.active_studies_count }} active or scheduled studies. Deleting this equipment will affect these studies.

{% endif %} {% if object.total_studies > 100 %}
High Usage Equipment

This equipment has been used for {{ object.total_studies }} studies. Deleting it will remove significant historical data.

{% endif %} {% if object.status == 'operational' %}
Operational Equipment

This equipment is currently operational and available for scheduling. Consider taking it offline first.

{% endif %} {% if object.service_contract_active %}
Active Service Contract

This equipment has an active service contract. Ensure the contract is properly terminated before deletion.

{% endif %}
Deletion Impact
  • Scheduling: Equipment will no longer be available for new studies
  • Historical Data: All study records will lose equipment reference
  • Reports: Equipment-specific reports will be affected
  • Maintenance: Service history will be preserved but orphaned
  • Asset Tracking: Equipment will be removed from asset inventory
  • QR Codes: Any printed QR codes will become invalid
Related Data
  • {{ object.scheduled_studies_count|default:0 }} Scheduled Studies
  • {{ object.maintenance_records_count|default:0 }} Maintenance Records
  • {{ object.usage_reports_count|default:0 }} Usage Reports
  • {{ object.documents_count|default:0 }} Documents
Financial Impact
  • Asset Value: {{ object.current_value|default:"Unknown" }}
  • Service Costs: {{ object.total_service_cost|default:"Unknown" }}
  • Revenue Generated: {{ object.revenue_generated|default:"Unknown" }}
  • Monthly Revenue: {{ object.monthly_revenue|default:"Unknown" }}
Alternative Actions

Consider these alternatives to deletion:

Edit Equipment Information

Deletion Confirmation

{% csrf_token %}
Final disposal or sale value
Cancel

Need Help?

If you're unsure about deleting this equipment, contact:

  • Chief Radiologist: ext. 2100
  • Biomedical Engineering: ext. 3100
  • Asset Management: ext. 4200
  • IT Support: ext. 3000
{% endblock %}