Skip to main content
Version: v0.0.3

Interface: NcpdpProfile

A readonly, frozen profile produced by defineProfile(). Mirrors the locked x12/hl7 shape (name / description / lineage) plus NCPDP's standard-tagged quirks axis and a structured describe().

Example

import { parseTelecom } from "@cosyte/ncpdp/telecom";
import { profiles } from "@cosyte/ncpdp/profiles";
const tx = parseTelecom(raw, { profile: profiles.pbm });
tx.profile?.name; // "pbm"
tx.profile?.describe().requires.length;

Properties

describe

readonly describe: () => NcpdpProfileDescription

Returns

NcpdpProfileDescription


description?

readonly optional description?: string


lineage

readonly lineage: readonly string[]


name

readonly name: string


quirks

readonly quirks: readonly NcpdpProfileQuirk[]