"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.executeDoctorCheckPlan = executeDoctorCheckPlan;
function executeDoctorCheckPlan(steps) {
    const checks = [];
    const findings = [];
    const executedStepIds = [];
    for (const step of steps) {
        const result = step.run(findings);
        checks.push(...(Array.isArray(result) ? result : [result]));
        executedStepIds.push(step.id);
    }
    return { checks, findings, executedStepIds };
}
