Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.encoreos.io/llms.txt

Use this file to discover all available pages before exploring further.

The Edit Incident page provides a form for updating an existing workplace incident record. It is available at route /hr/employee-relations/incidents/:id/edit.

Overview

The route renders IncidentFormPage in edit mode (isEdit = true, because the id param is present). The existing record is fetched via useIncidentDetail. The form normalizes incident_type and severity against known valid sets before submitting. Valid incident types from code: accident, injury, safety_violation, property_damage, near_miss, other. Valid severities: minor, moderate, serious, critical. On submit, updateMutation is called.

Who it’s for

No explicit permission gate on this route. Data is scoped to the current organization.

Before you start

  • Navigate from an incident detail page at /hr/employee-relations/incidents/:id.

Steps

1

Open the edit form

From an incident detail page, click the edit action. You land on /hr/employee-relations/incidents/:id/edit.
2

Modify fields

Update type, severity, description, or other fields.
3

Save changes

Submit the form. On success, you are redirected to the detail page.

Human Resources

Human Resources core overview.

Governance & parity

This page documents shipped product behavior. It is not medical, legal, or billing advice. Verify against your organization’s policies and applicable regulations before using it for clinical, compliance, or billing decisions. Protected health information (PHI) shown in the product is governed by your tenant’s access controls and is never exposed in this documentation.
  • src/routes/hr/employee-relations-routes.tsx
  • src/cores/hr/employee-relations/pages/IncidentFormPage.tsx
  • src/cores/hr/employee-relations/hooks/useIncidentMutation.ts