Skip to main content
Version: v0.0.4

Type Alias: IdentityRole

IdentityRole = "surviving" | "prior" | "linked" | "subject"

Role of one party in an identity event. surviving / subject / linked parties are ONLY ever sourced from PID (+ PV1); prior parties are ONLY ever sourced from MRG. That is the role-labelling invariant.

Example

import type { IdentityRole } from "@cosyte/hl7";
const role: IdentityRole = "surviving";