"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: '',
        type: extensions_core_1.FieldType.NUMERIC,
        required: true,
    },
    // Practice ID is not required so leaving it out for simplicity
    // practiceId: {
    //   id: 'practiceId',
    //   label: 'Practice',
    //   description: 'ID of a Practice',
    //   type: FieldType.NUMERIC,
    //   required: false,
    // },
    authorId: {
        id: 'authorId',
        label: 'Author',
        description: 'The author of a note. Should be the ID of a User in Elation.',
        type: extensions_core_1.FieldType.NUMERIC,
        required: true,
    },
    category: {
        id: 'category',
        label: 'Category',
        description: 'The Category of a note, defaults to "Problem". Read the extension documentation for the list of possible values.',
        type: extensions_core_1.FieldType.STRING,
        required: false,
    },
    tags: {
        id: 'tags',
        label: 'Tags',
        description: 'Comma-separated list of tags IDs',
        type: extensions_core_1.FieldType.STRING,
        required: false,
    },
    text: {
        id: 'text',
        label: 'Text',
        description: 'Text of a note',
        type: extensions_core_1.FieldType.TEXT,
        required: true,
    },
};
exports.FieldsValidationSchema = zod_1.default.object({
    patientId: extensions_core_1.NumericIdSchema,
    authorId: extensions_core_1.NumericIdSchema,
    tags: zod_1.default.string().optional(),
    category: zod_1.default.string().optional(),
    text: zod_1.default.string(),
});
//# sourceMappingURL=fields.js.map