You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.
Add a new feature to show the AI-generated discharge summary for a consultation (link, link, link, link, link, link, link, link)
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)
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.
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.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 theAccordionV2
component to support custom prefixes in the titles. It modifies thegenerateDischargeSummary
action and theDischargeSummaryModal
component to handle the new feature.Generate patient discharge summary with AI
HOW
🤖 Generated by Copilot at b8d845c
DischargeAISummaryModal
component in theConsultationDetails
component, passing the consultation data, the show state, and the onClose handler as props (link, link)DischargeAISummaryModal
(link)setOpenAIDischargeSummaryDialog
function withtrue
as the argument, to show theDischargeAISummaryModal
(link)generateDischargeSummary
action to accept an optionalis_ai
parameter, to indicate whether the summary is generated by AI or not (link)generateDischargeSummary
action with theis_ai
parameter set totrue
in theDischargeAISummaryModal
component, to fetch the AI summary from the backend (link, link, link)prefix
to theAccordionV2
component, which allows passing custom elements to be rendered before the accordion title (link, link)prefix
prop in theAccordionV2
component interface, with the typeReact.ReactNode
(link)prefix
prop inside the accordion header, if it is provided, using the&&
operator (link)DischargeSummaryModal
component, which is a minor formatting change (link)