hccinfhir 0.1.1__py3-none-any.whl → 0.1.2__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.
@@ -330,6 +330,12 @@ cc_parent,cc_child,model_domain,model_version,model_fullname
330
330
  19,21,CMS-HCC,V28,V28115H1
331
331
  19,22,CMS-HCC,V28,V28115H1
332
332
  19,23,CMS-HCC,V28,V28115H1
333
+ 191,180,CMS-HCC,V28,V28115H1
334
+ 191,181,CMS-HCC,V28,V28115H1
335
+ 191,182,CMS-HCC,V28,V28115H1
336
+ 191,192,CMS-HCC,V28,V28115H1
337
+ 191,253,CMS-HCC,V28,V28115H1
338
+ 191,254,CMS-HCC,V28,V28115H1
333
339
  195,196,CMS-HCC,V28,V28115H1
334
340
  20,21,CMS-HCC,V28,V28115H1
335
341
  20,22,CMS-HCC,V28,V28115H1
@@ -340,6 +346,12 @@ cc_parent,cc_child,model_domain,model_version,model_fullname
340
346
  211,213,CMS-HCC,V28,V28115H1
341
347
  212,213,CMS-HCC,V28,V28115H1
342
348
  22,23,CMS-HCC,V28,V28115H1
349
+ 221,222,CMS-HCC,V28,V28115H1
350
+ 221,223,CMS-HCC,V28,V28115H1
351
+ 221,224,CMS-HCC,V28,V28115H1
352
+ 221,225,CMS-HCC,V28,V28115H1
353
+ 221,226,CMS-HCC,V28,V28115H1
354
+ 221,227,CMS-HCC,V28,V28115H1
343
355
  223,224,CMS-HCC,V28,V28115H1
344
356
  223,225,CMS-HCC,V28,V28115H1
345
357
  223,226,CMS-HCC,V28,V28115H1
hccinfhir/filter.py CHANGED
@@ -3,7 +3,7 @@ from hccinfhir.datamodels import ServiceLevelData
3
3
  from hccinfhir.utils import load_proc_filtering
4
4
 
5
5
  # use import importlib.resources to load the professional_cpt_fn file as a list of strings
6
- professional_cpt_default_fn = 'ra_eligible_cpt_hcpcs_2023.csv'
6
+ professional_cpt_default_fn = 'ra_eligible_cpt_hcpcs_2025.csv'
7
7
  professional_cpt_default = load_proc_filtering(professional_cpt_default_fn)
8
8
 
