FHIR Chat · Resource IDs in a Bundle for a search facade · implementers

Stream: implementers

Topic: Resource IDs in a Bundle for a search facade


view this post on Zulip Jean Duteau (May 18 2021 at 13:01):

I'm working on a project where they are exposing a SOAP locate/retrieve service via a FHIR facade. The service locates a set of Claims or retrieves a specific Claim. The Claim and its associated resources (Coverage, Patient, Organization, etc.) are returned in a Bundle. I'm having trouble architecting how the relationships between the Claim and its child resources should be handled. There is no ability to retrieve any of the child resources independently of the Claim which would seem to argue for a contained relationship, but that just doesn't seem right. I am currently having each resource be a separate Bundle.entry, but I don't know what ID to use for the inter-resource references. I know that we've discussed this before but my Zulip-search didn't reveal any answers/solutions.

When you have a facade and you aren't supporting generic READs, what do you do for the resource IDs in a Bundle?

view this post on Zulip Vassil Peytchev (May 18 2021 at 14:04):

Do the child resources have identifiers? One possibility is to hash the identifier+system and use that as the resource.id.

view this post on Zulip Grahame Grieve (May 18 2021 at 14:12):

https://chat.fhir.org/#narrow/stream/179166-implementers/topic/Aggregating.20multiple.20responses.20.28bundle.29.20in.20one.20bundle

view this post on Zulip Jean Duteau (May 18 2021 at 14:19):

Vassil Peytchev said:

Do the child resources have identifiers? One possibility is to hash the identifier+system and use that as the resource.id.

Unfortunately not, some of the Provider/Organization resources just have names and addresses. :(

view this post on Zulip Jean Duteau (May 18 2021 at 14:19):

Grahame Grieve said:

https://chat.fhir.org/#narrow/stream/179166-implementers/topic/Aggregating.20multiple.20responses.20.28bundle.29.20in.20one.20bundle

That didn't seem like it was my problem. I'm not aggregating resouces, but rather putting a FHIR search facade in front of a SOAP service.

view this post on Zulip Jean Duteau (May 18 2021 at 14:20):

I suspect that I'll have to create UUIDs for the resource IDs for the linking.

view this post on Zulip Grahame Grieve (May 18 2021 at 14:30):

hmm maybe it was this one I was thinking about

view this post on Zulip Grahame Grieve (May 18 2021 at 14:30):

https://chat.fhir.org/#narrow/stream/179166-implementers/topic/Resource.2Eid.20restrictions

view this post on Zulip Rik Smithies (May 18 2021 at 15:42):

~contained relationship, but that just doesn't seem right

can I ask why not? just a general bad feeling about contained?

view this post on Zulip Lloyd McKenzie (May 18 2021 at 15:51):

If all you've got is names and addresses and no shared identity, then 'contained' is fully appropriate. Granted, it's not going to be a super RESTful interface if you can't search for Patient instances and then query based on that, but you have to go with what you have.


Last updated: Apr 12 2022 at 19:14 UTC