Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Describe your changes
Running some HEDIS models we noticed we has some proc dates with a odd date, '1990-01-01', an mco's null code for admissions date. Looking at the field history we see that admissions date is the first choice in the procedure code voting. I believe a HCPCS/CPT procedure code should correspond more closely with a claim line date, claim start date and admission date less so. Adding claim line to be the first choice, and demoting admission date to third choice after claim start date since it is less likely to be populated and want to avoid similar issues for others
Slack thread
How has this been tested?
I ran this code on our systems, and it completed without error and returned the desired results (matching our claims calculated hedis measures to those reported by the mcos
Reviewer focus
I would ask if we really want to include dates beyond the claim line date and claim start dates. For our HEDIS work, we count on distinct proc dates. We also are pulling in procedure information from clinical sources. If a proc date is misstated this would cause an incorrect count, and for this reason I am a little inclined to not default to dates other than line date
Checklist before requesting a review
tuva_last_run
to the final outputPackage release checklist
dbt_project.yml
(Optional) Gif of how this PR makes you feel
Loom link