Stream: hapi
Topic: GET with ID different than GET with query string
Christopher Schuler (Mar 01 2018 at 06:12):
Using HAPI 3.1.0 JPA Server.
The scenario is that I load a resource, then run an operation that fetches the resource using a query string (http://measure.eval.kanvix.com/cqf-ruler/baseDstu3/Observation?patient=Patient/Patient-276&code=20005) - everything is fine at this point. However, when I update the resource and run the operation again, it seems that the GET with the query string fetches the pre-updated resource instead of the updated one. However, when I GET the resource by ID (http://measure.eval.kanvix.com/cqf-ruler/baseDstu3/Observation/abnormal-creatinine), it returns the updated resource.
Here is how I am fetching the resource with a query string:
Bundle prefetch = FhirContext.forDstu3() .newRestfulGenericClient(fhirServerEndpoint) .search() .byUrl(searchUrl) .returnBundle(Bundle.class) .execute();
Any ideas what I am doing wrong here?
Christopher Schuler (Mar 01 2018 at 18:12):
Figured it out... user error.
Last updated: Apr 12 2022 at 19:14 UTC