Skip to main content
Version: v0.0.3

Interface: QuirkTolerance

One expected deviation declared by a profile. code names an existing, non-safety-critical WarningCode the profile expects; rationale documents why (grounded in the profile's ProfileProvenance); optional match narrows it to a structural location. defineCcdaProfile throws if code is safety-critical or not a real warning code.

Example

import type { QuirkTolerance } from "@cosyte/ccda";
const t: QuirkTolerance = {
code: "DEPRECATED_LOINC",
rationale: "Scorecard-documented deprecated BMI LOINC 41909-3 in real docs.",
};

Properties

code

readonly code: WarningCode

The existing, non-safety-critical warning code this profile expects.


match?

readonly optional match?: QuirkMatch

Optional structural narrowing (section code / template OID).


rationale

readonly rationale: string

Why the profile expects this deviation, grounded in its provenance.