fix: allow claims without appointment + support post/core multi-tooth input
- Make appointmentId nullable/optional in Prisma Zod schema via @zod rich comment so claims can be submitted without an existing appointment - Convert undefined appointmentId to null in all claim form handlers and the backend claim creation endpoint - Add AI classifier rule for expanding one procedure across multiple comma-separated tooth numbers (e.g. "post/core on #23, 24, 25, 26") - Add "post/core" (slash) alias to CDT lookup maps Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,56 @@
|
||||
"use strict";
|
||||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
||||
if (k2 === undefined) k2 = k;
|
||||
var desc = Object.getOwnPropertyDescriptor(m, k);
|
||||
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
||||
desc = { enumerable: true, get: function() { return m[k]; } };
|
||||
}
|
||||
Object.defineProperty(o, k2, desc);
|
||||
}) : (function(o, m, k, k2) {
|
||||
if (k2 === undefined) k2 = k;
|
||||
o[k2] = m[k];
|
||||
}));
|
||||
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
||||
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
||||
}) : function(o, v) {
|
||||
o["default"] = v;
|
||||
});
|
||||
var __importStar = (this && this.__importStar) || (function () {
|
||||
var ownKeys = function(o) {
|
||||
ownKeys = Object.getOwnPropertyNames || function (o) {
|
||||
var ar = [];
|
||||
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
||||
return ar;
|
||||
};
|
||||
return ownKeys(o);
|
||||
};
|
||||
return function (mod) {
|
||||
if (mod && mod.__esModule) return mod;
|
||||
var result = {};
|
||||
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
||||
__setModuleDefault(result, mod);
|
||||
return result;
|
||||
};
|
||||
})();
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.AiSettingsInputSchema = void 0;
|
||||
const z = __importStar(require("zod"));
|
||||
// prettier-ignore
|
||||
exports.AiSettingsInputSchema = z.object({
|
||||
id: z.number().int(),
|
||||
userId: z.number().int(),
|
||||
apiKey: z.string(),
|
||||
aiEnabled: z.boolean(),
|
||||
openAiKey: z.string(),
|
||||
openAiEnabled: z.boolean(),
|
||||
claudeAiKey: z.string(),
|
||||
claudeAiEnabled: z.boolean(),
|
||||
claudeAiModel: z.string(),
|
||||
openAiModel: z.string(),
|
||||
googleAiModel: z.string(),
|
||||
dentalMgmtKey: z.string(),
|
||||
dentalMgmtEnabled: z.boolean(),
|
||||
afterHoursEnabled: z.boolean(),
|
||||
openPhoneReply: z.boolean(),
|
||||
user: z.unknown()
|
||||
}).strict();
|
||||
@@ -47,14 +47,17 @@ exports.AppointmentInputSchema = z.object({
|
||||
startTime: z.string(),
|
||||
endTime: z.string(),
|
||||
type: z.string(),
|
||||
typeLocked: z.boolean(),
|
||||
notes: z.string().optional().nullable(),
|
||||
procedureCodeNotes: z.string().optional().nullable(),
|
||||
status: z.string(),
|
||||
movedByAi: z.boolean(),
|
||||
createdAt: z.date(),
|
||||
eligibilityStatus: PatientStatus_schema_1.PatientStatusSchema,
|
||||
patient: z.unknown(),
|
||||
user: z.unknown(),
|
||||
staff: z.unknown().optional().nullable(),
|
||||
procedures: z.array(z.unknown()),
|
||||
claims: z.array(z.unknown())
|
||||
claims: z.array(z.unknown()),
|
||||
files: z.array(z.unknown())
|
||||
}).strict();
|
||||
|
||||
@@ -0,0 +1,46 @@
|
||||
"use strict";
|
||||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
||||
if (k2 === undefined) k2 = k;
|
||||
var desc = Object.getOwnPropertyDescriptor(m, k);
|
||||
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
||||
desc = { enumerable: true, get: function() { return m[k]; } };
|
||||
}
|
||||
Object.defineProperty(o, k2, desc);
|
||||
}) : (function(o, m, k, k2) {
|
||||
if (k2 === undefined) k2 = k;
|
||||
o[k2] = m[k];
|
||||
}));
|
||||
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
||||
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
||||
}) : function(o, v) {
|
||||
o["default"] = v;
|
||||
});
|
||||
var __importStar = (this && this.__importStar) || (function () {
|
||||
var ownKeys = function(o) {
|
||||
ownKeys = Object.getOwnPropertyNames || function (o) {
|
||||
var ar = [];
|
||||
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
||||
return ar;
|
||||
};
|
||||
return ownKeys(o);
|
||||
};
|
||||
return function (mod) {
|
||||
if (mod && mod.__esModule) return mod;
|
||||
var result = {};
|
||||
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
||||
__setModuleDefault(result, mod);
|
||||
return result;
|
||||
};
|
||||
})();
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.AppointmentFileInputSchema = void 0;
|
||||
const z = __importStar(require("zod"));
|
||||
// prettier-ignore
|
||||
exports.AppointmentFileInputSchema = z.object({
|
||||
id: z.number().int(),
|
||||
appointmentId: z.number().int(),
|
||||
filename: z.string(),
|
||||
mimeType: z.string().optional().nullable(),
|
||||
filePath: z.string().optional().nullable(),
|
||||
appointment: z.unknown()
|
||||
}).strict();
|
||||
@@ -41,7 +41,7 @@ const ClaimStatus_schema_1 = require("../../enums/ClaimStatus.schema");
|
||||
exports.ClaimInputSchema = z.object({
|
||||
id: z.number().int(),
|
||||
patientId: z.number().int(),
|
||||
appointmentId: z.number().int(),
|
||||
appointmentId: z.number().int().int().optional().nullable(),
|
||||
userId: z.number().int(),
|
||||
staffId: z.number().int(),
|
||||
patientName: z.string(),
|
||||
@@ -56,9 +56,10 @@ exports.ClaimInputSchema = z.object({
|
||||
updatedAt: z.date(),
|
||||
status: ClaimStatus_schema_1.ClaimStatusSchema,
|
||||
claimNumber: z.string().optional().nullable(),
|
||||
preAuthNumber: z.string().optional().nullable(),
|
||||
npiProviderId: z.number().int().optional().nullable(),
|
||||
patient: z.unknown(),
|
||||
appointment: z.unknown(),
|
||||
appointment: z.unknown().optional().nullable(),
|
||||
user: z.unknown().optional().nullable(),
|
||||
staff: z.unknown().optional().nullable(),
|
||||
npiProvider: z.unknown().optional().nullable(),
|
||||
|
||||
@@ -5,7 +5,7 @@ import { ClaimStatusSchema } from '../../enums/ClaimStatus.schema';
|
||||
export const ClaimInputSchema = z.object({
|
||||
id: z.number().int(),
|
||||
patientId: z.number().int(),
|
||||
appointmentId: z.number().int().optional().nullable(),
|
||||
appointmentId: z.number().int().int().optional().nullable(),
|
||||
userId: z.number().int(),
|
||||
staffId: z.number().int(),
|
||||
patientName: z.string(),
|
||||
|
||||
@@ -41,9 +41,11 @@ exports.CloudFolderInputSchema = z.object({
|
||||
userId: z.number().int(),
|
||||
name: z.string(),
|
||||
parentId: z.number().int().optional().nullable(),
|
||||
patientId: z.number().int().optional().nullable(),
|
||||
parent: z.unknown().optional().nullable(),
|
||||
children: z.array(z.unknown()),
|
||||
user: z.unknown(),
|
||||
patient: z.unknown().optional().nullable(),
|
||||
files: z.array(z.unknown()),
|
||||
createdAt: z.date(),
|
||||
updatedAt: z.date()
|
||||
|
||||
@@ -0,0 +1,48 @@
|
||||
"use strict";
|
||||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
||||
if (k2 === undefined) k2 = k;
|
||||
var desc = Object.getOwnPropertyDescriptor(m, k);
|
||||
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
||||
desc = { enumerable: true, get: function() { return m[k]; } };
|
||||
}
|
||||
Object.defineProperty(o, k2, desc);
|
||||
}) : (function(o, m, k, k2) {
|
||||
if (k2 === undefined) k2 = k;
|
||||
o[k2] = m[k];
|
||||
}));
|
||||
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
||||
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
||||
}) : function(o, v) {
|
||||
o["default"] = v;
|
||||
});
|
||||
var __importStar = (this && this.__importStar) || (function () {
|
||||
var ownKeys = function(o) {
|
||||
ownKeys = Object.getOwnPropertyNames || function (o) {
|
||||
var ar = [];
|
||||
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
||||
return ar;
|
||||
};
|
||||
return ownKeys(o);
|
||||
};
|
||||
return function (mod) {
|
||||
if (mod && mod.__esModule) return mod;
|
||||
var result = {};
|
||||
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
||||
__setModuleDefault(result, mod);
|
||||
return result;
|
||||
};
|
||||
})();
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.CommissionBatchInputSchema = void 0;
|
||||
const z = __importStar(require("zod"));
|
||||
// prettier-ignore
|
||||
exports.CommissionBatchInputSchema = z.object({
|
||||
id: z.number().int(),
|
||||
npiProviderId: z.number().int(),
|
||||
totalCollection: z.number(),
|
||||
commissionAmount: z.number(),
|
||||
notes: z.string().optional().nullable(),
|
||||
createdAt: z.date(),
|
||||
npiProvider: z.unknown(),
|
||||
items: z.array(z.unknown())
|
||||
}).strict();
|
||||
@@ -0,0 +1,46 @@
|
||||
"use strict";
|
||||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
||||
if (k2 === undefined) k2 = k;
|
||||
var desc = Object.getOwnPropertyDescriptor(m, k);
|
||||
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
||||
desc = { enumerable: true, get: function() { return m[k]; } };
|
||||
}
|
||||
Object.defineProperty(o, k2, desc);
|
||||
}) : (function(o, m, k, k2) {
|
||||
if (k2 === undefined) k2 = k;
|
||||
o[k2] = m[k];
|
||||
}));
|
||||
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
||||
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
||||
}) : function(o, v) {
|
||||
o["default"] = v;
|
||||
});
|
||||
var __importStar = (this && this.__importStar) || (function () {
|
||||
var ownKeys = function(o) {
|
||||
ownKeys = Object.getOwnPropertyNames || function (o) {
|
||||
var ar = [];
|
||||
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
||||
return ar;
|
||||
};
|
||||
return ownKeys(o);
|
||||
};
|
||||
return function (mod) {
|
||||
if (mod && mod.__esModule) return mod;
|
||||
var result = {};
|
||||
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
||||
__setModuleDefault(result, mod);
|
||||
return result;
|
||||
};
|
||||
})();
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.CommissionBatchItemInputSchema = void 0;
|
||||
const z = __importStar(require("zod"));
|
||||
// prettier-ignore
|
||||
exports.CommissionBatchItemInputSchema = z.object({
|
||||
id: z.number().int(),
|
||||
commissionBatchId: z.number().int(),
|
||||
paymentId: z.number().int(),
|
||||
collectionAmount: z.number(),
|
||||
commissionBatch: z.unknown(),
|
||||
payment: z.unknown()
|
||||
}).strict();
|
||||
@@ -0,0 +1,46 @@
|
||||
"use strict";
|
||||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
||||
if (k2 === undefined) k2 = k;
|
||||
var desc = Object.getOwnPropertyDescriptor(m, k);
|
||||
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
||||
desc = { enumerable: true, get: function() { return m[k]; } };
|
||||
}
|
||||
Object.defineProperty(o, k2, desc);
|
||||
}) : (function(o, m, k, k2) {
|
||||
if (k2 === undefined) k2 = k;
|
||||
o[k2] = m[k];
|
||||
}));
|
||||
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
||||
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
||||
}) : function(o, v) {
|
||||
o["default"] = v;
|
||||
});
|
||||
var __importStar = (this && this.__importStar) || (function () {
|
||||
var ownKeys = function(o) {
|
||||
ownKeys = Object.getOwnPropertyNames || function (o) {
|
||||
var ar = [];
|
||||
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
||||
return ar;
|
||||
};
|
||||
return ownKeys(o);
|
||||
};
|
||||
return function (mod) {
|
||||
if (mod && mod.__esModule) return mod;
|
||||
var result = {};
|
||||
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
||||
__setModuleDefault(result, mod);
|
||||
return result;
|
||||
};
|
||||
})();
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.InsuranceContactInputSchema = void 0;
|
||||
const z = __importStar(require("zod"));
|
||||
// prettier-ignore
|
||||
exports.InsuranceContactInputSchema = z.object({
|
||||
id: z.number().int(),
|
||||
userId: z.number().int(),
|
||||
name: z.string(),
|
||||
phoneNumber: z.string().optional().nullable(),
|
||||
createdAt: z.date(),
|
||||
user: z.unknown()
|
||||
}).strict();
|
||||
@@ -41,8 +41,11 @@ exports.NpiProviderInputSchema = z.object({
|
||||
userId: z.number().int(),
|
||||
npiNumber: z.string(),
|
||||
providerName: z.string(),
|
||||
sortOrder: z.number().int(),
|
||||
createdAt: z.date(),
|
||||
user: z.unknown(),
|
||||
claims: z.array(z.unknown()),
|
||||
payments: z.array(z.unknown()),
|
||||
commissionBatches: z.array(z.unknown()),
|
||||
appointmentProcedures: z.array(z.unknown())
|
||||
}).strict();
|
||||
|
||||
@@ -0,0 +1,53 @@
|
||||
"use strict";
|
||||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
||||
if (k2 === undefined) k2 = k;
|
||||
var desc = Object.getOwnPropertyDescriptor(m, k);
|
||||
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
||||
desc = { enumerable: true, get: function() { return m[k]; } };
|
||||
}
|
||||
Object.defineProperty(o, k2, desc);
|
||||
}) : (function(o, m, k, k2) {
|
||||
if (k2 === undefined) k2 = k;
|
||||
o[k2] = m[k];
|
||||
}));
|
||||
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
||||
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
||||
}) : function(o, v) {
|
||||
o["default"] = v;
|
||||
});
|
||||
var __importStar = (this && this.__importStar) || (function () {
|
||||
var ownKeys = function(o) {
|
||||
ownKeys = Object.getOwnPropertyNames || function (o) {
|
||||
var ar = [];
|
||||
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
||||
return ar;
|
||||
};
|
||||
return ownKeys(o);
|
||||
};
|
||||
return function (mod) {
|
||||
if (mod && mod.__esModule) return mod;
|
||||
var result = {};
|
||||
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
||||
__setModuleDefault(result, mod);
|
||||
return result;
|
||||
};
|
||||
})();
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.OfficeContactInputSchema = void 0;
|
||||
const z = __importStar(require("zod"));
|
||||
// prettier-ignore
|
||||
exports.OfficeContactInputSchema = z.object({
|
||||
id: z.number().int(),
|
||||
userId: z.number().int(),
|
||||
officeName: z.string().optional().nullable(),
|
||||
receptionistName: z.string().optional().nullable(),
|
||||
dentistName: z.string().optional().nullable(),
|
||||
phoneNumber: z.string().optional().nullable(),
|
||||
email: z.string().optional().nullable(),
|
||||
fax: z.string().optional().nullable(),
|
||||
streetAddress: z.string().optional().nullable(),
|
||||
city: z.string().optional().nullable(),
|
||||
state: z.string().optional().nullable(),
|
||||
zipCode: z.string().optional().nullable(),
|
||||
user: z.unknown()
|
||||
}).strict();
|
||||
@@ -0,0 +1,44 @@
|
||||
"use strict";
|
||||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
||||
if (k2 === undefined) k2 = k;
|
||||
var desc = Object.getOwnPropertyDescriptor(m, k);
|
||||
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
||||
desc = { enumerable: true, get: function() { return m[k]; } };
|
||||
}
|
||||
Object.defineProperty(o, k2, desc);
|
||||
}) : (function(o, m, k, k2) {
|
||||
if (k2 === undefined) k2 = k;
|
||||
o[k2] = m[k];
|
||||
}));
|
||||
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
||||
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
||||
}) : function(o, v) {
|
||||
o["default"] = v;
|
||||
});
|
||||
var __importStar = (this && this.__importStar) || (function () {
|
||||
var ownKeys = function(o) {
|
||||
ownKeys = Object.getOwnPropertyNames || function (o) {
|
||||
var ar = [];
|
||||
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
||||
return ar;
|
||||
};
|
||||
return ownKeys(o);
|
||||
};
|
||||
return function (mod) {
|
||||
if (mod && mod.__esModule) return mod;
|
||||
var result = {};
|
||||
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
||||
__setModuleDefault(result, mod);
|
||||
return result;
|
||||
};
|
||||
})();
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.OfficeHoursInputSchema = void 0;
|
||||
const z = __importStar(require("zod"));
|
||||
// prettier-ignore
|
||||
exports.OfficeHoursInputSchema = z.object({
|
||||
id: z.number().int(),
|
||||
userId: z.number().int(),
|
||||
data: z.unknown(),
|
||||
user: z.unknown()
|
||||
}).strict();
|
||||
@@ -54,9 +54,11 @@ exports.PatientInputSchema = z.object({
|
||||
policyHolder: z.string().optional().nullable(),
|
||||
allergies: z.string().optional().nullable(),
|
||||
medicalConditions: z.string().optional().nullable(),
|
||||
preferredLanguage: z.string().optional().nullable(),
|
||||
status: PatientStatus_schema_1.PatientStatusSchema,
|
||||
userId: z.number().int(),
|
||||
createdAt: z.date(),
|
||||
updatedAt: z.date(),
|
||||
user: z.unknown(),
|
||||
appointments: z.array(z.unknown()),
|
||||
procedures: z.array(z.unknown()),
|
||||
@@ -64,5 +66,7 @@ exports.PatientInputSchema = z.object({
|
||||
groups: z.array(z.unknown()),
|
||||
payment: z.array(z.unknown()),
|
||||
communications: z.array(z.unknown()),
|
||||
documents: z.array(z.unknown())
|
||||
documents: z.array(z.unknown()),
|
||||
conversation: z.unknown().optional().nullable(),
|
||||
cloudFolders: z.array(z.unknown())
|
||||
}).strict();
|
||||
|
||||
@@ -0,0 +1,48 @@
|
||||
"use strict";
|
||||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
||||
if (k2 === undefined) k2 = k;
|
||||
var desc = Object.getOwnPropertyDescriptor(m, k);
|
||||
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
||||
desc = { enumerable: true, get: function() { return m[k]; } };
|
||||
}
|
||||
Object.defineProperty(o, k2, desc);
|
||||
}) : (function(o, m, k, k2) {
|
||||
if (k2 === undefined) k2 = k;
|
||||
o[k2] = m[k];
|
||||
}));
|
||||
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
||||
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
||||
}) : function(o, v) {
|
||||
o["default"] = v;
|
||||
});
|
||||
var __importStar = (this && this.__importStar) || (function () {
|
||||
var ownKeys = function(o) {
|
||||
ownKeys = Object.getOwnPropertyNames || function (o) {
|
||||
var ar = [];
|
||||
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
||||
return ar;
|
||||
};
|
||||
return ownKeys(o);
|
||||
};
|
||||
return function (mod) {
|
||||
if (mod && mod.__esModule) return mod;
|
||||
var result = {};
|
||||
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
||||
__setModuleDefault(result, mod);
|
||||
return result;
|
||||
};
|
||||
})();
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.PatientConversationInputSchema = void 0;
|
||||
const z = __importStar(require("zod"));
|
||||
// prettier-ignore
|
||||
exports.PatientConversationInputSchema = z.object({
|
||||
id: z.number().int(),
|
||||
patientId: z.number().int(),
|
||||
userId: z.number().int(),
|
||||
stage: z.string(),
|
||||
aiHandoff: z.boolean(),
|
||||
updatedAt: z.date(),
|
||||
patient: z.unknown(),
|
||||
user: z.unknown()
|
||||
}).strict();
|
||||
@@ -43,10 +43,14 @@ exports.PaymentInputSchema = z.object({
|
||||
patientId: z.number().int(),
|
||||
userId: z.number().int(),
|
||||
updatedById: z.number().int().optional().nullable(),
|
||||
npiProviderId: z.number().int().optional().nullable(),
|
||||
totalBilled: z.number(),
|
||||
totalPaid: z.number(),
|
||||
totalAdjusted: z.number(),
|
||||
totalDue: z.number(),
|
||||
mhPaidAmount: z.number().optional().nullable(),
|
||||
copayment: z.number(),
|
||||
adjustment: z.number(),
|
||||
status: PaymentStatus_schema_1.PaymentStatusSchema,
|
||||
notes: z.string().optional().nullable(),
|
||||
icn: z.string().optional().nullable(),
|
||||
@@ -55,6 +59,8 @@ exports.PaymentInputSchema = z.object({
|
||||
claim: z.unknown().optional().nullable(),
|
||||
patient: z.unknown(),
|
||||
updatedBy: z.unknown().optional().nullable(),
|
||||
npiProvider: z.unknown().optional().nullable(),
|
||||
serviceLineTransactions: z.array(z.unknown()),
|
||||
serviceLines: z.array(z.unknown())
|
||||
serviceLines: z.array(z.unknown()),
|
||||
commissionBatchItems: z.array(z.unknown())
|
||||
}).strict();
|
||||
|
||||
@@ -0,0 +1,44 @@
|
||||
"use strict";
|
||||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
||||
if (k2 === undefined) k2 = k;
|
||||
var desc = Object.getOwnPropertyDescriptor(m, k);
|
||||
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
||||
desc = { enumerable: true, get: function() { return m[k]; } };
|
||||
}
|
||||
Object.defineProperty(o, k2, desc);
|
||||
}) : (function(o, m, k, k2) {
|
||||
if (k2 === undefined) k2 = k;
|
||||
o[k2] = m[k];
|
||||
}));
|
||||
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
||||
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
||||
}) : function(o, v) {
|
||||
o["default"] = v;
|
||||
});
|
||||
var __importStar = (this && this.__importStar) || (function () {
|
||||
var ownKeys = function(o) {
|
||||
ownKeys = Object.getOwnPropertyNames || function (o) {
|
||||
var ar = [];
|
||||
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
||||
return ar;
|
||||
};
|
||||
return ownKeys(o);
|
||||
};
|
||||
return function (mod) {
|
||||
if (mod && mod.__esModule) return mod;
|
||||
var result = {};
|
||||
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
||||
__setModuleDefault(result, mod);
|
||||
return result;
|
||||
};
|
||||
})();
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.ProcedureTimeslotInputSchema = void 0;
|
||||
const z = __importStar(require("zod"));
|
||||
// prettier-ignore
|
||||
exports.ProcedureTimeslotInputSchema = z.object({
|
||||
id: z.number().int(),
|
||||
userId: z.number().int(),
|
||||
data: z.unknown(),
|
||||
user: z.unknown()
|
||||
}).strict();
|
||||
@@ -47,6 +47,9 @@ exports.ServiceLineInputSchema = z.object({
|
||||
arch: z.string().optional().nullable(),
|
||||
toothNumber: z.string().optional().nullable(),
|
||||
toothSurface: z.string().optional().nullable(),
|
||||
icn: z.string().optional().nullable(),
|
||||
paidCode: z.string().optional().nullable(),
|
||||
allowedAmount: z.number().optional().nullable(),
|
||||
totalBilled: z.number(),
|
||||
totalPaid: z.number(),
|
||||
totalAdjusted: z.number(),
|
||||
|
||||
@@ -0,0 +1,47 @@
|
||||
"use strict";
|
||||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
||||
if (k2 === undefined) k2 = k;
|
||||
var desc = Object.getOwnPropertyDescriptor(m, k);
|
||||
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
||||
desc = { enumerable: true, get: function() { return m[k]; } };
|
||||
}
|
||||
Object.defineProperty(o, k2, desc);
|
||||
}) : (function(o, m, k, k2) {
|
||||
if (k2 === undefined) k2 = k;
|
||||
o[k2] = m[k];
|
||||
}));
|
||||
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
||||
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
||||
}) : function(o, v) {
|
||||
o["default"] = v;
|
||||
});
|
||||
var __importStar = (this && this.__importStar) || (function () {
|
||||
var ownKeys = function(o) {
|
||||
ownKeys = Object.getOwnPropertyNames || function (o) {
|
||||
var ar = [];
|
||||
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
||||
return ar;
|
||||
};
|
||||
return ownKeys(o);
|
||||
};
|
||||
return function (mod) {
|
||||
if (mod && mod.__esModule) return mod;
|
||||
var result = {};
|
||||
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
||||
__setModuleDefault(result, mod);
|
||||
return result;
|
||||
};
|
||||
})();
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.ShoppingVendorInputSchema = void 0;
|
||||
const z = __importStar(require("zod"));
|
||||
// prettier-ignore
|
||||
exports.ShoppingVendorInputSchema = z.object({
|
||||
id: z.number().int(),
|
||||
userId: z.number().int(),
|
||||
vendorName: z.string(),
|
||||
websiteUrl: z.string(),
|
||||
loginUsername: z.string(),
|
||||
loginPassword: z.string(),
|
||||
user: z.unknown()
|
||||
}).strict();
|
||||
@@ -0,0 +1,48 @@
|
||||
"use strict";
|
||||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
||||
if (k2 === undefined) k2 = k;
|
||||
var desc = Object.getOwnPropertyDescriptor(m, k);
|
||||
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
||||
desc = { enumerable: true, get: function() { return m[k]; } };
|
||||
}
|
||||
Object.defineProperty(o, k2, desc);
|
||||
}) : (function(o, m, k, k2) {
|
||||
if (k2 === undefined) k2 = k;
|
||||
o[k2] = m[k];
|
||||
}));
|
||||
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
||||
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
||||
}) : function(o, v) {
|
||||
o["default"] = v;
|
||||
});
|
||||
var __importStar = (this && this.__importStar) || (function () {
|
||||
var ownKeys = function(o) {
|
||||
ownKeys = Object.getOwnPropertyNames || function (o) {
|
||||
var ar = [];
|
||||
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
||||
return ar;
|
||||
};
|
||||
return ownKeys(o);
|
||||
};
|
||||
return function (mod) {
|
||||
if (mod && mod.__esModule) return mod;
|
||||
var result = {};
|
||||
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
||||
__setModuleDefault(result, mod);
|
||||
return result;
|
||||
};
|
||||
})();
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.TwilioSettingsInputSchema = void 0;
|
||||
const z = __importStar(require("zod"));
|
||||
// prettier-ignore
|
||||
exports.TwilioSettingsInputSchema = z.object({
|
||||
id: z.number().int(),
|
||||
userId: z.number().int(),
|
||||
accountSid: z.string(),
|
||||
authToken: z.string(),
|
||||
phoneNumber: z.string(),
|
||||
greetingMessage: z.string().optional().nullable(),
|
||||
templates: z.unknown().optional().nullable(),
|
||||
user: z.unknown()
|
||||
}).strict();
|
||||
@@ -41,18 +41,31 @@ exports.UserInputSchema = z.object({
|
||||
username: z.string(),
|
||||
password: z.string(),
|
||||
autoBackupEnabled: z.boolean(),
|
||||
autoBackupHour: z.number().int(),
|
||||
usbBackupEnabled: z.boolean(),
|
||||
usbBackupHour: z.number().int(),
|
||||
autoMhCheckEnabled: z.boolean(),
|
||||
autoMhCheckDayOfWeek: z.number().int(),
|
||||
autoMhCheckHour: z.number().int(),
|
||||
patients: z.array(z.unknown()),
|
||||
appointments: z.array(z.unknown()),
|
||||
staff: z.array(z.unknown()),
|
||||
npiProviders: z.array(z.unknown()),
|
||||
claims: z.array(z.unknown()),
|
||||
insuranceCredentials: z.array(z.unknown()),
|
||||
shoppingVendors: z.array(z.unknown()),
|
||||
updatedPayments: z.array(z.unknown()),
|
||||
backups: z.array(z.unknown()),
|
||||
backupDestinations: z.array(z.unknown()),
|
||||
notifications: z.array(z.unknown()),
|
||||
cloudFolders: z.array(z.unknown()),
|
||||
cloudFiles: z.array(z.unknown()),
|
||||
communications: z.array(z.unknown())
|
||||
communications: z.array(z.unknown()),
|
||||
twilioSettings: z.unknown().optional().nullable(),
|
||||
aiSettings: z.unknown().optional().nullable(),
|
||||
officeHours: z.unknown().optional().nullable(),
|
||||
officeContact: z.unknown().optional().nullable(),
|
||||
procedureTimeslot: z.unknown().optional().nullable(),
|
||||
insuranceContacts: z.array(z.unknown()),
|
||||
patientConversations: z.array(z.unknown())
|
||||
}).strict();
|
||||
|
||||
@@ -4,13 +4,15 @@
|
||||
* Auto-generated - do not edit manually
|
||||
*/
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.PatientDocumentInputSchema = exports.CommunicationInputSchema = exports.CloudFileChunkInputSchema = exports.CloudFileInputSchema = exports.CloudFolderInputSchema = exports.CronJobLogInputSchema = exports.NotificationInputSchema = exports.BackupDestinationInputSchema = exports.DatabaseBackupInputSchema = exports.ServiceLineTransactionInputSchema = exports.PaymentInputSchema = exports.PdfFileInputSchema = exports.PdfGroupInputSchema = exports.InsuranceCredentialInputSchema = exports.ClaimFileInputSchema = exports.ServiceLineInputSchema = exports.ClaimInputSchema = exports.AppointmentProcedureInputSchema = exports.NpiProviderInputSchema = exports.StaffInputSchema = exports.AppointmentInputSchema = exports.PatientInputSchema = exports.UserInputSchema = void 0;
|
||||
exports.CommissionBatchItemInputSchema = exports.CommissionBatchInputSchema = exports.PatientConversationInputSchema = exports.ProcedureTimeslotInputSchema = exports.InsuranceContactInputSchema = exports.OfficeContactInputSchema = exports.OfficeHoursInputSchema = exports.AiSettingsInputSchema = exports.TwilioSettingsInputSchema = exports.PatientDocumentInputSchema = exports.CommunicationInputSchema = exports.CloudFileChunkInputSchema = exports.CloudFileInputSchema = exports.CloudFolderInputSchema = exports.CronJobLogInputSchema = exports.NotificationInputSchema = exports.BackupDestinationInputSchema = exports.DatabaseBackupInputSchema = exports.ServiceLineTransactionInputSchema = exports.PaymentInputSchema = exports.PdfFileInputSchema = exports.PdfGroupInputSchema = exports.ShoppingVendorInputSchema = exports.InsuranceCredentialInputSchema = exports.ClaimFileInputSchema = exports.ServiceLineInputSchema = exports.ClaimInputSchema = exports.AppointmentProcedureInputSchema = exports.NpiProviderInputSchema = exports.StaffInputSchema = exports.AppointmentFileInputSchema = exports.AppointmentInputSchema = exports.PatientInputSchema = exports.UserInputSchema = void 0;
|
||||
var User_input_1 = require("./User.input");
|
||||
Object.defineProperty(exports, "UserInputSchema", { enumerable: true, get: function () { return User_input_1.UserInputSchema; } });
|
||||
var Patient_input_1 = require("./Patient.input");
|
||||
Object.defineProperty(exports, "PatientInputSchema", { enumerable: true, get: function () { return Patient_input_1.PatientInputSchema; } });
|
||||
var Appointment_input_1 = require("./Appointment.input");
|
||||
Object.defineProperty(exports, "AppointmentInputSchema", { enumerable: true, get: function () { return Appointment_input_1.AppointmentInputSchema; } });
|
||||
var AppointmentFile_input_1 = require("./AppointmentFile.input");
|
||||
Object.defineProperty(exports, "AppointmentFileInputSchema", { enumerable: true, get: function () { return AppointmentFile_input_1.AppointmentFileInputSchema; } });
|
||||
var Staff_input_1 = require("./Staff.input");
|
||||
Object.defineProperty(exports, "StaffInputSchema", { enumerable: true, get: function () { return Staff_input_1.StaffInputSchema; } });
|
||||
var NpiProvider_input_1 = require("./NpiProvider.input");
|
||||
@@ -25,6 +27,8 @@ var ClaimFile_input_1 = require("./ClaimFile.input");
|
||||
Object.defineProperty(exports, "ClaimFileInputSchema", { enumerable: true, get: function () { return ClaimFile_input_1.ClaimFileInputSchema; } });
|
||||
var InsuranceCredential_input_1 = require("./InsuranceCredential.input");
|
||||
Object.defineProperty(exports, "InsuranceCredentialInputSchema", { enumerable: true, get: function () { return InsuranceCredential_input_1.InsuranceCredentialInputSchema; } });
|
||||
var ShoppingVendor_input_1 = require("./ShoppingVendor.input");
|
||||
Object.defineProperty(exports, "ShoppingVendorInputSchema", { enumerable: true, get: function () { return ShoppingVendor_input_1.ShoppingVendorInputSchema; } });
|
||||
var PdfGroup_input_1 = require("./PdfGroup.input");
|
||||
Object.defineProperty(exports, "PdfGroupInputSchema", { enumerable: true, get: function () { return PdfGroup_input_1.PdfGroupInputSchema; } });
|
||||
var PdfFile_input_1 = require("./PdfFile.input");
|
||||
@@ -51,3 +55,21 @@ var Communication_input_1 = require("./Communication.input");
|
||||
Object.defineProperty(exports, "CommunicationInputSchema", { enumerable: true, get: function () { return Communication_input_1.CommunicationInputSchema; } });
|
||||
var PatientDocument_input_1 = require("./PatientDocument.input");
|
||||
Object.defineProperty(exports, "PatientDocumentInputSchema", { enumerable: true, get: function () { return PatientDocument_input_1.PatientDocumentInputSchema; } });
|
||||
var TwilioSettings_input_1 = require("./TwilioSettings.input");
|
||||
Object.defineProperty(exports, "TwilioSettingsInputSchema", { enumerable: true, get: function () { return TwilioSettings_input_1.TwilioSettingsInputSchema; } });
|
||||
var AiSettings_input_1 = require("./AiSettings.input");
|
||||
Object.defineProperty(exports, "AiSettingsInputSchema", { enumerable: true, get: function () { return AiSettings_input_1.AiSettingsInputSchema; } });
|
||||
var OfficeHours_input_1 = require("./OfficeHours.input");
|
||||
Object.defineProperty(exports, "OfficeHoursInputSchema", { enumerable: true, get: function () { return OfficeHours_input_1.OfficeHoursInputSchema; } });
|
||||
var OfficeContact_input_1 = require("./OfficeContact.input");
|
||||
Object.defineProperty(exports, "OfficeContactInputSchema", { enumerable: true, get: function () { return OfficeContact_input_1.OfficeContactInputSchema; } });
|
||||
var InsuranceContact_input_1 = require("./InsuranceContact.input");
|
||||
Object.defineProperty(exports, "InsuranceContactInputSchema", { enumerable: true, get: function () { return InsuranceContact_input_1.InsuranceContactInputSchema; } });
|
||||
var ProcedureTimeslot_input_1 = require("./ProcedureTimeslot.input");
|
||||
Object.defineProperty(exports, "ProcedureTimeslotInputSchema", { enumerable: true, get: function () { return ProcedureTimeslot_input_1.ProcedureTimeslotInputSchema; } });
|
||||
var PatientConversation_input_1 = require("./PatientConversation.input");
|
||||
Object.defineProperty(exports, "PatientConversationInputSchema", { enumerable: true, get: function () { return PatientConversation_input_1.PatientConversationInputSchema; } });
|
||||
var CommissionBatch_input_1 = require("./CommissionBatch.input");
|
||||
Object.defineProperty(exports, "CommissionBatchInputSchema", { enumerable: true, get: function () { return CommissionBatch_input_1.CommissionBatchInputSchema; } });
|
||||
var CommissionBatchItem_input_1 = require("./CommissionBatchItem.input");
|
||||
Object.defineProperty(exports, "CommissionBatchItemInputSchema", { enumerable: true, get: function () { return CommissionBatchItem_input_1.CommissionBatchItemInputSchema; } });
|
||||
|
||||
Reference in New Issue
Block a user