Adds a new Settings → Advanced → Selenium Settings page where the office name (paymentGroupId) used in United/DentalHub portal dropdowns can be configured without touching code. Previously hardcoded as "Summit Dental Care"; now injected from DB into the three United workers at job dispatch. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
33 lines
1.1 KiB
TypeScript
33 lines
1.1 KiB
TypeScript
import * as z from 'zod';
|
|
import { PaymentStatusSchema } from '../../enums/PaymentStatus.schema';
|
|
// prettier-ignore
|
|
export const PaymentResultSchema = z.object({
|
|
id: z.number().int(),
|
|
claimId: z.number().int().nullable(),
|
|
patientId: z.number().int(),
|
|
userId: z.number().int(),
|
|
updatedById: z.number().int().nullable(),
|
|
npiProviderId: z.number().int().nullable(),
|
|
totalBilled: z.number(),
|
|
totalPaid: z.number(),
|
|
totalAdjusted: z.number(),
|
|
totalDue: z.number(),
|
|
mhPaidAmount: z.number().nullable(),
|
|
copayment: z.number(),
|
|
adjustment: z.number(),
|
|
status: PaymentStatusSchema,
|
|
notes: z.string().nullable(),
|
|
icn: z.string().nullable(),
|
|
createdAt: z.date(),
|
|
updatedAt: z.date(),
|
|
claim: z.unknown().nullable(),
|
|
patient: z.unknown(),
|
|
updatedBy: z.unknown().nullable(),
|
|
npiProvider: z.unknown().nullable(),
|
|
serviceLineTransactions: z.array(z.unknown()),
|
|
serviceLines: z.array(z.unknown()),
|
|
commissionBatchItems: z.array(z.unknown())
|
|
}).strict();
|
|
|
|
export type PaymentResultType = z.infer<typeof PaymentResultSchema>;
|