-
Notifications
You must be signed in to change notification settings - Fork 489
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
Adds support for archiving medicine administrations #6311
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
✅ Deploy Preview for care-egov-staging ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
Passing run #1351 ↗︎
Details:
Review all test suite changes for PR #6311 ↗︎ |
👋 Hi, @rithviknishad, This message is automatically generated by prince-chrismc/label-merge-conflicts-action so don't hesitate to report issues/improvements there. |
👋 Hi, @rithviknishad, This message is automatically generated by prince-chrismc/label-merge-conflicts-action so don't hesitate to report issues/improvements there. |
currently, only the medicine administration is getting archived, but co-related note is still active in the timeline, should be keep it or change it { Discussion on EOD } other than that, PR looks good to me |
As per discussion, the administration comment should be shown along with the administration event itself instead of a seperate event. And it should be greyed out too. |
Closing as continued in #6396 |
WHAT
🤖 Generated by Copilot at fa76e7f
This pull request adds a new feature to show a timeline of events for each prescription in the medicine administration module. It also improves the Redux actions and the API integration for managing and archiving administrations. It modifies the
PrescriptionAdministrationsTable
,actions
,api
, andmodels
modules, and creates a new componentMedicineAdministrationEventsTimeline
.Required Backends
Proposed Changes
@coronasafe/care-fe-code-reviewers @coronasafe/code-reviewers
Merge Checklist
HOW
🤖 Generated by Copilot at fa76e7f
MedicineAdministrationEventsTimeline
to render a timeline of events for a prescription (link)MedicineAdministrationRecord
to include archiving properties and make some properties required (link)PrescriptionAdministrationsTable
and use it to show the history of events for each prescription in a modal dialog (link, link, link)archived
to thePrescriptionRow
component state to filter out archived administrations from the table view (link)PrescriptionRow
component was rendered outside of a table row element (link)AdministrationCell
component to simplify the logic for discontinued prescriptions and render a stack of icons for multiple administrations or discontinuation (link)AdministrationCell
component, as the details are shown in the timeline component (link, link)PrescriptionActions
object to make theobj
parameter of theadminister
action partial and add a new actionarchive
for archiving an administration (link, link)archiveAdministration
to theroutes
object for the API endpoint for archiving an administration (link)