Company Page Data Reference
Internal reference documenting every section on a company page: what data it shows, where it comes from, how it is matched, and what is our own text vs. government data.
This page is not indexed by search engines. Last updated: 2026-04-03.
Legend:DIRECT GOV DATACROSS-DB MATCHED (verified)COMPUTED FROM GOV DATAEDITORIAL / CURATEDMETADATA
Company Header
DIRECT GOV DATA| Fields shown | Company name, address, city, state, zip, NAICS code, NAICS title, date range |
| Data source | DOL OSHA Enforcement Database (Inspections table)[source] |
| DB table | establishments + establishment_locations |
| Matching method | Derived from inspections. Grouped by normalized_name + city + state. canonical_name = most common spelling from inspection records. |
| Data accuracy | Direct from OSHA inspection records. Names are as entered by OSHA compliance officers during inspections. |
| Text origin | All text is data-driven. No editorial content. |
Summary Lede (red left border paragraph)
DIRECT GOV DATA| Fields shown | Total inspections, total violations, total penalties, date range |
| Data source | DOL OSHA Enforcement Database (Inspections + Violations tables)[source] |
| DB table | establishments (pre-aggregated counts from inspections/violations) |
| Matching method | Direct link via establishment_inspections join table. No cross-database matching needed. |
| Data accuracy | Aggregated counts verified by audit_database.py. Penalties use current_penalty, the latest penalty amounts on record, which may differ from initial assessments or final amounts after settlement. |
| Text origin | Template-generated sentence using data values. Wording varies based on whether violations exist. |
Violation Type Breakdown Bar
DIRECT GOV DATA| Fields shown | Serious count, Willful count, Repeat count, Other count |
| Data source | DOL OSHA Enforcement Database (Violations table, vio_type field)[source] |
| DB table | establishments (serious_count, willful_count, repeat_count, other_count) |
| Matching method | Pre-aggregated from violations linked via establishment_inspections. Violation types use OSHA's own classification: S=Serious, W=Willful, R=Repeat, O=Other. |
| Data accuracy | Counts verified by audit_database.py check #1 (recalculates from raw data and compares). Deleted violations (delete_flag) are excluded. Uses OSHA terminology only. |
| Text origin | Labels are OSHA's official violation type names. No invented categories. |
Overview (Insights)
COMPUTED FROM GOV DATA| Fields shown | Dynamic factual statements about the establishment |
| Data source | Computed from DOL OSHA Enforcement Database fields[source] |
| DB table | establishments, inspections, violations (via generateInsights()) |
| Matching method | Direct data from linked inspections/violations. No cross-database matching. |
| Data accuracy | Each insight is a factual statement derived from data (e.g., 'X inspections in the last 5 years'). Pure math, no editorial judgment. |
| Text origin | Generated by src/lib/insights.ts. Uses deterministic hash for consistent phrasing per entity. All statements are verifiable from the underlying data. |
Overview Disclaimer
EDITORIAL / CURATED| Fields shown | Static disclaimer text |
| Data source | SafetyRecord editorial (not from government data) |
| DB table | None (hardcoded) |
| Matching method | N/A |
| Data accuracy | N/A - this is our own disclosure language. |
| Text origin | Hardcoded in company page. States: data from DOL OSHA, penalty amounts reflect the latest on record, having inspections is common, not legal advice. |
Industry Comparison
COMPUTED FROM GOV DATA| Fields shown | Violations per inspection, penalties per inspection, industry averages, sample size |
| Data source | Computed from DOL OSHA Enforcement Database[source] |
| DB table | establishments (aggregated by 3-digit NAICS via getIndustryBenchmark()) |
| Matching method | Compares this establishment's rates against all establishments sharing the same 3-digit NAICS code. Minimum 10 employers required. |
| Data accuracy | Pure math: establishment's total / inspections vs. industry average. Labels 'Above avg' (>1.3x), 'Below avg' (<0.7x), 'Near avg' use fixed thresholds with no editorial judgment. |
| Text origin | 'Above avg'/'Below avg'/'Near avg' are computed labels based on ratio thresholds. No invented grades or scores. |
Most Cited Standards
DIRECT GOV DATA| Fields shown | Standard code, title, citation count, penalties |
| Data source | DOL OSHA Enforcement Database (Violations table, standard field)[source] |
| DB table | violations (via getCompanyTopStandards()), osha_standards for titles |
| Matching method | Direct from violations linked to this establishment. Standard titles from eCFR/osha_standards table. |
| Data accuracy | Citation counts and penalties are exact sums from violation records. Standard titles from official eCFR or OSHA sources only. |
| Text origin | No editorial text. Pure data table. |
Inspection History Table
DIRECT GOV DATA| Fields shown | Activity number, open date, type, scope, violation count, penalties |
| Data source | DOL OSHA Enforcement Database (Inspections + Violations tables)[source] |
| DB table | inspections + violations (via establishment_inspections join) |
| Matching method | Direct link via establishment_inspections. activity_nr is the official OSHA inspection identifier. |
| Data accuracy | All fields directly from the DOL OSHA enforcement data. Inspection type labels follow the DOL inspection metadata endpoint for `insp_type` (for example: A=Accident, B=Complaint, H=Planned, M=Fat/Cat). |
| Text origin | No editorial text. Type labels from OSHA's own code definitions. |
Reported Severe Injuries
DIRECT GOV DATA| Fields shown | Event date, description, fatality/amputation/hospitalization flags, injury details, linked inspection |
| Data source | DOL OSHA Enforcement Database (Accidents + Accident Injuries tables)[source] |
| DB table | osha_accidents + osha_accident_injuries (via establishment_inspections) |
| Matching method | Linked via rel_insp_nr (inspection number) in osha_accident_injuries -> establishment_inspections. Direct government key, no name matching. |
| Data accuracy | Event descriptions are from OSHA's accident investigation narratives. Fatality flag from OSHA data. Nature/body part codes currently stored as raw codes (decode pending). |
| Text origin | No editorial text. Descriptions are OSHA's own narratives. |
Associated OSHA Activity (Inspection Pages)
DIRECT GOV DATA| Fields shown | Complaint count, referral count, accident report count |
| Data source | DOL OSHA Enforcement Database (Related Activity table via DOL V4 API)[source] |
| DB table | related_activity |
| Matching method | Linked via activity_nr (inspection number). Direct government key, no name matching. Counts only - rel_act_nr values are OSHA internal reference numbers, not cross-referenceable inspection IDs. |
| Data accuracy | All fields directly from DOL API. rel_type codes: C=Complaint, R=Referral, A=Accident. Type I (Investigation) records are excluded from display as their reference numbers are internal OSHA IDs. |
| Text origin | No editorial text. Type labels from OSHA's own code definitions. |
Other Inspections of This Employer (Inspection Pages)
DIRECT GOV DATA| Fields shown | Inspection number, date, type, violation count, total penalty |
| Data source | DOL OSHA Enforcement Database (Inspections + Violations via DOL V4 API)[source] |
| DB table | establishment_inspections + inspections + violations |
| Matching method | Linked via establishment_inspections join table (establishment_id). This is an exact government key - all inspections sharing the same establishment record. Not name-based matching. |
| Data accuracy | All fields directly from DOL API. Limited to 20 most recent inspections of the same establishment. |
| Text origin | No editorial text. |
OSHA PEL Reference (Chemical Sampling Section)
DIRECT GOV DATA| Fields shown | OSHA Permissible Exposure Limit (TWA), link to OCD source page |
| Data source | OSHA Occupational Chemical Database (OCD) at osha.gov/chemicaldata/[source] |
| DB table | ocd_pel_reference |
| Matching method | Matched via IMIS analyte code (exact key). The IMIS code in chemical_samples is the same identifier used in the OCD. 88% of samples match; unmatched samples show no PEL rather than guessing. |
| Data accuracy | PEL values scraped directly from individual OCD chemical pages. 831 chemicals covered. Values include TWA limits from 29 CFR 1910.1000 Tables Z-1/Z-2/Z-3 and substance-specific standards. Non-substance analytical method codes (Gravimetric Determination, Sample Weight, etc.) are excluded from display. |
| Text origin | No editorial text. PEL values displayed exactly as published by OSHA. |
About This Industry
EDITORIAL / CURATED| Fields shown | NAICS code, industry title, sector, description, common hazards |
| Data source | NAICS descriptions JSON (curated from Census Bureau NAICS definitions)[source] |
| DB table | src/data/naics-descriptions.json |
| Matching method | Matched by NAICS code (first 6, 4, or 2 digits). Falls back to broader codes if exact match not found. |
| Data accuracy | Industry descriptions based on official NAICS definitions. Common hazards text is curated editorial content based on OSHA guidance for the industry group. |
| Text origin | Industry description from NAICS definitions. 'Common hazards' is EDITORIAL content based on OSHA industry guidance - not a direct government quote. |
Nearby Employers
DIRECT GOV DATA| Fields shown | Company name, slug, inspection count |
| Data source | DOL OSHA Enforcement Database[source] |
| DB table | establishments + establishment_locations (same city + state) |
| Matching method | Exact city + state match. Shows other establishments inspected by OSHA in the same city. |
| Data accuracy | Direct from establishment data. No cross-database matching. |
| Text origin | No editorial text. |
FAQ Section
EDITORIAL / CURATED| Fields shown | Question/answer pairs |
| Data source | Template-generated from data + curated question bank |
| DB table | src/lib/faqs.ts (question templates) + establishment data |
| Matching method | Questions selected based on establishment characteristics (NAICS, state, violation types, penalties). |
| Data accuracy | Answers contain factual data from the establishment record. Question selection is deterministic per entity (hash-based). |
| Text origin | EDITORIAL: Questions are curated templates. Answers mix factual data with explanatory text about OSHA processes. All data values in answers are from government sources. |
Schema.org Structured Data (hidden)
METADATA| Fields shown | BreadcrumbList, GovernmentService, Dataset, FAQPage schemas |
| Data source | Generated from establishment data |
| DB table | establishments (via SchemaOrg component) |
| Matching method | N/A |
| Data accuracy | Schema markup uses the same data shown on the page. GovernmentService schema references OSHA as the provider. |
| Text origin | JSON-LD in page head. Not visible to users. |