"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.FieldsValidationSchema = exports.fields = void 0;
const extensions_core_1 = require("@awell-health/extensions-core");
const zod_1 = require("zod");
exports.fields = {
    quality_program: {
        id: 'quality_program',
        label: 'Quality Program',
        type: extensions_core_1.FieldType.STRING,
        required: true,
        description: '',
    },
    definition_id: {
        id: 'definition_id',
        label: 'Definition ID',
        type: extensions_core_1.FieldType.STRING,
        required: true,
        description: '',
    },
    patient_id: {
        id: 'patient_id',
        label: 'Patient ID',
        type: extensions_core_1.FieldType.STRING,
        required: true,
        description: '',
    },
    practice_id: {
        id: 'practice_id',
        label: 'Practice ID',
        type: extensions_core_1.FieldType.STRING,
        required: true,
        description: '',
    },
    created_date: {
        id: 'created_date',
        label: 'Created date',
        type: extensions_core_1.FieldType.DATE,
        required: true,
        description: '',
    },
    status: {
        id: 'status',
        label: 'Status',
        type: extensions_core_1.FieldType.STRING,
        required: true,
        description: '',
        options: {
            dropdownOptions: [
                {
                    label: 'Open',
                    value: 'open',
                },
                {
                    label: 'Closed',
                    value: 'closed',
                },
            ],
        },
    },
    detail: {
        id: 'detail',
        label: 'Detail',
        type: extensions_core_1.FieldType.TEXT,
        required: false,
        description: '',
    },
};
exports.FieldsValidationSchema = zod_1.z.object({
    quality_program: zod_1.z.string(),
    definition_id: zod_1.z.string(),
    patient_id: zod_1.z.string(),
    practice_id: zod_1.z.string(),
    created_date: zod_1.z.string().datetime(),
    status: zod_1.z.enum(['open', 'closed']),
    detail: zod_1.z.string().optional(),
});
//# sourceMappingURL=fields.js.map