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

Fix ValueSet reference finder to use proper resource field in relatedArtifacts #286

Merged
merged 4 commits into from
Oct 19, 2023

Conversation

hossenlopp
Copy link
Contributor

Summary

Looks for the ValueSet references in the RelatedArtifact resource field. Previously this only looked for the references in the non-existent url field which many measures were using.

New behavior

Looks at resource in addition to url when looking for referenced ValueSet URLs

Code changes

ValueSetHelper.ts - Looks in resource as well.

Testing guidance

Run unit tests.
Add ValueSets to a recent measure package that has the fixed references, ensure ValueSets that are referenced in relatedArtifacts only are being pulled in. For example: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1029.206 for the Intensive Care Unit location is not something that will be in the dataRequirements and is only in the relatedArtifacts in CMS190.

@github-actions
Copy link

github-actions bot commented Oct 17, 2023

Coverage report

St.
Category Percentage Covered / Total
🟢 Statements
86.37% (+0.01% 🔼)
2369/2743
🟡 Branches
73.67% (+0.04% 🔼)
2194/2978
🟢 Functions 88.89% 424/477
🟢 Lines
86.7% (+0.02% 🔼)
2289/2640

Test suite run success

449 tests passing in 31 suites.

Report generated by 🧪jest coverage report action from 8f9621d

Copy link
Contributor

@elsaperelli elsaperelli left a comment

Choose a reason for hiding this comment

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

Just one suggestion but other than that looks good to me!

I tested with adding valuesets to CMS190, CMS71, and CMS104.

I also tested that adding valuesets to ColorectalCancerScreeningFHIR and CMS108 did not change.

src/execution/ValueSetHelper.ts Outdated Show resolved Hide resolved
Copy link
Contributor

@elsaperelli elsaperelli left a comment

Choose a reason for hiding this comment

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

Lgtm!

@elsaperelli elsaperelli merged commit 5280989 into master Oct 19, 2023
5 checks passed
@elsaperelli elsaperelli deleted the fix-valueset-ref-finding branch October 19, 2023 19:43
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.

2 participants