FHIR Chat · Purpose of bundle.link? · implementers

Stream: implementers

Topic: Purpose of bundle.link?


view this post on Zulip Tim Berezny (Oct 22 2018 at 17:52):

What is the purpose of bundle.link? I'm trying to figure out if it's relevant to my implementation project or not, but I don't really understand what it's trying to do.

view this post on Zulip Lloyd McKenzie (Oct 22 2018 at 17:57):

It's primarily used with queries - self link, next, previous, etc. To my knowledge, we haven't given concrete guidance on its use in other circumances. How were you thinking of using it?

view this post on Zulip Tim Berezny (Oct 22 2018 at 18:02):

We're doing search on Appointments, GET {{baseURL_FHIR}}/Appointment/?_id={{servicerequest_ID1}}

And HAPI is inserting:

"type": "searchset",
"total": 1,
"link": [
    {
        "relation": "self",
        "url": "{{baseURL_FHIR}}/Appointment/?_id=7791916917"
    }
],

So, i guess in this case when the relation is "self" it just means, the value that comes after the GET statement? Is that the correct interpretation?

If that's where next and previous go for pagination , I can see that indeed being very useful.

view this post on Zulip Lloyd McKenzie (Oct 22 2018 at 18:08):

Self echoes back the query that was actually executed - which may differ from what was submitted

view this post on Zulip Grahame Grieve (Oct 22 2018 at 18:55):

more generally, it extends HATEOS into bundles, when that is appropriate.

view this post on Zulip Andrew Tropin (Oct 23 2018 at 12:21):

This may help to get better understanding of link:
https://tools.ietf.org/html/rfc5005
https://tools.ietf.org/html/rfc5988


Last updated: Apr 12 2022 at 19:14 UTC