Interface: QuirkMatch
Optional structural narrowing for a QuirkTolerance. When present, the tolerance applies only to warnings whose PHI-free CcdaPosition matches every provided field, so a profile can expect a deviation in one section (e.g. deprecated LOINC only within Vital Signs) without blanket-tolerating it everywhere. Matching is on structural identifiers only (LOINC section code, template OID); there is no matching on clinical values, by construction.
Example
import type { QuirkMatch } from "@cosyte/ccda";
const onlyVitals: QuirkMatch = { sectionCode: "8716-3" };
Properties
sectionCode?
readonlyoptionalsectionCode?:string
Match only warnings carrying this section LOINC code in their position.
templateId?
readonlyoptionaltemplateId?:string
Match only warnings carrying this template OID in their position.