From 95ce4c2fb4bbfe31c1e28cf51f04b545d6b90b33 Mon Sep 17 00:00:00 2001 From: Gitead Date: Mon, 18 May 2026 23:40:44 -0400 Subject: [PATCH] feat: restore Simple/Baby Teeth EXT combos, hide from PreAuth only - Restore simpleExtraction (D7140), surgicalExtraction (D7210), babyTeethExtraction (D7111) - Add excludeIds prop to RegularComboButtons for per-button filtering - PreAuth tab excludes Simple EXT and Baby Teeth EXT; Insurance Claim tab shows all Co-Authored-By: Claude Sonnet 4.6 --- .../src/components/claims/claim-form.tsx | 1 + .../procedure/procedure-combo-buttons.tsx | 4 +++- apps/Frontend/src/utils/procedureCombos.ts | 18 ++++++++++++++++++ 3 files changed, 22 insertions(+), 1 deletion(-) diff --git a/apps/Frontend/src/components/claims/claim-form.tsx b/apps/Frontend/src/components/claims/claim-form.tsx index b49804e9..c6917a37 100755 --- a/apps/Frontend/src/components/claims/claim-form.tsx +++ b/apps/Frontend/src/components/claims/claim-form.tsx @@ -2149,6 +2149,7 @@ export function ClaimForm({ "Composite Fillings (Back)", "Pedo", ]} + excludeIds={["simpleExtraction", "babyTeethExtraction"]} onRegularCombo={(comboKey) => { setForm((prev) => { const next = applyComboToForm( diff --git a/apps/Frontend/src/components/procedure/procedure-combo-buttons.tsx b/apps/Frontend/src/components/procedure/procedure-combo-buttons.tsx index 04cf5d47..610d19b8 100755 --- a/apps/Frontend/src/components/procedure/procedure-combo-buttons.tsx +++ b/apps/Frontend/src/components/procedure/procedure-combo-buttons.tsx @@ -101,9 +101,11 @@ export function DirectComboButtons({ export function RegularComboButtons({ onRegularCombo, excludeCategories, + excludeIds, }: { onRegularCombo: (comboKey: string) => void; excludeCategories?: string[]; + excludeIds?: string[]; }) { return (
@@ -114,7 +116,7 @@ export function RegularComboButtons({
- {ids.map((id) => { + {ids.filter((id) => !excludeIds?.includes(id)).map((id) => { const b = PROCEDURE_COMBOS[id]; if (!b) return null; diff --git a/apps/Frontend/src/utils/procedureCombos.ts b/apps/Frontend/src/utils/procedureCombos.ts index 22bb5f2c..f2e5026e 100755 --- a/apps/Frontend/src/utils/procedureCombos.ts +++ b/apps/Frontend/src/utils/procedureCombos.ts @@ -271,6 +271,21 @@ export const PROCEDURE_COMBOS: Record< label: "Deep Cleaning", codes: ["D4341"], }, + simpleExtraction: { + id: "simpleExtraction", + label: "Simple EXT", + codes: ["D7140"], + }, + surgicalExtraction: { + id: "surgicalExtraction", + label: "Surg EXT", + codes: ["D7210"], + }, + babyTeethExtraction: { + id: "babyTeethExtraction", + label: "Baby Teeth EXT", + codes: ["D7111"], + }, fullBonyExtraction: { id: "fullBonyExtraction", label: "Full Bony EXT", @@ -346,6 +361,9 @@ export const COMBO_CATEGORIES: Record< Prosthodontics: ["crown"], Periodontics: ["deepCleaning"], Extractions: [ + "simpleExtraction", + "surgicalExtraction", + "babyTeethExtraction", "fullBonyExtraction", ], Orthodontics: ["orthPA"],