@Search
public List<Questionnaire> searchByName(@RequiredParam(name = Questionnaire.SP_TITLE) StringParam name) {
ArrayList<Questionnaire> retVal = new ArrayList<>();
for (int i = 0; i < db.size(); i++) {
if (db.get(i).getName().equals(name.toString()) || db.get(i).getTitle().equals(name.toString())) {
retVal.add(db.get(i));
}
}
return retVal;
}
Bundle response = client.search()
.forResource(Questionnaire.class)
.where(Questionnaire.TITLE.matchesExactly().value("LifelinesQuestionnaire1part1"))
.returnBundle(Bundle.class)
.execute();
System.out.println(response.toString());
Exception in thread "main" ca.uhn.fhir.rest.server.exceptions.InternalErrorException: HTTP 500 Internal Server Error: Failed to call access method at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:423) at ca.uhn.fhir.rest.server.exceptions.BaseServerResponseException.newInstance(BaseServerResponseException.java:301) at ca.uhn.fhir.rest.client.impl.BaseClient.invokeClient(BaseClient.java:323) at ca.uhn.fhir.rest.client.impl.GenericClient$BaseClientExecutable.invoke(GenericClient.java:448) at ca.uhn.fhir.rest.client.impl.GenericClient$SearchInternal.execute(GenericClient.java:1776) at com.phellowseven.sparrot.client.dev_testSearcher.main(dev_testSearcher.java:53)--
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+unsubscribe@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/bca682eb-23a3-4b00-be59-d806c5440b54%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to hapi-fhir+...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to hapi-fhir+unsubscribe@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/44711b0e-bfcc-4572-9134-e9cb75990a77%40googlegroups.com.
<OperationOutcome xmlns="http://hl7.org/fhir"><issue><severity value="error"></severity><code value="processing"></code><diagnostics value="Invalid request: The FHIR endpoint on this server does not know how to handle GET operation[Questionnaire] with parameters [[name]]"></diagnostics></issue></OperationOutcome>