feat: Select Procedures flow, batch-column NPI provider fix, auto PDF save

- Add 'Select Procedures' right-click option on appointment page (separate from Claims/PreAuth)
- Select Procedures form saves CDT codes + NPI provider to AppointmentProcedure storage
- Remove Save button from insurance claim form; Claims/PreAuth opens for insurance submission only
- Claims/PreAuth auto-prefills from saved procedures including NPI provider
- Batch-column: procedures npiProviderId takes priority over stale claim npiProviderId
- Batch-column: auto-save PDF to patient Documents after successful submission (no socket needed)
- Add npiProviderId column to AppointmentProcedure table (prisma db push)
- Fix 'invalid db creation invocation': guard staffId, npiProviderId, procedureDate as Date object, totalBilled NaN guard
- Add full error logging to batch-column catch block

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Gitead
2026-04-27 00:25:24 -04:00
parent a279a3e7c1
commit 3e899376c3
838 changed files with 28488 additions and 773 deletions

View File

@@ -1,8 +1,8 @@
{
"version": "1.0",
"generatorVersion": "1.0.0",
"generatedAt": "2026-04-18T03:02:28.485Z",
"outputPath": "/home/ee/Desktop/Gitead-DentalManagementMHnewff/packages/db/shared",
"generatedAt": "2026-04-26T03:55:08.606Z",
"outputPath": "/home/ee/Desktop/DentalManagementMH04/packages/db/shared",
"files": [
"schemas/enums/TransactionIsolationLevel.schema.ts",
"schemas/enums/UserScalarFieldEnum.schema.ts",
@@ -398,14 +398,17 @@
"schemas/objects/NpiProviderMaxOrderByAggregateInput.schema.ts",
"schemas/objects/NpiProviderMinOrderByAggregateInput.schema.ts",
"schemas/objects/NpiProviderSumOrderByAggregateInput.schema.ts",
"schemas/objects/IntNullableFilter.schema.ts",
"schemas/objects/DecimalNullableFilter.schema.ts",
"schemas/objects/EnumProcedureSourceFilter.schema.ts",
"schemas/objects/AppointmentScalarRelationFilter.schema.ts",
"schemas/objects/NpiProviderNullableScalarRelationFilter.schema.ts",
"schemas/objects/AppointmentProcedureCountOrderByAggregateInput.schema.ts",
"schemas/objects/AppointmentProcedureAvgOrderByAggregateInput.schema.ts",
"schemas/objects/AppointmentProcedureMaxOrderByAggregateInput.schema.ts",
"schemas/objects/AppointmentProcedureMinOrderByAggregateInput.schema.ts",
"schemas/objects/AppointmentProcedureSumOrderByAggregateInput.schema.ts",
"schemas/objects/IntNullableWithAggregatesFilter.schema.ts",
"schemas/objects/DecimalNullableWithAggregatesFilter.schema.ts",
"schemas/objects/EnumProcedureSourceWithAggregatesFilter.schema.ts",
"schemas/objects/EnumMissingTeethStatusFilter.schema.ts",
@@ -424,7 +427,6 @@
"schemas/objects/EnumMissingTeethStatusWithAggregatesFilter.schema.ts",
"schemas/objects/JsonNullableWithAggregatesFilter.schema.ts",
"schemas/objects/EnumClaimStatusWithAggregatesFilter.schema.ts",
"schemas/objects/IntNullableFilter.schema.ts",
"schemas/objects/DecimalFilter.schema.ts",
"schemas/objects/EnumServiceLineStatusFilter.schema.ts",
"schemas/objects/ClaimNullableScalarRelationFilter.schema.ts",
@@ -435,7 +437,6 @@
"schemas/objects/ServiceLineMaxOrderByAggregateInput.schema.ts",
"schemas/objects/ServiceLineMinOrderByAggregateInput.schema.ts",
"schemas/objects/ServiceLineSumOrderByAggregateInput.schema.ts",
"schemas/objects/IntNullableWithAggregatesFilter.schema.ts",
"schemas/objects/DecimalWithAggregatesFilter.schema.ts",
"schemas/objects/EnumServiceLineStatusWithAggregatesFilter.schema.ts",
"schemas/objects/ClaimScalarRelationFilter.schema.ts",
@@ -658,17 +659,29 @@
"schemas/objects/AppointmentUncheckedUpdateManyWithoutStaffNestedInput.schema.ts",
"schemas/objects/ClaimUncheckedUpdateManyWithoutStaffNestedInput.schema.ts",
"schemas/objects/UserCreateNestedOneWithoutNpiProvidersInput.schema.ts",
"schemas/objects/ClaimCreateNestedManyWithoutNpiProviderInput.schema.ts",
"schemas/objects/AppointmentProcedureCreateNestedManyWithoutNpiProviderInput.schema.ts",
"schemas/objects/ClaimUncheckedCreateNestedManyWithoutNpiProviderInput.schema.ts",
"schemas/objects/AppointmentProcedureUncheckedCreateNestedManyWithoutNpiProviderInput.schema.ts",
"schemas/objects/UserUpdateOneRequiredWithoutNpiProvidersNestedInput.schema.ts",
"schemas/objects/ClaimUpdateManyWithoutNpiProviderNestedInput.schema.ts",
"schemas/objects/AppointmentProcedureUpdateManyWithoutNpiProviderNestedInput.schema.ts",
"schemas/objects/ClaimUncheckedUpdateManyWithoutNpiProviderNestedInput.schema.ts",
"schemas/objects/AppointmentProcedureUncheckedUpdateManyWithoutNpiProviderNestedInput.schema.ts",
"schemas/objects/AppointmentCreateNestedOneWithoutProceduresInput.schema.ts",
"schemas/objects/PatientCreateNestedOneWithoutProceduresInput.schema.ts",
"schemas/objects/NpiProviderCreateNestedOneWithoutAppointmentProceduresInput.schema.ts",
"schemas/objects/NullableDecimalFieldUpdateOperationsInput.schema.ts",
"schemas/objects/EnumProcedureSourceFieldUpdateOperationsInput.schema.ts",
"schemas/objects/AppointmentUpdateOneRequiredWithoutProceduresNestedInput.schema.ts",
"schemas/objects/PatientUpdateOneRequiredWithoutProceduresNestedInput.schema.ts",
"schemas/objects/NpiProviderUpdateOneWithoutAppointmentProceduresNestedInput.schema.ts",
"schemas/objects/NullableIntFieldUpdateOperationsInput.schema.ts",
"schemas/objects/PatientCreateNestedOneWithoutClaimsInput.schema.ts",
"schemas/objects/AppointmentCreateNestedOneWithoutClaimsInput.schema.ts",
"schemas/objects/UserCreateNestedOneWithoutClaimsInput.schema.ts",
"schemas/objects/StaffCreateNestedOneWithoutClaimsInput.schema.ts",
"schemas/objects/NpiProviderCreateNestedOneWithoutClaimsInput.schema.ts",
"schemas/objects/ServiceLineCreateNestedManyWithoutClaimInput.schema.ts",
"schemas/objects/ClaimFileCreateNestedManyWithoutClaimInput.schema.ts",
"schemas/objects/PaymentCreateNestedOneWithoutClaimInput.schema.ts",
@@ -681,6 +694,7 @@
"schemas/objects/AppointmentUpdateOneRequiredWithoutClaimsNestedInput.schema.ts",
"schemas/objects/UserUpdateOneWithoutClaimsNestedInput.schema.ts",
"schemas/objects/StaffUpdateOneWithoutClaimsNestedInput.schema.ts",
"schemas/objects/NpiProviderUpdateOneWithoutClaimsNestedInput.schema.ts",
"schemas/objects/ServiceLineUpdateManyWithoutClaimNestedInput.schema.ts",
"schemas/objects/ClaimFileUpdateManyWithoutClaimNestedInput.schema.ts",
"schemas/objects/PaymentUpdateOneWithoutClaimNestedInput.schema.ts",
@@ -696,7 +710,6 @@
"schemas/objects/ClaimUpdateOneWithoutServiceLinesNestedInput.schema.ts",
"schemas/objects/PaymentUpdateOneWithoutServiceLinesNestedInput.schema.ts",
"schemas/objects/ServiceLineTransactionUpdateManyWithoutServiceLineNestedInput.schema.ts",
"schemas/objects/NullableIntFieldUpdateOperationsInput.schema.ts",
"schemas/objects/ServiceLineTransactionUncheckedUpdateManyWithoutServiceLineNestedInput.schema.ts",
"schemas/objects/ClaimCreateNestedOneWithoutClaimFilesInput.schema.ts",
"schemas/objects/ClaimUpdateOneRequiredWithoutClaimFilesNestedInput.schema.ts",
@@ -789,6 +802,8 @@
"schemas/objects/NestedDateTimeWithAggregatesFilter.schema.ts",
"schemas/objects/NestedDecimalNullableFilter.schema.ts",
"schemas/objects/NestedEnumProcedureSourceFilter.schema.ts",
"schemas/objects/NestedIntNullableWithAggregatesFilter.schema.ts",
"schemas/objects/NestedFloatNullableFilter.schema.ts",
"schemas/objects/NestedDecimalNullableWithAggregatesFilter.schema.ts",
"schemas/objects/NestedEnumProcedureSourceWithAggregatesFilter.schema.ts",
"schemas/objects/NestedEnumMissingTeethStatusFilter.schema.ts",
@@ -798,8 +813,6 @@
"schemas/objects/NestedEnumClaimStatusWithAggregatesFilter.schema.ts",
"schemas/objects/NestedDecimalFilter.schema.ts",
"schemas/objects/NestedEnumServiceLineStatusFilter.schema.ts",
"schemas/objects/NestedIntNullableWithAggregatesFilter.schema.ts",
"schemas/objects/NestedFloatNullableFilter.schema.ts",
"schemas/objects/NestedDecimalWithAggregatesFilter.schema.ts",
"schemas/objects/NestedEnumServiceLineStatusWithAggregatesFilter.schema.ts",
"schemas/objects/NestedEnumPdfTitleKeyFilter.schema.ts",
@@ -1042,16 +1055,33 @@
"schemas/objects/UserCreateWithoutNpiProvidersInput.schema.ts",
"schemas/objects/UserUncheckedCreateWithoutNpiProvidersInput.schema.ts",
"schemas/objects/UserCreateOrConnectWithoutNpiProvidersInput.schema.ts",
"schemas/objects/ClaimCreateWithoutNpiProviderInput.schema.ts",
"schemas/objects/ClaimUncheckedCreateWithoutNpiProviderInput.schema.ts",
"schemas/objects/ClaimCreateOrConnectWithoutNpiProviderInput.schema.ts",
"schemas/objects/ClaimCreateManyNpiProviderInputEnvelope.schema.ts",
"schemas/objects/AppointmentProcedureCreateWithoutNpiProviderInput.schema.ts",
"schemas/objects/AppointmentProcedureUncheckedCreateWithoutNpiProviderInput.schema.ts",
"schemas/objects/AppointmentProcedureCreateOrConnectWithoutNpiProviderInput.schema.ts",
"schemas/objects/AppointmentProcedureCreateManyNpiProviderInputEnvelope.schema.ts",
"schemas/objects/UserUpsertWithoutNpiProvidersInput.schema.ts",
"schemas/objects/UserUpdateToOneWithWhereWithoutNpiProvidersInput.schema.ts",
"schemas/objects/UserUpdateWithoutNpiProvidersInput.schema.ts",
"schemas/objects/UserUncheckedUpdateWithoutNpiProvidersInput.schema.ts",
"schemas/objects/ClaimUpsertWithWhereUniqueWithoutNpiProviderInput.schema.ts",
"schemas/objects/ClaimUpdateWithWhereUniqueWithoutNpiProviderInput.schema.ts",
"schemas/objects/ClaimUpdateManyWithWhereWithoutNpiProviderInput.schema.ts",
"schemas/objects/AppointmentProcedureUpsertWithWhereUniqueWithoutNpiProviderInput.schema.ts",
"schemas/objects/AppointmentProcedureUpdateWithWhereUniqueWithoutNpiProviderInput.schema.ts",
"schemas/objects/AppointmentProcedureUpdateManyWithWhereWithoutNpiProviderInput.schema.ts",
"schemas/objects/AppointmentCreateWithoutProceduresInput.schema.ts",
"schemas/objects/AppointmentUncheckedCreateWithoutProceduresInput.schema.ts",
"schemas/objects/AppointmentCreateOrConnectWithoutProceduresInput.schema.ts",
"schemas/objects/PatientCreateWithoutProceduresInput.schema.ts",
"schemas/objects/PatientUncheckedCreateWithoutProceduresInput.schema.ts",
"schemas/objects/PatientCreateOrConnectWithoutProceduresInput.schema.ts",
"schemas/objects/NpiProviderCreateWithoutAppointmentProceduresInput.schema.ts",
"schemas/objects/NpiProviderUncheckedCreateWithoutAppointmentProceduresInput.schema.ts",
"schemas/objects/NpiProviderCreateOrConnectWithoutAppointmentProceduresInput.schema.ts",
"schemas/objects/AppointmentUpsertWithoutProceduresInput.schema.ts",
"schemas/objects/AppointmentUpdateToOneWithWhereWithoutProceduresInput.schema.ts",
"schemas/objects/AppointmentUpdateWithoutProceduresInput.schema.ts",
@@ -1060,6 +1090,10 @@
"schemas/objects/PatientUpdateToOneWithWhereWithoutProceduresInput.schema.ts",
"schemas/objects/PatientUpdateWithoutProceduresInput.schema.ts",
"schemas/objects/PatientUncheckedUpdateWithoutProceduresInput.schema.ts",
"schemas/objects/NpiProviderUpsertWithoutAppointmentProceduresInput.schema.ts",
"schemas/objects/NpiProviderUpdateToOneWithWhereWithoutAppointmentProceduresInput.schema.ts",
"schemas/objects/NpiProviderUpdateWithoutAppointmentProceduresInput.schema.ts",
"schemas/objects/NpiProviderUncheckedUpdateWithoutAppointmentProceduresInput.schema.ts",
"schemas/objects/PatientCreateWithoutClaimsInput.schema.ts",
"schemas/objects/PatientUncheckedCreateWithoutClaimsInput.schema.ts",
"schemas/objects/PatientCreateOrConnectWithoutClaimsInput.schema.ts",
@@ -1072,6 +1106,9 @@
"schemas/objects/StaffCreateWithoutClaimsInput.schema.ts",
"schemas/objects/StaffUncheckedCreateWithoutClaimsInput.schema.ts",
"schemas/objects/StaffCreateOrConnectWithoutClaimsInput.schema.ts",
"schemas/objects/NpiProviderCreateWithoutClaimsInput.schema.ts",
"schemas/objects/NpiProviderUncheckedCreateWithoutClaimsInput.schema.ts",
"schemas/objects/NpiProviderCreateOrConnectWithoutClaimsInput.schema.ts",
"schemas/objects/ServiceLineCreateWithoutClaimInput.schema.ts",
"schemas/objects/ServiceLineUncheckedCreateWithoutClaimInput.schema.ts",
"schemas/objects/ServiceLineCreateOrConnectWithoutClaimInput.schema.ts",
@@ -1099,6 +1136,10 @@
"schemas/objects/StaffUpdateToOneWithWhereWithoutClaimsInput.schema.ts",
"schemas/objects/StaffUpdateWithoutClaimsInput.schema.ts",
"schemas/objects/StaffUncheckedUpdateWithoutClaimsInput.schema.ts",
"schemas/objects/NpiProviderUpsertWithoutClaimsInput.schema.ts",
"schemas/objects/NpiProviderUpdateToOneWithWhereWithoutClaimsInput.schema.ts",
"schemas/objects/NpiProviderUpdateWithoutClaimsInput.schema.ts",
"schemas/objects/NpiProviderUncheckedUpdateWithoutClaimsInput.schema.ts",
"schemas/objects/ServiceLineUpsertWithWhereUniqueWithoutClaimInput.schema.ts",
"schemas/objects/ServiceLineUpdateWithWhereUniqueWithoutClaimInput.schema.ts",
"schemas/objects/ServiceLineUpdateManyWithWhereWithoutClaimInput.schema.ts",
@@ -1413,6 +1454,14 @@
"schemas/objects/ClaimUpdateWithoutStaffInput.schema.ts",
"schemas/objects/ClaimUncheckedUpdateWithoutStaffInput.schema.ts",
"schemas/objects/ClaimUncheckedUpdateManyWithoutStaffInput.schema.ts",
"schemas/objects/ClaimCreateManyNpiProviderInput.schema.ts",
"schemas/objects/AppointmentProcedureCreateManyNpiProviderInput.schema.ts",
"schemas/objects/ClaimUpdateWithoutNpiProviderInput.schema.ts",
"schemas/objects/ClaimUncheckedUpdateWithoutNpiProviderInput.schema.ts",
"schemas/objects/ClaimUncheckedUpdateManyWithoutNpiProviderInput.schema.ts",
"schemas/objects/AppointmentProcedureUpdateWithoutNpiProviderInput.schema.ts",
"schemas/objects/AppointmentProcedureUncheckedUpdateWithoutNpiProviderInput.schema.ts",
"schemas/objects/AppointmentProcedureUncheckedUpdateManyWithoutNpiProviderInput.schema.ts",
"schemas/objects/ServiceLineCreateManyClaimInput.schema.ts",
"schemas/objects/ClaimFileCreateManyClaimInput.schema.ts",
"schemas/objects/ServiceLineUpdateWithoutClaimInput.schema.ts",
@@ -1568,6 +1617,7 @@
"schemas/objects/PatientCountOutputTypeSelect.schema.ts",
"schemas/objects/AppointmentCountOutputTypeSelect.schema.ts",
"schemas/objects/StaffCountOutputTypeSelect.schema.ts",
"schemas/objects/NpiProviderCountOutputTypeSelect.schema.ts",
"schemas/objects/ClaimCountOutputTypeSelect.schema.ts",
"schemas/objects/ServiceLineCountOutputTypeSelect.schema.ts",
"schemas/objects/PdfGroupCountOutputTypeSelect.schema.ts",
@@ -1602,6 +1652,9 @@
"schemas/objects/StaffCountOutputTypeArgs.schema.ts",
"schemas/objects/StaffCountOutputTypeCountAppointmentsArgs.schema.ts",
"schemas/objects/StaffCountOutputTypeCountClaimsArgs.schema.ts",
"schemas/objects/NpiProviderCountOutputTypeArgs.schema.ts",
"schemas/objects/NpiProviderCountOutputTypeCountClaimsArgs.schema.ts",
"schemas/objects/NpiProviderCountOutputTypeCountAppointmentProceduresArgs.schema.ts",
"schemas/objects/ClaimCountOutputTypeArgs.schema.ts",
"schemas/objects/ClaimCountOutputTypeCountServiceLinesArgs.schema.ts",
"schemas/objects/ClaimCountOutputTypeCountClaimFilesArgs.schema.ts",