FHIR Chat · Bundle type = Collection · implementers

Stream: implementers

Topic: Bundle type = Collection


view this post on Zulip Stephen Lloyd (Aug 17 2017 at 14:37):

Hi,

Probably in the documentation but I'm having trouble finding it sorry, is there any way to upload a bundle where the collection type is:
<type value="collection"/>
Using postman to post onto my local test server I get:
<pre>Unable to process transaction where incoming Bundle.type = collection</pre>

Should all Posts by of type transaction & is there any way to get a bundle collection into my test server without modifying it to "transaction"?

Cheers,
Steve

view this post on Zulip Lloyd McKenzie (Aug 17 2017 at 14:53):

You ought to be able to post it to the [root]/Bundle endpoint. You won't be able to post to the [root] endpoint.

view this post on Zulip Stephen Lloyd (Aug 17 2017 at 15:01):

Thanks Lloyd, that has worked however we now end up with a Bundle entry in our server and not a list of individual resources. Will they still be individually resolvable in any way?

view this post on Zulip Stephen Lloyd (Aug 17 2017 at 15:05):

Actually, I've just been told that they're trying to upload the default fhir profiles (from defintions.xml.zip), does this sound sensible or are they externally resolvable permanently (from somewhere else)?
Do they need to be in our server for our profiles to reference & if so, what's the best process?

view this post on Zulip Lloyd McKenzie (Aug 17 2017 at 15:09):

If the Bundle type is Collection, they won't be stored separately. If you want them stored separately, then you need a Bundle type of "transaction" and in that case you'd post it to the [root] endpoint.

view this post on Zulip David Hay (Aug 17 2017 at 22:38):

wrt loading the default definitions, I generally do that so I know where they are. Certainly there is the intention to make them globally accessible from a single registry (likely Simplifier) - but AFAIK we're not quite ready yet. Hapi has a neat tool for uploading these resources - see (https://fhirblog.com/2016/03/06/building-your-own-fhir-server/) - I'm guessing that it would work against any server supporting the correct API (but I haven't checked)

view this post on Zulip Grahame Grieve (Aug 18 2017 at 02:30):

the spec says that how to handle a collection is at the discretion of the server. what server are you using?

view this post on Zulip Stephen Lloyd (Aug 18 2017 at 09:18):

Thanks for the information everyone it's much appreciated, we're using a HAPi server (2.5 atm) although that's out of my control at the moment but I can nudge the people in control of it if needs be.
I will have a look at the 'building your own server' link suggested and speak to the person in control of the server we're bring up :)

view this post on Zulip Stephen Lloyd (Aug 18 2017 at 12:52):

@David Hay 's suggestion of the CLI tool to upload the standard profiles is looking very useful. Thanks again.


Last updated: Apr 12 2022 at 19:14 UTC