9
9
  def apply_filter(
@@ -14,28 +14,26 @@ def apply_filter(
14
14
  ) -> List[ServiceLevelData]:
15
15
  # tob (Type of Bill) Filter is based on:
16
16
  # https://www.hhs.gov/guidance/sites/default/files/hhs-guidance-documents/2012181486-wq-092916_ra_webinar_slides_5cr_092816.pdf
17
- # https://www.hhs.gov/guidance/sites/default/files/hhs-guidance-documents/final%20industry%20memo%20medicare%20filtering%20logic%2012%2022%2015_85.pdf
17
+ # https://www.hhs.gov/guidance/sites/default/files/hhs-guidance-documents/FinalEncounterDataDiagnosisFilteringLogic.pdf
18
18
 
19
- # Break down the inpatient ToB into facility and service types
20
- inpatient_facility_types = {tob[0] for tob in inpatient_tob}
21
- inpatient_service_types = {tob[1] for tob in inpatient_tob}
19
+ # NOTE: If no facility_type or service_type, then the claim is professional, in our implementation.
20
+ # NOTE: The original CMS logic is for the "record" level, not the service level.
21
+ # Thus, when preparing the service level data, put all diagnosis codes into the diagnosis field.
22
22
 
23
- # Break down the outpatient ToB into facility and service types
24
- outpatient_facility_types = {tob[0] for tob in outpatient_tob}
25
- outpatient_service_types = {tob[1] for tob in outpatient_tob}
26
-
27
- # If ServiceLevelData has a facility_type and service_type, then filter the data based on the facility_type and service_type
28
- # If not, then filter the data based on the CPT code
29
23
  filtered_data = []
30
24
  for item in data:
31
- if item.facility_type and item.service_type:
32
- if item.facility_type in inpatient_facility_types and item.service_type in inpatient_service_types:
33
- filtered_data.append(item)
34
- elif (item.facility_type in outpatient_facility_types and
35
- item.service_type in outpatient_service_types and
36
- item.procedure_code in professional_cpt):
25
+ item_tob = '?' if item.facility_type is None else item.facility_type
26
+ item_tob += '?' if item.service_type is None else item.service_type
27
+ item_tob += 'X'
28
+
29
+ if '?' in item_tob: # professional claims
30
+ if item.procedure_code in professional_cpt:
37
31
  filtered_data.append(item)
38
32
  else:
39
- if item.procedure_code in professional_cpt:
40
- filtered_data.append(item)
33
+ if item_tob in inpatient_tob:
34
+ filtered_data.append(item)
35
+ elif item_tob in outpatient_tob:
36
+ if item.procedure_code in professional_cpt:
37
+ filtered_data.append(item)
38
+
41
39
  return filtered_data
hccinfhir/hccinfhir.py CHANGED
@@ -81,8 +81,9 @@ class HCCInFHIR:
81
81
 
82
82
  # Extract and filter service level data
83
83
  sld_list = extract_sld_list(eob_list)
84
+
84
85
  if self.filter_claims:
85
- sld_list = apply_filter(sld_list, self.professional_cpt)
86
+ sld_list = apply_filter(sld_list, professional_cpt=self.professional_cpt)
86
87
 
87
88
  # Calculate RAF score
88
89
  unique_dx_codes = self._get_unique_diagnosis_codes(sld_list)
@@ -0,0 +1,252 @@
1
+ """
2
+ Sample Data Module for HCCInFHIR
3
+
4
+ This module provides easy access to sample data files for testing and demonstration purposes.
5
+ End users can call functions to retrieve sample EOB (Explanation of Benefits) and 837 claim data.
6
+ """
7
+
8
+ import importlib.resources
9
+ import json
10
+ from typing import List, Dict, Any, Union, Optional
11
+ from pathlib import Path
12
+
13
+
14
+ class SampleData:
15
+ """
16
+ A class that provides access to sample data files included with the HCCInFHIR package.
17
+
18
+ This class allows end users to easily retrieve sample EOB and 837 claim data
19
+ for testing, development, and demonstration purposes.
20
+ """
21
+
22
+ @staticmethod
23
+ def get_eob_sample(case_number: int = 1) -> Dict[str, Any]:
24
+ """
25
+ Retrieve a specific EOB sample by case number.
26
+
27
+ Args:
28
+ case_number: The case number (1, 2, or 3). Default is 1.
29
+
30
+ Returns:
31
+ A dictionary containing the EOB data
32
+
33
+ Raises:
34
+ ValueError: If case_number is not 1, 2, or 3
35
+ FileNotFoundError: If the sample file cannot be found
36
+
37
+ Example:
38
+ >>> sample_data = SampleData.get_eob_sample(1)
39
+ >>> print(sample_data['resourceType'])
40
+ 'ExplanationOfBenefit'
41
+ """
42
+ if case_number not in [1, 2, 3]:
43
+ raise ValueError("case_number must be 1, 2, or 3")
44
+
45
+ try:
46
+ with importlib.resources.open_text('hccinfhir.samples', f'sample_eob_{case_number}.json') as f:
47
+ return json.load(f)
48
+ except FileNotFoundError:
49
+ raise FileNotFoundError(f"Sample EOB case {case_number} not found")
50
+
51
+ @staticmethod
52
+ def get_eob_sample_list(limit: Optional[int] = None) -> List[Dict[str, Any]]:
53
+ """
54
+ Retrieve a list of EOB samples from the large sample file.
55
+
56
+ Args:
57
+ limit: Maximum number of samples to return. If None, returns all 200 samples.
58
+
59
+ Returns:
60
+ A list of EOB data dictionaries
61
+
62
+ Raises:
63
+ FileNotFoundError: If the sample file cannot be found
64
+
65
+ Example:
66
+ >>> # Get first 10 samples
67
+ >>> samples = SampleData.get_eob_sample_list(limit=10)
68
+ >>> print(len(samples))
69
+ 10
70
+
71
+ >>> # Get all 200 samples
72
+ >>> all_samples = SampleData.get_eob_sample_list()
73
+ >>> print(len(all_samples))
74
+ 200
75
+ """
76
+ try:
77
+ output = []
78
+ with importlib.resources.open_text('hccinfhir.samples', 'sample_eob_200.ndjson') as f:
79
+ for i, line in enumerate(f):
80
+ if limit is not None and i >= limit:
81
+ break
82
+ eob_data = json.loads(line)
83
+ output.append(eob_data)
84
+ return output
85
+ except FileNotFoundError:
86
+ raise FileNotFoundError("Sample EOB list file not found")
87
+
88
+ @staticmethod
89
+ def get_837_sample(case_number: int = 0) -> str:
90
+ """
91
+ Retrieve a specific 837 claim sample by case number.
92
+
93
+ Args:
94
+ case_number: The case number (0 through 11). Default is 0.
95
+
96
+ Returns:
97
+ A string containing the 837 X12 claim data
98
+
99
+ Raises:
100
+ ValueError: If case_number is not between 0 and 11
101
+ FileNotFoundError: If the sample file cannot be found
102
+
103
+ Example:
104
+ >>> sample_837 = SampleData.get_837_sample(0)
105
+ >>> print("ISA" in sample_837)
106
+ True
107
+ """
108
+ if case_number < 0 or case_number > 11:
109
+ raise ValueError("case_number must be between 0 and 11")
110
+
111
+ try:
112
+ with importlib.resources.open_text('hccinfhir.samples', f'sample_837_{case_number}.txt') as f:
113
+ return f.read()
114
+ except FileNotFoundError:
115
+ raise FileNotFoundError(f"Sample 837 case {case_number} not found")
116
+
117
+ @staticmethod
118
+ def get_837_sample_list(case_numbers: Optional[List[int]] = None) -> List[str]:
119
+ """
120
+ Retrieve multiple 837 claim samples.
121
+
122
+ Args:
123
+ case_numbers: List of case numbers to retrieve. If None, returns all 12 samples.
124
+
125
+ Returns:
126
+ A list of 837 X12 claim data strings
127
+
128
+ Raises:
129
+ ValueError: If any case_number is not between 0 and 11
130
+ FileNotFoundError: If any sample file cannot be found
131
+
132
+ Example:
133
+ >>> # Get specific cases
134
+ >>> samples = SampleData.get_837_sample_list([0, 1, 2])
135
+ >>> print(len(samples))
136
+ 3
137
+
138
+ >>> # Get all samples
139
+ >>> all_samples = SampleData.get_837_sample_list()
140
+ >>> print(len(all_samples))
141
+ 12
142
+ """
143
+ if case_numbers is None:
144
+ case_numbers = list(range(12)) # 0 through 11
145
+
146
+ # Validate case numbers
147
+ for case_num in case_numbers:
148
+ if case_num < 0 or case_num > 11:
149
+ raise ValueError(f"case_number {case_num} must be between 0 and 11")
150
+
151
+ output = []
152
+ for case_num in case_numbers:
153
+ try:
154
+ with importlib.resources.open_text('hccinfhir.samples', f'sample_837_{case_num}.txt') as f:
155
+ output.append(f.read())
156
+ except FileNotFoundError:
157
+ raise FileNotFoundError(f"Sample 837 case {case_num} not found")
158
+
159
+ return output
160
+
161
+ @staticmethod
162
+ def list_available_samples() -> Dict[str, Any]:
163
+ """
164
+ Get information about all available sample data.
165
+
166
+ Returns:
167
+ A dictionary containing information about available samples
168
+
169
+ Example:
170
+ >>> info = SampleData.list_available_samples()
171
+ >>> print(info['eob_samples'])
172
+ ['sample_eob_1.json', 'sample_eob_2.json', 'sample_eob_3.json', 'sample_eob_200.ndjson']
173
+ """
174
+ return {
175
+ "eob_samples": [
176
+ "sample_eob_1.json",
177
+ "sample_eob_2.json",
178
+ "sample_eob_3.json",
179
+ "sample_eob_200.ndjson"
180
+ ],
181
+ "eob_case_numbers": [1, 2, 3],
182
+ "eob_list_size": 200,
183
+ "837_samples": [f"sample_837_{i}.txt" for i in range(12)],
184
+ "837_case_numbers": list(range(12)),
185
+ "description": {
186
+ "eob": "Explanation of Benefits (FHIR resources) for testing HCC calculations",
187
+ "837": "X12 837 claim data for testing claim processing"
188
+ }
189
+ }
190
+
191
+
192
+ # Convenience functions for easy access
193
+ def get_eob_sample(case_number: int = 1) -> Dict[str, Any]:
194
+ """
195
+ Convenience function to get an EOB sample.
196
+
197
+ Args:
198
+ case_number: The case number (1, 2, or 3). Default is 1.
199
+
200
+ Returns:
201
+ A dictionary containing the EOB data
202
+ """
203
+ return SampleData.get_eob_sample(case_number)
204
+
205
+
206
+ def get_eob_sample_list(limit: Optional[int] = None) -> List[Dict[str, Any]]:
207
+ """
208
+ Convenience function to get a list of EOB samples.
209
+
210
+ Args:
211
+ limit: Maximum number of samples to return. If None, returns all 200 samples.
212
+
213
+ Returns:
214
+ A list of EOB data dictionaries
215
+ """
216
+ return SampleData.get_eob_sample_list(limit)
217
+
218
+
219
+ def get_837_sample(case_number: int = 0) -> str:
220
+ """
221
+ Convenience function to get an 837 claim sample.
222
+
223
+ Args:
224
+ case_number: The case number (0 through 11). Default is 0.
225
+
226
+ Returns:
227
+ A string containing the 837 X12 claim data
228
+ """
229
+ return SampleData.get_837_sample(case_number)
230
+
231
+
232
+ def get_837_sample_list(case_numbers: Optional[List[int]] = None) -> List[str]:
233
+ """
234
+ Convenience function to get multiple 837 claim samples.
235
+
236
+ Args:
237
+ case_numbers: List of case numbers to retrieve. If None, returns all 12 samples.
238
+
239
+ Returns:
240
+ A list of 837 X12 claim data strings
241
+ """
242
+ return SampleData.get_837_sample_list(case_numbers)
243
+
244
+
245
+ def list_available_samples() -> Dict[str, Any]:
246
+ """
247
+ Convenience function to get information about available samples.
248
+
249
+ Returns:
250
+ A dictionary containing information about available samples
251
+ """
252
+ return SampleData.list_available_samples()
hccinfhir/samples.py ADDED
@@ -0,0 +1,252 @@
1
+ """
2
+ Sample Data Module for HCCInFHIR
3
+
4
+ This module provides easy access to sample data files for testing and demonstration purposes.
5
+ End users can call functions to retrieve sample EOB (Explanation of Benefits) and 837 claim data.
6
+ """
7
+
8
+ import importlib.resources
9
+ import json
10
+ from typing import List, Dict, Any, Union, Optional
11
+ from pathlib import Path
12
+
13
+
14
+ class SampleData:
15
+ """
16
+ A class that provides access to sample data files included with the HCCInFHIR package.
17
+
18
+ This class allows end users to easily retrieve sample EOB and 837 claim data
19
+ for testing, development, and demonstration purposes.
20
+ """
21
+
22
+ @staticmethod
23
+ def get_eob_sample(case_number: int = 1) -> Dict[str, Any]:
24
+ """
25
+ Retrieve a specific EOB sample by case number.
26
+
27
+ Args:
28
+ case_number: The case number (1, 2, or 3). Default is 1.
29
+
30
+ Returns:
31
+ A dictionary containing the EOB data
32
+
33
+ Raises:
34
+ ValueError: If case_number is not 1, 2, or 3
35
+ FileNotFoundError: If the sample file cannot be found
36
+
37
+ Example:
38
+ >>> sample_data = SampleData.get_eob_sample(1)
39
+ >>> print(sample_data['resourceType'])
40
+ 'ExplanationOfBenefit'
41
+ """
42
+ if case_number not in [1, 2, 3]:
43
+ raise ValueError("case_number must be 1, 2, or 3")
44
+
45
+ try:
46
+ with importlib.resources.open_text('hccinfhir.samples', f'sample_eob_{case_number}.json') as f:
47
+ return json.load(f)
48
+ except FileNotFoundError:
49
+ raise FileNotFoundError(f"Sample EOB case {case_number} not found")
50
+
51
+ @staticmethod
52
+ def get_eob_sample_list(limit: Optional[int] = None) -> List[Dict[str, Any]]:
53
+ """
54
+ Retrieve a list of EOB samples from the large sample file.
55
+
56
+ Args:
57
+ limit: Maximum number of samples to return. If None, returns all 200 samples.
58
+
59
+ Returns:
60
+ A list of EOB data dictionaries
61
+
62
+ Raises:
63
+ FileNotFoundError: If the sample file cannot be found
64
+
65
+ Example:
66
+ >>> # Get first 10 samples
67
+ >>> samples = SampleData.get_eob_sample_list(limit=10)
68
+ >>> print(len(samples))
69
+ 10
70
+
71
+ >>> # Get all 200 samples
72
+ >>> all_samples = SampleData.get_eob_sample_list()
73
+ >>> print(len(all_samples))
74
+ 200
75
+ """
76
+ try:
77
+ output = []
78
+ with importlib.resources.open_text('hccinfhir.samples', 'sample_eob_200.ndjson') as f:
79
+ for i, line in enumerate(f):
80
+ if limit is not None and i >= limit:
81
+ break
82
+ eob_data = json.loads(line)
83
+ output.append(eob_data)
84
+ return output
85
+ except FileNotFoundError:
86
+ raise FileNotFoundError("Sample EOB list file not found")
87
+
88
+ @staticmethod
89
+ def get_837_sample(case_number: int = 0) -> str:
90
+ """
91
+ Retrieve a specific 837 claim sample by case number.
92
+
93
+ Args:
94
+ case_number: The case number (0 through 11). Default is 0.
95
+
96
+ Returns:
97
+ A string containing the 837 X12 claim data
98
+
99
+ Raises:
100
+ ValueError: If case_number is not between 0 and 11
101
+ FileNotFoundError: If the sample file cannot be found
102
+
103
+ Example:
104
+ >>> sample_837 = SampleData.get_837_sample(0)
105
+ >>> print("ISA" in sample_837)
106
+ True
107
+ """
108
+ if case_number < 0 or case_number > 11:
109
+ raise ValueError("case_number must be between 0 and 11")
110
+
111
+ try:
112
+ with importlib.resources.open_text('hccinfhir.samples', f'sample_837_{case_number}.txt') as f:
113
+ return f.read()
114
+ except FileNotFoundError:
115
+ raise FileNotFoundError(f"Sample 837 case {case_number} not found")
116
+
117
+ @staticmethod
118
+ def get_837_sample_list(case_numbers: Optional[List[int]] = None) -> List[str]:
119
+ """
120
+ Retrieve multiple 837 claim samples.
121
+
122
+ Args:
123
+ case_numbers: List of case numbers to retrieve. If None, returns all 12 samples.
124
+
125
+ Returns:
126
+ A list of 837 X12 claim data strings
127
+
128
+ Raises:
129
+ ValueError: If any case_number is not between 0 and 11
130
+ FileNotFoundError: If any sample file cannot be found
131
+
132
+ Example:
133
+ >>> # Get specific cases
134
+ >>> samples = SampleData.get_837_sample_list([0, 1, 2])
135
+ >>> print(len(samples))
136
+ 3
137
+
138
+ >>> # Get all samples
139
+ >>> all_samples = SampleData.get_837_sample_list()
140
+ >>> print(len(all_samples))
141
+ 12
142
+ """
143
+ if case_numbers is None:
144
+ case_numbers = list(range(12)) # 0 through 11
145
+
146
+ # Validate case numbers
147
+ for case_num in case_numbers:
148
+ if case_num < 0 or case_num > 11:
149
+ raise ValueError(f"case_number {case_num} must be between 0 and 11")
150
+
151
+ output = []
152
+ for case_num in case_numbers:
153
+ try:
154
+ with importlib.resources.open_text('hccinfhir.samples', f'sample_837_{case_num}.txt') as f:
155
+ output.append(f.read())
156
+ except FileNotFoundError:
157
+ raise FileNotFoundError(f"Sample 837 case {case_num} not found")
158
+
159
+ return output
160
+
161
+ @staticmethod
162
+ def list_available_samples() -> Dict[str, Any]:
163
+ """
164
+ Get information about all available sample data.
165
+
166
+ Returns:
167
+ A dictionary containing information about available samples
168
+
169
+ Example:
170
+ >>> info = SampleData.list_available_samples()
171
+ >>> print(info['eob_samples'])
172
+ ['sample_eob_1.json', 'sample_eob_2.json', 'sample_eob_3.json', 'sample_eob_200.ndjson']
173
+ """
174
+ return {
175
+ "eob_samples": [
176
+ "sample_eob_1.json",
177
+ "sample_eob_2.json",
178
+ "sample_eob_3.json",
179
+ "sample_eob_200.ndjson"
180
+ ],
181
+ "eob_case_numbers": [1, 2, 3],
182
+ "eob_list_size": 200,
183
+ "837_samples": [f"sample_837_{i}.txt" for i in range(12)],
184
+ "837_case_numbers": list(range(12)),
185
+ "description": {
186
+ "eob": "Explanation of Benefits (FHIR resources) for testing HCC calculations",
187
+ "837": "X12 837 claim data for testing claim processing"
188
+ }
189
+ }
190
+
191
+
192
+ # Convenience functions for easy access
193
+ def get_eob_sample(case_number: int = 1) -> Dict[str, Any]:
194
+ """
195
+ Convenience function to get an EOB sample.
196
+
197
+ Args:
198
+ case_number: The case number (1, 2, or 3). Default is 1.
199
+
200
+ Returns:
201
+ A dictionary containing the EOB data
202
+ """
203
+ return SampleData.get_eob_sample(case_number)
204
+
205
+
206
+ def get_eob_sample_list(limit: Optional[int] = None) -> List[Dict[str, Any]]:
207
+ """
208
+ Convenience function to get a list of EOB samples.
209
+
210
+ Args:
211
+ limit: Maximum number of samples to return. If None, returns all 200 samples.
212
+
213
+ Returns:
214
+ A list of EOB data dictionaries
215
+ """
216
+ return SampleData.get_eob_sample_list(limit)
217
+
218
+
219
+ def get_837_sample(case_number: int = 0) -> str:
220
+ """
221
+ Convenience function to get an 837 claim sample.
222
+
223
+ Args:
224
+ case_number: The case number (0 through 11). Default is 0.
225
+
226
+ Returns:
227
+ A string containing the 837 X12 claim data
228
+ """
229
+ return SampleData.get_837_sample(case_number)
230
+
231
+
232
+ def get_837_sample_list(case_numbers: Optional[List[int]] = None) -> List[str]:
233
+ """
234
+ Convenience function to get multiple 837 claim samples.
235
+
236
+ Args:
237
+ case_numbers: List of case numbers to retrieve. If None, returns all 12 samples.
238
+
239
+ Returns:
240
+ A list of 837 X12 claim data strings
241
+ """
242
+ return SampleData.get_837_sample_list(case_numbers)
243
+
244
+
245
+ def list_available_samples() -> Dict[str, Any]:
246
+ """
247
+ Convenience function to get information about available samples.
248
+
249
+ Returns:
250
+ A dictionary containing information about available samples
251
+ """
252
+ return SampleData.list_available_samples()
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: hccinfhir
3
- Version: 0.1.1
3
+ Version: 0.1.2
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
@@ -69,6 +69,34 @@ result = calculate_raf(
69
69
 
70
70
  For more details on the SLD format, see the `datamodels.py` file.
71
71
 
72
+ ## Sample Data
73
+
74
+ The package includes comprehensive sample data for testing and demonstration purposes:
75
+
76
+ ```python
77
+ from hccinfhir import (
78
+ get_eob_sample,
79
+ get_eob_sample_list,
80
+ get_837_sample,
81
+ get_837_sample_list,
82
+ list_available_samples
83
+ )
84
+
85
+ # Get individual EOB samples (cases 1, 2, or 3)
86
+ eob_data = get_eob_sample(1)
87
+
88
+ # Get multiple EOB samples (up to 200 available)
89
+ eob_list = get_eob_sample_list(limit=10)
90
+
91
+ # Get 837 claim samples (cases 0 through 11)
92
+ claim_data = get_837_sample(0)
93
+
94
+ # Get information about available samples
95
+ info = list_available_samples()
96
+ ```
97
+
98
+ For detailed usage examples, see the `examples/sample_data_usage.py` file.
99
+
72
100
  ## Core Components
73
101
 
74
102
  ### 1. Extractor Module
@@ -352,9 +380,10 @@ WHERE is_included = 'yes' AND YEAR(mimi_src_file_date) = 2025;
352
380
  Join us at [mimilabs](https://mimilabs.ai/signup). Reference data available in MIMILabs data lakehouse.
353
381
 
354
382
  ## Publishing (only for those maintainers...)
383
+ Inside the hatch
355
384
  ```bash
356
- $ python3 -m hatch build
357
- $ python3 -m hatch publish
385
+ $ hatch build
386
+ $ hatch publish
358
387
  ```
359
388
 
360
389
  ## License