在捆绑中搜索患者

Searching for Patient within a Bundle

我们使用 Bundle 来包含其他资源。我想根据这些嵌套资源搜索捆绑包。例如我有看起来像这样的捆绑包:

{
    "resourceType": "Bundle",
    "type": "collection",
    "entry": [
        {
            "resource": {
                "resourceType": "Patient",
                "identifier": [
                    {
                        "type": {
                            "coding": [
                                {
                                    "code": "foo"
                                }
                            ]
                        },
                        "value": "12345"
                    },
                    {
                        "type": {
                            "coding": [
                                {
                                    "code": "bar"
                                }
                            ]
                        },
                        "value": "abcde"
                    }
                ]
            }
        },
        {
            "resource": {
                "resourceType": "SomeOtherResource"
            }
       }
    ]
}

我想找到 Patient"bar" == "abcde" 的所有捆绑包。会有很多这样的包,每个 Patient 会有很多除“bar”之外的标识符

我已经查看了 https://www.hl7.org/fhir/search.html, but all the examples I find assume that (e.g.) Patient is at the top level and I can search with [base]/Patient?..., but I am looking for Bundles. I've looked through the search parameters here,但那些不包含任何“包含”的条目。

我已经尝试了所有我能想到的 bundle/patient/identifier 组合,但没有成功。这甚至受支持吗?

如果您的 Bundle 是 FHIR 文档或 FHIR 消息,您可以通过链接 'composition' 或 'message' 搜索参数进行搜索。否则,没有标准的搜索方式。一般来说,Bundle 中的内容是不透明的。