You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

FHIR技术问询:如何查询关联指定Encounter的DocumentReference

获取关联特定Encounter的DocumentReference列表失败排查

我需要获取关联特定Encounter的DocumentReference条目列表,尝试发送请求:
GET: https://fhirServerUrl/DocumentReference?context=Encounter/ekI3ZxMnLW7V-.vMaXzPoMQ3
但返回结果并未限定在指定的Encounter实例中,该实例信息如下:

return (<Encounter xmlns="http://hl7.org/fhir">
    <id value="ekI3ZxMnLW7V-.vMaXzPoMQ3" />
...
</Encounter>
)

解决建议

  • 尝试使用更精确的参数格式,明确指定关联资源类型:
    GET: https://fhirServerUrl/DocumentReference?context:Encounter=ekI3ZxMnLW7V-.vMaXzPoMQ3
  • 确认Encounter ID的正确性,注意特殊字符是否需要URL编码,避免因编码问题导致匹配失败。
  • 换用反向包含查询,直接从Encounter资源关联查询DocumentReference:
    GET: https://fhirServerUrl/Encounter/ekI3ZxMnLW7V-.vMaXzPoMQ3/_revinclude=DocumentReference:context
  • 查看服务器的CapabilityStatement,确认context参数是否支持用于DocumentReference的搜索,部分服务器可能未启用该参数的过滤能力。

内容的提问来源于stack exchange,提问作者ncsu95

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.07.17 20:52:31