Stream: hapi
Topic: Search
Keith Boone (Mar 11 2019 at 14:16):
In creating my HAPI server, I'm trying to discover if there is a way that I can have a resource structure aware search entry point that just handles search parameters in a dynamic way, rather than having to change my method signature for @Search operations. I can see that there is a way to express allowUnknownParams=true to tell the URL parser to allow unknown parameters, so that seems like a good starting point. What I'm wondering is if there is code I can reuse in the Server to parse the URL parameters given in search.
Jens Villadsen (Mar 11 2019 at 14:19):
You can get the unknown parameters from either the RequestDetails or the HttpServletRequest.
Jens Villadsen (Mar 11 2019 at 14:20):
There are loads of code snippets out there that parses HttpServletRequests
Keith Boone (Mar 11 2019 at 14:22):
Yeah, I get that (I've been using HttpServletRequest all the time for context management). What I want to know is more about how HAPI converts request paramters to TokenParam, StringAndListParam, et cetera. I'm certain HAPI already does this, and I can certainly find the code that does it. What I'm asking is if there's some code that's worthy of reuse in the server to attempt this with, or should just I start from scratch.
Jens Villadsen (Mar 11 2019 at 14:24):
They are unknown parameters - so how would you know how to differentiate between them?
dsh (Jan 20 2020 at 22:40):
Is there any way to search Patients that have not been discharged? I can't figure out how to filter by Encounter.diagnosis.use
parameter
dsh (Jan 20 2020 at 23:36):
@Grahame Grieve ^ any tips ?
Grahame Grieve (Jan 21 2020 at 10:51):
it doesn't look like the spec defines a way to do this
Keith Boone (Jan 21 2020 at 14:31):
Wouldn’t that be patients having an encounter that is both in-patient (Encounter.class) and in-progress (Encounter.status)?
dsh (Jan 22 2020 at 05:50):
is there an easy way to list search parameters supported by HAPI FHIR JPA Server ? asked here https://chat.fhir.org/#narrow/stream/179166-implementers/topic/Implementing.20.20_sort/near/186255988
dsh (Jan 24 2020 at 05:35):
Is there a way to search/filter Encounter only related to Admitting Diagnosis ? I have tried diagnosis.use=DD
, diagnosis:use=DD
but can't figure it out
Arno Appenzeller (Oct 06 2020 at 09:31):
Hi,
Maybe a bit odd question:
Can HAPI only return a set of attributes of the requested resources? For example I want the list of cities of all my Patients on the HAPI FHIR server. I looked it up on the FHIR Search references but didn't find something that can do that. Maybe it's something you should process on the client side?
Last updated: Apr 12 2022 at 19:14 UTC