/** * Validation Message Codes - Central Registry * * Re-exports all validation codes from aspect-specific modules. * Provides utility functions for code resolution and metadata lookup. */ export type { ValidationCodeMetadata } from './validation-code-types'; export { TerminologyCodes, type TerminologyCode } from './terminology-codes'; export { MetadataCodes, type MetadataCode } from './metadata-codes'; export { ReferenceCodes, type ReferenceCode } from './reference-codes'; export { StructuralCodes, type StructuralCode } from './structural-codes'; export { ProfileCodes, type ProfileCode } from './profile-codes'; export { BusinessRuleCodes, type BusinessRuleCode } from './business-rule-codes'; import type { ValidationCodeMetadata } from './validation-code-types'; export declare const ValidationCodes: { readonly 'terminology-binding-required': { readonly aspect: 'terminology'; readonly severity: 'error'; readonly description: 'Code not in required value set binding'; }; readonly 'terminology-binding-extensible': { readonly aspect: 'terminology'; readonly severity: 'warning'; readonly description: 'Code not in extensible value set binding'; }; readonly 'terminology-binding-preferred': { readonly aspect: 'terminology'; readonly severity: 'info'; readonly description: 'Code not in preferred value set binding'; }; readonly 'terminology-binding-example': { readonly aspect: 'terminology'; readonly severity: 'info'; readonly description: 'Code not in example value set binding'; }; readonly 'terminology-binding-required-code': { readonly aspect: 'terminology'; readonly severity: 'error'; readonly description: 'Primitive code not in required value set binding'; }; readonly 'terminology-binding-extensible-code': { readonly aspect: 'terminology'; readonly severity: 'warning'; readonly description: 'Primitive code not in extensible value set binding'; }; readonly 'terminology-binding-preferred-code': { readonly aspect: 'terminology'; readonly severity: 'info'; readonly description: 'Primitive code not in preferred value set binding'; }; readonly 'terminology-binding-example-code': { readonly aspect: 'terminology'; readonly severity: 'info'; readonly description: 'Primitive code not in example value set binding'; }; readonly 'terminology-binding-missing': { readonly aspect: 'terminology'; readonly severity: 'error'; readonly description: 'Required binding code is missing'; }; readonly 'terminology-valueset-error': { readonly aspect: 'terminology'; readonly severity: 'warning'; readonly description: 'ValueSet validation failed'; }; readonly 'terminology-display-mismatch': { readonly aspect: 'terminology'; readonly severity: 'warning'; readonly description: 'Coding display does not match CodeSystem concept display'; }; readonly 'terminology-code-inactive': { readonly aspect: 'terminology'; readonly severity: 'warning'; readonly description: 'CodeSystem concept is inactive'; }; readonly 'terminology-code-system-version-mismatch': { readonly aspect: 'terminology'; readonly severity: 'error'; readonly description: 'Coding.version conflicts with the CodeSystem version constrained by the bound ValueSet'; }; readonly 'terminology-coding-system-valueset': { readonly aspect: 'terminology'; readonly severity: 'error'; readonly description: 'Coding.system references a ValueSet instead of a CodeSystem'; }; readonly 'terminology-code-system-canonical-mismatch': { readonly aspect: 'terminology'; readonly severity: 'error'; readonly description: 'Coding.system uses a known incorrect canonical URL for a CodeSystem'; }; readonly 'terminology-codesystem-unresolvable': { readonly aspect: 'terminology'; readonly severity: 'warning'; readonly description: 'CodeSystem is not available in configured terminology sources'; }; readonly 'terminology-server-failure': { readonly aspect: 'terminology'; readonly severity: 'warning'; readonly description: 'Terminology server failed or timed out while validating the code'; }; readonly 'terminology-binding-unverified': { readonly aspect: 'terminology'; readonly severity: 'information'; readonly description: 'Binding could not be verified; ValueSet not expandable locally and no terminology server confirmed the code'; }; readonly 'metadata-version-id-invalid-type': { readonly aspect: 'metadata'; readonly severity: 'error'; readonly description: 'versionId must be a string'; }; readonly 'metadata-version-id-empty': { readonly aspect: 'metadata'; readonly severity: 'error'; readonly description: 'versionId cannot be empty'; }; readonly 'metadata-version-id-invalid-format': { readonly aspect: 'metadata'; readonly severity: 'error'; readonly description: 'versionId does not match FHIR id pattern'; }; readonly 'metadata-version-id-timestamp-pattern': { readonly aspect: 'metadata'; readonly severity: 'info'; readonly description: 'versionId appears to be a timestamp'; }; readonly 'metadata-version-id-non-positive': { readonly aspect: 'metadata'; readonly severity: 'warning'; readonly description: 'Numeric versionId should be positive'; }; readonly 'metadata-version-id-special-chars-only': { readonly aspect: 'metadata'; readonly severity: 'warning'; readonly description: 'versionId consists only of special characters'; }; readonly 'metadata-version-id-etag-format': { readonly aspect: 'metadata'; readonly severity: 'warning'; readonly description: 'versionId appears to be in ETag format'; }; readonly 'metadata-version-id-same-as-id': { readonly aspect: 'metadata'; readonly severity: 'info'; readonly description: 'versionId matches resource.id'; }; readonly 'metadata-version-id-very-high': { readonly aspect: 'metadata'; readonly severity: 'info'; readonly description: 'versionId is unusually high'; }; readonly 'metadata-version-id-validation-error': { readonly aspect: 'metadata'; readonly severity: 'warning'; readonly description: 'versionId validation failed'; }; readonly 'metadata-last-updated-invalid-type': { readonly aspect: 'metadata'; readonly severity: 'error'; readonly description: 'lastUpdated must be a string'; }; readonly 'metadata-last-updated-missing-timezone': { readonly aspect: 'metadata'; readonly severity: 'warning'; readonly description: 'lastUpdated is missing timezone'; }; readonly 'metadata-last-updated-invalid-format': { readonly aspect: 'metadata'; readonly severity: 'error'; readonly description: 'lastUpdated does not match instant format'; }; readonly 'metadata-last-updated-non-utc': { readonly aspect: 'metadata'; readonly severity: 'info'; readonly description: 'lastUpdated uses non-UTC timezone'; }; readonly 'metadata-last-updated-missing-seconds': { readonly aspect: 'metadata'; readonly severity: 'info'; readonly description: 'lastUpdated is missing seconds precision'; }; readonly 'metadata-last-updated-future': { readonly aspect: 'metadata'; readonly severity: 'warning'; readonly description: 'lastUpdated is in the future'; }; readonly 'metadata-last-updated-old': { readonly aspect: 'metadata'; readonly severity: 'info'; readonly description: 'lastUpdated is very old'; }; readonly 'metadata-last-updated-unix-epoch': { readonly aspect: 'metadata'; readonly severity: 'info'; readonly description: 'lastUpdated is near Unix epoch'; }; readonly 'metadata-last-updated-at-midnight': { readonly aspect: 'metadata'; readonly severity: 'info'; readonly description: 'lastUpdated is exactly at midnight'; }; readonly 'metadata-last-updated-validation-error': { readonly aspect: 'metadata'; readonly severity: 'warning'; readonly description: 'lastUpdated validation failed'; }; readonly 'metadata-chronological-order-violation': { readonly aspect: 'metadata'; readonly severity: 'error'; readonly description: 'Timestamps are not in chronological order'; }; readonly 'metadata-identical-timestamps': { readonly aspect: 'metadata'; readonly severity: 'info'; readonly description: 'Multiple timestamps have identical values'; }; readonly 'metadata-tag-invalid-array': { readonly aspect: 'metadata'; readonly severity: 'error'; readonly description: 'meta.tag must be an array'; }; readonly 'metadata-tag-invalid-object': { readonly aspect: 'metadata'; readonly severity: 'error'; readonly description: 'Tag must be an object'; }; readonly 'metadata-tag-missing-system-code': { readonly aspect: 'metadata'; readonly severity: 'warning'; readonly description: 'Tag should have system and/or code'; }; readonly 'metadata-tag-missing-code': { readonly aspect: 'metadata'; readonly severity: 'warning'; readonly description: 'Tag should have a code'; }; readonly 'metadata-tag-invalid-system-type': { readonly aspect: 'metadata'; readonly severity: 'error'; readonly description: 'Tag system must be a string'; }; readonly 'metadata-tag-invalid-system-uri': { readonly aspect: 'metadata'; readonly severity: 'warning'; readonly description: 'Tag system is not a valid URI'; }; readonly 'metadata-tag-invalid-code-type': { readonly aspect: 'metadata'; readonly severity: 'error'; readonly description: 'Tag code must be a string'; }; readonly 'metadata-tag-invalid-display-type': { readonly aspect: 'metadata'; readonly severity: 'warning'; readonly description: 'Tag display must be a string'; }; readonly 'metadata-tag-code-without-system': { readonly aspect: 'metadata'; readonly severity: 'info'; readonly description: 'Tag has code without system'; }; readonly 'metadata-tag-duplicate': { readonly aspect: 'metadata'; readonly severity: 'info'; readonly description: 'Duplicate tag detected'; }; readonly 'metadata-tag-short-display': { readonly aspect: 'metadata'; readonly severity: 'info'; readonly description: 'Tag display is very short'; }; readonly 'metadata-tag-code-as-display': { readonly aspect: 'metadata'; readonly severity: 'info'; readonly description: 'Tag display appears to be same as code'; }; readonly 'metadata-tag-long-display': { readonly aspect: 'metadata'; readonly severity: 'info'; readonly description: 'Tag display is very long'; }; readonly 'metadata-security-invalid-array': { readonly aspect: 'metadata'; readonly severity: 'error'; readonly description: 'meta.security must be an array'; }; readonly 'metadata-security-invalid-object': { readonly aspect: 'metadata'; readonly severity: 'error'; readonly description: 'Security label must be an object'; }; readonly 'metadata-security-missing-system': { readonly aspect: 'metadata'; readonly severity: 'warning'; readonly description: 'Security label missing system'; }; readonly 'metadata-security-missing-code': { readonly aspect: 'metadata'; readonly severity: 'warning'; readonly description: 'Security label missing code'; }; readonly 'metadata-security-invalid-system': { readonly aspect: 'metadata'; readonly severity: 'error'; readonly description: 'Security system is not a valid URI'; }; readonly 'metadata-security-invalid-code-type': { readonly aspect: 'metadata'; readonly severity: 'error'; readonly description: 'Security code must be a string'; }; readonly 'metadata-security-invalid-display-type': { readonly aspect: 'metadata'; readonly severity: 'warning'; readonly description: 'Security display must be a string'; }; readonly 'metadata-security-duplicate': { readonly aspect: 'metadata'; readonly severity: 'info'; readonly description: 'Duplicate security label detected'; }; readonly 'metadata-security-missing-display': { readonly aspect: 'metadata'; readonly severity: 'info'; readonly description: 'Security label missing display'; }; readonly 'metadata-security-unknown-code': { readonly aspect: 'metadata'; readonly severity: 'warning'; readonly description: 'Unknown security code'; }; readonly 'metadata-security-unknown-system': { readonly aspect: 'metadata'; readonly severity: 'warning'; readonly description: 'Unknown security system'; }; readonly 'metadata-source-invalid-type': { readonly aspect: 'metadata'; readonly severity: 'error'; readonly description: 'source must be a string'; }; readonly 'metadata-source-empty': { readonly aspect: 'metadata'; readonly severity: 'error'; readonly description: 'source cannot be empty'; }; readonly 'metadata-source-too-long': { readonly aspect: 'metadata'; readonly severity: 'warning'; readonly description: 'source exceeds reasonable length'; }; readonly 'metadata-source-invalid-format': { readonly aspect: 'metadata'; readonly severity: 'warning'; readonly description: 'source is not a valid URI'; }; readonly 'metadata-source-localhost': { readonly aspect: 'metadata'; readonly severity: 'info'; readonly description: 'source references localhost'; }; readonly 'metadata-source-looks-like-reference': { readonly aspect: 'metadata'; readonly severity: 'info'; readonly description: 'source looks like a FHIR reference'; }; readonly 'metadata-source-relative-uri': { readonly aspect: 'metadata'; readonly severity: 'info'; readonly description: 'source is a relative URI'; }; readonly 'metadata-source-validation-error': { readonly aspect: 'metadata'; readonly severity: 'warning'; readonly description: 'source validation failed'; }; readonly 'metadata-profile-invalid-array': { readonly aspect: 'metadata'; readonly severity: 'error'; readonly description: 'meta.profile must be an array'; }; readonly 'metadata-profile-invalid-type': { readonly aspect: 'metadata'; readonly severity: 'error'; readonly description: 'Profile entry must be a string'; }; readonly 'metadata-profile-invalid-url': { readonly aspect: 'metadata'; readonly severity: 'warning'; readonly description: 'Profile URL is not valid'; }; readonly 'metadata-profile-resource-type-mismatch': { readonly aspect: 'metadata'; readonly severity: 'warning'; readonly description: 'Profile does not match resource type'; }; readonly 'metadata-profile-duplicate': { readonly aspect: 'metadata'; readonly severity: 'info'; readonly description: 'Duplicate profile declared'; }; readonly 'metadata-profile-not-accessible': { readonly aspect: 'metadata'; readonly severity: 'warning'; readonly description: 'Profile is not accessible'; }; readonly 'metadata-profile-wrong-resource-type': { readonly aspect: 'metadata'; readonly severity: 'error'; readonly description: 'Profile is for wrong resource type'; }; readonly 'metadata-missing-meta': { readonly aspect: 'metadata'; readonly severity: 'info'; readonly description: 'Resource is missing meta element'; }; readonly 'metadata-invalid-meta-type': { readonly aspect: 'metadata'; readonly severity: 'error'; readonly description: 'meta must be an object'; }; readonly 'reference-empty': { readonly aspect: 'reference'; readonly severity: 'error'; readonly description: 'Reference is empty'; }; readonly 'reference-invalid-contained': { readonly aspect: 'reference'; readonly severity: 'error'; readonly description: 'Invalid contained reference format'; }; readonly 'reference-invalid-url': { readonly aspect: 'reference'; readonly severity: 'error'; readonly description: 'Invalid reference URL'; }; readonly 'reference-invalid-format': { readonly aspect: 'reference'; readonly severity: 'error'; readonly description: 'Invalid reference format'; }; readonly 'reference-type-mismatch': { readonly aspect: 'reference'; readonly severity: 'error'; readonly description: 'Reference type does not match allowed types'; }; readonly 'reference-type-unknown': { readonly aspect: 'reference'; readonly severity: 'warning'; readonly description: 'Unknown reference type'; }; readonly 'reference-contained-not-found': { readonly aspect: 'reference'; readonly severity: 'error'; readonly description: 'Contained reference not found'; }; readonly 'reference-contained-type-mismatch': { readonly aspect: 'reference'; readonly severity: 'error'; readonly description: 'Contained reference type mismatch'; }; readonly 'reference-contained-type-unknown': { readonly aspect: 'reference'; readonly severity: 'warning'; readonly description: 'Unknown contained reference type'; }; readonly 'reference-not-found': { readonly aspect: 'reference'; readonly severity: 'error'; readonly description: 'Referenced resource not found'; }; readonly 'reference-validation-error': { readonly aspect: 'reference'; readonly severity: 'warning'; readonly description: 'Reference validation failed'; }; readonly 'reference-bundle-unresolved': { readonly aspect: 'reference'; readonly severity: 'error'; readonly description: 'Unresolved bundle reference'; }; readonly 'reference-bundle-duplicate-fullurl': { readonly aspect: 'reference'; readonly severity: 'error'; readonly description: 'Duplicate fullUrl in bundle'; }; readonly 'reference-bundle-fullurl-mismatch': { readonly aspect: 'reference'; readonly severity: 'warning'; readonly description: 'Bundle fullUrl does not match resource'; }; readonly 'reference-bundle-missing-type': { readonly aspect: 'reference'; readonly severity: 'error'; readonly description: 'Bundle is missing type'; }; readonly 'reference-bundle-missing-entries': { readonly aspect: 'reference'; readonly severity: 'error'; readonly description: 'Bundle is missing entries'; }; readonly 'reference-bundle-invalid-entries': { readonly aspect: 'reference'; readonly severity: 'error'; readonly description: 'Bundle entries are invalid'; }; readonly 'reference-bundle-entry-missing-request': { readonly aspect: 'reference'; readonly severity: 'error'; readonly description: 'Bundle entry missing request'; }; readonly 'reference-bundle-request-missing-method': { readonly aspect: 'reference'; readonly severity: 'error'; readonly description: 'Bundle request missing method'; }; readonly 'reference-bundle-request-missing-url': { readonly aspect: 'reference'; readonly severity: 'error'; readonly description: 'Bundle request missing url'; }; readonly 'structural-required-element-missing': { readonly aspect: 'structural'; readonly severity: 'error'; readonly description: 'Required element is missing'; }; readonly 'structural-resource-type-mismatch': { readonly aspect: 'structural'; readonly severity: 'error'; readonly description: 'Resource type does not match'; }; readonly 'structural-missing-resource-type': { readonly aspect: 'structural'; readonly severity: 'error'; readonly description: 'Resource is missing resourceType'; }; readonly 'structural-invalid-json': { readonly aspect: 'structural'; readonly severity: 'error'; readonly description: 'Invalid JSON'; }; readonly 'structural-invalid-format': { readonly aspect: 'structural'; readonly severity: 'error'; readonly description: 'Primitive value format is invalid'; }; readonly 'structural-invalid-base64-format': { readonly aspect: 'structural'; readonly severity: 'error'; readonly description: 'base64Binary value format is invalid'; }; readonly 'structural-cardinality-violation': { readonly aspect: 'structural'; readonly severity: 'error'; readonly description: 'Element cardinality violated'; }; readonly 'structural-cardinality-min': { readonly aspect: 'structural'; readonly severity: 'error'; readonly description: 'Element count below minimum'; }; readonly 'structural-cardinality-max': { readonly aspect: 'structural'; readonly severity: 'error'; readonly description: 'Element count exceeds maximum'; }; readonly 'structural-type-mismatch': { readonly aspect: 'structural'; readonly severity: 'error'; readonly description: 'Element type does not match'; }; readonly 'structural-primitive-type-mismatch': { readonly aspect: 'structural'; readonly severity: 'error'; readonly description: 'Primitive element type does not match'; }; readonly 'structural-attachment-size-mismatch': { readonly aspect: 'structural'; readonly severity: 'error'; readonly description: 'Attachment.size does not match the decoded Attachment.data byte length'; }; readonly 'structural-attachment-hash-mismatch': { readonly aspect: 'structural'; readonly severity: 'error'; readonly description: 'Attachment.hash does not match the SHA-1 digest of Attachment.data'; }; readonly 'structural-validation-error': { readonly aspect: 'structural'; readonly severity: 'warning'; readonly description: 'Structural validation failed'; }; readonly 'structural-hapi-error': { readonly aspect: 'structural'; readonly severity: 'error'; readonly description: 'HAPI structural validation error'; }; readonly 'structural-unknown-element': { readonly aspect: 'structural'; readonly severity: 'error'; readonly description: 'Unknown element in resource'; }; readonly 'questionnaire-reference-not-resolved': { readonly aspect: 'structural'; readonly severity: 'warning'; readonly description: 'QuestionnaireResponse.questionnaire could not be resolved'; }; readonly 'narrative-malformed-xhtml': { readonly aspect: 'structural'; readonly severity: 'error'; readonly description: 'Narrative text.div is not well-formed XHTML (includes DOCTYPE/ENTITY XXE protection)'; }; readonly 'narrative-invalid-root': { readonly aspect: 'structural'; readonly severity: 'error'; readonly description: 'Narrative text.div must be