FHIR Chat · Batch and references · implementers

Stream: implementers

Topic: Batch and references


view this post on Zulip Jenni Syed (May 04 2018 at 20:17):

I'm reading the batch section of the ballot and this statement is included: "Static references within a Bundle.entry.resource to another Bundle.entry.resource that is being created within the batch are considered to be non-conformant."

Does this mean no references to any resources within the same batch are allowed?

view this post on Zulip Josh Mandel (May 04 2018 at 20:18):

I think that's right; if you need to post a graph, the idea would be to use a transaction instead of a batch.

view this post on Zulip Jenni Syed (May 04 2018 at 20:19):

I think it's the "static" that's confusing since we don't use that terminology anywhere else :)

view this post on Zulip Josh Mandel (May 04 2018 at 20:20):

Agreed -- I would have interpreted this the same way if "static" was removed ("References within a Bundle...")

view this post on Zulip Jenni Syed (May 04 2018 at 20:20):

But, then, implications would be (for @Josh Mandel interpretation) that I cannot modify a patient record at the same time as I modify some of the other data? Even if I don't care if both succeed?

view this post on Zulip Jenni Syed (May 04 2018 at 20:20):

I think I can understand the goal of simplification :)

view this post on Zulip Jenni Syed (May 04 2018 at 20:20):

because these scenarios could get ridiculously complex

view this post on Zulip Josh Mandel (May 04 2018 at 20:21):

Let's see -- you want a with:

1. Change Patient A's phone number
2. Create a new Observation about Patient B

that meets what you just asked about and seems OK.

view this post on Zulip Jenni Syed (May 04 2018 at 20:21):

yes, but would seem to break the rule

view this post on Zulip Josh Mandel (May 04 2018 at 20:21):

Where?

view this post on Zulip Jenni Syed (May 04 2018 at 20:22):

oh no, sorry

view this post on Zulip Josh Mandel (May 04 2018 at 20:22):

No resources are being "created" in this batch.

view this post on Zulip Jenni Syed (May 04 2018 at 20:22):

My example would be:
1) Change patient A's phone number
2) Change patient A's med order

view this post on Zulip Josh Mandel (May 04 2018 at 20:22):

I think that's OK too. No resources are being created.

view this post on Zulip Jenni Syed (May 04 2018 at 20:22):

that would require the med order to reference patient a

view this post on Zulip Josh Mandel (May 04 2018 at 20:23):

That's OK, if Patient A already exists (so batch item 1 is an update rather than a create).

view this post on Zulip Jenni Syed (May 04 2018 at 20:23):

which is also in the batch. I agree that it seems ok, but seems to violate that restriction

view this post on Zulip Jenni Syed (May 04 2018 at 20:23):

It doesn't say that the resource has to exist already or not, right?

view this post on Zulip Jenni Syed (May 04 2018 at 20:23):

that restriction is completely unqualified

view this post on Zulip Josh Mandel (May 04 2018 at 20:23):

to another Bundle.entry.resource that is being created within the batch

view this post on Zulip Jenni Syed (May 04 2018 at 20:23):

oh. duh

view this post on Zulip Jenni Syed (May 04 2018 at 20:24):

ok. I think I am reading too many specs today :)

view this post on Zulip Jenni Syed (May 04 2018 at 20:24):

I may make a comment about that "static" qualifier though

view this post on Zulip Josh Mandel (May 04 2018 at 20:31):

Agreed -- I have no gloss on that.

view this post on Zulip Jenni Syed (May 04 2018 at 20:34):

GF#16313

view this post on Zulip Grahame Grieve (May 05 2018 at 04:58):

yes that's not a useful word in that sentence


Last updated: Apr 12 2022 at 19:14 UTC