Is there documentation of how to create an extended operation that uses a resource parameter? Does anyone have a working example? It looks like there are only extended operations with simple parameters here:
I've tried a bunch of different things on the server side and on the client, but I haven't gotten it to work yet. Currently my Location resource provider has this method:
@Operation(name="$match")
public Bundle match(final @OperationParam(name="input") Location toFind) {
I've been using an identical annotation-driven client interface. I've tried invoking it like this:
LocationClient client = ctx.newRestfulClient(LocationClient.class, url);
Location loc = new Location();
loc.setName("Sample Clinic");
run(client.match(loc));
ca.uhn.fhir.rest.server.exceptions.InvalidRequestException: HTTP 400 Bad Request: Invalid request: The FHIR endpoint on this server does not know how to handle POST operation[$match] with parameters [[]]
Am I don't something wrong on the server side or the client side (or both)?