我正在尝试使用 hapi-fhir-cli 将测试数据上传到本地 JPA fhir 服务器。但是在上传资源时,我收到以下错误。
2020-09-03 17:33:26.486 [main] INFO c.u.f.c.ExampleDataUploader 1 good references
2020-09-03 17:33:26.511 [main] INFO c.u.f.c.ExampleDataUploader Final bundle: 18 entries
2020-09-03 17:33:26.527 [main] INFO c.u.f.c.ExampleDataUploader About to upload 11 examples in a transaction, 2 remaining
2020-09-03 17:33:26.637 [main] INFO c.u.f.c.ExampleDataUploader Final bundle: 62 KB
2020-09-03 17:33:26.641 [main] INFO c.u.f.c.ExampleDataUploader Uploading bundle to server: http://127.0.0.1:8080/hapi-fhir-jpaserver/fhir
2020-09-03 17:33:26.960 [main] ERROR c.u.f.c.ExampleDataUploader Failed to upload bundle:HTTP 0: Failed to retrieve the server metadata statement during client initialization. URL used was http://127.0.0.1:8080/hapi-fhir-jpaserver/fhir/metadata
即使我将http://127.0.0.1:8080/hapi-fhir-jpaserver/fhir/metadata替换为公共 hapi fhir 测试服务器,即http://hapi.fhir.org/baseR4,我也会遇到同样的错误. 运行以下 hapi-fhir-cli 命令后出现上述错误。
hapi-fhir-5.1.0-cli>hapi-fhir-cli 上传示例-t http://127.0.0.1:8080/hapi-fhir-jpaserver/fhir -v dstu2 -l 40
如果我将版本更改为 dstu3 或 r4,我会收到验证错误,即 bundle type=transaction not found in valueset defined at hl7 website,即使它已定义。
有人对这两个错误有任何想法吗?任何帮助,将不胜感激。谢谢。