/** * Provenance Chain Validator * * Validates a `Provenance` resource's linkage to the resources it describes. * The FHIR Provenance resource records information about the entity, activity * and agent involved in producing a piece of data — so the chain it creates * between authoring agents and target resources is a core data-quality signal. * * This validator checks the **structural** aspects of the chain (the parts * that do not require network access): * * 1. `Provenance.target` MUST be present and non-empty * 2. Every `target.reference` MUST be a well-formed FHIR reference * (`ResourceType/id`, canonical URL, absolute URL, or `urn:uuid:…`) * 3. `Provenance.recorded` MUST be present and MUST be a valid FHIR `instant` * 4. `Provenance.agent` SHOULD contain at least one entry, and each agent * SHOULD have either `who.reference` or `who.identifier` * 5. `Provenance.occurredDateTime` / `Provenance.occurredPeriod`, when * present, SHOULD NOT post-date `recorded` (provenance cannot be recorded * before the event it describes) * * Remote resolution of `target.reference` (checking that each referenced * resource actually exists on the current FHIR server) is shared with the * generic remote reference existence check in §4.1.4 of the PRD and is * therefore **out of scope** here. This keeps provenance validation * deterministic and offline-safe. */ import type { ValidationIssue } from '../types'; /** * Validate a Provenance resource's chain linkage. * * Returns an empty array when `resource.resourceType !== 'Provenance'` so * callers can pass any resource without branching. */ export declare function validateProvenanceChain(resource: unknown): ValidationIssue[]; //# sourceMappingURL=provenance-chain-validator.d.ts.map