"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.reviewMedicationExtraction = void 0;
// import { AwellSdk } from '@awell-health/awell-sdk'
const extensions_core_1 = require("@awell-health/extensions-core");
const lib_1 = require("../../lib");
const config_1 = require("./config");
exports.reviewMedicationExtraction = {
    key: 'reviewMedicationExtraction',
    category: extensions_core_1.Category.WORKFLOW,
    title: 'Review medication extraction',
    description: 'Allow a stakeholder to review the medication extraction',
    fields: config_1.fields,
    previewable: false,
    dataPoints: config_1.dataPoints,
    options: {
        stakeholders: {
            label: 'Stakeholder',
            mode: 'single',
        },
    },
    onEvent: async ({ payload, onComplete, onError, helpers }) => {
        await (0, lib_1.validatePayloadAndCreateSdk)({
            fieldsSchema: config_1.FieldsValidationSchema,
            payload,
        });
        // Completion in Hosted Pages
    },
};
//# sourceMappingURL=reviewMedicationExtraction.js.map