Skip to content

app.osha_cases

TableRow level security on

Recordable work-related injuries and illnesses (29 CFR Part 1904): each row is a Form 300 log entry and its Form 301 incident report. Health information: read with data.restricted.read.medical.

Primary key: id

Columns of app.osha_cases
ColumnTypeNullableDescription
iduuidNoPrimary key, UUID v7.
org_iduuidNoOwning org, derived from app.osha_establishments on insert; never accepted from the caller and never changed.References app.organizations.id
establishment_iduuidNoEstablishment whose log the case is on.References app.osha_establishments.id
incident_iduuidYesIncident the case came from, when there is one.References app.incidents.id
log_yearsmallintNoYear of the log; the year of the injury or illness date. Set by the database.
case_numbertextNoCase no. (Form 300 column A, Form 301 item 10). Numbered per establishment and year by the database when left empty.
person_iduuidYesThe employee, when they are a person in XOS.References app.people.id
employee_nametextYesEmployee's full name when they are not a person in XOS (Form 300 column B, Form 301 item 1).
privacy_casebooleanNoA privacy concern case (29 CFR 1904.29(b)(6) to (9)): the log prints "privacy case" in place of the name.
job_titletextNoJob title (Form 300 column C).
injury_datedateNoDate of injury or onset of illness (Form 300 column D, Form 301 item 11).
event_locationtextNoWhere the event occurred (Form 300 column E).
descriptiontextNoInjury or illness, parts of body affected, and object or substance that directly injured or made the person ill (Form 300 column F).
outcometextNoMost serious outcome: Death, Days away from work, Job transfer or restriction, or Other recordable case (Form 300 columns G to J).
days_awaysmallintNoDays away from work (Form 300 column K). Counting stops at 180 together with days_restricted.
days_restrictedsmallintNoDays on job transfer or restriction (Form 300 column L).
case_typetextNoInjury, Skin disorder, Respiratory condition, Poisoning, Hearing loss or All other illnesses (Form 300 column M).
employee_streettextYesEmployee's street (Form 301 item 2).
employee_localitytextYesEmployee's city (Form 301 item 2).
employee_regiontextYesEmployee's state, two letters (Form 301 item 2).
employee_postal_codetextYesEmployee's ZIP code (Form 301 item 2).
date_of_birthdateYesDate of birth (Form 301 item 3).
date_hireddateYesDate hired (Form 301 item 4).
employee_sextextYesMale or Female, as Form 301 item 5 asks.
health_care_professionaltextYesName of physician or other health care professional (Form 301 item 6).
treatment_facilitytextYesFacility where treatment was given away from the worksite (Form 301 item 7).
facility_streettextYesFacility street (Form 301 item 7).
facility_localitytextYesFacility city (Form 301 item 7).
facility_regiontextYesFacility state, two letters (Form 301 item 7).
facility_postal_codetextYesFacility ZIP code (Form 301 item 7).
emergency_roombooleanYesWas the employee treated in an emergency room (Form 301 item 8).
hospitalized_overnightbooleanYesWas the employee hospitalized overnight as an in-patient (Form 301 item 9).
work_began_attime without time zoneYesTime the employee began work (Form 301 item 12).
event_timetime without time zoneYesTime of event (Form 301 item 13).
event_time_unknownbooleanNoThe time of the event cannot be determined (Form 301 item 13).
activity_beforetextYesWhat the employee was doing just before the incident occurred, with no personally identifiable information (Form 301 item 14).
what_happenedtextYesHow the injury occurred (Form 301 item 15).
injury_detailtextYesThe injury or illness: part of the body affected and how (Form 301 item 16).
harmful_objecttextYesObject or substance that directly harmed the employee (Form 301 item 17).
died_ondateYesDate of death, if the employee died (Form 301 item 18).
completed_byuuidYesPerson who completed the Form 301.References app.people.id
completed_titletextYesTitle of the person who completed the Form 301.
completed_phonetextYesPhone of the person who completed the Form 301.
completed_ondateYesDate the Form 301 was completed.
deleted_attimestamp with time zoneYesSoft delete time. A row with deleted_at set is ignored by every access helper.
created_attimestamp with time zoneNoWhen the row was inserted. Set by the database.
created_byuuidYesPerson who inserted the row, or null for a platform process. Set by the database.References app.people.id
updated_attimestamp with time zoneNoWhen the row last changed. Set by the database.
updated_byuuidYesPerson who last changed the row, or null for a platform process. Set by the database.References app.people.id