hccinfhir 0.1.6__py3-none-any.whl → 0.1.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.
@@ -149,7 +149,6 @@ def parse_837_claim_to_sld(segments: List[List[str]], claim_type: str) -> List[S
149
149
  """
150
150
  slds = []
151
151
  current_data = ClaimData(claim_type=claim_type)
152
- in_claim_loop = False
153
152
  in_rendering_provider_loop = False
154
153
  claim_control_number = None
155
154
 
@@ -166,7 +165,6 @@ def parse_837_claim_to_sld(segments: List[List[str]], claim_type: str) -> List[S
166
165
  elif seg_id == 'NM1' and len(segment) > 1:
167
166
  if segment[1] == 'IL': # Subscriber/Patient
168
167
  current_data.patient_id = get_segment_value(segment, 9)
169
- in_claim_loop = False
170
168
  in_rendering_provider_loop = False
171
169
  elif segment[1] == '82' and len(segment) > 8 and segment[8] == 'XX': # Rendering Provider
172
170
  current_data.performing_provider_npi = get_segment_value(segment, 9)
@@ -180,7 +178,6 @@ def parse_837_claim_to_sld(segments: List[List[str]], claim_type: str) -> List[S
180
178
 
181
179
  # Process Claim Information
182
180
  elif seg_id == 'CLM':
183
- in_claim_loop = True
184
181
  in_rendering_provider_loop = False
185
182
  current_data.claim_id = segment[1] if len(segment) > 1 else None
186
183
 
@@ -190,7 +187,7 @@ def parse_837_claim_to_sld(segments: List[List[str]], claim_type: str) -> List[S
190
187
  current_data.service_type = segment[5][1] if len(segment[5]) > 1 else None
191
188
 
192
189
  # Process Diagnosis Codes
193
- elif seg_id == 'HI' and in_claim_loop:
190
+ elif seg_id == 'HI':
194
191
  # In 837I, there can be multiple HI segments in the claim
195
192
  # Also, in 837I, diagnosis position does not matter
196
193
  # We will use continuous numbering for diagnosis codes
@@ -220,7 +217,7 @@ def parse_837_claim_to_sld(segments: List[List[str]], claim_type: str) -> List[S
220
217
  # SV205 (Required) - Unit Count: Format 9999999.999 (whole numbers only - fractional quantities not recognized)
221
218
  # NOTE: Diagnosis Code Pointer is not supported for SV2
222
219
  #
223
- elif seg_id in ['SV1', 'SV2'] and in_claim_loop:
220
+ elif seg_id in ['SV1', 'SV2']:
224
221
 
225
222
  linked_diagnoses = []
226
223
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: hccinfhir
3
- Version: 0.1.6
3
+ Version: 0.1.7
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
@@ -1,7 +1,7 @@
1
1
  hccinfhir/__init__.py,sha256=G_5m6jm3_BK5NdcZWoi0NEKJEsE_LjAU1RaLaL9xNPU,1043
2
2
  hccinfhir/datamodels.py,sha256=EHkuWMhmHBt8GfVP3lrxfSogu-qZQzeforFzp0Bn_bM,7714
3
3
  hccinfhir/extractor.py,sha256=xL9c2VT-e2I7_c8N8j4Og42UEgVuCzyn9WFp3ntM5Ro,1822
4
- hccinfhir/extractor_837.py,sha256=Jhxb5glRA8Yi8lbRwdltggXCvr_84nlsZEMRIgxyy4A,13169
4
+ hccinfhir/extractor_837.py,sha256=Irp0ROWgZv6jru9w5sdkoTSYHDTh0v_I_xYRhWdHOjw,13037
5
5
  hccinfhir/extractor_fhir.py,sha256=wUN3vTm1oTZ-KvfcDebnpQMxAC-7YlRKv12Wrv3p85A,8490
6
6
  hccinfhir/filter.py,sha256=j_yD2g6RBXVUV9trKkWzsQ35x3fRvfKUPvEXKUefI64,2007
7
7
  hccinfhir/hccinfhir.py,sha256=tgNWGYvsQWOlmcnP-3yH3KfXgZtQ3IdxYfGP9SNSJb0,9879
@@ -44,7 +44,7 @@ hccinfhir/sample_files/sample_eob_1.json,sha256=_NGSVR2ysFpx-DcTvyga6dFCzhQ8Vi9f
44
44
  hccinfhir/sample_files/sample_eob_2.json,sha256=FcnJcx0ApOczxjJ_uxVLzCep9THfNf4xs9Yf7hxk8e4,1769
45
45
  hccinfhir/sample_files/sample_eob_200.ndjson,sha256=CxpjeQ1DCMUzZILaM68UEhfxO0p45YGhDDoCZeq8PxU,1917986
46
46
  hccinfhir/sample_files/sample_eob_3.json,sha256=4BW4wOMBEEU9RDfJR15rBEvk0KNHyuMEh3e055y87Hc,2306
47
- hccinfhir-0.1.6.dist-info/METADATA,sha256=biMD3n0KhW7JZ7phDj40yJYxcAryIWdA6S08ffvCMak,24819
48
- hccinfhir-0.1.6.dist-info/WHEEL,sha256=C2FUgwZgiLbznR-k0b_5k3Ai_1aASOXDss3lzCUsUug,87
49
- hccinfhir-0.1.6.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
50
- hccinfhir-0.1.6.dist-info/RECORD,,
47
+ hccinfhir-0.1.7.dist-info/METADATA,sha256=o2Uur5C9layHtKuWQeEQ1THAwMpCLmEkmnVTvrOUWDE,24819
48
+ hccinfhir-0.1.7.dist-info/WHEEL,sha256=C2FUgwZgiLbznR-k0b_5k3Ai_1aASOXDss3lzCUsUug,87
49
+ hccinfhir-0.1.7.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
50
+ hccinfhir-0.1.7.dist-info/RECORD,,