hccinfhir 0.2.2__py3-none-any.whl → 0.2.3__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 +121 -6
- hccinfhir/extractor_834.py +552 -359
- hccinfhir/sample_files/sample_834_02.txt +1 -0
- hccinfhir/sample_files/sample_834_03.txt +1 -0
- hccinfhir/sample_files/sample_834_04.txt +1 -0
- hccinfhir/sample_files/sample_834_05.txt +1 -0
- hccinfhir/sample_files/sample_834_06.txt +1 -0
- {hccinfhir-0.2.2.dist-info → hccinfhir-0.2.3.dist-info}/METADATA +5 -5
- {hccinfhir-0.2.2.dist-info → hccinfhir-0.2.3.dist-info}/RECORD +11 -6
- {hccinfhir-0.2.2.dist-info → hccinfhir-0.2.3.dist-info}/WHEEL +0 -0
- {hccinfhir-0.2.2.dist-info → hccinfhir-0.2.3.dist-info}/licenses/LICENSE +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
ISA*00* *00* *ZZ*CADHCS_5010_834*30*999999991 *250124*1927*^*00501*000000001*0*P*:~GS*BE*CADHCS_5010_834*999999991*20250124*192730*10000001*X*005010X220A1~ST*834*0001*005010X220A1~BGN*00*DHCS834-DA-20250124-Sample PACE-001*20250124*19273000****2~QTY*TO*1~N1*P5*California Department of Health Care Services.........*FI*999999990~N1*IN*Sample PACE Inc.*FI*999999991~INS*Y*18*001*AI*A*E**AC~REF*0F*randomParticipantID~REF*1L*randomCIN1~REF*17*;;202501;~REF*23*4;20200101;;~REF*3H*19;10;randomCaseNum1;;~REF*6O*;W;Y;;60;~REF*ZZ*01051;41609;;;;30451;41651;;;~NM1*IL*1*randomLastName*randomFirstName*A~PER*IP**TE*randomPhone~N3*randomStreetAddress1~N4*LOS ANGELES CA*CA*90019**CY*19~DMG*D8*randomDoB*F**7~LUI*LD*SPA**7~HD*021**LTC*010;51~DTP*348*D8*20250101~DTP*349*D8*20250131~REF*17*N;;;;;;;;;;;;;1~REF*9V*9;9;0~REF*CE*10;401;;;;;;~REF*RB*10~REF*ZX*19~REF*ZZ*;;10~SE*29*0001~GE*1*10000001~IEA*1*000000001~
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
ISA*00* *00* *ZZ*CADHCS_5010_834*30*999999992 *250812*1936*^*00501*000000002*0*P*:~GS*BE*CADHCS_5010_834*999999992*20250812*193641*10000002*X*005010X220A1~ST*834*0001*005010X220A1~BGN*00*DHCS834-DA-20250812-Sample South LA PACE-957-001*20250812*19364100****2~QTY*TO*1~N1*P5*California Department of Health Care Services.........*FI*999999990~N1*IN*Sample South LA PACE Inc.*FI*999999992~INS*Y*18*001*AI*A*C**AC~REF*0F*randomMemberId~REF*1L*randomCIN2~REF*17*;;202508;~REF*23*2;20200201;;;~REF*3H*19;60;randomCaseNum2;;~REF*6O*;W;Y;;08;~REF*DX*H9999;006;20250201;;;~REF*F6*randomMbi~REF*QQ*;;202001;202001~REF*ZZ*95701;;;;;35201;;;;~NM1*IL*1*randomLastName*randomFirstName~PER*IP**TE*randomPhone~N3*randomAddress1~N4*LONG BEACH CA*CA*90813**CY*19~DMG*D8*randomDoB*F**7~LUI*LD*SPA**7~HD*021**LTC*957;01~DTP*348*D8*20250801~DTP*349*D8*20250831~REF*17*F;;;;;;;;;;;;;1~REF*9V*2;2;2~REF*CE*60;401;80;401;;;;~REF*RB*60~REF*ZX*19~REF*ZZ*;;10~SE*32*0001~GE*1*10000002~IEA*1*000000002~
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
ISA*00* *00* *ZZ*CADHCS_5010_834*30*999999992 *251022*2000*^*00501*000000003*0*P*:~GS*BE*CADHCS_5010_834*999999992*20251022*200019*10000003*X*005010X220A1~ST*834*0001*005010X220A1~BGN*00*DHCS834-DA-20251022-Sample South LA PACE-957-001*20251022*20001900****2~QTY*TO*1~N1*P5*California Department of Health Care Services.........*FI*999999990~N1*IN*Sample South LA PACE Inc.*FI*999999992~INS*Y*18*001*AI*A*C**AC~REF*0F*randomMemberId~REF*1L*randomCIN3~REF*17*202605;;202510;~REF*23*2;20200301;;;~REF*3H*19;16;randomCode;;08~REF*6O*;A;Y;;29;~REF*DX*H9999;001;20251101;;;~REF*F6*randomMbi~REF*QQ*;;202002;202002~REF*ZZ*95701;;;;;20101;;;;~NM1*IL*1*randomLastName*randomFirstName~PER*IP**TE*randomPhone~N3*randomAddress1~N4*LOS ANGELES CA*CA*90044**CY*19~DMG*D8*randomDoB*F**:RET:2054-5~HD*021**LTC*957;01~DTP*348*D8*20251001~DTP*349*D8*20251031~REF*17*F;;;;1~REF*9V*3;2;2~REF*CE*16;401;80;401;;;;~REF*RB*16~REF*ZX*19~REF*ZZ*;;10~SE*31*0001~GE*1*10000003~IEA*1*000000003~
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
ISA*00* *00* *ZZ*CADHCS_5010_834*30*999999992 *251023*1959*^*00501*000000004*0*P*:~GS*BE*CADHCS_5010_834*999999992*20251023*195928*10000004*X*005010X220A1~ST*834*0001*005010X220A1~BGN*00*DHCS834-DA-20251023-Sample South LA PACE-957-001*20251023*19592800****2~QTY*TO*1~N1*P5*California Department of Health Care Services.........*FI*999999990~N1*IN*Sample South LA PACE Inc.*FI*999999992~INS*Y*18*001*AI*A*C**AC~REF*0F*randomMemberId~REF*1L*randomCIN4~REF*17*202601;;202510;~REF*23*6;20200401;20200101;;~REF*3H*19;17;randomId1;;07~REF*6O*;W;Y;;19;~REF*DX*H9999;006;20230401;;;~REF*F6*randomId2~REF*QQ*;;202003;202003~REF*ZZ*957P4;;;;;;;;;~NM1*IL*1*randomLastName*randomFirstName~PER*IP**TE*randomPhone~N3*randomAddress1~N4*LONG BEACH CA*CA*90810**CY*19~DMG*D8*randomDoB*F**:RET:2135-2~HD*001**LTC*957;P4~DTP*348*D8*20251001~DTP*349*D8*20250930~AMT*R*1237~REF*17*F;;;;1~REF*9V*3;1;0~REF*CE*17;501;2K;691;;;;~REF*ZX*19~REF*ZZ*;;10~SE*31*0001~GE*1*10000004~IEA*1*000000004~
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
ISA*00* *00* *ZZ*CADHCS_5010_834*30*999999991 *250206*2008*^*00501*000000005*0*P*:~GS*BE*CADHCS_5010_834*999999991*20250206*200823*10000005*X*005010X220A1~ST*834*0001*005010X220A1~BGN*00*DHCS834-DA-20250206-Sample PACE-001*20250206*20082300****2~QTY*TO*2~N1*P5*California Department of Health Care Services.........*FI*999999990~N1*IN*Sample PACE Inc.*FI*999999991~INS*Y*18*001*AI*A*E**AC~REF*0F*randomMemberId~REF*1L*randomCIN5~REF*17*;;202502;~REF*23*3;20200501;;~REF*3H*19;60;randomCaseNum1;;~REF*6O*;A;Y;D;67;~REF*Q4*randomProviderId;~REF*ZZ*01059;;;;;010S1;;;;~NM1*IL*1*randomLName1*randomFName1~PER*IP**TE*randomPhone1~N3*randomFullAddress1~N4*LOS ANGELES CA*CA*90037**CY*19~DMG*D8*randomDoB1*F**:RET:2054-5~NM1*31*1~N3*randomAddress~N4*LOS ANGELES CA*CA*90037~HD*001**LTC*010;59~DTP*348*D8*20250201~DTP*349*D8*20250131~REF*17*N;;;;;;;;;;;;;1~REF*CE*60;001;80;891;;;;~REF*RB*60~REF*ZX*19~REF*ZZ*;;10~HD*021**LTC*010;S1~DTP*348*D8*20250101~DTP*349*D8*20250131~REF*17*N;;;;;;;;;;;;;1~REF*CE*60;401;80;891;;;;~REF*RB*60~REF*ZX*19~REF*ZZ*;;11~INS*Y*18*001*AI*A*C**AC~REF*0F*randomMemberId2~REF*1L*randomCIN6~REF*17*;;202502;~REF*23*9;20200601;;~REF*3H*19;10;randomCaseNum2;;~REF*6O*;A;Y;;25;~REF*DX*;;;S5617;D635;20240901~REF*F6*randomId1~REF*QQ*;;202004;202004~REF*ZZ*01001;;;;;30401;;;;~NM1*IL*1*randomLName2*randomFName2*M~PER*IP**TE*randomPhone2~N3*randomAddress2~N4*LOS ANGELES CA*CA*90029**CY*19~DMG*D8*randomDoB2*M**:RET:2135-2~HD*021**LTC*010;01~DTP*348*D8*20250201~DTP*349*D8*20250228~REF*17*D;;;;;;;;;;;;;1~REF*9V*2;2;2~REF*CE*10;401;9G;999;80;401;;~REF*RB*10~REF*ZX*19~REF*ZZ*;;10~SE*64*0001~GE*1*10000005~IEA*1*000000005~
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: hccinfhir
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.3
|
|
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
|
|
@@ -80,7 +80,7 @@ print(f"HCCs: {result.hcc_list}")
|
|
|
80
80
|
- **Custom Data Files**: Full support for custom coefficients, mappings, and hierarchies
|
|
81
81
|
- **Flexible File Resolution**: Absolute paths, relative paths, or bundled data files
|
|
82
82
|
- **Type-Safe**: Built on Pydantic with full type hints
|
|
83
|
-
- **Well-Tested**:
|
|
83
|
+
- **Well-Tested**: 189 comprehensive tests covering all features
|
|
84
84
|
|
|
85
85
|
## 📊 Data Sources & Use Cases
|
|
86
86
|
|
|
@@ -1037,8 +1037,8 @@ result = processor.run([eob], demographics) # Note: [eob] not eob
|
|
|
1037
1037
|
claim = get_837_sample(0) # Cases 0-12 (returns string)
|
|
1038
1038
|
claims = get_837_sample_list([0, 1, 2]) # Returns list
|
|
1039
1039
|
|
|
1040
|
-
# X12 834 enrollment samples
|
|
1041
|
-
enrollment_834 = get_834_sample(1) #
|
|
1040
|
+
# X12 834 enrollment samples (6 CA DHCS scenarios)
|
|
1041
|
+
enrollment_834 = get_834_sample(1) # Cases 1-6 available (returns string)
|
|
1042
1042
|
|
|
1043
1043
|
# List all available samples
|
|
1044
1044
|
info = list_available_samples()
|
|
@@ -1056,7 +1056,7 @@ hatch shell
|
|
|
1056
1056
|
# Install in development mode
|
|
1057
1057
|
pip install -e .
|
|
1058
1058
|
|
|
1059
|
-
# Run all tests (
|
|
1059
|
+
# Run all tests (189 tests)
|
|
1060
1060
|
pytest tests/
|
|
1061
1061
|
|
|
1062
1062
|
# Run specific test file
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
hccinfhir/__init__.py,sha256=3aFYtjTklZJg3wIlnMJNgfDBaDCfKXVlYsacdsZ9L4I,1113
|
|
2
2
|
hccinfhir/constants.py,sha256=C4Vyjtzgyd4Jm2I2X6cTYQZLe-jAMC8boUcy-7OXQDQ,8473
|
|
3
|
-
hccinfhir/datamodels.py,sha256=
|
|
3
|
+
hccinfhir/datamodels.py,sha256=xGh9E5RVi4vONhtIZw2XiaFwVLc5UK027trY31YMUWc,15457
|
|
4
4
|
hccinfhir/defaults.py,sha256=aKdXPhf9bYUzpGvXM1GIXZaKxqkKInt3v9meLB9fWog,1394
|
|
5
5
|
hccinfhir/extractor.py,sha256=xL9c2VT-e2I7_c8N8j4Og42UEgVuCzyn9WFp3ntM5Ro,1822
|
|
6
|
-
hccinfhir/extractor_834.py,sha256=
|
|
6
|
+
hccinfhir/extractor_834.py,sha256=zH2nOUJvIJvbDLf6HJWmwCw2yAjT-6RCJyuH4kmIKIQ,27862
|
|
7
7
|
hccinfhir/extractor_837.py,sha256=fGsvBTWIj9dsHLGGR67AdlYDSsFi5qnSVlTgwkL1f-E,15334
|
|
8
8
|
hccinfhir/extractor_fhir.py,sha256=wUN3vTm1oTZ-KvfcDebnpQMxAC-7YlRKv12Wrv3p85A,8490
|
|
9
9
|
hccinfhir/filter.py,sha256=j_yD2g6RBXVUV9trKkWzsQ35x3fRvfKUPvEXKUefI64,2007
|
|
@@ -32,6 +32,11 @@ hccinfhir/data/ra_hierarchies_2026.csv,sha256=A6ZQZb0rpRWrySBB_KA5S4PGtMxWuzB2gu
|
|
|
32
32
|
hccinfhir/data/ra_labels_2026.csv,sha256=YstfP7s-3ZwjP4I_GYPPj3_yn-PQK3Q0Q_MVYZhsfjY,50248
|
|
33
33
|
hccinfhir/sample_files/__init__.py,sha256=SGiSkpGrnxbvtEFMMlk82NFHOE50hFXcgKwKUSuVZUg,45
|
|
34
34
|
hccinfhir/sample_files/sample_834_01.txt,sha256=J2HMXfY6fAFpV36rvLQ3QymRRS2TPqf3TQY6CNS7TrE,1627
|
|
35
|
+
hccinfhir/sample_files/sample_834_02.txt,sha256=vSvjM69kKfOW9e-8dvlO9zDcRPpOD7LmekLu68z4aB4,926
|
|
36
|
+
hccinfhir/sample_files/sample_834_03.txt,sha256=pD4UTUFCEHxKu3bz3ZZdWo5b8Y1UWTXAo7PmFjWsukU,999
|
|
37
|
+
hccinfhir/sample_files/sample_834_04.txt,sha256=1Cv8kN7At1ce60kXBGlMr5DhLMsuw2clnVDi02mvBJA,991
|
|
38
|
+
hccinfhir/sample_files/sample_834_05.txt,sha256=hjQ5SEgj0cCNZyWas1-sVL9gm8m3rC4R65JHIcbAPRk,993
|
|
39
|
+
hccinfhir/sample_files/sample_834_06.txt,sha256=oC3e4UMmmhVKXI8eB7SlLyJ8kZX4NemlzI_WGznO-48,1659
|
|
35
40
|
hccinfhir/sample_files/sample_837_0.txt,sha256=eggrD259uHa05z2dfxWBpUDseSDp_AQcLyN_adpHyTw,5295
|
|
36
41
|
hccinfhir/sample_files/sample_837_1.txt,sha256=E155MdemSDYoXokuTXUZ6Br_RGGedYv5t5dh-eMRmuk,1322
|
|
37
42
|
hccinfhir/sample_files/sample_837_10.txt,sha256=zSJXI78vHAksA7FFQEVLvepefdpMM2_AexLyoDimV3Q,1129
|
|
@@ -49,7 +54,7 @@ hccinfhir/sample_files/sample_eob_1.json,sha256=_NGSVR2ysFpx-DcTvyga6dFCzhQ8Vi9f
|
|
|
49
54
|
hccinfhir/sample_files/sample_eob_2.json,sha256=FcnJcx0ApOczxjJ_uxVLzCep9THfNf4xs9Yf7hxk8e4,1769
|
|
50
55
|
hccinfhir/sample_files/sample_eob_200.ndjson,sha256=CxpjeQ1DCMUzZILaM68UEhfxO0p45YGhDDoCZeq8PxU,1917986
|
|
51
56
|
hccinfhir/sample_files/sample_eob_3.json,sha256=4BW4wOMBEEU9RDfJR15rBEvk0KNHyuMEh3e055y87Hc,2306
|
|
52
|
-
hccinfhir-0.2.
|
|
53
|
-
hccinfhir-0.2.
|
|
54
|
-
hccinfhir-0.2.
|
|
55
|
-
hccinfhir-0.2.
|
|
57
|
+
hccinfhir-0.2.3.dist-info/METADATA,sha256=YHHcOAObdo2gWJtPmP6y05-EXeXHpuE40W1pdUXlydw,37132
|
|
58
|
+
hccinfhir-0.2.3.dist-info/WHEEL,sha256=C2FUgwZgiLbznR-k0b_5k3Ai_1aASOXDss3lzCUsUug,87
|
|
59
|
+
hccinfhir-0.2.3.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
|
60
|
+
hccinfhir-0.2.3.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|