Skip to main content
Version: v0.0.2

Type Alias: X12HiCategory

X12HiCategory = "diagnosis" | "procedure" | "external-cause" | "principal-diagnosis" | "admitting-diagnosis" | "patient-reason-for-visit" | "drg" | "condition" | "occurrence" | "occurrence-span" | "value" | "treatment" | "unknown"

Category of an HI qualifier - separates diagnoses from procedures from the institutional NUBC code families. Consumers branching on the category get exhaustiveness; the variant-specific helpers (getDiagnoses / getProcedures) filter on it.

Example

import type { X12HiCategory } from "@cosyte/x12";
const c: X12HiCategory = "diagnosis";