0

我正在尝试搜索 Appointment 并包含一些资源但不包含其他资源。特别是尽量避免包含一些链接为“supportingInfo”的二进制资源,这些资源非常大。

但我仍然想包括患者、位置等。

使用*工作并包括所有相关资源:患者、位置、从业者,不幸的是二进制:

GET /Appointment?_include=*

但是,这些都不包括除约会之外的任何内容:

GET /Appointment?_include=Patient:patient

GET /Appointment?_include=Location:location

GET /Appointment?_include=Patient:actor

GET /Appointment?_include=Practitioner:practitioner

难道我做错了什么?或者这只是谷歌 FHIR API 实现的限制?我已经成功地使用了其他看似更高级的搜索功能_revinclude_include:iterate但也许是全部或全部?我不确定如何确认这一点?

4

1 回答 1

1

_include 需要指定要包含的资源和搜索参数。所以对于约会,它将是:

GET [base]/Appointment?_include=Appointment:patient,Appointment:location,Appointment:practitioner

如果您还想包含包含的资源指向的一些资源,则需要执行以下操作: _include:iterate=Location:organization将返回您的 priro 包含的位置所指向的组织包括

于 2021-05-03T16:46:31.963 回答