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

FI-2231 Add searches for Practitioner test #149

Merged
merged 3 commits into from
Feb 5, 2024

Conversation

yunwwang
Copy link
Contributor

@yunwwang yunwwang commented Jan 28, 2024

Summary

This PR fixes JIRA ticket FI-2231 and GitHub Issue: onc-healthit/onc-certification-g10-test-kit#485. Practitioner is a delayed resource because it does not have patient search parameter and it is not an USCDI data class/data element. (g)(10) test kit excludes search tests for all delayed resources.

To add search tests back for Practitioner in (g)(10) test kit, we split the original "delayed" resources into to part for (g)(10) test kit: delayed resources with searches and delayed resources without searches. The second category is identified by exclude_search_tests? metadata property.

Change Log

  • Expose is_delayed into metadata.yml (Note: I am still debating if this is necessary. I could remove this from metadata.yml if there're other opinions)
  • Move some version specific constants to SpecialCase module
  • Add Practitioner to SEARCHABLE_DELAYED_RESOURCES
  • Add logic of exclude_search_tests?

Testing Guidance

This PR does not affect US Core Test Kit. Corresponding changes are also applied in (g)(10) test kit so that when (g)(10) loads US Core Test Suites, it uses the exclude_search_tests? property instead of delayed? property to decide if group's search tests shall be included/excluded.

'Specimen' => ['v610', 'v700_ballot']
}.freeze

SEARCHABLE_NON_USCDI_RESOURCES = {
Copy link
Contributor

Choose a reason for hiding this comment

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

This naming is confusing because Practitioner is a USCDI resource is these versions. Why is Practitioner treated differently than Encounter? Aren't they both resources that weren't USCDI, but then became USCDI?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Practitioner does not have patient search parameter so it is still a "delayed" resource. I will change the name to SEARCHABLE_DELAYED_RESOURCES

@yunwwang yunwwang merged commit 0c37f59 into main Feb 5, 2024
2 checks passed
@yunwwang yunwwang deleted the FI-2231-encounter-practitioner branch February 5, 2024 19:09
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