简体   繁体   English

发布 Bundle 不会创建包含的资源

[英]Posting a Bundle does not create contained resources

I'm using he OSS FHIR Server and tried posting a Bundle containing a Practioner, Patient and QuestionnaireResponse.我正在使用他的 OSS FHIR 服务器并尝试发布包含 Practioner、Patient 和 QuestionnaireResponse 的 Bundle。 The Bundle itself posted to Cosmos but was not parsed, the individual resources were not created. Bundle 本身已发布到 Cosmos 但未解析,未创建单个资源。

I read somethng about posting to "root", still didn't work.我读了一些关于发布到“root”的内容,但仍然没有用。

Not sure if i'm missing something不确定我是否遗漏了什么

Quoting the FHIR Wiki :引用FHIR Wiki

The Bundle resource type has an end-point like all most other resources. Bundle 资源类型与大多数其他资源一样有一个端点。 This end-point serves the usual interactions.这个端点服务于通常的交互。 Bundles are treated as static resources on the /Bundle end-point (ie when a batch, transaction, or message is POSTed to /Bundle, it is stored as is, and the content is not processed as batch, transaction, or message; instead, they are processed like normal resource, with indexing / auditing etc. Performing a GET /Bundle/[location] will return the same resource. Bundle 在 /Bundle 端点上被视为 static 资源(即,当将批处理、事务或消息 POST 到 /Bundle 时,它按原样存储,并且内容不作为批处理、事务或消息处理;而是,它们像普通资源一样被处理,带有索引/审计等。执行 GET /Bundle/[location] 将返回相同的资源。

In short if you post your bundle to server.root.url/Bundle the bundle will be stored 'as is' without being processed, whereas if you post to server.root.url then the bundle will be processed as expected, creating contained resources.简而言之,如果您将捆绑包发布到server.root.url/Bundle 捆绑包将“按原样”存储而不被处理,而如果您发布到server.root.url那么捆绑包将按预期处理,创建包含的资源.

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM