Files
DentalManagementMH07/packages/db/shared/schemas/variants/pure/ServiceLine.pure.ts
T
GiteadandClaude Sonnet 4.6 75ecd7cc20 feat: add Selenium Settings page to configure paymentGroupId per office
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>
2026-07-02 23:53:43 -04:00

28 lines
964 B
TypeScript

import * as z from 'zod';
import { ServiceLineStatusSchema } from '../../enums/ServiceLineStatus.schema';
// prettier-ignore
export const ServiceLineModelSchema = z.object({
id: z.number().int(),
claimId: z.number().int().nullable(),
paymentId: z.number().int().nullable(),
procedureCode: z.string(),
procedureDate: z.date(),
quad: z.string().nullable(),
arch: z.string().nullable(),
toothNumber: z.string().nullable(),
toothSurface: z.string().nullable(),
icn: z.string().nullable(),
paidCode: z.string().nullable(),
allowedAmount: z.number().nullable(),
totalBilled: z.number(),
totalPaid: z.number(),
totalAdjusted: z.number(),
totalDue: z.number(),
status: ServiceLineStatusSchema,
claim: z.unknown().nullable(),
payment: z.unknown().nullable(),
serviceLineTransactions: z.array(z.unknown())
}).strict();
export type ServiceLinePureType = z.infer<typeof ServiceLineModelSchema>;