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)",
|
"Composite Fillings (Back)",
|
||||||
"Pedo",
|
"Pedo",
|
||||||
]}
|
]}
|
||||||
|
excludeIds={["simpleExtraction", "babyTeethExtraction"]}
|
||||||
onRegularCombo={(comboKey) => {
|
onRegularCombo={(comboKey) => {
|
||||||
setForm((prev) => {
|
setForm((prev) => {
|
||||||
const next = applyComboToForm(
|
const next = applyComboToForm(
|
||||||
|
|||||||
@@ -101,9 +101,11 @@ export function DirectComboButtons({
|
|||||||
export function RegularComboButtons({
|
export function RegularComboButtons({
|
||||||
onRegularCombo,
|
onRegularCombo,
|
||||||
excludeCategories,
|
excludeCategories,
|
||||||
|
excludeIds,
|
||||||
}: {
|
}: {
|
||||||
onRegularCombo: (comboKey: string) => void;
|
onRegularCombo: (comboKey: string) => void;
|
||||||
excludeCategories?: string[];
|
excludeCategories?: string[];
|
||||||
|
excludeIds?: string[];
|
||||||
}) {
|
}) {
|
||||||
return (
|
return (
|
||||||
<div className="space-y-4 mt-8">
|
<div className="space-y-4 mt-8">
|
||||||
@@ -114,7 +116,7 @@ export function RegularComboButtons({
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div className="flex flex-wrap gap-1">
|
<div className="flex flex-wrap gap-1">
|
||||||
{ids.map((id) => {
|
{ids.filter((id) => !excludeIds?.includes(id)).map((id) => {
|
||||||
const b = PROCEDURE_COMBOS[id];
|
const b = PROCEDURE_COMBOS[id];
|
||||||
if (!b) return null;
|
if (!b) return null;
|
||||||
|
|
||||||
|
|||||||
@@ -271,6 +271,21 @@ export const PROCEDURE_COMBOS: Record<
|
|||||||
label: "Deep Cleaning",
|
label: "Deep Cleaning",
|
||||||
codes: ["D4341"],
|
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: {
|
fullBonyExtraction: {
|
||||||
id: "fullBonyExtraction",
|
id: "fullBonyExtraction",
|
||||||
label: "Full Bony EXT",
|
label: "Full Bony EXT",
|
||||||
@@ -346,6 +361,9 @@ export const COMBO_CATEGORIES: Record<
|
|||||||
Prosthodontics: ["crown"],
|
Prosthodontics: ["crown"],
|
||||||
Periodontics: ["deepCleaning"],
|
Periodontics: ["deepCleaning"],
|
||||||
Extractions: [
|
Extractions: [
|
||||||
|
"simpleExtraction",
|
||||||
|
"surgicalExtraction",
|
||||||
|
"babyTeethExtraction",
|
||||||
"fullBonyExtraction",
|
"fullBonyExtraction",
|
||||||
],
|
],
|
||||||
Orthodontics: ["orthPA"],
|
Orthodontics: ["orthPA"],
|
||||||
|
|||||||
Reference in New Issue
Block a user