feat: share patients across all users
Removed per-user patient filtering so all staff accounts see the same patient pool. Previously each user only saw patients they created. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -145,6 +145,7 @@ exports.Prisma.PatientScalarFieldEnum = {
|
||||
policyHolder: 'policyHolder',
|
||||
allergies: 'allergies',
|
||||
medicalConditions: 'medicalConditions',
|
||||
preferredLanguage: 'preferredLanguage',
|
||||
status: 'status',
|
||||
userId: 'userId',
|
||||
createdAt: 'createdAt',
|
||||
@@ -164,6 +165,7 @@ exports.Prisma.AppointmentScalarFieldEnum = {
|
||||
notes: 'notes',
|
||||
procedureCodeNotes: 'procedureCodeNotes',
|
||||
status: 'status',
|
||||
movedByAi: 'movedByAi',
|
||||
createdAt: 'createdAt',
|
||||
eligibilityStatus: 'eligibilityStatus'
|
||||
};
|
||||
@@ -229,6 +231,7 @@ exports.Prisma.ClaimScalarFieldEnum = {
|
||||
updatedAt: 'updatedAt',
|
||||
status: 'status',
|
||||
claimNumber: 'claimNumber',
|
||||
preAuthNumber: 'preAuthNumber',
|
||||
npiProviderId: 'npiProviderId'
|
||||
};
|
||||
|
||||
@@ -242,6 +245,9 @@ exports.Prisma.ServiceLineScalarFieldEnum = {
|
||||
arch: 'arch',
|
||||
toothNumber: 'toothNumber',
|
||||
toothSurface: 'toothSurface',
|
||||
icn: 'icn',
|
||||
paidCode: 'paidCode',
|
||||
allowedAmount: 'allowedAmount',
|
||||
totalBilled: 'totalBilled',
|
||||
totalPaid: 'totalPaid',
|
||||
totalAdjusted: 'totalAdjusted',
|
||||
@@ -265,6 +271,15 @@ exports.Prisma.InsuranceCredentialScalarFieldEnum = {
|
||||
password: 'password'
|
||||
};
|
||||
|
||||
exports.Prisma.ShoppingVendorScalarFieldEnum = {
|
||||
id: 'id',
|
||||
userId: 'userId',
|
||||
vendorName: 'vendorName',
|
||||
websiteUrl: 'websiteUrl',
|
||||
loginUsername: 'loginUsername',
|
||||
loginPassword: 'loginPassword'
|
||||
};
|
||||
|
||||
exports.Prisma.PdfGroupScalarFieldEnum = {
|
||||
id: 'id',
|
||||
title: 'title',
|
||||
@@ -287,10 +302,14 @@ exports.Prisma.PaymentScalarFieldEnum = {
|
||||
patientId: 'patientId',
|
||||
userId: 'userId',
|
||||
updatedById: 'updatedById',
|
||||
npiProviderId: 'npiProviderId',
|
||||
totalBilled: 'totalBilled',
|
||||
totalPaid: 'totalPaid',
|
||||
totalAdjusted: 'totalAdjusted',
|
||||
totalDue: 'totalDue',
|
||||
mhPaidAmount: 'mhPaidAmount',
|
||||
copayment: 'copayment',
|
||||
adjustment: 'adjustment',
|
||||
status: 'status',
|
||||
notes: 'notes',
|
||||
icn: 'icn',
|
||||
@@ -414,7 +433,9 @@ exports.Prisma.TwilioSettingsScalarFieldEnum = {
|
||||
exports.Prisma.AiSettingsScalarFieldEnum = {
|
||||
id: 'id',
|
||||
userId: 'userId',
|
||||
apiKey: 'apiKey'
|
||||
apiKey: 'apiKey',
|
||||
afterHoursEnabled: 'afterHoursEnabled',
|
||||
openPhoneReply: 'openPhoneReply'
|
||||
};
|
||||
|
||||
exports.Prisma.OfficeHoursScalarFieldEnum = {
|
||||
@@ -426,11 +447,24 @@ exports.Prisma.OfficeHoursScalarFieldEnum = {
|
||||
exports.Prisma.OfficeContactScalarFieldEnum = {
|
||||
id: 'id',
|
||||
userId: 'userId',
|
||||
officeName: 'officeName',
|
||||
receptionistName: 'receptionistName',
|
||||
dentistName: 'dentistName',
|
||||
phoneNumber: 'phoneNumber',
|
||||
email: 'email',
|
||||
fax: 'fax'
|
||||
fax: 'fax',
|
||||
streetAddress: 'streetAddress',
|
||||
city: 'city',
|
||||
state: 'state',
|
||||
zipCode: 'zipCode'
|
||||
};
|
||||
|
||||
exports.Prisma.InsuranceContactScalarFieldEnum = {
|
||||
id: 'id',
|
||||
userId: 'userId',
|
||||
name: 'name',
|
||||
phoneNumber: 'phoneNumber',
|
||||
createdAt: 'createdAt'
|
||||
};
|
||||
|
||||
exports.Prisma.ProcedureTimeslotScalarFieldEnum = {
|
||||
@@ -439,6 +473,31 @@ exports.Prisma.ProcedureTimeslotScalarFieldEnum = {
|
||||
data: 'data'
|
||||
};
|
||||
|
||||
exports.Prisma.PatientConversationScalarFieldEnum = {
|
||||
id: 'id',
|
||||
patientId: 'patientId',
|
||||
userId: 'userId',
|
||||
stage: 'stage',
|
||||
aiHandoff: 'aiHandoff',
|
||||
updatedAt: 'updatedAt'
|
||||
};
|
||||
|
||||
exports.Prisma.CommissionBatchScalarFieldEnum = {
|
||||
id: 'id',
|
||||
npiProviderId: 'npiProviderId',
|
||||
totalCollection: 'totalCollection',
|
||||
commissionAmount: 'commissionAmount',
|
||||
notes: 'notes',
|
||||
createdAt: 'createdAt'
|
||||
};
|
||||
|
||||
exports.Prisma.CommissionBatchItemScalarFieldEnum = {
|
||||
id: 'id',
|
||||
commissionBatchId: 'commissionBatchId',
|
||||
paymentId: 'paymentId',
|
||||
collectionAmount: 'collectionAmount'
|
||||
};
|
||||
|
||||
exports.Prisma.SortOrder = {
|
||||
asc: 'asc',
|
||||
desc: 'desc'
|
||||
@@ -491,7 +550,8 @@ exports.ClaimStatus = exports.$Enums.ClaimStatus = {
|
||||
APPROVED: 'APPROVED',
|
||||
CANCELLED: 'CANCELLED',
|
||||
REVIEW: 'REVIEW',
|
||||
VOID: 'VOID'
|
||||
VOID: 'VOID',
|
||||
PREAUTH: 'PREAUTH'
|
||||
};
|
||||
|
||||
exports.ServiceLineStatus = exports.$Enums.ServiceLineStatus = {
|
||||
@@ -568,6 +628,7 @@ exports.Prisma.ModelName = {
|
||||
ServiceLine: 'ServiceLine',
|
||||
ClaimFile: 'ClaimFile',
|
||||
InsuranceCredential: 'InsuranceCredential',
|
||||
ShoppingVendor: 'ShoppingVendor',
|
||||
PdfGroup: 'PdfGroup',
|
||||
PdfFile: 'PdfFile',
|
||||
Payment: 'Payment',
|
||||
@@ -585,7 +646,11 @@ exports.Prisma.ModelName = {
|
||||
AiSettings: 'AiSettings',
|
||||
OfficeHours: 'OfficeHours',
|
||||
OfficeContact: 'OfficeContact',
|
||||
ProcedureTimeslot: 'ProcedureTimeslot'
|
||||
InsuranceContact: 'InsuranceContact',
|
||||
ProcedureTimeslot: 'ProcedureTimeslot',
|
||||
PatientConversation: 'PatientConversation',
|
||||
CommissionBatch: 'CommissionBatch',
|
||||
CommissionBatchItem: 'CommissionBatchItem'
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user