简体   繁体   English

如何在没有标签的情况下搜索FHIR资源

[英]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. 我有一个应用程序,如果用户已将“ OK”清除为“绿色”,则用户可以将“问卷调查响应”标记为“绿色”,还可以将其标记为“黄色”和“红色”以进行后续操作。 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? 知道如何在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 http://apps.ehelselab.com/baseDstu2/QuestionnaireResponse?_tag:not = http://fhir.ehelselab.com/codes/tags |绿色

or 要么

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

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. 老实说,我从未真正看过:not限定词。 Where is that defined? 在哪里定义?

HAPI definitely doesn't support this, but it wouldn't be too hard to add.. HAPI绝对不支持此功能,但是添加起来并不难。

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. 让我看一看这在实施上有多糟糕。.我同意,我们应该支持它。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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