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

POC: AI discharge summary #6401

Closed
wants to merge 5 commits into from
Closed

POC: AI discharge summary #6401

wants to merge 5 commits into from

Conversation

Ashesh3
Copy link
Member

@Ashesh3 Ashesh3 commented Oct 5, 2023

WHAT

🤖 Generated by Copilot at b8d845c

This pull request adds a new feature to the ConsultationDetails component, which allows the user to view an AI-generated discharge summary for a consultation. It also enhances the AccordionV2 component to support custom prefixes in the titles. It modifies the generateDischargeSummary action and the DischargeSummaryModal component to handle the new feature.

Generate patient discharge summary with AI

HOW

🤖 Generated by Copilot at b8d845c

  • Import and render the DischargeAISummaryModal component in the ConsultationDetails component, passing the consultation data, the show state, and the onClose handler as props (link, link)
  • Add a new state variable and a setter function to control the visibility of the DischargeAISummaryModal (link)
  • Add a new button to trigger the setOpenAIDischargeSummaryDialog function with true as the argument, to show the DischargeAISummaryModal (link)
  • Modify the generateDischargeSummary action to accept an optional is_ai parameter, to indicate whether the summary is generated by AI or not (link)
  • Use the generateDischargeSummary action with the is_ai parameter set to true in the DischargeAISummaryModal component, to fetch the AI summary from the backend (link, link, link)
  • Add a new optional prop prefix to the AccordionV2 component, which allows passing custom elements to be rendered before the accordion title (link, link)
    • Define the prefix prop in the AccordionV2 component interface, with the type React.ReactNode (link)
    • Render the prefix prop inside the accordion header, if it is provided, using the && operator (link)
  • Remove an empty line from the DischargeSummaryModal component, which is a minor formatting change (link)

@Ashesh3 Ashesh3 added the POC Proof of concept label Oct 5, 2023
@Ashesh3 Ashesh3 requested a review from a team October 5, 2023 09:53
@Ashesh3 Ashesh3 requested a review from a team as a code owner October 5, 2023 09:53
@Ashesh3 Ashesh3 requested a review from bodhish October 5, 2023 09:53
@vercel
Copy link

vercel bot commented Oct 5, 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 Oct 12, 2023 10:30am

@netlify
Copy link

netlify bot commented Oct 5, 2023

Deploy Preview for care-egov-staging ready!

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

@Ashesh3 Ashesh3 marked this pull request as draft October 5, 2023 09:53
@cypress
Copy link

cypress bot commented Oct 5, 2023

Passing run #1402 ↗︎

0 78 0 0 Flakiness 0

Details:

POC: AI discharge summary
Project: CARE Commit: da7d345629
Status: Passed Duration: 02:41 💡
Started: Oct 12, 2023 10:33 AM Ended: Oct 12, 2023 10:36 AM

Review all test suite changes for PR #6401 ↗︎

This reverts commit 65faa6a.
@netlify
Copy link

netlify bot commented Oct 5, 2023

Deploy Preview for ai-care-poc ready!

Name Link
🔨 Latest commit cd5c54c
🔍 Latest deploy log https://app.netlify.com/sites/ai-care-poc/deploys/651ea338e433c90008ea3f0e
😎 Deploy Preview https://deploy-preview-6401--ai-care-poc.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 github-actions bot added the merge conflict pull requests with merge conflict label Oct 12, 2023
@github-actions
Copy link

👋 Hi, @Ashesh3,
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 removed the merge conflict pull requests with merge conflict label Oct 12, 2023
@github-actions
Copy link

Hi, This pr has been automatically marked as stale because it has not had any recent activity. It will be automatically closed if no further activity occurs for 7 more days. Thank you for your contributions.

@github-actions github-actions bot added the stale label Oct 20, 2023
@github-actions
Copy link

Hi, @gigincg, @nihal467, @khavinshankar, @mathew-alex, This pr has been automatically closed because it has not had any recent activity. Thank you for your contributions. Feel free to repopen the pr.

@github-actions github-actions bot closed this Oct 28, 2023
@bodhish bodhish deleted the ai-discharge branch December 1, 2024 08:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
POC Proof of concept stale
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant