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 #535 - Deduplicate the SearchParameter map #537

Merged
merged 2 commits into from Dec 24, 2019
Merged

Conversation

lmsurpre
Copy link
Member

@lmsurpre lmsurpre commented Dec 23, 2019

Previously, the parameter maps built by ParametersUtil had each
SearchParameter listed twice...once by "code" and once by "url".

This pull request introduces a new ParametersMap object that
encapsulates two separate maps and presents it as a single object.

Also removed the notion of "UNSUPPORTED_EXPRESSION" since
4.0.1 artifacts now have valid FHIRPath and our FHIRPath engine
now supports resolve().

Signed-off-by: Lee Surprenant lmsurpre@us.ibm.com

@lmsurpre lmsurpre requested a review from prb112 December 23, 2019 23:07
@prb112 prb112 added the search label Dec 23, 2019
@prb112 prb112 added this to the Sprint 6 milestone Dec 23, 2019
Previously, the parameter maps built by ParametersUtil had each
SearchParameter listed twice...once by "code" and once by "url".

This pull request introduces a new ParametersMap object that
encapsulates two separate maps and presents it as a single object.

Signed-off-by: Lee Surprenant <lmsurpre@us.ibm.com>
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 - left some discussion points

1. factored out common logic into private methods in SearchUtil
2. removed incorrect FHIRParserException warning in
ParametersUtil.loadBuiltIns
3. removed `continue` in favor of else block in
ParametersUtil.buildSearchParametersMapFromBundle


Signed-off-by: Lee Surprenant <lmsurpre@us.ibm.com>
@lmsurpre lmsurpre merged commit 5d33c3f into master Dec 24, 2019
@lmsurpre lmsurpre deleted the lee-master branch December 24, 2019 05:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants