FHIR Chat · ValueSet - $expand operation · hapi

Stream: hapi

Topic: ValueSet - $expand operation


view this post on Zulip Bhagyashri Sakpal (Dec 11 2020 at 10:18):

Can anyone provide link to understand the $expand operation more accurately. We have referred some links already but not able to understand the requirement properly. Below are the links, we already went through
- https://ontoserver.csiro.au/docs/5.6/api-fhir-valueset.html
- http://build.fhir.org/op-example-request.html
- http://build.fhir.org/operations.html
- https://embed.plnkr.co/oELW6BR7rN2vXNH3Yp4F/

view this post on Zulip René Spronk (Dec 11 2020 at 11:50):

So.. what's not clear after reading all of that documentation? Could you be a bit more specific?

view this post on Zulip Bhagyashri Sakpal (Dec 11 2020 at 12:21):

image.png

As mentioned in this screenshot, it is expected to generate UUID for each expansion. Also it is mentioned that we need to support both POST and GET operations for $expand - http://hl7.org/fhir/valueset-operation-expand.html#examples.

What we understand is GET will return the matching ValueSets as per the search parameters, then how can we generate the unique identifier for this.

view this post on Zulip René Spronk (Dec 11 2020 at 13:05):

GET (in this context) is used to invoke an operation (as is POST, but in the case of POST with a Parameters resource), GET isn't used to "search". The ouptput of the $expand operation is a new ValueSet resource, the system that does the expansion has to uniquely identfy the newly created resource by means of an id (which it has to assign itself).
If you want to search for ValueSets, the syntax would be GET [base]/ValueSet?param=value, which would return a Bundle of matching ValueSets.

view this post on Zulip Bhagyashri Sakpal (Dec 11 2020 at 14:13):

image.png

So are the parameters used in this screenshot used to create a subset of the Valueset and store it as new Valueset

view this post on Zulip René Spronk (Dec 11 2020 at 14:49):

These IN (input) parameters for the $expand operation. See the definition of the operation on http://build.fhir.org/valueset-operation-expand.html


Last updated: Apr 12 2022 at 19:14 UTC