fix: use rendering provider from claim form for MassHealth dentist search, default to Mary Scannell, select first office option
This commit is contained in:
@@ -38,11 +38,12 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.PaymentUncheckedCreateWithoutPatientInputObjectZodSchema = exports.PaymentUncheckedCreateWithoutPatientInputObjectSchema = void 0;
|
||||
const z = __importStar(require("zod"));
|
||||
const prisma_1 = require("../../../generated/prisma");
|
||||
const decimal_js_1 = __importDefault(require("decimal.js"));
|
||||
const PaymentStatus_schema_1 = require("../enums/PaymentStatus.schema");
|
||||
const ServiceLineTransactionUncheckedCreateNestedManyWithoutPaymentInput_schema_1 = require("./ServiceLineTransactionUncheckedCreateNestedManyWithoutPaymentInput.schema");
|
||||
const ServiceLineUncheckedCreateNestedManyWithoutPaymentInput_schema_1 = require("./ServiceLineUncheckedCreateNestedManyWithoutPaymentInput.schema");
|
||||
const decimal_helpers_1 = require("../../helpers/decimal-helpers");
|
||||
const decimal_js_1 = __importDefault(require("decimal.js"));
|
||||
const makeSchema = () => z.object({
|
||||
id: z.number().int().optional(),
|
||||
claimId: z.number().int().optional().nullable(),
|
||||
@@ -52,7 +53,7 @@ const makeSchema = () => z.object({
|
||||
z.number(),
|
||||
z.string(),
|
||||
z.instanceof(decimal_js_1.default),
|
||||
z.instanceof(decimal_js_1.default),
|
||||
z.instanceof(prisma_1.Prisma.Decimal),
|
||||
decimal_helpers_1.DecimalJSLikeSchema,
|
||||
]).refine((v) => (0, decimal_helpers_1.isValidDecimalInput)(v), {
|
||||
message: "Field 'totalBilled' must be a Decimal",
|
||||
@@ -61,7 +62,7 @@ const makeSchema = () => z.object({
|
||||
z.number(),
|
||||
z.string(),
|
||||
z.instanceof(decimal_js_1.default),
|
||||
z.instanceof(decimal_js_1.default),
|
||||
z.instanceof(prisma_1.Prisma.Decimal),
|
||||
decimal_helpers_1.DecimalJSLikeSchema,
|
||||
]).refine((v) => (0, decimal_helpers_1.isValidDecimalInput)(v), {
|
||||
message: "Field 'totalPaid' must be a Decimal",
|
||||
@@ -70,7 +71,7 @@ const makeSchema = () => z.object({
|
||||
z.number(),
|
||||
z.string(),
|
||||
z.instanceof(decimal_js_1.default),
|
||||
z.instanceof(decimal_js_1.default),
|
||||
z.instanceof(prisma_1.Prisma.Decimal),
|
||||
decimal_helpers_1.DecimalJSLikeSchema,
|
||||
]).refine((v) => (0, decimal_helpers_1.isValidDecimalInput)(v), {
|
||||
message: "Field 'totalAdjusted' must be a Decimal",
|
||||
@@ -79,7 +80,7 @@ const makeSchema = () => z.object({
|
||||
z.number(),
|
||||
z.string(),
|
||||
z.instanceof(decimal_js_1.default),
|
||||
z.instanceof(decimal_js_1.default),
|
||||
z.instanceof(prisma_1.Prisma.Decimal),
|
||||
decimal_helpers_1.DecimalJSLikeSchema,
|
||||
]).refine((v) => (0, decimal_helpers_1.isValidDecimalInput)(v), {
|
||||
message: "Field 'totalDue' must be a Decimal",
|
||||
|
||||
Reference in New Issue
Block a user