Skip to content

Issue 7794. Add the ability to 'Quick add' Procedure CPT AI recommendations#8483

Open
RomanGolchuk wants to merge 3 commits into
developfrom
rgolchuk/otr-2615-add-the-ability-to-quick-add-procedure-cpt-ai
Open

Issue 7794. Add the ability to 'Quick add' Procedure CPT AI recommendations#8483
RomanGolchuk wants to merge 3 commits into
developfrom
rgolchuk/otr-2615-add-the-ability-to-quick-add-procedure-cpt-ai

Conversation

@RomanGolchuk

Copy link
Copy Markdown
Contributor

@RomanGolchuk RomanGolchuk self-assigned this Jul 1, 2026
@RomanGolchuk RomanGolchuk marked this pull request as ready for review July 1, 2026 11:50
@RomanGolchuk RomanGolchuk requested a review from Copilot July 1, 2026 11:50

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds “quick add” functionality for AI-recommended Procedure CPT codes on the in-person Procedures page, aligning procedure CPT recommendations with existing quick-add workflows used in other visit sections.

Changes:

  • Replaces the prior CPT recommendation rendering with an AiSectionContainer + ActionsList UI that supports quick-adding recommended CPT codes.
  • Removes procedure-CPT-specific rendering support from the generic AiSuggestion component.
  • Adds new data-testid helpers for recommended CPT rows and quick-add buttons.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.

File Description
apps/ehr/src/features/visits/in-person/pages/ProceduresNew.tsx Renders AI CPT recommendations with per-row quick-add actions and “already added” state.
apps/ehr/src/features/visits/in-person/components/AiSuggestion.tsx Removes obsolete procedureSuggestions prop/path now that procedure CPT recommendations are rendered elsewhere.
apps/ehr/src/constants/data-test-ids.ts Adds test IDs for recommended CPT code rows and quick-add buttons.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread apps/ehr/src/features/visits/in-person/pages/ProceduresNew.tsx Outdated
Comment thread apps/ehr/src/features/visits/in-person/pages/ProceduresNew.tsx Outdated
Comment thread apps/ehr/src/features/visits/in-person/pages/ProceduresNew.tsx Outdated
loading={loadingSuggestions}
/>
)}
<AiSectionContainer isLoading={loadingSuggestions}>

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The ternaries being all nested makes this difficult to understand

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

refactored
7b9d093

@RomanGolchuk RomanGolchuk requested a review from saewitz July 3, 2026 12:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants