-
Notifications
You must be signed in to change notification settings - Fork 160
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
Conversation
c4d0802
to
108f210
Compare
Signed-off-by: Troy Biesterfeld <[email protected]>
108f210
to
b11e8a4
Compare
Signed-off-by: Troy Biesterfeld <[email protected]>
b11e8a4
to
8398b13
Compare
@lmsurpre An example config with the new fields is fhir-search/src/test/resources/config/tenant7/fhir-server-config.json |
fhir-config/src/main/java/com/ibm/fhir/config/FHIRConfiguration.java
Outdated
Show resolved
Hide resolved
fhir-search/src/main/java/com/ibm/fhir/search/util/SearchUtil.java
Outdated
Show resolved
Hide resolved
fhir-search/src/main/java/com/ibm/fhir/search/util/SearchUtil.java
Outdated
Show resolved
Hide resolved
fhir-search/src/main/java/com/ibm/fhir/search/util/SearchUtil.java
Outdated
Show resolved
Hide resolved
fhir-search/src/main/java/com/ibm/fhir/search/util/SearchUtil.java
Outdated
Show resolved
Hide resolved
fhir-search/src/test/resources/config/tenant1/fhir-server-config.json
Outdated
Show resolved
Hide resolved
fhir-search/src/test/resources/config/tenant4/fhir-server-config.json
Outdated
Show resolved
Hide resolved
fhir-search/src/test/resources/config/tenant5/fhir-server-config.json
Outdated
Show resolved
Hide resolved
fhir-search/src/test/resources/config/tenant7/fhir-server-config.json
Outdated
Show resolved
Hide resolved
fhir-server/liberty-config-tenants/config/tenant1/fhir-server-config.json
Outdated
Show resolved
Hide resolved
fhir-server/liberty-config-tenants/config/tenant1/fhir-server-config.json
Show resolved
Hide resolved
based on team discussion Signed-off-by: Lee Surprenant <[email protected]>
There was a problem hiding this 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)); |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
we still need to update the docs to reflect the new config changes but I will do that as part of #1449 |
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]