feat: Preauth column for AI claims; searchable policy holder + ADA box 18; 2PA fix
- Schedule: last column is the Preauth column; "Claim for Column with AI" is now "Claim/Preauth for Column with AI" — that column's appointments go to PreAuth (MH, CCA, Tufts SCO, United/DentalHub; other insurances are skipped), the rest to Claim. Preauthorized appointments (hasPreauth) aren't resubmitted - PreAuth payloads carry appointmentId; appointment X-rays/attachments are sent with MH/CCA/UnitedDH/Tufts preauths (shared appendAppointmentFiles helper) - Patient form: policy holder is searchable from patients in the DB, plus "Relationship to Policy Holder/Subscriber" (Self, Spouse, Dependent Child, Other). New Patient columns policyHolderPatientId, policyHolderRelationship; browser-side schema updated so the fields aren't stripped on save - ADA form: box 12-14 filled from the linked policy holder's record; box 18 ticks the relationship (Self when the patient is the holder) - AI notes: a bare "2PA" is an image count, not tooth #2 — restored before CDT lookup so it maps to D0220 #8 / D0230 #24 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"version": "1.0",
|
||||
"generatorVersion": "1.0.0",
|
||||
"generatedAt": "2026-10-10T04:03:22.758Z",
|
||||
"generatedAt": "2026-10-11T18:46:03.569Z",
|
||||
"outputPath": "/home/ee/Desktop/DentalManagement09/packages/db/shared",
|
||||
"files": [
|
||||
"schemas/enums/TransactionIsolationLevel.schema.ts",
|
||||
@@ -559,6 +559,7 @@
|
||||
"schemas/objects/BoolWithAggregatesFilter.schema.ts",
|
||||
"schemas/objects/DateTimeNullableFilter.schema.ts",
|
||||
"schemas/objects/StringNullableFilter.schema.ts",
|
||||
"schemas/objects/IntNullableFilter.schema.ts",
|
||||
"schemas/objects/EnumPatientStatusFilter.schema.ts",
|
||||
"schemas/objects/DateTimeFilter.schema.ts",
|
||||
"schemas/objects/UserScalarRelationFilter.schema.ts",
|
||||
@@ -577,9 +578,9 @@
|
||||
"schemas/objects/PatientSumOrderByAggregateInput.schema.ts",
|
||||
"schemas/objects/DateTimeNullableWithAggregatesFilter.schema.ts",
|
||||
"schemas/objects/StringNullableWithAggregatesFilter.schema.ts",
|
||||
"schemas/objects/IntNullableWithAggregatesFilter.schema.ts",
|
||||
"schemas/objects/EnumPatientStatusWithAggregatesFilter.schema.ts",
|
||||
"schemas/objects/DateTimeWithAggregatesFilter.schema.ts",
|
||||
"schemas/objects/IntNullableFilter.schema.ts",
|
||||
"schemas/objects/PatientScalarRelationFilter.schema.ts",
|
||||
"schemas/objects/StaffNullableScalarRelationFilter.schema.ts",
|
||||
"schemas/objects/NpiProviderNullableScalarRelationFilter.schema.ts",
|
||||
@@ -590,7 +591,6 @@
|
||||
"schemas/objects/AppointmentMaxOrderByAggregateInput.schema.ts",
|
||||
"schemas/objects/AppointmentMinOrderByAggregateInput.schema.ts",
|
||||
"schemas/objects/AppointmentSumOrderByAggregateInput.schema.ts",
|
||||
"schemas/objects/IntNullableWithAggregatesFilter.schema.ts",
|
||||
"schemas/objects/AppointmentScalarRelationFilter.schema.ts",
|
||||
"schemas/objects/AppointmentFileCountOrderByAggregateInput.schema.ts",
|
||||
"schemas/objects/AppointmentFileAvgOrderByAggregateInput.schema.ts",
|
||||
@@ -950,6 +950,7 @@
|
||||
"schemas/objects/CloudFolderUncheckedCreateNestedManyWithoutPatientInput.schema.ts",
|
||||
"schemas/objects/NullableDateTimeFieldUpdateOperationsInput.schema.ts",
|
||||
"schemas/objects/NullableStringFieldUpdateOperationsInput.schema.ts",
|
||||
"schemas/objects/NullableIntFieldUpdateOperationsInput.schema.ts",
|
||||
"schemas/objects/EnumPatientStatusFieldUpdateOperationsInput.schema.ts",
|
||||
"schemas/objects/DateTimeFieldUpdateOperationsInput.schema.ts",
|
||||
"schemas/objects/UserUpdateOneRequiredWithoutPatientsNestedInput.schema.ts",
|
||||
@@ -988,7 +989,6 @@
|
||||
"schemas/objects/AppointmentProcedureUpdateManyWithoutAppointmentNestedInput.schema.ts",
|
||||
"schemas/objects/ClaimUpdateManyWithoutAppointmentNestedInput.schema.ts",
|
||||
"schemas/objects/AppointmentFileUpdateManyWithoutAppointmentNestedInput.schema.ts",
|
||||
"schemas/objects/NullableIntFieldUpdateOperationsInput.schema.ts",
|
||||
"schemas/objects/AppointmentProcedureUncheckedUpdateManyWithoutAppointmentNestedInput.schema.ts",
|
||||
"schemas/objects/ClaimUncheckedUpdateManyWithoutAppointmentNestedInput.schema.ts",
|
||||
"schemas/objects/AppointmentFileUncheckedUpdateManyWithoutAppointmentNestedInput.schema.ts",
|
||||
@@ -1193,15 +1193,15 @@
|
||||
"schemas/objects/NestedBoolWithAggregatesFilter.schema.ts",
|
||||
"schemas/objects/NestedDateTimeNullableFilter.schema.ts",
|
||||
"schemas/objects/NestedStringNullableFilter.schema.ts",
|
||||
"schemas/objects/NestedIntNullableFilter.schema.ts",
|
||||
"schemas/objects/NestedEnumPatientStatusFilter.schema.ts",
|
||||
"schemas/objects/NestedDateTimeFilter.schema.ts",
|
||||
"schemas/objects/NestedDateTimeNullableWithAggregatesFilter.schema.ts",
|
||||
"schemas/objects/NestedIntNullableFilter.schema.ts",
|
||||
"schemas/objects/NestedStringNullableWithAggregatesFilter.schema.ts",
|
||||
"schemas/objects/NestedEnumPatientStatusWithAggregatesFilter.schema.ts",
|
||||
"schemas/objects/NestedDateTimeWithAggregatesFilter.schema.ts",
|
||||
"schemas/objects/NestedIntNullableWithAggregatesFilter.schema.ts",
|
||||
"schemas/objects/NestedFloatNullableFilter.schema.ts",
|
||||
"schemas/objects/NestedEnumPatientStatusWithAggregatesFilter.schema.ts",
|
||||
"schemas/objects/NestedDateTimeWithAggregatesFilter.schema.ts",
|
||||
"schemas/objects/NestedDecimalNullableFilter.schema.ts",
|
||||
"schemas/objects/NestedEnumProcedureSourceFilter.schema.ts",
|
||||
"schemas/objects/NestedDecimalNullableWithAggregatesFilter.schema.ts",
|
||||
|
||||
Reference in New Issue
Block a user