简体   繁体   中英

How to search for a FHIR resource without a tag

I've got an app where the user can tag QuestionnaireResponses with 'Green' if they've been cleared as OK, and also tag as Yellow and Red for follow-up. I'd like to make a page which shows all resources that are NOT tagged with Green (including those not tagged at all). Any idea how I do that on HAPI-FHIR?

From the documentation I'm guessing something like:

http://apps.ehelselab.com/baseDstu2/QuestionnaireResponse?_tag:not=http://fhir.ehelselab.com/codes/tags|Green

or

http://apps.ehelselab.com/baseDstu2/QuestionnaireResponse?_tag=nehttp://fhir.ehelselab.com/codes/tags|Green

But it doesn't seem to return a correct response. Does someone know the correct format?

To be honest, I've never actually seen the :not qualifier. Where is that defined?

HAPI definitely doesn't support this, but it wouldn't be too hard to add..

Edit: Oh, turns out it's documented in an obvious spot . Let me have a look at how bad this would be to implement.. I'd agree, we should support it.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM