feat(ocr) - route fixed, saving done

This commit is contained in:
2025-09-05 00:17:18 +05:30
parent 399c47dcfd
commit 62834f6eb9
11 changed files with 279 additions and 54 deletions

View File

@@ -52,7 +52,7 @@ export interface InputServiceLine {
export type ClaimWithServiceLines = Claim & {
serviceLines: {
id: number;
claimId: number;
claimId: number | null;
procedureCode: string;
procedureDate: Date;
oralCavityArea: string | null;

View File

@@ -74,7 +74,7 @@ export type PaymentWithExtras = Prisma.PaymentGetPayload<{
};
};
updatedBy: true;
patient: true;
patient: true;
};
}> & {
patientName: string;
@@ -99,3 +99,18 @@ export const newTransactionPayloadSchema = z.object({
});
export type NewTransactionPayload = z.infer<typeof newTransactionPayloadSchema>;
// OCR Payment - row
export interface OcrRow {
patientName: string;
insuranceId: string | number;
icn?: string | null;
procedureCode: string;
toothNumber?: string | null;
toothSurface?: string | null;
procedureDate: string | null;
totalBilled: number;
totalAllowed?: number;
totalPaid: number;
sourceFile?: string | null;
}