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-2185 and FI-2186: Add Optional Tests for _lastUpdated Interaction and Required Tests for _id Search #21

Merged
merged 17 commits into from
Nov 2, 2023

Conversation

emichaud998
Copy link
Contributor

@emichaud998 emichaud998 commented Oct 27, 2023

Summary

Changed _lastUpdated test for Coverage resource to be an optional test, and added optional tests for all the additional _lastUpdated interactions for the Patient, Organization, Practitioner, and RelatedPerson resources. Added _id search test for Patient, Organization, Practitioner, and RelatedPerson resources as well. Also added spec tests for _lastUpdated and _id search tests.

Testing Guidance

Can run the spec tests by running bundle exec rspec spec/carin_for_blue_button/carin_search_test_spec.rb and make sure all the tests pass. Otherwise, you can run Inferno locally and test the _lastUpdated and _id tests manually by running those tests for the Coverage, Patient, Organization, Practitioner, and RelatedPerson resources using a local instance of the C4BB RI.

@emichaud998 emichaud998 force-pushed the FI-2185-SHOULD_optional_tests branch 2 times, most recently from 6555707 to 2dd956c Compare October 31, 2023 17:33
…h test so that it does not fail if no _lastUpdated param added or if search for _lastUpdated fails for Coverage resource
…hat are not SHALL requirements. Updated optional? method so that it checks if search_metadata is nil before checking if it is empty
… for _lastUpdated tests that already exist, add spec tests for all of the new optional _lastUpdated tests
…tient, Practitioner, Organization, and Related Person resource. Creates the id and lastUpdated test for all of these resources and makes lastUpdated optional
@emichaud998 emichaud998 force-pushed the FI-2185-SHOULD_optional_tests branch from 2051176 to b0ddfd0 Compare November 1, 2023 13:37
@emichaud998 emichaud998 changed the title FI-2185: SHOULD Optional Tests for _lastUpdated Interaction FI-2185: Add Optional Tests for _lastUpdated Interaction and Required Tests for _id Search Nov 1, 2023
…g, move _lastUpdated tests to search test spec file, add in test for _id search
@emichaud998 emichaud998 changed the title FI-2185: Add Optional Tests for _lastUpdated Interaction and Required Tests for _id Search FI-2185 and FI-2186: Add Optional Tests for _lastUpdated Interaction and Required Tests for _id Search Nov 1, 2023
Copy link
Contributor

@vanessuniq vanessuniq left a comment

Choose a reason for hiding this comment

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

Let me know if my comments make sense

…rces when no _lastUpdated param is passed in. Updated spec test to reflect these changes
… search tests now skip if the search parameter is blank. Updated spec tests accordingly and ran generator with these changes
Copy link
Contributor

@vanessuniq vanessuniq left a comment

Choose a reason for hiding this comment

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

looks good to me.

@emichaud998 emichaud998 merged commit dc50546 into main Nov 2, 2023
2 checks passed
@emichaud998 emichaud998 deleted the FI-2185-SHOULD_optional_tests branch November 2, 2023 16:25
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.

3 participants