--
You received this message because you are subscribed to the Google Groups "HAPI FHIR" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hapi-fhir+...@googlegroups.com.
To post to this group, send email to hapi...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/hapi-fhir/fdf9207a-8686-43b4-b1e8-3955c824bca9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
FWIW this is definitely possible in the regular (non JAX-RS) server. It's possible that there is a limitation in the JAX-RS module though..Cheers,James
On Wed, Jun 12, 2019 at 5:59 PM Maruthi chava <maruth...@gmail.com> wrote:
--Can't we have multiple @Search() methods in a class ?I have a situation to create two @Search() methods in a class.here is the illustration.@Path("/Resource")@Produces({ MediaType.APPLICATION_JSON, Constants.CT_FHIR_JSON, Constants.CT_FHIR_XML })public class ReportResourceProvider{....@Search()public List<Resource> getReportByPatient(@RequiredParam(name = Resource.SP_PATIENT) ReferenceParam patient,@RequiredParam(name = Resource.SP_VALUE_QUANTITY) String count,@RequiredParam(name = Resource.SP_IDENTIFIER) String startVal){...}@Search()public Resource searchRporteByEncounter(@RequiredParam(name = Resource.SP_ENCOUNTER ) ReferenceParam encounter{...}When I try to implement the same, I' getting the following exceptionjava.lang.IllegalArgumentException: Multiple Search Method Bindings Found
You received this message because you are subscribed to the Google Groups "HAPI FHIR" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hapi...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to hapi-fhir+...@googlegroups.com.
To post to this group, send email to hapi...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/hapi-fhir/1060a1c2-3aaf-4866-b28f-96993aee9ed8%40googlegroups.com.