mphapi 0.2.0__tar.gz → 0.3.0__tar.gz

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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: mphapi
3
- Version: 0.2.0
3
+ Version: 0.3.0
4
4
  Summary: A Python interface to the MyPriceHealth API
5
5
  Author: David Archibald
6
6
  Author-email: davidarchibald@myprice.health
@@ -3,7 +3,7 @@ from typing import Optional
3
3
 
4
4
  from pydantic import BaseModel, Field
5
5
 
6
- from .claim import Service, camel_case_model_config
6
+ from .claim import camel_case_model_config
7
7
  from .response import ResponseError
8
8
 
9
9
 
@@ -163,63 +163,6 @@ class ClaimEdits(BaseModel):
163
163
  line_item_denial_reasons: Optional[list[str]] = None
164
164
 
165
165
 
166
- class Pricing(BaseModel):
167
- """Pricing contains the results of a pricing request"""
168
-
169
- model_config = camel_case_model_config
170
-
171
- claim_id: Optional[str] = None
172
- """The unique identifier for the claim (copied from input)"""
173
-
174
- medicare_amount: Optional[float] = None
175
- """The amount Medicare would pay for the service"""
176
-
177
- allowed_amount: Optional[float] = None
178
- """The allowed amount based on a contract or RBP pricing"""
179
-
180
- allowed_calculation_error: Optional[str] = None
181
- """The reason the allowed amount was not calculated"""
182
-
183
- medicare_repricing_code: Optional[ClaimRepricingCode] = None
184
- """Explains the methodology used to calculate Medicare (MED or IFO)"""
185
-
186
- medicare_repricing_note: Optional[str] = None
187
- """Note explaining approach for pricing or reason for error"""
188
-
189
- allowed_repricing_code: Optional[ClaimRepricingCode] = None
190
- """Explains the methodology used to calculate allowed amount (CON, RBP, SCA, or IFO)"""
191
-
192
- allowed_repricing_note: Optional[str] = None
193
- """Note explaining approach for pricing or reason for error"""
194
-
195
- medicare_std_dev: Optional[float] = None
196
- """The standard deviation of the estimated Medicare amount (estimates service only)"""
197
-
198
- medicare_source: Optional[str] = None
199
- """Source of the Medicare amount (e.g. physician fee schedule, OPPS, etc.)"""
200
-
201
- inpatient_price_detail: Optional[InpatientPriceDetail] = None
202
- """Details about the inpatient pricing"""
203
-
204
- outpatient_price_detail: Optional[OutpatientPriceDetail] = None
205
- """Details about the outpatient pricing"""
206
-
207
- provider_detail: Optional[ProviderDetail] = None
208
- """The provider details used when pricing the claim"""
209
-
210
- edit_detail: Optional[ClaimEdits] = None
211
- """Errors which cause the claim to be denied, rejected, suspended, or returned to the provider"""
212
-
213
- pricer_result: Optional[str] = None
214
- """Pricer return details"""
215
-
216
- services: list[Service] = Field(min_length=1)
217
- """Pricing for each service line on the claim"""
218
-
219
- edit_error: Optional[ResponseError] = None
220
- """An error that occurred during some step of the pricing process"""
221
-
222
-
223
166
  class LineEdits(BaseModel):
224
167
  """LineEdits contains errors which cause the line item to be unable to be priced."""
225
168
 
@@ -289,3 +232,60 @@ class PricedService(BaseModel):
289
232
 
290
233
  edit_detail: Optional[LineEdits] = None
291
234
  """Errors which cause the line item to be unable to be priced"""
235
+
236
+
237
+ class Pricing(BaseModel):
238
+ """Pricing contains the results of a pricing request"""
239
+
240
+ model_config = camel_case_model_config
241
+
242
+ claim_id: Optional[str] = None
243
+ """The unique identifier for the claim (copied from input)"""
244
+
245
+ medicare_amount: Optional[float] = None
246
+ """The amount Medicare would pay for the service"""
247
+
248
+ allowed_amount: Optional[float] = None
249
+ """The allowed amount based on a contract or RBP pricing"""
250
+
251
+ allowed_calculation_error: Optional[str] = None
252
+ """The reason the allowed amount was not calculated"""
253
+
254
+ medicare_repricing_code: Optional[ClaimRepricingCode] = None
255
+ """Explains the methodology used to calculate Medicare (MED or IFO)"""
256
+
257
+ medicare_repricing_note: Optional[str] = None
258
+ """Note explaining approach for pricing or reason for error"""
259
+
260
+ allowed_repricing_code: Optional[ClaimRepricingCode] = None
261
+ """Explains the methodology used to calculate allowed amount (CON, RBP, SCA, or IFO)"""
262
+
263
+ allowed_repricing_note: Optional[str] = None
264
+ """Note explaining approach for pricing or reason for error"""
265
+
266
+ medicare_std_dev: Optional[float] = None
267
+ """The standard deviation of the estimated Medicare amount (estimates service only)"""
268
+
269
+ medicare_source: Optional[str] = None
270
+ """Source of the Medicare amount (e.g. physician fee schedule, OPPS, etc.)"""
271
+
272
+ inpatient_price_detail: Optional[InpatientPriceDetail] = None
273
+ """Details about the inpatient pricing"""
274
+
275
+ outpatient_price_detail: Optional[OutpatientPriceDetail] = None
276
+ """Details about the outpatient pricing"""
277
+
278
+ provider_detail: Optional[ProviderDetail] = None
279
+ """The provider details used when pricing the claim"""
280
+
281
+ edit_detail: Optional[ClaimEdits] = None
282
+ """Errors which cause the claim to be denied, rejected, suspended, or returned to the provider"""
283
+
284
+ pricer_result: Optional[str] = None
285
+ """Pricer return details"""
286
+
287
+ services: list[PricedService] = Field(min_length=1)
288
+ """Pricing for each service line on the claim"""
289
+
290
+ edit_error: Optional[ResponseError] = None
291
+ """An error that occurred during some step of the pricing process"""
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "mphapi"
3
- version = "0.2.0"
3
+ version = "0.3.0"
4
4
  description = "A Python interface to the MyPriceHealth API"
5
5
  authors = ["David Archibald <davidarchibald@myprice.health>"]
6
6
 
File without changes
File without changes
File without changes
File without changes
File without changes