/** * Batch Validator * * Handles batch validation orchestration. * Extracted from validator-engine.ts to comply with global.mdc guidelines. */ import type { ValidationAspectType, ValidationIssue, ValidationSettings } from '../types'; import type { FhirClientLike } from './profile-loader-utils.js'; import type { StructureDefinitionLoader } from './structure-definition-loader'; import type { ProfileCache } from '../cache/profile-cache'; import type { SnapshotGenerator } from './snapshot-generator'; import type { ReferenceResolver } from '../validators/slicing-validator'; export interface BatchValidationOptions { fhirVersion?: 'R4' | 'R5' | 'R6'; maxConcurrency?: number; profileUrl?: string; aspects?: ValidationAspectType[]; settings?: ValidationSettings; fhirClient?: FhirClientLike; referenceResolver?: ReferenceResolver; organizationId?: number; serverId?: number; runtimeScopeKey?: string; onResourceValidated?: (resource: any, result: unknown) => void | Promise; onEmbeddedResourceValidated?: (resource: any, result: unknown) => void | Promise; shouldStop?: () => boolean; } export interface BatchValidatorContext { sdLoader: StructureDefinitionLoader; profileCache: ProfileCache; snapshotGenerator: SnapshotGenerator; validateResource: (resource: any, profileUrl: string, fhirVersion: 'R4' | 'R5' | 'R6') => Promise; } export declare class BatchValidationAbortedError extends Error { constructor(); } export declare function isBatchValidationAbortedError(error: unknown): error is BatchValidationAbortedError; /** * Execute batch validation */ export declare function executeBatchValidation(resources: any[], options: BatchValidationOptions, context: BatchValidatorContext): Promise>; //# sourceMappingURL=batch-validator.d.ts.map