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
readonlycode:WarningCode
The existing, non-safety-critical warning code this profile expects.
match?
readonlyoptionalmatch?:QuirkMatch
Optional structural narrowing (section code / template OID).
rationale
readonlyrationale:string
Why the profile expects this deviation, grounded in its provenance.