hccinfhir 0.2.6__py3-none-any.whl → 0.2.7__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- hccinfhir/model_calculate.py +2 -0
- hccinfhir/model_coefficients.py +5 -1
- hccinfhir/model_interactions.py +1 -1
- {hccinfhir-0.2.6.dist-info → hccinfhir-0.2.7.dist-info}/METADATA +1 -1
- {hccinfhir-0.2.6.dist-info → hccinfhir-0.2.7.dist-info}/RECORD +7 -7
- {hccinfhir-0.2.6.dist-info → hccinfhir-0.2.7.dist-info}/WHEEL +0 -0
- {hccinfhir-0.2.6.dist-info → hccinfhir-0.2.7.dist-info}/licenses/LICENSE +0 -0
hccinfhir/model_calculate.py
CHANGED
|
@@ -115,6 +115,8 @@ def calculate_raf(diagnosis_codes: List[str],
|
|
|
115
115
|
demographic_interactions[key] = value
|
|
116
116
|
elif key.startswith('OriginallyDisabled_'):
|
|
117
117
|
demographic_interactions[key] = value
|
|
118
|
+
elif key == 'LTIMCAID':
|
|
119
|
+
demographic_interactions[key] = value
|
|
118
120
|
|
|
119
121
|
coefficients_demographics = apply_coefficients(demographics,
|
|
120
122
|
set(),
|
hccinfhir/model_coefficients.py
CHANGED
|
@@ -101,7 +101,11 @@ def apply_coefficients(demographics: Demographics,
|
|
|
101
101
|
|
|
102
102
|
# Apply the coefficients
|
|
103
103
|
for hcc in hcc_set:
|
|
104
|
-
|
|
104
|
+
# For RxHCC models, use RXHCC prefix instead of HCC
|
|
105
|
+
if 'RxHCC' in model_name:
|
|
106
|
+
key = (f"{prefix}RXHCC{hcc}".lower(), model_name)
|
|
107
|
+
else:
|
|
108
|
+
key = (f"{prefix}HCC{hcc}".lower(), model_name)
|
|
105
109
|
|
|
106
110
|
if key in coefficients:
|
|
107
111
|
value = coefficients[key]
|
hccinfhir/model_interactions.py
CHANGED
|
@@ -309,7 +309,7 @@ def create_disease_interactions(model_name: ModelName,
|
|
|
309
309
|
'HCC85_gRenal_V24': diagnostic_cats['CHF'] * diagnostic_cats['RENAL_V24'],
|
|
310
310
|
'gCopdCF_CARD_RESP_FAIL': diagnostic_cats['gCopdCF'] * diagnostic_cats['CARD_RESP_FAIL'],
|
|
311
311
|
'HCC85_HCC96': int('85' in hcc_set) * int('96' in hcc_set),
|
|
312
|
-
'
|
|
312
|
+
'gSubstanceUseDisorder_gPsych': diagnostic_cats['gSubstanceUseDisorder_V24'] * diagnostic_cats['gPsychiatric_V24'],
|
|
313
313
|
'SEPSIS_PRESSURE_ULCER': diagnostic_cats['SEPSIS'] * diagnostic_cats['PRESSURE_ULCER'],
|
|
314
314
|
'SEPSIS_ARTIF_OPENINGS': diagnostic_cats['SEPSIS'] * int('188' in hcc_set),
|
|
315
315
|
'ART_OPENINGS_PRESS_ULCER': int('188' in hcc_set) * diagnostic_cats['PRESSURE_ULCER'],
|
|
@@ -8,12 +8,12 @@ hccinfhir/extractor_837.py,sha256=fGsvBTWIj9dsHLGGR67AdlYDSsFi5qnSVlTgwkL1f-E,15
|
|
|
8
8
|
hccinfhir/extractor_fhir.py,sha256=wUN3vTm1oTZ-KvfcDebnpQMxAC-7YlRKv12Wrv3p85A,8490
|
|
9
9
|
hccinfhir/filter.py,sha256=j_yD2g6RBXVUV9trKkWzsQ35x3fRvfKUPvEXKUefI64,2007
|
|
10
10
|
hccinfhir/hccinfhir.py,sha256=NydnH3WBvuyskn76hY70LpUS6XuIEoax_kip1mgfpHw,11225
|
|
11
|
-
hccinfhir/model_calculate.py,sha256=
|
|
12
|
-
hccinfhir/model_coefficients.py,sha256=
|
|
11
|
+
hccinfhir/model_calculate.py,sha256=32JOFItbEQ5OAGPrvfLnQSgW2aBiZ-JCS7ixEB6TAZY,8429
|
|
12
|
+
hccinfhir/model_coefficients.py,sha256=PGZDAFRyz7asT0epl4xTatNCsuzYaISdbXEHU2wQ27U,5504
|
|
13
13
|
hccinfhir/model_demographics.py,sha256=nImKtJCq1HkR9w2GU8aikybJFgow71CPufBRV8Jn7fM,8932
|
|
14
14
|
hccinfhir/model_dx_to_cc.py,sha256=Yjc6xKI-jMXsbOzS_chc4NI15Bwagb7BwZZ8cKQaTbk,1540
|
|
15
15
|
hccinfhir/model_hierarchies.py,sha256=cboUnSHZZfOxA8QZKV4QIE-32duElssML32OqYT-65g,1542
|
|
16
|
-
hccinfhir/model_interactions.py,sha256=
|
|
16
|
+
hccinfhir/model_interactions.py,sha256=prguJoOWBIO97UEpD0njXPvYM6-hoNjBIFYxDOxkLt0,25816
|
|
17
17
|
hccinfhir/samples.py,sha256=2VSWS81cv9EnaHqK7sd6CjwG6FUI9E--5wHgD000REI,9952
|
|
18
18
|
hccinfhir/utils.py,sha256=WQ2atW0CrdX7sAz_YRLeY4JD-CuH0o-WRusQ_xVVfgY,12152
|
|
19
19
|
hccinfhir/data/__init__.py,sha256=SGiSkpGrnxbvtEFMMlk82NFHOE50hFXcgKwKUSuVZUg,45
|
|
@@ -55,7 +55,7 @@ hccinfhir/sample_files/sample_eob_1.json,sha256=_NGSVR2ysFpx-DcTvyga6dFCzhQ8Vi9f
|
|
|
55
55
|
hccinfhir/sample_files/sample_eob_2.json,sha256=FcnJcx0ApOczxjJ_uxVLzCep9THfNf4xs9Yf7hxk8e4,1769
|
|
56
56
|
hccinfhir/sample_files/sample_eob_200.ndjson,sha256=CxpjeQ1DCMUzZILaM68UEhfxO0p45YGhDDoCZeq8PxU,1917986
|
|
57
57
|
hccinfhir/sample_files/sample_eob_3.json,sha256=4BW4wOMBEEU9RDfJR15rBEvk0KNHyuMEh3e055y87Hc,2306
|
|
58
|
-
hccinfhir-0.2.
|
|
59
|
-
hccinfhir-0.2.
|
|
60
|
-
hccinfhir-0.2.
|
|
61
|
-
hccinfhir-0.2.
|
|
58
|
+
hccinfhir-0.2.7.dist-info/METADATA,sha256=d52fnw3hxrWH7BLxEtkB-aefn4K6bo0g6JjLivHTBFM,37381
|
|
59
|
+
hccinfhir-0.2.7.dist-info/WHEEL,sha256=C2FUgwZgiLbznR-k0b_5k3Ai_1aASOXDss3lzCUsUug,87
|
|
60
|
+
hccinfhir-0.2.7.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
|
61
|
+
hccinfhir-0.2.7.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|