"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");
exports.fields = {
    patientId: {
        id: 'patientId',
        label: 'Patient ID',
        description: 'The HiX patient number of the patient the task is for.',
        type: extensions_core_1.FieldType.STRING,
        required: true,
    },
    patientName: {
        id: 'patientName',
        label: 'Patient name',
        description: 'The full name of the patient (e.g. "DE BACKER, Marc").',
        type: extensions_core_1.FieldType.STRING,
        required: true,
    },
    title: {
        id: 'title',
        label: 'Task title',
        description: 'The title of the task as it appears on the worklist.',
        type: extensions_core_1.FieldType.STRING,
        required: true,
    },
    description: {
        id: 'description',
        label: 'Task description',
        description: 'Optional description, shown in the detail pane of the worklist.',
        type: extensions_core_1.FieldType.TEXT,
        required: false,
    },
    requester: {
        id: 'requester',
        label: 'Requester',
        description: 'The system or person requesting the task. Defaults to ZTOP.',
        type: extensions_core_1.FieldType.STRING,
        required: false,
    },
    launchUrl: {
        id: 'launchUrl',
        label: 'Launch URL',
        description: 'Optional URL to launch when the task is opened in HiX (e.g. a panel URL with launch context). Supports {patientId} and {taskId} template variables.',
        type: extensions_core_1.FieldType.STRING,
        required: false,
    },
};
exports.FieldsValidationSchema = zod_1.z.object({
    patientId: zod_1.z.string().min(1),
    patientName: zod_1.z.string().min(1),
    title: zod_1.z.string().min(1),
    description: zod_1.z.string().optional(),
    requester: zod_1.z.string().optional(),
    launchUrl: zod_1.z.string().optional(),
});
//# sourceMappingURL=fields.js.map