发布 fhir 捆绑包时,Bundle.entry.fullUrl 无效

问题描述 投票:0回答:1

我正在尝试发布包含患者和观察资源的捆绑包,这是我尝试发布的 json

{
    "resourceType": "Bundle",
    "id": "bundle-transaction",
    "meta": {
        "lastUpdated": "2014-08-18T01:43:30Z"
    },
    "type": "transaction",
    "entry": [
        {
            "fullUrl": "urn:uuid:05efabf0-4be2-4561-91ce-51548425acb9",
            "resource": {
                "resourceType": "Patient",
                "active": true,
                "name": [
                    {
                        "use": "official",
                        "family": "Jones",
                        "given": "Indiana"
                    }
                ],
                "gender": "male",
                "birthDate": "1990-12-20"
            },
            "request": {
                "method": "POST",
                "url": "Patient"
            }
        },
        {
            "fullUrl": "urn:uuid:dd7885c2-cf0d-4d5f-981c-94c98df345ad",
            "resource": {
                "resourceType": "Observation",
                "status": "final",
                "category": [
                    {
                        "coding": [
                            {
                                "system": "http://terminology.hl7.org/CodeSystem/observation-category",
                                "code": "vital-signs",
                                "display": "Vital Signs"
                            }
                        ]
                    }
                ],
                "code": {
                    "coding": [
                        {
                            "system": "http://loinc.org",
                            "code": "29463-7",
                            "display": "Body Weight"
                        }
                    ]
                },
                "subject": {
                    "type": "Patient",
                    "reference": "urn:uuid:05efabf0-4be2-4561-91ce-51548425acb9"
                },
                "effectiveDateTime": "2016-03-28",
                "valueQuantity": {
                    "value": 185,
                    "unit": "lbs",
                    "system": "http://unitsofmeasure.org",
                    "code": "[lb_av]"
                }
            },
            "request": {
                "method": "POST",
                "url": "Observation"
            }
        }
    ]
}

问题是我得到 Bundle.entry.fullUrl is invalid 作为响应,这可能是什么问题,我使用 UUID 作为 fullUrl ,正如我在各种教程中看到的那样,这是一种有效的方法东西

我尝试了很多方法来解决这个问题,例如仅保留 uuid 并删除“urn:uuid”部分,但没有结果

hl7-fhir
1个回答
0
投票

您的捆绑包对我来说看起来是正确的,Firely 和 HAPI 公共测试服务器都毫无问题地接受它。 FHIR 规范中的示例 Bundle 还显示了链接尚无身份的资源的 urn:uuid 方式,作为事务的一个很好的示例,请参阅:http://hl7.org/fhir/bundle-transaction.json .html。另外,关于解决捆绑包中的引用的段落提到了解决瓮:http://hl7.org/fhir/bundle.html#references

我的猜测是您使用的服务器不具备此功能。您可以尝试将患者的引用和 fullUrl 替换为“实际”url(如

http://example.org/Patient/1
),然后查看服务器是否愿意接受。如果是这样,它应该用新创建的引用替换引用,就像您使用 urn:uuid 时一样。如果没有,请联系服务器开发人员寻求帮助。

© www.soinside.com 2019 - 2024. All rights reserved.