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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user