/** * Deep Profile Validator * * Performs comprehensive validation against StructureDefinition elements. * Goes beyond basic cardinality to check: * - All element constraints * - Fixed values * - Pattern values * - Required bindings (from SD) * - Nested element requirements * - Type-specific constraints * * This brings Records to full parity with HAPI's profile validation depth. */ import type { ValidationIssue } from '../types'; import type { StructureDefinition } from '../core/structure-definition-types'; export interface DeepProfileValidationContext { resource: any; resourceType: string; structureDef: StructureDefinition; profileUrl?: string; } export declare class DeepProfileValidator { /** * Validate resource against all StructureDefinition constraints */ validate(context: DeepProfileValidationContext): ValidationIssue[]; /** * Validate a single element definition against the resource */ private validateElement; /** * Get value at path, handling resource type prefix */ private getValueAtPath; /** * Extract fixed value from element definition */ private extractFixedValue; /** * Extract pattern value from element definition */ private extractPatternValue; /** * Extract minValue from element definition */ private extractMinValue; /** * Extract maxValue from element definition */ private extractMaxValue; /** * Check if two values are equal */ private valuesEqual; /** * Check if value satisfies binding (basic check) */ private hasBinding; private buildRequiredBindingDetails; private describePatternMismatch; private formatIssueValue; } export declare const deepProfileValidator: DeepProfileValidator; //# sourceMappingURL=deep-profile-validator.d.ts.map