Skip to main content
Version: v0.0.4

Interface: HD

HL7 v2 Hierarchic Designator (HD): per HL7 Chapter 2 data type. All 3 components are optional. Fields are OMITTED when the underlying component is absent (exactOptionalPropertyTypes).

Component positions (HL7 1-indexed; this interface is 0-indexed by key):

  1. namespaceId: application- or facility-scoped identifier (e.g. "EPIC").
  2. universalId: globally-unique id (e.g. an OID or UUID string).
  3. universalIdType: classifier for universalId (ISO, GUID, UUID, DNS, URI, HL7, HCD, Random, etc.).

Example

import type { HD } from "@cosyte/hl7";
const authority: HD = { namespaceId: "EPIC", universalId: "1.2.840.114350", universalIdType: "ISO" };

Properties

namespaceId?

readonly optional namespaceId?: string


universalId?

readonly optional universalId?: string


universalIdType?

readonly optional universalIdType?: string