Skip to main content
Version: v0.0.3

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?

readonly optional sectionCode?: string

Match only warnings carrying this section LOINC code in their position.


templateId?

readonly optional templateId?: string

Match only warnings carrying this template OID in their position.