Skip to content
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) Add revised medications table to the medications dashboard #1771

Open
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

arodidev
Copy link
Contributor

@arodidev arodidev commented Apr 2, 2024

Requirements

  • This PR has a title that briefly describes the work done including the ticket number. If there is a ticket, make sure your PR title includes a conventional commit label. See existing PR titles for inspiration.
  • My work conforms to the OpenMRS 3.0 Styleguide and design documentation.
  • My work includes tests or is validated by existing tests.

Summary

This PR introduces a table which tracks revised medications within the medications dashboard. The data presented in the table differs in that it is filtered based on the action property to only return data where action = 'REVISE'.

const revisedPatientOrders = patientOrders?.filter((order) => order.action == 'REVISE');

While this PR lacks a corresponding ticket, it addresses a critical requirement for Ampath by enhancing their capacity to identify and revise medications that were dispensed with errors or inaccuracies.

The table component has been slotted into the patient-chart-medications-dashboard-slot for configurability's sake.

Screenshots

Screenshot 2024-04-02 at 09 14 00 Screenshot 2024-04-02 at 11 05 37

Related Issue

Other

Applies same logic as the active medications table, although this table is filtered based on the `action` property from the fetched data object and only displays revised orders.
@arodidev arodidev changed the title Add revised medications table to the medications dashboard (feat) Add revised medications table to the medications dashboard Apr 2, 2024
@ojwanganto
Copy link

@arodidev thanks for this work. I am wondering how this is eventually used on the ground. My raw interpretation of this task was to highlight medications which have been revised at dispensing or something of the sort and for that you'd need to highlight what exactly was changed/revised i.e. quantity, duration, etc. As it is now, one will still be asking how the revised order is different from the original one. Do you think this is a valid case?

@arodidev
Copy link
Contributor Author

arodidev commented Apr 2, 2024

@arodidev thanks for this work. I am wondering how this is eventually used on the ground. My raw interpretation of this task was to highlight medications which have been revised at dispensing or something of the sort and for that you'd need to highlight what exactly was changed/revised i.e. quantity, duration, etc. As it is now, one will still be asking how the revised order is different from the original one. Do you think this is a valid case?

Hello @ojwanganto, yes I do agree that this is a valid case made. During the discussions phase we did not fully discuss what this would look like in its final form, hence I opted for an initial MVP which could be build upon further down the line. I am open to further discussions on what this could look like as a final product and how it can best be modified to serve the user's needs.
cc: @Rugute

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants