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

issue #1351 - Check SearchParameter search restrictions #1579

Merged
merged 3 commits into from
Oct 16, 2020

Conversation

tbieste
Copy link
Contributor

@tbieste tbieste commented Oct 13, 2020

This update enables checking of SearchParameter search restrictions and updates the FHIR server config file with a resources group that will provide configuration for additional search restrictions. Checking of required search parameters, includes, and revincludes will be in an upcoming commit.

Signed-off-by: Troy Biesterfeld [email protected]

@tbieste tbieste self-assigned this Oct 13, 2020
@tbieste tbieste force-pushed the tbieste-issue-1351 branch from c4d0802 to 108f210 Compare October 14, 2020 14:19
@tbieste tbieste force-pushed the tbieste-issue-1351 branch from 108f210 to b11e8a4 Compare October 15, 2020 22:13
@tbieste tbieste force-pushed the tbieste-issue-1351 branch from b11e8a4 to 8398b13 Compare October 15, 2020 23:45
@tbieste tbieste requested a review from lmsurpre October 16, 2020 00:11
@tbieste
Copy link
Contributor Author

tbieste commented Oct 16, 2020

@lmsurpre An example config with the new fields is fhir-search/src/test/resources/config/tenant7/fhir-server-config.json
I'll be updating it as I add some more unit tests in an upcoming commit, but I should give you a good example to start with.

@tbieste tbieste marked this pull request as ready for review October 16, 2020 00:14
based on team discussion

Signed-off-by: Lee Surprenant <[email protected]>
Copy link
Member

@lmsurpre lmsurpre left a comment

Choose a reason for hiding this comment

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

LGTM


if (supportOmittedRsrcTypes) {
// All other resource types include all search parameters
result.put(SearchConstants.WILDCARD, Collections.singletonList(SearchConstants.WILDCARD));
Copy link
Member

Choose a reason for hiding this comment

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

would it be helpful (perf-wise) to have this singletonList in a constant?

Copy link
Contributor

@prb112 prb112 left a comment

Choose a reason for hiding this comment

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

LGTM

@lmsurpre
Copy link
Member

we still need to update the docs to reflect the new config changes but I will do that as part of #1449

@lmsurpre lmsurpre merged commit cb73ce3 into master Oct 16, 2020
@lmsurpre lmsurpre deleted the tbieste-issue-1351 branch October 16, 2020 14:51
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.

4 participants