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

fix: add action and recommend discharge data on patient consultation page #5347

Merged
merged 3 commits into from
Oct 17, 2023

Conversation

aeswibon
Copy link
Member

@aeswibon aeswibon commented Apr 17, 2023

Bug Fix

WHAT

🤖 Generated by Copilot at ebd64a0

This pull request implements the telemedicine action feature for patients, which allows doctors to recommend discharging a patient from the facility. It removes the recommend discharge option from the daily rounds form, adds the action property to the patient model, and displays the action in the patient info card. It also improves the UI of the patient info card.

Proposed Changes

  • Added action and recommend discharge tag

Associated Issue

Screenshot

image

@coronasafe/care-fe-code-reviewers @coronasafe/code-reviewers

Merge Checklist

  • Add specs that demonstrate bug/test a new feature.
  • Update product documentation
  • Ensure that UI text is kept in I18n files
  • Prep the screenshot or demo video for the changelog entry, and attach it to issue
  • Request for Peer Reviews
  • Completion of QA

HOW

🤖 Generated by Copilot at ebd64a0

  • Remove the recommend discharge option from the daily rounds form for a patient (link, link, link, link, link)
  • Add the action property to the patient object to store the id of the action taken by a telemedicine doctor for a patient (link)
  • Display the action taken by a telemedicine doctor for a patient, if any, in a badge in the PatientInfoCard component, using the TELEMEDICINE_ACTIONS constant (link, link)
  • Add a new option to the TELEMEDICINE_ACTIONS constant with an id of 90 and a text and desc of "DISCHARGE_RECOMMENDED" (link)

@vercel
Copy link

vercel bot commented Apr 17, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
care-storybook ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 29, 2023 11:08am

@netlify
Copy link

netlify bot commented Apr 17, 2023

Deploy Preview for care-egov-staging ready!

Name Link
🔨 Latest commit 473ad85
🔍 Latest deploy log https://app.netlify.com/sites/care-egov-staging/deploys/6516b003514da30008d465bb
😎 Deploy Preview https://deploy-preview-5347--care-egov-staging.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@github-actions
Copy link

github-actions bot commented May 4, 2023

👋 Hi, @cp-Coder,
Conflicts have been detected against the base branch. Please rebase your branch against the base branch.


This message is automatically generated by prince-chrismc/label-merge-conflicts-action so don't hesitate to report issues/improvements there.

@github-actions github-actions bot added the merge conflict pull requests with merge conflict label May 4, 2023
@aeswibon aeswibon removed the merge conflict pull requests with merge conflict label May 4, 2023
@sonarcloud
Copy link

sonarcloud bot commented May 4, 2023

SonarCloud Quality Gate failed.    Quality Gate failed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
28.8% 28.8% Duplication

@github-actions github-actions bot added the merge conflict pull requests with merge conflict label Jul 5, 2023
@github-actions
Copy link

github-actions bot commented Jul 5, 2023

👋 Hi, @cp-Coder,
Conflicts have been detected against the base branch. Please rebase your branch against the base branch.


This message is automatically generated by prince-chrismc/label-merge-conflicts-action so don't hesitate to report issues/improvements there.

@nihal467
Copy link
Member

nihal467 commented Aug 2, 2023

@cp-Coder clear the merge conflict

@aeswibon aeswibon removed the merge conflict pull requests with merge conflict label Aug 4, 2023
@github-actions github-actions bot added the merge conflict pull requests with merge conflict label Aug 8, 2023
@github-actions
Copy link

github-actions bot commented Aug 8, 2023

👋 Hi, @cp-Coder,
Conflicts have been detected against the base branch. Please rebase your branch against the base branch.


This message is automatically generated by prince-chrismc/label-merge-conflicts-action so don't hesitate to report issues/improvements there.

@aeswibon aeswibon removed the merge conflict pull requests with merge conflict label Sep 4, 2023
@aeswibon aeswibon removed the merge conflict pull requests with merge conflict label Sep 19, 2023
@github-actions github-actions bot added the merge conflict pull requests with merge conflict label Sep 26, 2023
@github-actions
Copy link

👋 Hi, @cp-Coder,
Conflicts have been detected against the base branch. Please rebase your branch against the base branch.


This message is automatically generated by prince-chrismc/label-merge-conflicts-action so don't hesitate to report issues/improvements there.

@nihal467
Copy link
Member

nihal467 commented Sep 29, 2023

@cp-Coder
image
image

  • once you create a log-update with a action "specialist required" and try to create a second log-update for the same patient, the whole code crashes

@nihal467
Copy link
Member

nihal467 commented Oct 3, 2023

Functionality LGTM @rithviknishad @khavinshankar can you review it

@khavinshankar khavinshankar merged commit 362003c into coronasafe:develop Oct 17, 2023
32 of 33 checks passed
rithviknishad pushed a commit that referenced this pull request Oct 17, 2023
…page (#5347)

* fix(daily_round): added recommend_discharge as action

* fix: rebased the branch
Ashesh3 pushed a commit that referenced this pull request Oct 20, 2023
…page (#5347)

* fix(daily_round): added recommend_discharge as action

* fix: rebased the branch
Ashesh3 pushed a commit that referenced this pull request Oct 23, 2023
…page (#5347)

* fix(daily_round): added recommend_discharge as action

* fix: rebased the branch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants