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:
@@ -46,6 +46,7 @@ const makeSchema = () => z.object({
|
||||
email: SortOrder_schema_1.SortOrderSchema.optional(),
|
||||
address: SortOrder_schema_1.SortOrderSchema.optional(),
|
||||
city: SortOrder_schema_1.SortOrderSchema.optional(),
|
||||
state: SortOrder_schema_1.SortOrderSchema.optional(),
|
||||
zipCode: SortOrder_schema_1.SortOrderSchema.optional(),
|
||||
insuranceProvider: SortOrder_schema_1.SortOrderSchema.optional(),
|
||||
insuranceId: SortOrder_schema_1.SortOrderSchema.optional(),
|
||||
@@ -55,6 +56,8 @@ const makeSchema = () => z.object({
|
||||
medicalConditions: SortOrder_schema_1.SortOrderSchema.optional(),
|
||||
preferredLanguage: SortOrder_schema_1.SortOrderSchema.optional(),
|
||||
status: SortOrder_schema_1.SortOrderSchema.optional(),
|
||||
remainingBenefit: SortOrder_schema_1.SortOrderSchema.optional(),
|
||||
thirdPartyInsurance: SortOrder_schema_1.SortOrderSchema.optional(),
|
||||
userId: SortOrder_schema_1.SortOrderSchema.optional(),
|
||||
createdAt: SortOrder_schema_1.SortOrderSchema.optional(),
|
||||
updatedAt: SortOrder_schema_1.SortOrderSchema.optional()
|
||||
|
||||
Reference in New Issue
Block a user