Skip to content

Commit 90fb7a4

Browse files
committed
Add reason column to hcc_recapture__int_all_hccs uniqueness test
The unique_combination_of_columns test was missing the reason column, causing false-positive duplicate failures when rows differed only by reason value.
1 parent 71c727c commit 90fb7a4

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

models/hcc_recapture/intermediate_models.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ models:
2222
- rendering_npi
2323
- claim_id
2424
- condition_type
25+
- reason
2526
columns:
2627
- name: person_id
2728
description: A unique identifier for a person.
@@ -33,9 +34,9 @@ models:
3334
description: The date the claim was originally recorded. Based on admission date, but if null then filled in by claim start date followed by claim end date.
3435
- name: model_version
3536
description: >
36-
The CMS Medicare risk model version. This includes models such as v22,v24, and v28 which are documented in the
37-
yearly rate announcement (e.g. https://www.cms.gov/files/document/2026-announcement.pdf) and on the CMS risk adjustment
38-
website: https://www.cms.gov/medicare/payment/medicare-advantage-rates-statistics/risk-adjustment
37+
The CMS Medicare risk model version. This includes models such as v22,v24, and v28 which are documented in the
38+
yearly rate announcement (e.g. https://www.cms.gov/files/document/2026-announcement.pdf) and on the CMS risk adjustment
39+
website: https://www.cms.gov/medicare/payment/medicare-advantage-rates-statistics/risk-adjustment
3940
- name: hcc_code
4041
description: The hierarchical condition category code.
4142
- name: hcc_description
@@ -52,13 +53,13 @@ models:
5253
For example, in 2025, the hierarchies were stored in a file called `V28115H1.txt`. The file will end in an H.
5354
- name: hcc_hierarchy_group_rank
5455
description: >
55-
The rank within the HCC hierarchy group. The lower the number, the higher the rank. When 2 HCCs within the same group are
56+
The rank within the HCC hierarchy group. The lower the number, the higher the rank. When 2 HCCs within the same group are
5657
coded within the same collection year, the HCC with the lower rank will be chosen of the two for a given beneficiary.
5758
- name: risk_model_code
5859
description: >
5960
There are different coefficients depending on a few factors such as dual eligibility, new enrollee, institutional status, etc...
6061
This column provides acronyms based off of the CMS risk adjustment SAS code. For example, these can be found in the `C2824T2N_25.csv` file for
61-
the 2025 CMS risk adjustment software.
62+
the 2025 CMS risk adjustment software.
6263
- name: eligible_bene
6364
description: A 1 is indicated for a beneficiary who is in the eligibility files. A 0 is indicated if they are not in the eligibility files.
6465
- name: rendering_npi

0 commit comments

Comments
 (0)