Calling custom plugin for $lastn using Firely .Net SDK? #2173
-
Hi All, I'm having an issue calling a custom plugin for LastN I've made using the firely SDK and was wondering if anyone could give me some pointers. My FHIR server is using 2 custom plugins. Its using a facade plugin to point at our proprietary database and I've also added a custom LastN plugin to the pipeline to support calling $LastN on against Observations. This works fine for Http requests. however If I try to interact with the lastn operation via SDK I'm getting the issue described below: Example:
This hits the constructor of the ISearchRepository for my Firely facade plugin but doesn’t hit my custom Plugin.LastN constructor or method. The IApplicationBuilder configuration for my LastN plugin is as below and the App instance json on the Server has supported type operation has $lastn.
The error I get is
However if I do a Http Get such as below (RestClient in VsCode) the LastN plugin constructor and call method are being called and the endpoint is working as expected
Any tips as to what I'm doing wrong appreciated. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Apologies, after posting that I immediately spotted the mistake. Client.TypeOperation(Async) required useGET optional parameter to be true.
|
Beta Was this translation helpful? Give feedback.
Apologies, after posting that I immediately spotted the mistake. Client.TypeOperation(Async) required useGET optional parameter to be true.
fhirClient.TypeOperationAsync<Observation>("lastn", parameter, true);