"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.FieldsValidationSchema = exports.fields = void 0;
const extensions_core_1 = require("@awell-health/extensions-core");
const zod_1 = __importDefault(require("zod"));
exports.fields = {
    patientId: {
        id: 'patientId',
        label: 'Patient ID',
        description: 'The ID of the patient for whom the lab order is being created.',
        type: extensions_core_1.FieldType.NUMERIC,
        required: true,
    },
    name: {
        id: 'name',
        label: 'Name',
        description: 'The name of the allergy drug',
        type: extensions_core_1.FieldType.STRING,
        required: true,
    },
    startDate: {
        id: 'startDate',
        label: 'Start Date',
        description: 'The date the allergy started (defaults to today)',
        type: extensions_core_1.FieldType.DATE,
        required: false,
    },
    reaction: {
        id: 'reaction',
        label: 'Reaction',
        description: 'The reaction to the drug',
        type: extensions_core_1.FieldType.STRING,
        required: false,
    },
    severity: {
        id: 'severity',
        label: 'Severity',
        description: 'How severe the reaction is',
        type: extensions_core_1.FieldType.STRING,
        required: false,
    },
};
exports.FieldsValidationSchema = zod_1.default.object({
    patientId: extensions_core_1.NumericIdSchema,
    name: zod_1.default.string().min(1),
    startDate: extensions_core_1.DateTimeOptionalSchema.optional(),
    reaction: zod_1.default.string().optional(),
    severity: zod_1.default.string().optional(),
});
//# sourceMappingURL=fields.js.map