feat: Check DDMA Payments reads Plan Pays from DDMA claim status, fills app payments and saves a PDF
Adds a Check DDMA Payments card (date range, Go, auto-check schedule) above Check MH Payments. Go logs into DDMA (with OTP), searches Check Claim Status by service date range, reads claim numbers and Plan Pays across pages, matches them to app claims to fill the paid amount, creates patient + payment for unmatched paid claims, and saves the results page as a PDF in uploads/DDMAPayment. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -19,40 +19,43 @@ datasource db {
|
||||
}
|
||||
|
||||
model User {
|
||||
id Int @id @default(autoincrement())
|
||||
username String @unique
|
||||
password String
|
||||
autoBackupEnabled Boolean @default(true)
|
||||
autoBackupHour Int @default(20)
|
||||
usbBackupEnabled Boolean @default(false)
|
||||
usbBackupHour Int @default(21)
|
||||
autoMhCheckEnabled Boolean @default(false)
|
||||
autoMhCheckDayOfWeek Int @default(1)
|
||||
autoMhCheckHour Int @default(13)
|
||||
patients Patient[]
|
||||
appointments Appointment[]
|
||||
staff Staff[]
|
||||
npiProviders NpiProvider[]
|
||||
claims Claim[]
|
||||
insuranceCredentials InsuranceCredential[]
|
||||
shoppingVendors ShoppingVendor[]
|
||||
updatedPayments Payment[] @relation("PaymentUpdatedBy")
|
||||
backups DatabaseBackup[]
|
||||
backupDestinations BackupDestination[]
|
||||
notifications Notification[]
|
||||
cloudFolders CloudFolder[]
|
||||
cloudFiles CloudFile[]
|
||||
communications Communication[]
|
||||
twilioSettings TwilioSettings?
|
||||
telnyxSettings TelnyxSettings?
|
||||
aiSettings AiSettings?
|
||||
officeHours OfficeHours?
|
||||
officeContact OfficeContact?
|
||||
procedureTimeslot ProcedureTimeslot?
|
||||
insuranceContacts InsuranceContact[]
|
||||
patientConversations PatientConversation[]
|
||||
labRxTemplates LabRxTemplate[]
|
||||
seleniumSettings SeleniumSettings?
|
||||
id Int @id @default(autoincrement())
|
||||
username String @unique
|
||||
password String
|
||||
autoBackupEnabled Boolean @default(true)
|
||||
autoBackupHour Int @default(20)
|
||||
usbBackupEnabled Boolean @default(false)
|
||||
usbBackupHour Int @default(21)
|
||||
autoMhCheckEnabled Boolean @default(false)
|
||||
autoMhCheckDayOfWeek Int @default(1)
|
||||
autoMhCheckHour Int @default(13)
|
||||
autoDdmaCheckEnabled Boolean @default(false)
|
||||
autoDdmaCheckDayOfWeek Int @default(1)
|
||||
autoDdmaCheckHour Int @default(13)
|
||||
patients Patient[]
|
||||
appointments Appointment[]
|
||||
staff Staff[]
|
||||
npiProviders NpiProvider[]
|
||||
claims Claim[]
|
||||
insuranceCredentials InsuranceCredential[]
|
||||
shoppingVendors ShoppingVendor[]
|
||||
updatedPayments Payment[] @relation("PaymentUpdatedBy")
|
||||
backups DatabaseBackup[]
|
||||
backupDestinations BackupDestination[]
|
||||
notifications Notification[]
|
||||
cloudFolders CloudFolder[]
|
||||
cloudFiles CloudFile[]
|
||||
communications Communication[]
|
||||
twilioSettings TwilioSettings?
|
||||
telnyxSettings TelnyxSettings?
|
||||
aiSettings AiSettings?
|
||||
officeHours OfficeHours?
|
||||
officeContact OfficeContact?
|
||||
procedureTimeslot ProcedureTimeslot?
|
||||
insuranceContacts InsuranceContact[]
|
||||
patientConversations PatientConversation[]
|
||||
labRxTemplates LabRxTemplate[]
|
||||
seleniumSettings SeleniumSettings?
|
||||
}
|
||||
|
||||
model Patient {
|
||||
|
||||
Reference in New Issue
Block a user