"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.patientRecommendation = void 0;
const extensions_core_1 = require("@awell-health/extensions-core");
const extensions_core_2 = require("@awell-health/extensions-core");
const config_1 = require("./config");
const zod_1 = require("zod");
exports.patientRecommendation = {
    key: 'patientRecommendation',
    category: extensions_core_2.Category.WORKFLOW,
    title: 'Patient recommendation',
    description: 'Recommend the patient with an office visit, video chat, ...',
    fields: config_1.fields,
    dataPoints: config_1.dataPoints,
    options: {
        stakeholders: {
            label: 'Stakeholder',
            mode: 'single',
        },
    },
    previewable: false,
    onActivityCreated: async (payload, onComplete, onError) => {
        (0, extensions_core_1.validate)({
            schema: zod_1.z.object({
                fields: config_1.FieldsValidationSchema,
            }),
            payload,
        });
        // Completion happens in Hosted Pages
    },
};
//# sourceMappingURL=patientRecommendation.js.map