Skip to content

feat: Updated incident-contracts to incorporate more fields supporting more forms#616

Open
chetanr25 wants to merge 1 commit into
fireform-core:development-approach-cfrom
chetanr25:incident-schema
Open

feat: Updated incident-contracts to incorporate more fields supporting more forms#616
chetanr25 wants to merge 1 commit into
fireform-core:development-approach-cfrom
chetanr25:incident-schema

Conversation

@chetanr25

@chetanr25 chetanr25 commented Jul 17, 2026

Copy link
Copy Markdown
Collaborator

Expand incident contract and incident record

Why

Reference discussion: Discussion #609

Approach A: extract once into a shared incident schema, fill every form from that stored document. The contract we had was a first pass and did not actually cover what real fire, EMS, and hazmat reports need. This fills that gap so the schema can carry the full pipeline instead of blocking it.

What changed

  • Added the sections the contract was missing: dispatch, actions taken, per-unit response, resources summary, explosion, risk reduction, exposures, rescues, evacuation and displacement, emerging hazards, investigation, persons involved, mobile property, and losses.
  • Added shared value types (Money, CodeRef, Quantity, PresenceStatus, OperationStatus, Coordinates) so these concepts are represented once instead of repeated per section.
  • Field conventions are now explicit in the file: SI units, money as amount plus currency, absent means unknown, PII flagged, aliases on the fields people are most likely to search for.
  • IncidentRecord now owns the contract document as the single source of truth, with a derived incident_datetime and an analytics block for the stats reporting needs without reading the whole JSONB.
  • FormType is now an open string instead of a closed enum, since templates are user-registered per agency. Added FieldSource to say whether a template field comes from the contract, a static value, a manual entry, or an LLM-extracted "open" field.

Reference

Standards surveyed: NERIS, NFIRS 5.0, ICS-209, NEMSIS, OSHA 301, UK IRS, Australia AIRS, Canada NFID/Ontario SIR, CTIF, UN SSIRS, and Indian state fire proformas. Discussion: #609.

Fix: #615

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant