Skip to main content
Version: v0.0.8

Variable: profiles

const profiles: object

Namespace object exposing the shipped built-in profiles, one per NCPDP standard. Each is authored via the public defineProfile() API and grounded in a real Tier-2 fixture.

Type Declaration

pbm

readonly pbm: NcpdpProfile

surescripts

readonly surescripts: NcpdpProfile

Example

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