Interface: BuildCcdaSmokingStatus
A Smoking Status observation for the Social History section, the Smoking
Status, Meaningful Use observation (…22.4.78), the safety-relevant
social-history fact most consumers ask for. value is the SNOMED CT concept
from the Current Smoking Status value set (2.16.840.1.113883.11.20.9.38,
e.g. former smoker 8517006, never smoker 266919005, current every-day
smoker 449868002).
Unknown is never defaulted to a status. When value is omitted the
observation's SHALL value is emitted as nullFlavor="UNK", an explicit
unknown that the parser reads back as unknown: true (and flags
SMOKING_STATUS_UNKNOWN). The builder will never invent a "never smoker"
(or any other) reading the caller did not supply: absent status ≠ non-smoker.
effectiveTime is when the status was recorded; nullFlavor="UNK" when omitted.
Example
import type { BuildCcdaSmokingStatus } from "@cosyte/ccda";
const former: BuildCcdaSmokingStatus = {
value: { code: "8517006", displayName: "Former smoker" }, // SNOMED CT
effectiveTime: "20240101",
};
const unrecorded: BuildCcdaSmokingStatus = {}; // → value nullFlavor="UNK"
Properties
effectiveTime?
readonlyoptionaleffectiveTime?:string
The date the status was recorded (HL7 date string); nullFlavor="UNK" when omitted.
status?
readonlyoptionalstatus?:string
The observation statusCode; defaults to "completed".
value?
readonlyoptionalvalue?:BuildCode
The SNOMED CT smoking-status concept (Current Smoking Status value set).
Omit for an explicit unknown (value nullFlavor="UNK"), never defaulted to
a real status.