Data dictionary
Researched by Christopher Fairfield
Download the original data dictionary (Markdown)
Public coding ledger
One row per candidate visit (including exclusions). CPSC publishes deidentified NEISS narratives. This dataset adds no patient identifiers; readers must respect the privacy of the people described. Source fields: source_year (annual file year), CPSC_Case_Number (public case identifier), matched_product_codes (target-code memberships), Product_1/Product_2/Product_3 (original numeric product codes), source_url (original annual file), Narrative_1 (verbatim public narrative, including original spelling and redactions), Stratum (annual S/M/L/V/C design group), PSU (public hospital cluster code, not a hospital name), Weight (annual survey weight), setting_source_code (original CPSC location code, including unknown; use official coding manual). The original candidate data retain the source demographic and clinical fields. The publication-facing ledger omits separate age, sex, diagnosis and treatment-date columns, although some public narratives contain such details.
| Added field | Definition |
|---|---|
| eligibility | INCLUDE or EXCLUDE after screening. |
| activity_code | One of the nine activity codes; NOT_APPLICABLE for excluded records. See CODEBOOK_v1_1.md. |
| power_code | One explicit-state category, assigned using the codebook hierarchy; UNKNOWN or NOT_APPLICABLE where appropriate. |
| adjudication_status | ADJUDICATED indicates completed AI-assisted coding and reconciliation. It does not indicate clinical review. |
| codebook_version | FRF-NEISS-1.1 (post-audit clarification, original nine categories retained). |
| product_uncertainty | NO_CONTRADICTION (code-based eligibility, not verified exact model), AMBIGUOUS (included but flagged), EXCLUDED. |
| notes | Activity or exclusion evidence and rationale; includes exact source wording. |
| product_evidence | Rationale for product eligibility or uncertainty. |
| activity_ambiguity | YES when plausible alternative explicitly recorded, otherwise NO. |
| alternate_activity | Alternative nine-category code, blank if none recorded. |
| activity_ambiguity_reason | Boundary explanation or blank. |
| source_row_index | Zero-based row index in the fingerprinted input file. |
| lexical_proposal | Initial rule-based activity suggestion. |
| power_observations | Pipe-separated reviewed indicators of stated or expected appliance state; see versioned codebook; ACTIVATION_DESCRIBED_BY_CONTROL_INJURY_LINK marks explicit causal control-to-injury wording, not independently verified motion. NO_EXPLICIT_CODED_STATE is not evidence of absence. |
| power_evidence | Source text when state flags are present. |
| role_code | HANDLER_EXPLICIT, HELPER_EXPLICIT, BYSTANDER_EXPLICIT, INCIDENTAL_CONTACT_EXPLICIT, HANDLER_WITH_OTHER_ACTOR, CONSUMPTION_CONTEXT_HANDLER_UNKNOWN, UNKNOWN_ROLE or NOT_APPLICABLE. Descriptive secondary labels, not independently validated. |
| role_evidence | Supporting source text when a role was coded. |
| mechanism_text_flags | Multi-label literal text indicators: blade/sharp component, drop/fall/impact, glass/breakage, splash, heat/burn, caught/entrapment, ingestion, electrical shock/spark, burst/explosion. NO_MATCHED_EXPLICIT_INDICATOR or NOT_APPLICABLE otherwise. A mention is not established causal mechanism; regex definitions in build_ledger.py. |
| mechanism_evidence | Literal matched word or phrase for each mechanism text indicator. |
| commercial_or_institutional_context | Explicit context notes where identified; blank means not coded, not necessarily absent. |
| review_method | Review of the rule-based suggestion, with or without a coding change. |
| audit_sample | HELD_OUT, PRESPECIFIED_60 or NONE. NONE identifies records outside those comparison samples. |
adjudicated_classifications.csv and classification_template.csv have matching rows and identical coding fields. full_coding_ledger.csv combines the original candidate fields and the coding fields. exclusion_log.csv contains the 11 exclusions. headline_audit.csv contains 254 cleaning records with the targeted reread evidence and ambiguity status. audit_reconciliation.csv preserves preliminary direct and lexical labels, V1 adjudication and V1.1 decisions separately. classification_change_log.csv and independent_sample_reconciliation.csv are audit-only. heldout_check.csv preserves development-stage comparisons, not final decisions.
Summary and sensitivity tables
public_summary.csv is long-format: analysis (primary or sensitivity rule), group (combined or matching product code), period (all_years, 2021_2023, 2024_2025), activity (nine categories, UNKNOWN_ACTIVITY aggregate, or TOTAL), sample_cases (numerator), eligible_sample (denominator), estimate_status (PASS or WITHHELD), annual_average, annual_average_lower, annual_average_upper (annual average of weighted visit totals and approximate 95% limits), weighted_share, share_lower, share_upper (fractions between 0 and 1), screen_flags (pipe-separated reasons for suppression). Numerical national fields are blank for failed screens. Total share is a definition, not an independently estimated statistic. The UNKNOWN_ACTIVITY aggregate combines two of the nine categories and would double-count those cases if added to the category totals. The sensitivity rows describe alternative coding, not additional visits. Full unrounded diagnostics, including unstable estimates for auditor use only, are in analysis_support.json and sensitivity_results.json. The extreme missing-activity scenario illustrates a hypothetical classification of unknown tasks, while annual-average national estimates are weighted rather than raw sampled counts.
inclusion_accounting.csv: year, candidate and eligible counts, exclusions, ambiguous included, dual-code eligible, reporting hospitals, hospitals with zero eligible cases. source_register.csv: document, URL, source role, retrieval/review status and relevant provenance. source_metadata.json: supplied file acquisition fingerprints and parsing details (audit only).
public_hospital_roster.csv: one row per reporting hospital-year, with year, stratum, psu, record_count (all valid annual-file records) and candidate_count (before eligibility screening, including zero). All 390 hospital-years are retained. public_metadata.json: annual counts and source hashes, sample design and codebook version needed to verify reproducibility. reproduce_public.py calculates the 135 screened summary rows using only public inputs and the included unchanged survey helper. See PUBLIC_README.md.
The study methodology explains how the records were classified and how the national estimates were calculated.