Skip to main content
Version: v0.0.2

Interface: X12ProfileSpec

Input accepted by defineProfile(). Every field except name is optional; extends composes parent profiles (lineage + quirks merge) the same way hl7's extends does.

Example

import { defineProfile, profiles, type X12ProfileSpec } from "@cosyte/x12";
const spec: X12ProfileSpec = {
name: "my-bcbs-regional",
extends: profiles.bcbsCommon,
quirks: [
{
id: "service-line-ref-f8",
effect: "adds",
summary: "Service line carries a REF*F8 original-reference identifier.",
fixture: "remit/835-availity-quirk.edi",
sourceCategory: "regional BCBS 835 companion guide",
},
],
};
const profile = defineProfile(spec);

Properties

description?

readonly optional description?: string


extends?

readonly optional extends?: X12Profile | readonly X12Profile[]


name

readonly name: string


quirks?

readonly optional quirks?: readonly X12ProfileQuirk[]