Stream: implementers
Topic: Executing Operations
Sufyan Patel (Jun 03 2019 at 11:02):
Hi, Simple question but I haven't seem to have found a definitive answer - To invoke an operation using '$', do we always need to post a Parameters resource? Can we post a Bundle with a Parameters resource inside?
Vadim Peretokin (Jun 03 2019 at 11:12):
Only of the Operation explicitly accepts a Bundle.
Are you trying to batch your operations? If so, look into http://hl7.org/fhir/http.html#transaction instead.
Sufyan Patel (Jun 03 2019 at 11:16):
The Bundle would hold the Parameters and other resources referenced from the parameters.
Lloyd McKenzie (Jun 03 2019 at 13:28):
Parameters can hold resources directly. The expectation is that an Operation will either take a single input argument that's a resource of some type, will have all parameters passed as part of the URL or will take a Parameters resource. If you pass an Operation a Bundle, then that needs to be the sole parameter the operation takes.
Sufyan Patel (Jun 03 2019 at 14:51):
Thanks for the replies. I was looking at the $evaluate operation on ServiceDefinition. I guess it needs to be a Paramaters resource.
Last updated: Apr 12 2022 at 19:14 UTC