Skip to main content
Version: v0.0.3

Interface: BuildCode

A coded value for the builder, the tuple the parser reads back as a CD. codeSystem defaults per slot (SNOMED CT for a problem, RxNorm for an allergen), so most callers pass only code + displayName.

Example

import type { BuildCode } from "@cosyte/ccda";
const hypertension: BuildCode = { code: "59621000", displayName: "Essential hypertension" };

Properties

code

readonly code: string

The code within its system (e.g. a SNOMED CT concept id).


codeSystem?

readonly optional codeSystem?: string

The code system OID; defaults per slot when omitted.


codeSystemName?

readonly optional codeSystemName?: string

The code system's human name (e.g. "SNOMED CT"), optional.


displayName

readonly displayName: string

The human-readable label, regenerated into the narrative so the two agree.