Vonk FHIR服务器捆绑验证问题

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

在事务中将FHIR example that uses the ZIB for tobacco use发布到Vonk FHIR服务器时,Vonk会响应错误。

请求机构:

{
    "type": "transaction",
    "entry": [
        {
            "resource": {
                "resourceType": "Observation",
                "id": "medmij-bgz-tobaccouse-ts-01",
                "meta": {
                    "profile": [
                        "http://nictiz.nl/fhir/StructureDefinition/zib-TobaccoUse"
                    ]
                },
                "status": "final",
                "code": {
                    "coding": [
                        {
                            "system": "http://snomed.info/sct",
                            "code": "365980008",
                            "display": "Finding of tobacco use and exposure (finding)"
                        }
                    ]
                },
                "subject": {
                    "reference": "Patient/medmij-bgz-patient-ts-01",
                    "display": "Johan XXX_Helleman"
                },
                "effectivePeriod": {
                    "start": "1980",
                    "end": "1983"
                },
                "valueCodeableConcept": {
                    "coding": [
                        {
                            "system": "http://snomed.info/sct",
                            "code": "8517006",
                            "display": "Ex-smoker (finding)"
                        }
                    ]
                },
                "component": [
                    {
                        "code": {
                            "coding": [
                                {
                                    "system": "http://snomed.info/sct",
                                    "code": "53661000146106",
                                    "display": "Type of tobacco used (observable entity)"
                                }
                            ]
                        },
                        "valueCodeableConcept": {
                            "coding": [
                                {
                                    "system": "http://snomed.info/sct",
                                    "code": "65568007",
                                    "display": "Cigarette smoker (finding)"
                                }
                            ]
                        }
                    },
                    {
                        "code": {
                            "coding": [
                                {
                                    "system": "http://snomed.info/sct",
                                    "code": "266918002",
                                    "display": "Tobacco smoking consumption (observable entity)"
                                }
                            ]
                        },
                        "valueQuantity": {
                            "value": "2",
                            "unit": "packs per week",
                            "system": "http://unitsofmeasure.org",
                            "code": "{packs}/wk"
                        }
                    },
                    {
                        "code": {
                            "coding": [
                                {
                                    "system": "http://snomed.info/sct",
                                    "code": "401201003",
                                    "display": "Cigarette pack-years (observable entity)"
                                }
                            ]
                        },
                        "valueQuantity": {
                            "value": "1",
                            "unit": "PackYears",
                            "system": "http://unitsofmeasure.org",
                            "code": "{PackYears}"
                        }
                    }
                ]
            },
            "request": {
                "url": "Observation/medmij-bgz-tobaccouse-ts-01",
                "method": "PUT"
            }
        }
    ],
    "resourceType": "Bundle"
}

响应:

{
    "resourceType": "OperationOutcome",
    "id": "d230a0cd-5487-489b-8f19-098f66e55744",
    "meta": {
        "versionId": "ca7e8081-6557-4eba-9a9f-14df426a0ff2",
        "lastUpdated": "2019-03-11T09:07:56.638+00:00"
    },
    "issue": [
        {
            "severity": "error",
            "code": "invalid",
            "details": {
                "coding": [
                    {
                        "system": "http://hl7.org/fhir/dotnet-api-operation-outcome",
                        "code": "1008"
                    }
                ],
                "text": "Value is not exactly equal to fixed value 'http://unitsofmeasure.org'"
            },
            "location": [
                "Observation.component[2].value[0].system[0]"
            ]
        },
        {
            "severity": "warning",
            "code": "not-supported",
            "details": {
                "coding": [
                    {
                        "system": "http://hl7.org/fhir/dotnet-api-operation-outcome",
                        "code": "5003"
                    }
                ],
                "text": "Argument is not supported"
            },
            "location": [
                "/Observation"
            ]
        },
        {
            "severity": "warning",
            "code": "not-supported",
            "details": {
                "coding": [
                    {
                        "system": "http://hl7.org/fhir/dotnet-api-operation-outcome",
                        "code": "5003"
                    }
                ],
                "text": "Argument is not supported"
            },
            "location": [
                "/medmij-bgz-tobaccouse-ts-01"
            ]
        }
    ]
}

似乎错误抱怨PackYears组件中的URL不匹配,但是,正确使用所指示的url http://unitsofmeasure.org应该在错误中使用。有人知道这里的请求是错还是Vonk有问题吗?

请注意,没有事务发布到/Observation/不会给出错误但成功完成。另请注意,/Bundle/$validate对同一捆绑包的请求并不表示任何错误,而是使用The operation was successful进行响应。

我们正在使用Vonk 1.1.0并将其配置为使用SQL Server数据库。

hl7-fhir
1个回答
0
投票

错误发生在Vonk中。我可以使用Vonk 1.1.0版重现它。我们将在下周发布一个新版本的Vonk,这个版本已经解决了。

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