FHIR 中的反向链接

Reverse chaining in FHIR

我想在 HAPI FHIR 服务器中进行如下搜索:

示例:

  "resourceType": "Observation",
  "device": {
    "reference": "Device/2412"
  },
  "hasMember": [
    {
      "reference": "Observation/1"
    },
    {
      "reference": "Observation/2"
    },
    {
      "reference": "Observation/3"
    }
  ]

我想要 Observation/1、Observation/2 和 Observation/3

使用反向链接 (_has):

观察?_has:观察:has-member:设备=Device/2412

即获取另一个Observation with device=Device/2412通过has-member引用该资源的Observation资源。

这使用了_has的定义http://hl7.org/fhir/search.html#has and the search parameters on Observation http://hl7.org/fhir/observation.html#search