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

Cannot perform search with more than one instance of same param #64

Open
nbfowler opened this issue Apr 20, 2019 · 1 comment
Open

Cannot perform search with more than one instance of same param #64

nbfowler opened this issue Apr 20, 2019 · 1 comment

Comments

@nbfowler
Copy link

Because the search parameters are received as a dictionary, it is impossible to construct a search query where the same parameter is used twice, because a dictionary requires unique keys. This makes it impossible to construct a search URL for results between two values, which is actually a pretty normal use case, e.g. when searching for results between two dates:

http://fhirtest.uhn.ca/baseDstu3/MedicationDispense?whenprepared=gt2018-05-21T00%3A00%3A00-05%3A00&whenprepared=lt2018-05-24T23%3A59%3A59-05%3A00

Is there an undocumented trick for this, or is this not possible at the moment?

@ruscoder
Copy link

@nbfowler You can try something like this: .where(struct={'whenprepared': {'$and': ['gt2018-05-21', 'lt2018-05-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

No branches or pull requests

2 participants