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 <noreply@anthropic.com>
This commit is contained in:
@@ -2149,6 +2149,7 @@ export function ClaimForm({
|
||||
"Composite Fillings (Back)",
|
||||
"Pedo",
|
||||
]}
|
||||
excludeIds={["simpleExtraction", "babyTeethExtraction"]}
|
||||
onRegularCombo={(comboKey) => {
|
||||
setForm((prev) => {
|
||||
const next = applyComboToForm(
|
||||
|
||||
@@ -101,9 +101,11 @@ export function DirectComboButtons({
|
||||
export function RegularComboButtons({
|
||||
onRegularCombo,
|
||||
excludeCategories,
|
||||
excludeIds,
|
||||
}: {
|
||||
onRegularCombo: (comboKey: string) => void;
|
||||
excludeCategories?: string[];
|
||||
excludeIds?: string[];
|
||||
}) {
|
||||
return (
|
||||
<div className="space-y-4 mt-8">
|
||||
@@ -114,7 +116,7 @@ export function RegularComboButtons({
|
||||
</div>
|
||||
|
||||
<div className="flex flex-wrap gap-1">
|
||||
{ids.map((id) => {
|
||||
{ids.filter((id) => !excludeIds?.includes(id)).map((id) => {
|
||||
const b = PROCEDURE_COMBOS[id];
|
||||
if (!b) return null;
|
||||
|
||||
|
||||
@@ -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"],
|
||||
|
||||
Reference in New Issue
Block a user