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):
- namespaceId: application- or facility-scoped identifier (e.g. "EPIC").
- universalId: globally-unique id (e.g. an OID or UUID string).
- 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?
readonlyoptionalnamespaceId?:string
universalId?
readonlyoptionaluniversalId?:string
universalIdType?
readonlyoptionaluniversalIdType?:string