Skip to main content
Version: v0.0.2

Interface: X12ClaimEntity

Generic NM1 entity used throughout the 837. Covers billing provider (85), pay-to address (87), submitter (41), receiver (40), subscriber name (IL), patient name (QC), payer (PR), and the long tail of 2310 / 2330 / 2420 provider / payer / facility roles. The entityIdentifierCode discriminates the role; consumers branching on roles should compare against the X12 0098 code list.

PHI surface: lastName/firstName/idCode carry PHI when the role is a person (subscriber, patient, rendering provider as an individual). Surfaced verbatim - the parser never echoes them in warnings.

Example

import type { X12ClaimEntity } from "@cosyte/x12";
declare const e: X12ClaimEntity;
e.entityIdentifierCode; // "85" billing provider
e.name; // verbatim NM1-03
e.idQualifier; // "XX" (NPI)
e.idCode; // verbatim NPI

Properties

address

readonly address: X12ClaimAddress | undefined


contacts

readonly contacts: readonly X12ClaimContact[]


entityIdentifierCode

readonly entityIdentifierCode: string


entityTypeQualifier

readonly entityTypeQualifier: string


firstName

readonly firstName: string | undefined


idCode

readonly idCode: string | undefined


idQualifier

readonly idQualifier: string | undefined


middleName

readonly middleName: string | undefined


name

readonly name: string


references

readonly references: readonly X12ClaimReference[]


suffix

readonly suffix: string | undefined