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

add option to manually specify regenerate summary request #5989

Merged
merged 3 commits into from
Aug 3, 2023

Conversation

sainak
Copy link
Member

@sainak sainak commented Aug 2, 2023

WHAT

🤖 Generated by Copilot at 0a5b38f

This change enhances the discharge summary modal feature by adding a regenerate option and improving the UI and logic. This allows the user to update the discharge summary with the latest data and preview it before downloading it. The change affects the file src/Components/Facility/DischargeSummaryModal.tsx.

Proposed Changes

@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 screenshot or demo video for changelog entry, and attach it to issue.
  • Request for Peer Reviews
  • Completion of QA

HOW

🤖 Generated by Copilot at 0a5b38f

  • Add a checkbox input to the discharge summary modal to allow the user to regenerate the discharge summary (link, link)
  • Define new state variable and functions to handle the regeneration and preview of the discharge summary (link, link)
  • Modify the existing handleDownload function to check the user's choice and call the appropriate function (link, link)
  • Refactor the existing logic of generating and previewing the discharge summary into a new function downloadDischargeSummary (link)

Signed-off-by: Aakash Singh <mail@singhaakash.dev>
@sainak sainak requested a review from a team August 2, 2023 13:35
@sainak sainak requested a review from a team as a code owner August 2, 2023 13:35
@sainak sainak requested a review from mathew-alex August 2, 2023 13:35
@vercel
Copy link

vercel bot commented Aug 2, 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 Aug 3, 2023 5:38am

@netlify
Copy link

netlify bot commented Aug 2, 2023

Deploy Preview for care-egov-staging ready!

Name Link
🔨 Latest commit f5f9fa1
🔍 Latest deploy log https://app.netlify.com/sites/care-egov-staging/deploys/64cb3d1191da1c000764f976
😎 Deploy Preview https://deploy-preview-5989--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.

Signed-off-by: Aakash Singh <mail@singhaakash.dev>
@nihal467
Copy link
Member

nihal467 commented Aug 3, 2023

LGTM

@khavinshankar khavinshankar merged commit 657ec42 into develop Aug 3, 2023
29 checks passed
@khavinshankar khavinshankar deleted the sainak/discharge-summary-fixes branch August 3, 2023 06:33
@github-actions
Copy link

github-actions bot commented Aug 3, 2023

@sainak We truly appreciate your efforts. Thank you for taking the time to contribute; this is a very valuable contribution to us 🥇. We always welcome your contribution 🙂, so feel free to contribute to anything anytime, and never lose that spirit of innovation 🙌.

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

Successfully merging this pull request may close these issues.

BUG: Multiple copy of discharge summary for non-discharge patients
3 participants