{% extends "base.html" %} {% block title %}{{ incident.reference_no }}{% endblock %} {% block page_title %}Occurrence Report Details{% endblock %} {% block content %}
CONFIDENTIAL OVR RECORD

{{ incident.reference_no }}

{{ incident.classification_category }} · {{ incident.report_type }}

{{ incident.status_label }}
{% set stages = ['DRAFT','SUBMITTED','QPS_REVIEW','ACTION_REQUIRED','QPS_FINAL','CLOSED'] %} {% set current_index = 3 if incident.status == 'RCA_REQUIRED' else stages.index(incident.status) if incident.status in stages else 0 %} {% for stage in stages %}{% endfor %}
Branch{{ incident.branch.name }}
Incident{{ incident.occurred_at_display }}
Risk Grade{{ (incident.risk_score|string ~ ' · ' ~ incident.risk_level) if incident.risk_level else 'Awaiting assessment' }}
Investigation Due{{ incident.investigation_due_at.strftime('%Y-%m-%d') if incident.investigation_due_at else 'Pending grade' }}

Occurrence / Variance Details

Reporter-submitted information

{% if incident.risk_level %}{{ incident.risk_level }} Risk{% endif %}
Reporter
{{ reporter_name }}{% if incident.is_anonymous %} Protected{% endif %}
Reporting Department
{{ incident.department.name }}
Location
{{ incident.location }}
Person Involved
{{ incident.person_type }}{% if incident.person_name %} · {{ incident.person_name }}{% endif %}
Position / Badge
{{ incident.person_position or '—' }}{% if incident.person_mobile_badge %} · {{ incident.person_mobile_badge }}{% endif %}
Patient MRN
{{ incident.patient_mrn or '—' }}
Classification
{{ incident.classification_category }}
Selected Items
{{ incident.classification_items|join(', ') }}{% if incident.classification_other %} · {{ incident.classification_other }}{% endif %}
Injury / Harm
{{ 'Injury occurred' if incident.injury_occurred else 'No injury reported' }}{% if incident.injury_type %} · {{ incident.injury_type }}{% endif %}{% if incident.harm_level %} · {{ incident.harm_level }}{% endif %}
Medication Harm
{{ incident.medication_harm_category or 'Not applicable / not graded' }}
Other Departments
{{ incident.involved_departments|map(attribute='name')|join(', ') or 'None' }}
Submitted
{{ incident.submitted_at|localdt if incident.submitted_at else 'Draft' }}

Factual Description

{{ incident.description }}

Immediate Action / Treatment

{{ incident.immediate_action or 'No immediate action documented.' }}
{% if incident.supervisor_action %}

Manager Initial Investigation

Initial action, contributing factors, and risk classification

Patient Involved
{{ 'Yes' if incident.patient_involved_confirmed else 'No' if incident.patient_involved_confirmed is not none else 'Not recorded' }}
Medical Record Documented
{{ 'Yes' if incident.medical_record_documented else 'No' if incident.medical_record_documented is not none else 'Not recorded' }}
Sentinel Event
{{ 'Yes' if incident.sentinel_confirmed else 'No' }}{% if incident.sentinel_event_type %} · {{ incident.sentinel_event_type }}{% endif %}
Risk Register
{{ 'Automatically included' if incident.risk_registered else 'Not required by current grade' }}
Contributing Factors
{{ incident.contributing_factors|join(', ') or 'None selected' }}
Incident Causes
{{ incident.incident_causes or 'Not documented' }}

Manager Action / Treatment

{{ incident.supervisor_action }}
{% endif %} {% if incident.qps_analysis %}

QPS Analysis & Recommendation

Quality and Patient Safety review

Analysis

{{ incident.qps_analysis }}

Recommendation

{{ incident.qps_recommendation or 'No additional recommendation recorded.' }}
{% endif %} {% if incident.rca %}

Root Cause Analysis

Sentinel / intensive investigation record

RCA Team
{{ incident.rca.team_members }}
Completed By
{{ incident.rca.completed_by.full_name }} · {{ incident.rca.completed_at|localdt('%Y-%m-%d') }}

Problem Statement

{{ incident.rca.problem_statement }}

Analysis

{{ incident.rca.analysis }}

Root Causes

{{ incident.rca.root_causes }}

CAP & Recommendations

{{ incident.rca.recommendations }}
{% endif %}

Corrective & Preventive Actions

Action strength, ownership, evidence, and completion

{% if incident.action_items %}{% for item in incident.action_items %}
{{ item.kind }} · {{ item.strength }}
{{ item.description }}
Department: {{ item.department.name if item.department else 'Unassigned' }}Owner: {{ item.owner.full_name if item.owner else 'Unassigned' }}Due: {{ item.due_at.strftime('%Y-%m-%d') if item.due_at else 'Not set' }}Status: {{ item.status|title }}
{% if item.completion_notes %}

Completion evidence: {{ item.completion_notes }}

{% endif %} {% if item.status != 'COMPLETED' and current_user.can('incident.action') %}
{% endif %}
{% endfor %} {% else %}
No action items

Corrective/preventive actions will appear here when assigned.

{% endif %}

Comments & Clarifications

Shared discussion and restricted QPS notes

{% for comment in comments %}
{{ 'Anonymous reporter' if incident.is_anonymous and comment.author_id == incident.reporter_id and not current_user.can('incident.view_reporter_identity') else comment.author.full_name }}{% if comment.is_qps_only %} · QPS-only{% endif %}
{{ comment.created_at|localdt }}

{{ comment.body }}

{% else %}

No comments have been added.

{% endfor %}
{% if current_user.can('incident.qps_review') %}{% endif %}
{% endblock %}