Update CCSR mart to v2025.1 mappings (#967)#1361
Draft
gopihc wants to merge 1 commit into
Draft
Conversation
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.
✅ Deploy Preview for thetuvaproject canceled.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Updates the CCSR data mart from HCUP CCSR v2023.1 to v2025.1 (ICD-10 codes valid through 2025-09-30), per #967.
v2025_1and points theload_versioned_seedpost-hooks at thev2025_1files.service_category/encountersstaging,benchmarks, DQImart_review) fromv2023_1tov2025_1.dxccsr_version/prccsr_versionto'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— OKprocedure_category_maploads the full 82,121-row PRCCSR v2025.1 map — OKlong_procedure_category,procedure_summarybuild (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_systemswas carried over from v2023.1 (stable parent-category set); re-verify the per-category counts in each description againstDXCCSR-Reference-File-v2025-1.xlsxbefore release.dxccsr_version/prccsr_versionnow report2025.1); mart output schema is unchanged.Release note
enhancement
Closes #967