openreferral / api-specification

This is the working repository for Open Referral's Human Services Data API protocols.
https://openreferral.readthedocs.io/en/latest/hsda/
Other
29 stars 13 forks source link

Search filter parameters #101

Closed MikeThacker1 closed 3 years ago

MikeThacker1 commented 4 years ago

I believe parameters to filter results are missing from the current API version. We're trying to standardise on the following for services in the UK:

NeilMcKLogic commented 4 years ago

Hey @MikeThacker1 and @greggish I provided a considerable amount of feedback on search several years ago. I did a quick search for "search" on the search page (see what I did there? :-) and found a number of issues being discussed.

I still think this is the biggest barrier to HSDA adoption and interoperability, especially because it would not be hard to formulate a spec and search is a primary use case for a social services API. At the time the standards body effectively chose to defer the topic until later (to my disappointment) and as far as I know, no one has taken it back up again.

Mike this list is a good start but I'd propose wading through those topics from a few years ago to perhaps consolidate the ideas and renew the efforts. From memory, here are the most salient ones to consider:

https://github.com/openreferral/api-specification/issues/62 https://github.com/openreferral/api-specification/issues/84

Neil

MikeThacker1 commented 4 years ago

Thanks @NeilMcKechnie. It's normal that, as soon as I've posted an issue, someone points to it existing elsewhere (despite me having searched first). :-) #84 seems to provide a good summary of search points and you raise some important issues that we have not addressed in the UK, like sort order.

I fear that this is such big issue that individual implementations will only implement parts for search dependent on their own use cases. So we need a common framework for defining search (and/or filtering) and a way of knowing which parts are implemented by each API endpoint.

I'll try to steer UK implementations that try to be interoperable to follow any clear recommendation here until we get a formal search sprint.

kinlane commented 3 years ago

I am proposing we adopt an approach similar to GitHubs: