Skip to content

Parse additional fields in claim segment#15

Open
lrpauley wants to merge 2 commits intokeiron-stoddart:mainfrom
CoveHealth:luke.add_claim_segment_parsing
Open

Parse additional fields in claim segment#15
lrpauley wants to merge 2 commits intokeiron-stoddart:mainfrom
CoveHealth:luke.add_claim_segment_parsing

Conversation

@lrpauley
Copy link

Add parsing for additional fields in the claim segment (based on #8):

  • patient_responsibility_amount
  • claim_filing_indicator_code
  • payer_claim_control_number
  • facility_type_code
  • claim_frequency_code
  • drg_code


datum = {
'marker': claim.claim.marker,
'payer_claim_control_number': claim.claim.payer_claim_control_number if claim.claim else None,
Copy link
Author

@lrpauley lrpauley Sep 12, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i'm not currently using the pandas integration, but if folks have opinions on which of the additional fields belong in the pandas output i'm happy to make changes. i added this field mostly to validate that the parser's output was still correct

self.payer_claim_control_number = get_element(segment, 7)
self.facility_type_code = get_element(segment, 8)
self.claim_frequency_code = get_element(segment, 9)
self.drg_code = get_element(segment, 11)
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i'd started to put together some unit tests for the claim segment parsing, but wanted to gauge interest before introducing a new approach

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant