Open cspielmann opened 3 years ago
@cspielmann can you please try to recreate this on the public server ( hapi.fhir.org ) and link to the relevant resources?
Unfortunately issue still present in 5.4. : search by patient Id does not work I Will test with a public server as a show case.
Hello, in version 5.6 of https://hapi.fhir.org/ I have an error 500 on the following query
_GETÂ http://hapi.fhir.org/baseR4/Consent?patient=Patient/2641330&_pretty=true_
{ "resourceType": "OperationOutcome", "text": { "status": "generated", "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre/></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>" }, "issue": [ { "severity": "error", "code": "processing" } ] }
GETÂ http://hapi.fhir.org/baseR4/Patient/2641330?_pretty=true GET http://hapi.fhir.org/baseR4/Consent/2641331?_pretty=true
error 500 on search by patientId
`// Create a client (only needed once) FhirContext ctx = new FhirContext(); IGenericClient client = ctx.newRestfulGenericClient("http://hapi.fhir.org/baseR4");
// Invoke the client Bundle bundle = client.search().forResource(Consent.class) .where(new ReferenceClientParam("patient").hasId("Patient/2641330")) .prettyPrint() .execute();`
Hello, I have a fancy behavior in the search of Consent resources.
Describe the bug a Consent resource is not found when querying it by Patient http://localhost:8880/hapi-fhir-jpaserver/fhir/Consent?patient=Patient%2F34373 replies with 0 results whereas a query by practitioner works and returns the Consent that is assigned to this patient and this practitioner.
To Reproduce Steps to reproduce the behavior:
Expected behavior Lookup by Patient (34373)
Lookup by Practitioner 34371 We see that is replies with the consent assigned to patient (34373)
Environment (please complete the following information):