/** * StructureDefinition Business Rule Validator * * Validates StructureDefinition-specific business rules that the Java * validator enforces. These are meta-validation rules about SDs * themselves — not profile-driven validation of instance resources. * * Lookup tables live in `sd-wg-mappings.ts` to keep this file under * the 400-line lint threshold. */ import type { ValidationIssue } from '../types'; export declare class StructureDefinitionValidator { validate(resource: any): ValidationIssue[]; /** * Extension fixedUri vs canonical URL mismatch. * * Case 1: fixedUri differs from the SD's own canonical URL. * Case 2: derived extension overrides fixedUri (violates fixed-value rule). */ private validateExtensionFixedUrl; /** Validate context expressions — e.g. ElementDefinition.targetProfile is not valid in R4. */ private validateContextValidity; /** Extension context type review — "Element" context is suspicious. */ private validateExtensionContextType; /** sdf-20: No slicing on the root element. */ private validateRootSlicing; /** eld-19 / eld-20: element name constraints in differential. */ private validateElementNames; /** Detect bad paths in differential that would cause snapshot generation errors. */ private validateDifferentialPaths; /** Must-support consistency: sliced elements with mustSupport=true expect slices to match. */ private validateSliceMustSupport; /** * Apply Identifier ident-1 ("Identifier with no value has limited * utility") to any patternIdentifier / fixedIdentifier value declared * on a differential element. Java raises this warning whenever the * pattern carries only a system/use without value or extension — * see R5.cw-slice-adds-base baseline. Hard-coded here rather than via * a generic pattern-as-instance evaluator; expand this list as more * pattern-typed constraints come up in conformance baselines. */ private validatePatternIdent1; private validatePatternCodingCompleteness; /** Detect self-referencing baseDefinition (circular). */ private validateBaseDefinition; } export declare const structureDefinitionValidator: StructureDefinitionValidator; //# sourceMappingURL=structure-definition-validator.d.ts.map