-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
(feat) Patient name sorting #76
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for working on this, @icrc-psousa, I've left some suggestions.
src/group-form-entry-workflow/attendance-table/AttendanceTable.tsx
Outdated
Show resolved
Hide resolved
Thanks for your input @denniskigen , I've made the suggested changes. I've also fixed the sorting on the modal not to consider the patient id so that the patient list order is always the same. |
const getPatients = async (uuids) => { | ||
return await Promise.all(uuids.map((uuid) => fetchCurrentPatient(uuid))); | ||
}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note that the async
and await
here are superfluous.
Requirements
Summary
When creating a group, no specific order for the patients is explicitly defined. Initially, the order established during the creation is maintained for the first session. However, for subsequent sessions, the order of patients changes, following the sequence in which they are retrieved from the database.
With this development the order of the patients within a group will always be alphabetical.
Screenshots