fixed combos, and pdf format updated

This commit is contained in:
2025-08-29 01:30:53 +05:30
parent 4c818d511b
commit 1d13f1a73a
4 changed files with 84 additions and 29 deletions

View File

@@ -1,6 +1,6 @@
export const PROCEDURE_COMBOS: Record<
string,
{ id: string; label: string; codes: string[] }
{ id: string; label: string; codes: string[]; toothNumbers?: (string | null)[] }
> = {
childRecall: {
id: "childRecall",
@@ -16,6 +16,7 @@ export const PROCEDURE_COMBOS: Record<
id: "adultRecall",
label: "Adult Recall",
codes: ["D0120", "D0220", "D0230", "D0274", "D1110"],
toothNumbers: [null, "9", "24", null, null], // only these two need values
},
newChildPatient: {
id: "newChildPatient",

View File

@@ -251,7 +251,10 @@ export function applyComboToForm<T extends ClaimFormLike>(
procedureCode: code,
procedureDate: lineDate,
oralCavityArea: original?.oralCavityArea ?? "",
toothNumber: original?.toothNumber ?? "",
toothNumber:
preset.toothNumbers?.[j] ??
original?.toothNumber ??
"",
toothSurface: original?.toothSurface ?? "",
totalBilled: price,
totalAdjusted: new Decimal(0),