{% extends "base.html" %} {% load static %} {% block title %}{% if form.instance.pk %}Edit{% else %}Create{% endif %} Department{% endblock %} {% block content %}

{% if form.instance.pk %}Edit{% else %}Create{% endif %} Department

{% if form.instance.pk %}Edit{% else %}Create{% endif %} Department
{% csrf_token %} {% if form.non_field_errors %}
{% for error in form.non_field_errors %}

{{ error }}

{% endfor %}
{% endif %}
{{ form.name.errors }} {{ form.name }} {% if form.name.help_text %}
{{ form.name.help_text }}
{% endif %}
{{ form.code.errors }} {{ form.code }} {% if form.code.help_text %}
{{ form.code.help_text }}
{% endif %}
{{ form.department_type.errors }} {{ form.department_type }} {% if form.department_type.help_text %}
{{ form.department_type.help_text }}
{% endif %}
{{ form.parent_department.errors }} {{ form.parent_department }} {% if form.parent_department.help_text %}
{{ form.parent_department.help_text }}
{% endif %}
{{ form.description.errors }} {{ form.description }} {% if form.description.help_text %}
{{ form.description.help_text }}
{% endif %}
{{ form.contact_number.errors }} {{ form.contact_number }} {% if form.contact_number.help_text %}
{{ form.contact_number.help_text }}
{% endif %}
{{ form.email.errors }} {{ form.email }} {% if form.email.help_text %}
{{ form.email.help_text }}
{% endif %}
{{ form.location.errors }} {{ form.location }} {% if form.location.help_text %}
{{ form.location.help_text }}
{% endif %}
{{ form.working_hours.errors }} {{ form.working_hours }} {% if form.working_hours.help_text %}
{{ form.working_hours.help_text }}
{% endif %}
{{ form.department_head.errors }} {{ form.department_head }} {% if form.department_head.help_text %}
{{ form.department_head.help_text }}
{% endif %}
{{ form.is_active.errors }} {{ form.is_active }} {% if form.is_active.help_text %}
{{ form.is_active.help_text }}
{% endif %}
{{ form.notes.errors }} {{ form.notes }} {% if form.notes.help_text %}
{{ form.notes.help_text }}
{% endif %}
Cancel
Help & Guidelines

Clinical: Departments directly involved in patient care (e.g., Cardiology, Pediatrics).

Administrative: Departments handling operational aspects (e.g., HR, Finance).

Support: Departments providing support services (e.g., IT, Maintenance).

Department codes should be unique, short, and recognizable.

Examples:

  • CARD - Cardiology
  • PEDS - Pediatrics
  • HR - Human Resources
  • IT - Information Technology

Departments can be organized hierarchically by setting a parent department.

This creates a tree structure that reflects your organization's structure.

Example: The Cardiac Surgery department might have Cardiology as its parent department.

The department head is the employee responsible for managing the department.

Only active employees can be assigned as department heads.

You can change the department head later if needed.

Department Preview
?
Department Name

CODE

Type

Department Type

Status

Active

Department Head

Not assigned

Location

Not specified

{% endblock %} {% block css %} {% endblock %} {% block js %} {% endblock %}