Aidbox / Issues

Issue tracker for Aidbox FHIR backend by Health Samurai
7 stars 0 forks source link

Resource definition search - place exact match first #464

Open kzotoff opened 2 years ago

kzotoff commented 2 years ago

I need the following improvement

At resource list at /ui/console#/entities/Entity I can search through the list. But, for example, when searching for "Patient", I see many other resources which references Patients. I prefer to see exact match immediately at result list

KGOH commented 2 years ago

@kzotoff, hello. Is it only UX related issue?

For now can use FHIR Search API parameters in Aidbox UI resources tab

Default value of search on that tab is

_count=300&_sort=_id&_ilike=

and if you add Patient it will be:

_count=300&_sort=_id&_ilike=Patient

which means search for resources mentioning string "Patient", that's why you get all of these other resources besides Patient resource itself.

If you want to search for a specific resource, you can do:

_count=300&_sort=_id&_id=Patient

this request returns only Patient resource

The idea behind that is Aidbox UI doesn't hide or modify underlying REST API, thus all features available in Aidbox UI are also available via REST API

kzotoff commented 2 years ago

Yes, it is UX only. It tooks time to find exact resource at large list. Changing _ilike to _id is much better, but doesn't make the interface more "fluent".

github-actions[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had activity in the last 30 days. Please make sure you've added all the necessary details including clear description and severity level.

kzotoff commented 2 years ago

still actual

github-actions[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had activity in the last 30 days. Please make sure you've added all the necessary details including clear description and severity level.

kzotoff commented 2 years ago

still actual