msupply-foundation / open-msupply

Open mSupply represents our most recent advancement in the Logistics Management Information System (LMIS), expanding on more than two decades of development inherited from the well-established legacy of the original mSupply.
https://msupply.foundation/open-msupply/
Other
23 stars 15 forks source link

Patient search results: display in created date order #3642

Closed GaryWilletts closed 5 months ago

GaryWilletts commented 7 months ago

Is your feature request related to a problem? Please describe πŸ‘€

PLM in Sierra Leone paid for this to be done in mSupply mobile here https://github.com/msupply-foundation/mobile/issues/5395

We added a "Created date" column to the patient search results, default results order was newest created date at the top (but column header was clickable to reverse it if required).

The column seems very helpful in determining whether the returned patient record is the patient sitting in front of you when there are duplicate names (very common in some places).

Describe the solution you'd like 🎁

Something like that above. Could work with a store preference, can be always on if better.

Describe alternatives you've considered πŸ’­

Ignoring their request. If we do this they won't be able to roll out Open mSupply, they'll have to stick with mSupply mobile which will make everyone sad.

Additional context πŸ’Œ

Gary said we'd do this for free because it's small and they're good people (strategic decision will little real cost to us but lots of goodwill earned). PLM paid to have this done in mobile (now live) and will need this in Open mSupply before they roll out to more sites (planned for Q4 2024 or Q1 2025 approximately).

Moneyworks Jobcode 🧰

DhanyaHerath commented 6 months ago

@GaryWilletts where is the preference? I couldn't find it: image

DhanyaHerath commented 6 months ago

And should it be only for search results or also in the patient list?

mark-prins commented 6 months ago

Unable to find the preference - though I did find this:

image

The change in mobile is to add the created date column and sort by this by default

GaryWilletts commented 6 months ago

@DhanyaHerath @mark-prins I stand corrected - we added the column for everyone and did away with the store preference, as per Arjun's comment here https://github.com/msupply-foundation/mobile/issues/5395#issuecomment-1880524723

I've edited the issue description to match.

AnushaUp commented 5 months ago

πŸ§ͺ Testing

Tested in v2.1.0-rc1