hccinfhir 0.0.5__py3-none-any.whl → 0.0.6__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/datamodels.py +17 -17
- {hccinfhir-0.0.5.dist-info → hccinfhir-0.0.6.dist-info}/METADATA +6 -11
- {hccinfhir-0.0.5.dist-info → hccinfhir-0.0.6.dist-info}/RECORD +5 -5
- {hccinfhir-0.0.5.dist-info → hccinfhir-0.0.6.dist-info}/WHEEL +0 -0
- {hccinfhir-0.0.5.dist-info → hccinfhir-0.0.6.dist-info}/licenses/LICENSE +0 -0
hccinfhir/datamodels.py
CHANGED
|
@@ -67,24 +67,24 @@ class Demographics(BaseModel):
|
|
|
67
67
|
"""
|
|
68
68
|
Response model for demographic categorization
|
|
69
69
|
"""
|
|
70
|
-
age: int = Field(..., description="Beneficiary age")
|
|
71
|
-
sex: Literal['M', 'F', '1', '2'] = Field(..., description="Beneficiary sex")
|
|
72
|
-
dual_elgbl_cd: Literal[None, 'NA', '99', '00', '01', '02', '03', '04', '05', '06', '07', '08', '09', '10'] = Field('NA', description="Dual status code")
|
|
73
|
-
orec: Literal[None, '0', '1', '2', '3'] = Field('0', description="Original reason for entitlement")
|
|
74
|
-
crec: Literal[None, '0', '1', '2', '3'] = Field('0', description="Current reason for entitlement")
|
|
75
|
-
new_enrollee: bool = Field(False, description="True if beneficiary is a new enrollee")
|
|
76
|
-
snp: bool = Field(False, description="True if beneficiary is in SNP")
|
|
77
|
-
version: str = Field("V2", description="Version of categorization used (V2, V4, V6)")
|
|
78
|
-
low_income: bool = Field(False, description="True if beneficiary is in low income; RxHCC only")
|
|
70
|
+
age: int = Field(..., description="[required] Beneficiary age")
|
|
71
|
+
sex: Literal['M', 'F', '1', '2'] = Field(..., description="[required] Beneficiary sex")
|
|
72
|
+
dual_elgbl_cd: Optional[Literal[None, 'NA', '99', '00', '01', '02', '03', '04', '05', '06', '07', '08', '09', '10']] = Field('NA', description="Dual status code")
|
|
73
|
+
orec: Optional[Literal[None, '0', '1', '2', '3']] = Field('0', description="Original reason for entitlement")
|
|
74
|
+
crec: Optional[Literal[None, '0', '1', '2', '3']] = Field('0', description="Current reason for entitlement")
|
|
75
|
+
new_enrollee: Optional[bool] = Field(False, description="True if beneficiary is a new enrollee")
|
|
76
|
+
snp: Optional[bool] = Field(False, description="True if beneficiary is in SNP")
|
|
77
|
+
version: Optional[str] = Field("V2", description="Version of categorization used (V2, V4, V6)")
|
|
78
|
+
low_income: Optional[bool] = Field(False, description="True if beneficiary is in low income; RxHCC only")
|
|
79
79
|
graft_months: Optional[int] = Field(None, description="Number of months since transplant; ESRD Model only")
|
|
80
|
-
category: str = Field(
|
|
81
|
-
non_aged: bool = Field(False, description="[derived] True if age <= 64")
|
|
82
|
-
orig_disabled: bool = Field(False, description="[derived] True if originally disabled (OREC='1' and not currently disabled)")
|
|
83
|
-
disabled: bool = Field(False, description="[derived] True if currently disabled (age < 65 and OREC != '0')")
|
|
84
|
-
esrd: bool = Field(False, description="[derived] True if ESRD (ESRD Model)")
|
|
85
|
-
lti: bool = Field(False, description="[derived] True if LTI (LTI Model)")
|
|
86
|
-
fbd: bool = Field(False, description="[derived] True if FBD (FBD Model)")
|
|
87
|
-
pbd: bool = Field(False, description="[derived] True if PBD (PBD Model)")
|
|
80
|
+
category: Optional[str] = Field(None, description="[derived] Age-sex category code")
|
|
81
|
+
non_aged: Optional[bool] = Field(False, description="[derived] True if age <= 64")
|
|
82
|
+
orig_disabled: Optional[bool] = Field(False, description="[derived] True if originally disabled (OREC='1' and not currently disabled)")
|
|
83
|
+
disabled: Optional[bool] = Field(False, description="[derived] True if currently disabled (age < 65 and OREC != '0')")
|
|
84
|
+
esrd: Optional[bool] = Field(False, description="[derived] True if ESRD (ESRD Model)")
|
|
85
|
+
lti: Optional[bool] = Field(False, description="[derived] True if LTI (LTI Model)")
|
|
86
|
+
fbd: Optional[bool] = Field(False, description="[derived] True if FBD (FBD Model)")
|
|
87
|
+
pbd: Optional[bool] = Field(False, description="[derived] True if PBD (PBD Model)")
|
|
88
88
|
|
|
89
89
|
|
|
90
90
|
class RAFResult(TypedDict):
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: hccinfhir
|
|
3
|
-
Version: 0.0.
|
|
3
|
+
Version: 0.0.6
|
|
4
4
|
Summary: HCC Algorithm for FHIR Resources
|
|
5
5
|
Project-URL: Homepage, https://github.com/mimilabs/hccinfhir
|
|
6
6
|
Project-URL: Issues, https://github.com/mimilabs/hccinfhir/issues
|
|
@@ -128,15 +128,10 @@ hcc_processor = HCCInFHIR(
|
|
|
128
128
|
)
|
|
129
129
|
|
|
130
130
|
# Define beneficiary demographics
|
|
131
|
-
demographics =
|
|
131
|
+
demographics = {
|
|
132
132
|
age=67,
|
|
133
|
-
sex='F'
|
|
134
|
-
|
|
135
|
-
orec='0', # Old age
|
|
136
|
-
crec='0', # Current old age
|
|
137
|
-
new_enrollee=False,
|
|
138
|
-
snp=False
|
|
139
|
-
)
|
|
133
|
+
sex='F'
|
|
134
|
+
}
|
|
140
135
|
|
|
141
136
|
# Method 1: Process FHIR EOB resources
|
|
142
137
|
raf_result = hcc_processor.run(eob_list, demographics)
|
|
@@ -309,8 +304,8 @@ Join us at [mimilabs](https://mimilabs.ai/signup). Reference data available in M
|
|
|
309
304
|
|
|
310
305
|
## Publishing (only for those maintainers...)
|
|
311
306
|
```bash
|
|
312
|
-
$ hatch build
|
|
313
|
-
$ hatch publish
|
|
307
|
+
$ python3 -m hatch build
|
|
308
|
+
$ python3 -m hatch publish
|
|
314
309
|
```
|
|
315
310
|
|
|
316
311
|
## License
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
hccinfhir/__init__.py,sha256=OCyYCv4jTOlYHZbTw2DTks3e6_YT1N2JXAOuyR03KNE,43
|
|
2
|
-
hccinfhir/datamodels.py,sha256=
|
|
2
|
+
hccinfhir/datamodels.py,sha256=ZohKX_LqtcEkGW3-tvtj9AWMepMooNtWpchSv9bOXuQ,4845
|
|
3
3
|
hccinfhir/extractor.py,sha256=-jHVCIJqFAqvrI9GxkkXZVDQjKDa-7vF7v3PGMGAMnA,1801
|
|
4
4
|
hccinfhir/extractor_837.py,sha256=vkTBCd0WBaJoTrUd-Z-zCIaoLk7KV2n4AGqIORhONIk,7147
|
|
5
5
|
hccinfhir/extractor_fhir.py,sha256=Rg_L0Vg5tz_L2VJ_jvZwWz6RMlPAkHwj4LiK-OWQvrQ,8458
|
|
@@ -36,7 +36,7 @@ hccinfhir/samples/sample_eob_1.json,sha256=_NGSVR2ysFpx-DcTvyga6dFCzhQ8Vi9fNzQEM
|
|
|
36
36
|
hccinfhir/samples/sample_eob_2.json,sha256=FcnJcx0ApOczxjJ_uxVLzCep9THfNf4xs9Yf7hxk8e4,1769
|
|
37
37
|
hccinfhir/samples/sample_eob_200.ndjson,sha256=CxpjeQ1DCMUzZILaM68UEhfxO0p45YGhDDoCZeq8PxU,1917986
|
|
38
38
|
hccinfhir/samples/sample_eob_3.json,sha256=4BW4wOMBEEU9RDfJR15rBEvk0KNHyuMEh3e055y87Hc,2306
|
|
39
|
-
hccinfhir-0.0.
|
|
40
|
-
hccinfhir-0.0.
|
|
41
|
-
hccinfhir-0.0.
|
|
42
|
-
hccinfhir-0.0.
|
|
39
|
+
hccinfhir-0.0.6.dist-info/METADATA,sha256=ZrsvQOjZWL2E5LMv4-H6VIBr0OiTTFL7SVsmq8ivfdk,11567
|
|
40
|
+
hccinfhir-0.0.6.dist-info/WHEEL,sha256=C2FUgwZgiLbznR-k0b_5k3Ai_1aASOXDss3lzCUsUug,87
|
|
41
|
+
hccinfhir-0.0.6.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
|
42
|
+
hccinfhir-0.0.6.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|