Skip to content
This repository has been archived by the owner on Oct 8, 2024. It is now read-only.

support for :not Modifier #118

Open
vsocrates opened this issue Apr 18, 2018 · 1 comment
Open

support for :not Modifier #118

vsocrates opened this issue Apr 18, 2018 · 1 comment
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@vsocrates
Copy link

Hi everyone,

I am trying to implement a query using fhir.js that essentially pulls all "Observations" that aren't in a specified set of LOINC codes. I do this with the following URL:

https://fhirtest.uhn.ca/baseDstu3/Observation?subject=240225&code:not=30522-7&code:not=38483-4

However, it doesn't seem like this is possible using the fhir.js library as not is not one of the supported Modifiers. I have tried with the following queryObject:

{'$and': [{'subject':'240225'},{code: {'$and': [{$not: '30522-7'}, {$not: '20565-8'}, {$not: '6298-4'}]}}]}

I would be willing to implement this but I'm not completely sure where it should go. From preliminary searching, I believe I should just need to update the search.js middleware file.

Please let me know if this is the case. I'm sorry, I don't quite have the JS knowledge to know exactly where the changes should go. Thanks!

@niquola
Copy link
Member

niquola commented Aug 28, 2018

Yes you have to update search middleware! Please provide PR with tests - i will help.

@mike1pol mike1pol self-assigned this Sep 12, 2018
@mike1pol mike1pol added this to the v0.1.0 milestone Sep 12, 2018
@mike1pol mike1pol added the enhancement New feature or request label Sep 12, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants