Environment, health and safety
The ehs preset installs incidents and near misses as cases, safety inspections, a risk register, training and licences as qualifications, equipment in assets and acknowledged procedures.
The ehs preset is for an environment, health and safety app in the style of
Intelex or SafetyCulture, for ISO 45001 or ISO 14001. Workers report
incidents and near misses, supervisors run site inspections from a
checklist, the company keeps a register of hazards and their controls, and
nobody operates a forklift without a valid licence.
Config
import { defineConfig } from "better-supabase/config";
export default defineConfig({ preset: "ehs" });npx better-supabase init --preset ehs starts a new project from it, and
npx better-supabase add --preset ehs adds it to one you have
(CLI).
Blocks
The preset installs the same blocks as qms without
the posts board, and leaves the drive's document control off. The blocks
that carry the app:
| Block | Role in the app |
|---|---|
| cases | Incidents, near misses and observations, each kind on its pipeline |
| inspections | Site and equipment inspections with a checklist form and findings |
| risks | The hazard and aspect register, scored before and after controls |
| qualifications | Training, licences and medical checks, with expiry and gaps |
| courses | Safety training that grants a qualification with its certificate |
| assets | Equipment, vehicles and sites, and their inspection certificates |
| acknowledgements | Read and understood records for procedures and toolbox talks |
| forms | Checklists and a public incident report form |
| tasks | The actions on a case |
| drive | Procedures, permits and safety data sheets |
| metrics | Safety indicators such as incidents per month |
It also installs versions, signatures, approvals, state-machine, numbering, pipelines, relations, compliance, enrollments, employees, contacts and attachments, which the blocks above use.
How the blocks connect
A worker reports an incident through a public form whose submission handler
is the cases block's case_from_submission, which opens a case of the kind
the answers name (intake through forms).
A near_miss case closes with a root cause, and an incident case also needs
its actions done. A risk links to the controls and work items that reduce it
through mitigated_by, and to the incidents it caused through
materialized_as. An inspection's nonconformity raises a case before the
inspection closes. A qualification requirement on a role, a team or an asset
kind shows who may not do the work yet in the gap report.
To put procedures under document control as in qms, set
blocks.drive.options.control
(controlled documents).
With ReUI
- Case board for incidents, and case detail for one.
- Inspection run on a tablet.
- Risk heatmap.
- Qualification matrix.
Last updated on
Quality management
The qms preset installs controlled documents, cases for nonconformities, complaints and changes, audits and inspections, a risk register, qualifications and acknowledgements, linked through relations.
Information security
The isms preset installs security controls and policies, a risk register, internal audits, security incidents as cases, acknowledgements and a drive for documented information.