Interface: DefineProfileOptions
Options accepted by defineProfile() (D-02). Mirrors the locked
Profile shape plus the extends input key. Every field except
name is optional.
Example
import { defineProfile, type DefineProfileOptions } from "@cosyte/hl7";
const opts: DefineProfileOptions = {
name: "my-lab",
dateFormats: ["MM/DD/YYYY"],
customSegments: { ZLB: { fields: { noteText: 3 } } },
};
const profile = defineProfile(opts);
Properties
customSegments?
readonlyoptionalcustomSegments?:Readonly<Record<string,CustomSegmentDefinition>>
dateFormats?
readonlyoptionaldateFormats?: readonlystring[]
description?
readonlyoptionaldescription?:string
extends?
name
readonlyname:string
onWarning?
readonlyoptionalonWarning?:OnWarningCallback