Skip to main content
Version: v0.0.2

Interface: Build834MemberNameSpec

Loop 2100A member name (NM1*IL) + demographics (DMG) + address (N3/N4). Mirrors "./types.js".X12EnrollmentMember. PHI surface: every field carries PHI. entityIdentifierCode defaults to "IL" (insured) - the read side captures only the IL member name, so a different qualifier would not round-trip.

Example

import type { Build834MemberNameSpec } from "@cosyte/x12";
const m: Build834MemberNameSpec = {
lastName: "DOE", firstName: "JANE", idQualifier: "34", idCode: "MBR0001",
dateOfBirth: "19850515", genderCode: "F",
};

Properties

address?

readonly optional address?: Build834AddressSpec

N3 + N4 address block.


dateOfBirth?

readonly optional dateOfBirth?: string

DMG-02 - date of birth (CCYYMMDD).


entityIdentifierCode?

readonly optional entityIdentifierCode?: string

NM1-01 - entity identifier code. Default "IL" (insured).


firstName?

readonly optional firstName?: string

NM1-04 - first name.


genderCode?

readonly optional genderCode?: string

DMG-03 - gender code (M / F / U).


idCode?

readonly optional idCode?: string

NM1-09 - identification code (verbatim member id).


idQualifier?

readonly optional idQualifier?: string

NM1-08 - identification code qualifier (34 SSN, ZZ mutually defined, …).


lastName?

readonly optional lastName?: string

NM1-03 - last name.


middleName?

readonly optional middleName?: string

NM1-05 - middle name.


suffix?

readonly optional suffix?: string

NM1-07 - name suffix.