-
Notifications
You must be signed in to change notification settings - Fork 157
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
Search parameter filtering fails for search parameter which has multiple base resource types #1831
Labels
bug
Something isn't working
cms-interop
This issue is associated with the CMS interoperability rule
search
Comments
michaelwschroeder
added
bug
Something isn't working
cms-interop
This issue is associated with the CMS interoperability rule
search
labels
Dec 15, 2020
michaelwschroeder
added a commit
that referenced
this issue
Dec 15, 2020
Signed-off-by: Mike Schroeder <mschroed@us.ibm.com>
JohnTimm
added a commit
that referenced
this issue
Dec 22, 2020
* Enable OpenLiberty override the fhiropenapi functionality #1760 Signed-off-by: Paul Bastide <pbastide@us.ibm.com> * Issue #1780 - add compartment search/search parameter config section Signed-off-by: Mike Schroeder <mschroed@us.ibm.com> * issue #1789 refresh-tenants does not handle Db2 multi-tenant/multi-schema scenarios Signed-off-by: Robin Arnold <robin.arnold23@ibm.com> * Invalid SQL object name `--pool-size` exception when running Docker `fhir-persistence-schema` on PostgreSQL #1797 Signed-off-by: Paul Bastide <pbastide@us.ibm.com> * Misleading error messages when using command line parameters and not `persistence.json` for Docker `fhir-persistence-schema` #1796 Signed-off-by: Paul Bastide <pbastide@us.ibm.com> * Schema defined for `fhir` in `persistence.json` not used correctly when running Docker `fhir-persistence-schema` #1795 Signed-off-by: Paul Bastide <pbastide@us.ibm.com> * doc: update must gather to include open shift details Signed-off-by: Paul Bastide <pbastide@us.ibm.com> * use the fhiruser password from helm (set by overrides from KeyProtect) Signed-off-by: Lee Surprenant <lmsurpre@us.ibm.com> * Fix the definition for List-identifier search A workaround for https://jira.hl7.org/browse/FHIR-29937 Signed-off-by: Lee Surprenant <lmsurpre@us.ibm.com> * #1802 Signed-off-by: Paul Bastide <pbastide@us.ibm.com> * #1802 Signed-off-by: Paul Bastide <pbastide@us.ibm.com> * Fix up the Must Gather Signed-off-by: Paul Bastide <pbastide@us.ibm.com> * IBM FHIR Server audit does not log bundles correctly. #1803 Signed-off-by: Paul Bastide <pbastide@us.ibm.com> * update documentation for the mustgather Signed-off-by: Paul Bastide <pbastide@us.ibm.com> * fix: per code review changed the compare, and added an additional ignore for the metadata endpoints Signed-off-by: Paul Bastide <pbastide@us.ibm.com> * Update fhir-server/src/main/java/com/ibm/fhir/server/util/RestAuditLogger.java Signed-off-by: Paul Bastide <pbastide@us.ibm.com> Co-authored-by: Lee Surprenant <lmsurpre@us.ibm.com> * doc: compilation errors are now fixed Signed-off-by: Paul Bastide <pbastide@us.ibm.com> * doc: compilation errors are now fixed Signed-off-by: Paul Bastide <pbastide@us.ibm.com> * Add tests case and fixes for #1795 Signed-off-by: Paul Bastide <pbastide@us.ibm.com> * Add tests case and fixes for #1795 Signed-off-by: Paul Bastide <pbastide@us.ibm.com> * Add tests case and fixes for #1795 Signed-off-by: Paul Bastide <pbastide@us.ibm.com> * Add tests case and fixes for #1796 Signed-off-by: Paul Bastide <pbastide@us.ibm.com> * Add tests case and fixes for #1797 Signed-off-by: Paul Bastide <pbastide@us.ibm.com> * Add tests for cp and #1802 Signed-off-by: Paul Bastide <pbastide@us.ibm.com> * fix: #1808 Signed-off-by: Paul Bastide <pbastide@us.ibm.com> * Add tests for plain and base64 encoded environment variables Signed-off-by: Paul Bastide <pbastide@us.ibm.com> * fix per comments in code review and issue Signed-off-by: Paul Bastide <pbastide@us.ibm.com> * Prevent unauthorized reads before they happen This prevents us from leaking information about what patient resources exist / don't exist on the system, which was deemed as useful in case an implementer uses sensitive data for the Resource.id of the Patient resources (which still isn't advised). Signed-off-by: Lee Surprenant <lmsurpre@us.ibm.com> * Prevent unauthorized vread and history operations against Patient too Signed-off-by: Lee Surprenant <lmsurpre@us.ibm.com> * doc: adding code of conduct md file to root of repository Signed-off-by: Paul Bastide <pbastide@us.ibm.com> * doc: update to clarify the experimental use of the ibm-fhir-schematool Signed-off-by: Paul Bastide <pbastide@us.ibm.com> * doc: update to clarify the experimental use of the ibm-fhir-schematool Signed-off-by: Paul Bastide <pbastide@us.ibm.com> * doc: adding code of conduct md file to root of repository Signed-off-by: Paul Bastide <pbastide@us.ibm.com> * add communication method Signed-off-by: Lee Surprenant <lmsurpre@us.ibm.com> * Audit Refactoring #1542 - Refactor to separate Configuration, Mapping and AuditService - Configuration to use EventStreams Binding by default - Add a MapperFactory to split between cadf and auditevent types - AuditEventMapper - Wraps the AuditLogEntry into AuditEvent format - CADFMapper - Wraps the AuditLogEntry into CADF format - Audit Service is now KafkaService, NoOpService separating the Streaming framework from the mapping actions. - Removed duplicate code for Event/EventStrams processing - Add Test Coverage for Uncovered Classes Signed-off-by: Paul Bastide <pbastide@us.ibm.com> * Clean up spare printStackTrace Signed-off-by: Paul Bastide <pbastide@us.ibm.com> * update the documentation for fhir-audit Signed-off-by: Paul Bastide <pbastide@us.ibm.com> * updates per team code review - Change NoOp to Nop Service - Remove references to WHC/Disabled - Changed and clarified package names - Changed references to specific default places to generic/unknown places (e.g. dallas to unknown) - added examples for audit from config and audit from environment Signed-off-by: Paul Bastide <pbastide@us.ibm.com> * issue #1818 reindex resource selection update slows down as reindex progresses Signed-off-by: Robin Arnold <robin.arnold23@ibm.com> * updates per team code review - changed package names to remove logging.api and .model (reconciling it to a flatter structure) Signed-off-by: Paul Bastide <pbastide@us.ibm.com> * update docs Signed-off-by: Paul Bastide <pbastide@us.ibm.com> * change formatting slightly on MapperFactory Signed-off-by: Paul Bastide <pbastide@us.ibm.com> * fix: it tests were not running for drug formulary and c4bb Signed-off-by: Paul Bastide <pbastide@us.ibm.com> * fix incorrect variable in minor startup log message Signed-off-by: Lee Surprenant <lmsurpre@us.ibm.com> * Convert Strings to Constants for Kafka Key-Value in Properties objects - Per Code Review with Robin Arnold Signed-off-by: Paul Bastide <pbastide@us.ibm.com> * Update to 4.6.0-SNAPSHOT Signed-off-by: Paul Bastide <pbastide@us.ibm.com> * Code Review for FHIR Audit - CadfEvent doesn't write out target - Addresses Written Twice in CadfResource Signed-off-by: Paul Bastide <pbastide@us.ibm.com> * Added Test for FHIR Audit so it doesn't have multiple address blocks Signed-off-by: Paul Bastide <pbastide@us.ibm.com> * update docs Signed-off-by: Paul Bastide <pbastide@us.ibm.com> * Removed auditLogService <extension url="http://ibm.com/fhir/extension/auditLogProperties"> Signed-off-by: Paul Bastide <pbastide@us.ibm.com> * fix: referenced license was incorrect Signed-off-by: Paul Bastide <pbastide@us.ibm.com> * Package name consistency issue after Code Review of FHIR-Audit Config Examples Signed-off-by: Paul Bastide <pbastide@us.ibm.com> * issue #1831 - fix search parameter filtering issue Signed-off-by: Mike Schroeder <mschroed@us.ibm.com> * issue #1739 - Update _include and _revinclude parameter checking Signed-off-by: Troy Biesterfeld <tbieste@us.ibm.com> * Update .index.json Warning about invalid entry when discovering HREX profile. An example snuck into the .index.json. Signed-off-by: Paul Bastide <pbastide@us.ibm.com> * update changelog.md Signed-off-by: Paul Bastide <pbastide@us.ibm.com> Co-authored-by: Paul Bastide <pbastide@us.ibm.com> Co-authored-by: Mike Schroeder <mschroed@us.ibm.com> Co-authored-by: Robin Arnold <robin.arnold23@ibm.com> Co-authored-by: Lee Surprenant <lmsurpre@us.ibm.com> Co-authored-by: Michael W Schroeder <66479070+michaelwschroeder@users.noreply.github.com> Co-authored-by: Troy Biesterfeld <tbieste@us.ibm.com>
I submitted a MedicationRequest example from US Core that has the following:
Then I submitted a request for |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
bug
Something isn't working
cms-interop
This issue is associated with the CMS interoperability rule
search
Describe the bug
When filtering search parameters, we filter based on resource type. However, rather than using the resource type specified on the search, we're grabbing the first element in the SearchParameter.base field. So if a search parameter has more than one base and the first base element does not match the resource type specified in the search, then we filter on the wrong resource type and can possibly fail.
To Reproduce
Steps to reproduce the behavior:
medication
search parameter) to be valid on only one of those resource types (for example,MedicationRequest
).MedicationRequest?medication=xxx
Expected behavior
The search should run successfully.
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: