Issue 7794. Add the ability to 'Quick add' Procedure CPT AI recommendations#8483
Open
RomanGolchuk wants to merge 3 commits into
Open
Issue 7794. Add the ability to 'Quick add' Procedure CPT AI recommendations#8483RomanGolchuk wants to merge 3 commits into
RomanGolchuk wants to merge 3 commits into
Conversation
Contributor
There was a problem hiding this comment.
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+ActionsListUI that supports quick-adding recommended CPT codes. - Removes procedure-CPT-specific rendering support from the generic
AiSuggestioncomponent. - Adds new
data-testidhelpers 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.
saewitz
reviewed
Jul 1, 2026
| loading={loadingSuggestions} | ||
| /> | ||
| )} | ||
| <AiSectionContainer isLoading={loadingSuggestions}> |
Contributor
There was a problem hiding this comment.
The ternaries being all nested makes this difficult to understand
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
#7794