fix: allow letters in insurance ID; add patient state (default MA)
- Backend insurance ID check now accepts letters + digits (BCBS IDs have a letter prefix), matching the frontend schema; create route validates the normalized body - Patient.state column (default "MA") with State select on the patient form; ADA claim form uses the patient's state instead of the office's - Rebuild stale packages/db compiled .js so the runtime schemas include new fields (state, office billing NPI fields, Telnyx settings) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -48,6 +48,10 @@ exports.OfficeContactGroupByResultSchema = z.array(z.object({
|
||||
city: z.string(),
|
||||
state: z.string(),
|
||||
zipCode: z.string(),
|
||||
billingName: z.string(),
|
||||
billingNpi: z.string(),
|
||||
billingLicense: z.string(),
|
||||
billingTaxId: z.string(),
|
||||
_count: z.object({
|
||||
id: z.number(),
|
||||
userId: z.number(),
|
||||
@@ -61,6 +65,10 @@ exports.OfficeContactGroupByResultSchema = z.array(z.object({
|
||||
city: z.number(),
|
||||
state: z.number(),
|
||||
zipCode: z.number(),
|
||||
billingName: z.number(),
|
||||
billingNpi: z.number(),
|
||||
billingLicense: z.number(),
|
||||
billingTaxId: z.number(),
|
||||
user: z.number()
|
||||
}).optional(),
|
||||
_sum: z.object({
|
||||
@@ -83,7 +91,11 @@ exports.OfficeContactGroupByResultSchema = z.array(z.object({
|
||||
streetAddress: z.string().nullable(),
|
||||
city: z.string().nullable(),
|
||||
state: z.string().nullable(),
|
||||
zipCode: z.string().nullable()
|
||||
zipCode: z.string().nullable(),
|
||||
billingName: z.string().nullable(),
|
||||
billingNpi: z.string().nullable(),
|
||||
billingLicense: z.string().nullable(),
|
||||
billingTaxId: z.string().nullable()
|
||||
}).nullable().optional(),
|
||||
_max: z.object({
|
||||
id: z.number().int().nullable(),
|
||||
@@ -97,6 +109,10 @@ exports.OfficeContactGroupByResultSchema = z.array(z.object({
|
||||
streetAddress: z.string().nullable(),
|
||||
city: z.string().nullable(),
|
||||
state: z.string().nullable(),
|
||||
zipCode: z.string().nullable()
|
||||
zipCode: z.string().nullable(),
|
||||
billingName: z.string().nullable(),
|
||||
billingNpi: z.string().nullable(),
|
||||
billingLicense: z.string().nullable(),
|
||||
billingTaxId: z.string().nullable()
|
||||
}).nullable().optional()
|
||||
}));
|
||||
|
||||
Reference in New Issue
Block a user