"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"));
const history_1 = require("../../../types/history");
exports.fields = {
    patientId: {
        id: 'patientId',
        label: 'Patient ID',
        description: 'The patient for whom the the history is being created',
        type: extensions_core_1.FieldType.NUMERIC,
        required: true,
    },
    type: {
        id: 'type',
        label: 'Type',
        description: 'The type of history being created. Supported values: Past, Family, Social, Habits, Diet, Exercise, Immunization, Legal, Consultation, Health Maintenance, Past Surgical, Cognitive Status, Functional Status',
        type: extensions_core_1.FieldType.STRING,
        required: true,
        options: {
            dropdownOptions: Object.values(history_1.HistoryTypes.enum).map((type) => ({
                label: type,
                value: type,
            })),
        },
    },
    text: {
        id: 'text',
        label: 'Text',
        description: 'The text of the history being created',
        type: extensions_core_1.FieldType.STRING,
        required: true,
    },
};
exports.FieldsValidationSchema = zod_1.default.object({
    patientId: extensions_core_1.NumericIdSchema,
    type: history_1.HistoryTypes,
    text: zod_1.default.string(),
});
//# sourceMappingURL=fields.js.map