Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Claims data model updates #4

Merged
merged 22 commits into from
Nov 14, 2022
Merged

Claims data model updates #4

merged 22 commits into from
Nov 14, 2022

Conversation

sarah-tuva
Copy link
Member

Describe your changes

  • Updated the connector to output the latest version of the Tuva Claims Data Model
  • Added logic to convert eligibility data on the member month grain to enrollment date spans using row number, lag, and Medicare/Dual Status to account for continuous enrollment and gaps in coverage.

Testing

Tested in Snowflake with Medicare LDS SAF data. Output can be queried in the following tables.

select * from medicare_lds_saf.tuva_claims_input.eligibility
order by patient_id, enrollment_start_date, enrollment_end_date
limit 50;

select * from medicare_lds_saf.tuva_claims_input.medical_claim limit 50;

Checklist before requesting a review

  • I have performed a self-review of my code
  • My code follows style guidelines
  • I have commented my code as necessary
  • I have made corresponding changes to documentation
  • My code runs without errors
  • I have implemented primary key tests
  • Every model has a corresponding yml file
  • I have generated the DAG locally with dbt and updated the files in the docs/ path

Gif of how this PR makes you feel

This is how the Medicare SAF schema makes me feel:

Copy link
Member

@thutuva thutuva left a comment

Choose a reason for hiding this comment

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

Morning @sarah-tuva - code looks good overall. I just added the comment blocks.

since this is not part of our standard sql file format.
This reverts commit 0eb3a0c.
since this is not part of our standard sql format.
This reverts commit 7c44be9.
since this is not part of our standard sql format.
This reverts commit a44aabc.
since this is not part of our standard sql format.
This reverts commit 3a348cd.
since this is not part of our standard sql format.
This reverts commit bf92f38.
since this is not part of our standard sql format.
This reverts commit b4c5556.
since this is not part of our standard sql format.
This reverts commit 3d1f96a.
since this is not part of our standard sql format.
This reverts commit b12d1cc.
since this is not part of our standard sql format.
This reverts commit 475fb17.
@sarah-tuva sarah-tuva merged commit de19fb6 into main Nov 14, 2022
@sarah-tuva sarah-tuva deleted the data_model_updates branch November 15, 2022 18:32
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.

None yet

2 participants