gpt4 book ai didi

dstu2-fhir - HAPI上传成功后返回Basic资源失败

转载 作者:行者123 更新时间:2023-12-04 23:16:26 25 4
gpt4 key购买 nike

我正在尝试将资源上传到 HAPI。它基于资源类型基本,我为我试图捕捉的概念创建了一个自定义配置文件(和扩展)。我已将这些 StructureDefinitions 上传到我正在使用的服务器(托管在本地主机上),但我尚未针对它验证此上传(仍在尝试测试我用于 xml 的格式是否正确)。

我上传了以下包(实际包中有更多记录,为了清晰起见,我刚刚对其进行了编辑):

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<Bundle>
<meta>
<lastUpdated value="2016-10-28T16:29:43Z"/>
</meta>
<type value="transaction"/>
<entry>
<resource>
<Basic>
<text>
<status value="generated"/>
<div/>
</text>
<extension url="http://localhost:1080/hapi-fhir-jpaserver-example/baseDstu2/StructureDefinition/DateID">
<valueDate value="2016-11-01"/>
</extension>
<extension url="http://localhost:1080/hapi-fhir-jpaserver-example/baseDstu2/StructureDefinition/SptSolution">
<valueCoding value="SptSolution.CatFurSPTSoln"/>
</extension>
<extension url="http://localhost:1080/hapi-fhir-jpaserver-example/baseDstu2/StructureDefinition/MethodOfFollowUp">
<valueCoding value="FollowUpMethod.ClinicVisit"/>
</extension>
<extension url="http://localhost:1080/hapi-fhir-jpaserver-example/baseDstu2/StructureDefinition/SPTDefinition">
<valueString value="A positive skin prick test result was defined as a mean wheal diameter of 3mm greater than that of the negative control"/>
</extension>
<extension url="http://localhost:1080/hapi-fhir-jpaserver-example/baseDstu2/StructureDefinition/SubjectNo">
<valueString value="4320"/>
</extension>
<extension url="http://localhost:1080/hapi-fhir-jpaserver-example/baseDstu2/StructureDefinition/AIW">
<valueInteger value="58"/>
</extension>
<extension url="http://localhost:1080/hapi-fhir-jpaserver-example/baseDstu2/StructureDefinition/FollowUp">
<valueCoding value="FollowUp.MSAge1Y"/>
</extension>
<extension url="http://localhost:1080/hapi-fhir-jpaserver-example/baseDstu2/StructureDefinition/Subject">
<valueCoding value="Person.StudySubject"/>
</extension>
<extension url="http://localhost:1080/hapi-fhir-jpaserver-example/baseDstu2/StructureDefinition/VariableLabel">
<valueString value="Child sensitised to cat (age 1 spt)"/>
</extension>
<extension url="http://localhost:1080/hapi-fhir-jpaserver-example/baseDstu2/StructureDefinition/SPTDataType">
<valueCoding value="SkinPrickTestData.SPTResult"/>
</extension>
<extension url="http://localhost:1080/hapi-fhir-jpaserver-example/baseDstu2/StructureDefinition/DataSource">
<valueCoding value="DataSource.ClinicalMeasurement"/>
</extension>
<extension url="http://localhost:1080/hapi-fhir-jpaserver-example/baseDstu2/StructureDefinition/ClinicalType">
<valueCoding value="ClinicalMeasurement.SkinPrickTest"/>
</extension>
<extension url="http://localhost:1080/hapi-fhir-jpaserver-example/baseDstu2/StructureDefinition/DataSPTResult">
<valueCoding value="TestResult.Negative"/>
</extension>
</Basic>
</resource>
<request>
<method value="POST"/>
<url value="Basic"/>
</request>
</entry>
</Bundle>

这似乎已正确上传,因为我得到了回应:
<Bundle xmlns="http://hl7.org/fhir">
<id value="5d8d77ed-762f-4a64-b6b1-7a3aeacac52f"/>
<type value="transaction-response"/>
<link>
<relation value="self"/>
<url value="http://localhost:8080/hapi-fhir-jpaserver-example/baseDstu2"/>
</link>
<entry>
<response>
<status value="201 Created"/>
<location value="Basic/1107/_history/1"/>
<etag value="1"/>
<lastModified value="2016-11-01T15:09:56.264+00:00"/>
</response>
</entry>
</Bundle>

但是,当我尝试通过 URL 访问它时:
{{URL}}/Basic/1107

我收到以下回复:
{
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">error</td><td>[]</td><td><pre>Failed to call access method</pre></td>\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Failed to call access method"
}
]
}

知道是什么导致了这个问题吗?当我上传患者并尝试将他们拉回来时它工作正常,但尝试基本操作似乎不起作用。

最佳答案

这确实是 HAPI 中的一个错误。我正要检查修复。

FWIW 你可以通过不包括空的 <div/> 来解决它在你的叙述中添加标签(或向 div 添加内容)。

关于dstu2-fhir - HAPI上传成功后返回Basic资源失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40363249/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com