"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.FieldsValidationSchema = exports.fields = void 0;
const zod_1 = require("zod");
const extensions_core_1 = require("@awell-health/extensions-core");
const extensions_core_2 = require("@awell-health/extensions-core");
const referralOrder_zod_1 = require("../../../validation/referralOrder.zod");
exports.fields = {
    patient: {
        id: 'patient',
        label: 'Patient ID',
        type: extensions_core_2.FieldType.NUMERIC,
        required: true,
        description: '',
    },
    practice: {
        id: 'practice',
        label: 'Practice ID',
        type: extensions_core_2.FieldType.NUMERIC,
        required: true,
        description: '',
    },
    contact_name: {
        id: 'contact_name',
        label: 'Contact name',
        type: extensions_core_2.FieldType.STRING,
        required: true,
        description: '',
    },
    body: {
        id: 'body',
        label: 'Body',
        type: extensions_core_2.FieldType.TEXT,
        required: true,
        description: '',
    },
    authorization_for: {
        id: 'authorization_for',
        label: 'Authorization for',
        type: extensions_core_2.FieldType.STRING,
        required: true,
        description: '',
        options: {
            dropdownOptions: Object.values(referralOrder_zod_1.AuthorizationForSchema.enum).map((template) => ({
                label: template,
                value: template,
            })),
        },
    },
    consultant_name: {
        id: 'consultant_name',
        label: 'Consultant name',
        type: extensions_core_2.FieldType.STRING,
        required: true,
        description: '',
    },
    specialty: {
        id: 'specialty',
        label: 'Specialty',
        type: extensions_core_2.FieldType.STRING,
        required: false,
        description: '',
    },
};
exports.FieldsValidationSchema = zod_1.z.object({
    patient: extensions_core_1.NumericIdSchema,
    practice: extensions_core_1.NumericIdSchema,
    contact_name: zod_1.z.string(),
    body: zod_1.z.string(),
    authorization_for: referralOrder_zod_1.AuthorizationForSchema,
    consultant_name: zod_1.z.string(),
    specialty: zod_1.z.string(),
});
//# sourceMappingURL=fields.js.map