在事务中将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数据库。
答案 0 :(得分:0)
错误在Vonk中。我可以使用Vonk版本1.1.0复制它。我们将在下周发布新版本的Vonk,该版本已解决。