我正在尝试搜索约会,并包含一些资源,但不包括其他资源。特别是避免包含一些链接为"supportingInfo“的二进制资源,这些资源非常大。
但是我还是想包括病人,位置等等。
使用*是可行的,并且包括所有相关资源:患者、位置、从业者和不幸的二进制:
GET /Appointment?_include=*
但是,除了任命之外,这些都不包括任何其他内容:
GET /Appointment?_include=Patient:patient
GET /Appointment?_include=Location:location
GET /Appointment?_include=Patient:actor
GET /Appointment?_include=Practitioner:practitioner
我做错了什么吗?或者这仅仅是Google的FHIR API实现的一个限制?我已经成功地使用了其他看似更高级的搜索功能,如_revinclude和_include:iterate,但也许这是全部,或者什么都不是?我不确定该如何确认这一点?
发布于 2021-05-04 00:46:32
_include需要指定要包含的资源和搜索参数。因此,对于约会,它将是:
GET [base]/Appointment?_include=Appointment:patient,Appointment:location,Appointment:practitioner
如果还希望包含包含资源所指向的一些资源,则需要执行以下操作:_include:iterate=Location:organization将返回原始包含的位置所指向的组织
https://stackoverflow.com/questions/67372618
复制相似问题