Skip to content

Update CCSR mart to v2025.1 mappings (#967)#1361

Draft
gopihc wants to merge 1 commit into
tuva-health:mainfrom
gopihc:issue-967-ccsr-2025
Draft

Update CCSR mart to v2025.1 mappings (#967)#1361
gopihc wants to merge 1 commit into
tuva-health:mainfrom
gopihc:issue-967-ccsr-2025

Conversation

@gopihc

@gopihc gopihc commented Jul 3, 2026

Copy link
Copy Markdown

🚨 ACTION REQUIRED — PUBLISH CCSR v2025.1 DATA TO S3 BEFORE MERGE 🚨

This PR cannot be merged and CI/dbt build will FAIL until the three v2025.1 CCSR data files are uploaded to object storage. The seeds in this PR are header-only by design; their data loads at dbt seed time from the versioned value-sets bundle in S3 (mirrored to GCS/Azure).

Upload these gzipped files to the value-sets bundle (S3 + GCS + Azure):

  • ccsr__dxccsr_v2025_1_body_systems.csv.gz
  • ccsr__dxccsr_v2025_1_cleaned_map.csv.gz
  • ccsr__prccsr_v2025_1_cleaned_map.csv.gz

Object key pattern: s3://tuva-public-resources/value-sets/<bundle-version>/<file>.csv.gz (must match the load_versioned_seed post-hook filenames). Bump tuva_seed_versions.value_sets if publishing under a new bundle version.
Full details, source, and transformation: seeds/value_sets/ccsr/README_v2025_1_publish.md.


Summary

Updates the CCSR data mart from HCUP CCSR v2023.1 to v2025.1 (ICD-10 codes valid through 2025-09-30), per #967.

  • Renames the three CCSR seeds + aliases to v2025_1 and points the load_versioned_seed post-hooks at the v2025_1 files.
  • Switches all model references (CCSR mart, service_category/encounters staging, benchmarks, DQI mart_review) from v2023_1 to v2025_1.
  • Bumps dxccsr_version/prccsr_version to '2025.1'.

Validation (local DuckDB, full v2025.1 data loaded directly)

All six CCSR mart models build against v2025.1:

  • dx_vertical_pivot, long_condition_category (2,618 conditions mapped, dxccsr_version = 2025.1), singular_condition_category — OK
  • procedure_category_map loads the full 82,121-row PRCCSR v2025.1 map — OK
  • long_procedure_category, procedure_summary build (0 rows only because the small synthetic set has no ICD-10-PCS procedures)

Row counts vs v2023.1: dxccsr cleaned map 75,238 (+689), prccsr cleaned map 82,121 (+524).

Notes

  • ccsr__dxccsr_v2025_1_body_systems was carried over from v2023.1 (stable parent-category set); re-verify the per-category counts in each description against DXCCSR-Reference-File-v2025-1.xlsx before release.
  • This replaces v2023.1 (mart output dxccsr_version/prccsr_version now report 2025.1); mart output schema is unchanged.

Release note

enhancement

Closes #967

Updates the CCSR data mart from HCUP CCSR v2023.1 to v2025.1 (ICD-10 codes
valid through 2025-09-30):

- Renames the three CCSR seeds and their aliases to v2025_1 and points the
  load_versioned_seed post-hooks at the v2025_1 files.
- Switches all model references (ccsr mart, service_category and encounters
  staging, benchmarks, dqi mart_review) from the v2023_1 seeds to v2025_1.
- Bumps dxccsr_version and prccsr_version to '2025.1'.

The seed CSVs are header-only; the data loads from the versioned value-sets
bundle in object storage. The v2025.1 gzipped data files must be published to
S3/GCS/Azure before merge or CI will fail to load them. See
seeds/value_sets/ccsr/README_v2025_1_publish.md for the files, object keys, and
transformation details.

Validated locally on DuckDB against the full v2025.1 data: all six CCSR mart
models build; long_condition_category maps 2,618 conditions with
dxccsr_version 2025.1, and the prccsr v2025.1 map (82,121 rows) loads and
transforms in procedure_category_map.
@netlify

netlify Bot commented Jul 3, 2026

Copy link
Copy Markdown

Deploy Preview for thetuvaproject canceled.

Name Link
🔨 Latest commit 9cdfbf3
🔍 Latest deploy log https://app.netlify.com/projects/thetuvaproject/deploys/6a477a296f33d7000882501a

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

Labels

None yet

Projects

Status: 👀 Ready for Review

Development

Successfully merging this pull request may close these issues.

Update CCSR mart to 2025

2 participants