ezmedicationinput 0.3.1 → 0.3.2-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,6 @@
1
1
  import type { BodySiteFeatureStructure } from "./body-site-grammar";
2
- import { type BodySiteRestriction, AdviceArgument, AdviceFrame, AdviceModality, EventTiming, AdviceRelation, MedicationInstructionActionDefinition, MedicationInstructionActionRealizer } from "./types";
2
+ import { type CourseLanguage } from "./localization";
3
+ import { type BodySiteRestriction, AdviceArgument, AdviceFrame, AdviceModality, EventTiming, AdviceRelation, MedicationInstructionActionDefinition, type MedicationCondition, type CanonicalAdditionalInstructionExpr, MedicationInstructionActionRealizer } from "./types";
3
4
  export interface InstructionActionRealizationInput {
4
5
  frame: AdviceFrame;
5
6
  locale: string;
@@ -59,6 +60,9 @@ export interface InstructionActionLocaleAdapter {
59
60
  persists: boolean;
60
61
  };
61
62
  renderConditionBody(base: string, conditionForm: string | undefined, persists: boolean): string;
63
+ renderConditionMeasurement?(condition: Extract<MedicationCondition, {
64
+ kind: "measurement";
65
+ }>): string;
62
66
  parseConditionWorsening?(body: string): string | undefined;
63
67
  renderConditionWorsening?(body: string): string;
64
68
  renderCountedAdviceSituation?(condition: AdviceArgument): string | undefined;
@@ -91,6 +95,14 @@ export interface InstructionActionLocaleAdapter {
91
95
  bodySiteLaterality?(text: string, laterality: "left" | "right" | "both"): string;
92
96
  bodySiteSpatialText?(relation: string, target: string, kind: "locative" | "modifier"): string;
93
97
  }
98
+ /** A typed measurement supplies its live operator, value and unit. The
99
+ * language provider owns only the registered observation name. */
100
+ export declare function realizeMedicationMeasurement(condition: Extract<MedicationCondition, {
101
+ kind: "measurement";
102
+ }>, words: Pick<CourseLanguage, "measurementName">): string;
103
+ /** A registered Time qualifier joins the administration's existing timing
104
+ * phrase. Unknown authored instructions retain their separate source row. */
105
+ export declare function localizedTemporalInstruction(instruction: CanonicalAdditionalInstructionExpr, locale: string): string | undefined;
94
106
  export declare function registerInstructionActionLocaleAdapter(adapter: InstructionActionLocaleAdapter): void;
95
107
  export declare function instructionActionLocaleAdapterRevision(): number;
96
108
  export declare function registeredInstructionActionLocaleAdapters(): IterableIterator<InstructionActionLocaleAdapter>;
@@ -129,5 +141,6 @@ export declare function thaiNegatedModalityPrefix(frame: AdviceFrame): string;
129
141
  export declare const TH_POSITIVE_MODALITY_PREFIX: Partial<Record<AdviceModality, string>>;
130
142
  export declare function selectThaiApplyLabel(actionCode: string | undefined, label: string, unit?: string, args?: readonly AdviceArgument[]): string | undefined;
131
143
  /** Reuse the registered nominal classes for both site and action realization. */
144
+ export declare function applyBodySiteNominalModifiersEnglish(text: string, modifiers: readonly string[]): string;
132
145
  export declare function applyBodySiteNominalModifiersThai(translatedBase: string, modifierWords: readonly string[] | undefined): string;
133
146
  export {};
@@ -14,7 +14,7 @@ interface ActionMatch {
14
14
  * activity to the predicate. A written consequent boundary or explicit
15
15
  * directive still licenses the following administration or procedure. */
16
16
  export declare function isInstructionConditionActivity(parts: Lexeme[], index: number, definition: ActionDefinition, surface: string): boolean;
17
- export declare function actionMatchAt(parts: Lexeme[], index: number, options?: ParseOptions, includeGovernedProcedure?: boolean, directivePrefixEnd?: number, productComplement?: boolean): ActionMatch | undefined;
17
+ export declare function actionMatchAt(parts: Lexeme[], index: number, options?: ParseOptions, includeGovernedProcedure?: boolean, directivePrefixEnd?: number, productComplement?: boolean, includeSeparable?: boolean, endExclusive?: number): ActionMatch | undefined;
18
18
  export declare function codingFromSite(text: string, options?: ParseOptions): AdviceArgument | undefined;
19
19
  export declare function trimSemanticText(value: string): string;
20
20
  /** A temporal governor can select a complete registered Activity nominal
@@ -23,6 +23,16 @@ export declare function knownTemporalActivity(parts: Lexeme[], start: number, en
23
23
  export declare function parseQuantityArgument(parts: Lexeme[], start: number, endExclusive: number, input: string, offset: number, options?: ParseOptions, numberEndExclusive?: number): AdviceArgument | undefined;
24
24
  type MeasuredTemporalReference = TextRange & {
25
25
  timing?: TextRange;
26
+ clockTiming?: {
27
+ arguments: AdviceArgument[];
28
+ startIndex: number;
29
+ endIndex: number;
30
+ sourceEnd: number;
31
+ };
32
+ continuation?: {
33
+ span: TextRange;
34
+ lemma: string;
35
+ };
26
36
  };
27
37
  type InterleavedCadence = TextRange & {
28
38
  meal?: TextRange;
@@ -55,7 +55,14 @@ export declare function medicationInstructionActionContextualCodings(definition:
55
55
  export declare function medicationInstructionActionSemanticComponentsForArgs(definition: MedicationInstructionActionDefinition, args: readonly AdviceArgument[]): MedicationInstructionActionDefinition["semanticComponents"];
56
56
  /** The selected action owns occurrence duration; a unit restriction never grants a new introducer. */
57
57
  export declare function licensesAdministrationDuration(definition: MedicationInstructionActionDefinition | undefined, introducer: string, unit?: FhirPeriodUnit): boolean;
58
+ /** Resolve configured candidates in one map traversal. Sequence-only aliases
59
+ * retain priority over ordinary forms, including the stock sequence fallback. */
60
+ export declare function resolveMedicationInstructionActionCandidates(surfaces: readonly string[], map: NonNullable<ParseOptions["instructionActionMap"]>, includeSequence?: boolean): {
61
+ surface: string;
62
+ definition: MedicationInstructionActionDefinition;
63
+ } | undefined;
58
64
  export declare function resolveMedicationInstructionSequenceAction(surface: string, options?: ParseOptions): MedicationInstructionActionDefinition | undefined;
65
+ export declare function hasMedicationInstructionSeparableActionLead(surface: string, options?: ParseOptions): boolean;
59
66
  export declare function resolveMedicationInstructionSeparableAction(lead: string, particle: string, options?: ParseOptions): MedicationInstructionActionDefinition | undefined;
60
67
  export declare function medicationInstructionActionIsSafetyScopeTarget(surface: string, options?: ParseOptions): boolean;
61
68
  export declare function resolveMedicationInstructionAction(surface: string, options?: ParseOptions, includeCode?: boolean): MedicationInstructionActionDefinition | undefined;
@@ -41,6 +41,12 @@ export declare function codingEquivalent(left: {
41
41
  } | undefined): boolean;
42
42
  export declare function quantityCoveredByDose(arg: AdviceArgument, dose: CanonicalDoseExpr | undefined): boolean;
43
43
  export declare function actionMatchesCanonicalMethod(frame: AdviceFrame, clause: Pick<CanonicalSigClause, "method">, options?: Pick<ParseOptions, "instructionActionMap">): boolean;
44
+ /**
45
+ * Native HPSG owners can fully represent a broad primary nominal before the
46
+ * instruction graph is serialized. Its unowned or independently coded content
47
+ * remains on the action; no source recognition occurs during wire formatting.
48
+ */
49
+ export declare function primaryNominalCoveredBySelectedSource(arg: AdviceArgument, frame: AdviceFrame, clause: CanonicalSigClause): boolean;
44
50
  export declare function argumentEventTiming(arg: AdviceArgument): EventTiming | undefined;
45
51
  /** Counted or qualified sites use the canonical site's complete dose scope. */
46
52
  export declare function canonicalSiteOwnsPrimaryPhrase(clause: CanonicalSigClause): boolean;
@@ -71,10 +77,11 @@ type PrimaryInstructionOwnership = NonNullable<CanonicalInstructionGraph["primar
71
77
  * conservative inference; an explicit binding never depends on edited values. */
72
78
  export declare function inferPrimaryOwnership(graph: CanonicalInstructionGraph, clause: Pick<CanonicalSigClause, "dose" | "method" | "sourceProjectionVerified">, options?: Pick<ParseOptions, "instructionActionMap">): PrimaryInstructionOwnership;
73
79
  export declare function primaryInstructionOwnership(graph: CanonicalInstructionGraph, clause: Pick<CanonicalSigClause, "dose" | "method" | "sourceProjectionVerified">, options?: Pick<ParseOptions, "instructionActionMap">): PrimaryInstructionOwnership;
74
- export declare function primaryDoseAmountOwner(graph: CanonicalInstructionGraph, clause: Pick<CanonicalSigClause, "dose" | "method" | "sourceProjectionVerified">, options?: Pick<ParseOptions, "instructionActionMap">): {
80
+ export interface PrimaryDoseAmountOwner {
75
81
  action: AdviceFrame;
76
82
  argument: AdviceArgument;
77
- } | undefined;
83
+ }
84
+ export declare function primaryDoseAmountOwner(graph: CanonicalInstructionGraph, clause: Pick<CanonicalSigClause, "dose" | "method" | "sourceProjectionVerified">, options?: Pick<ParseOptions, "instructionActionMap">): PrimaryDoseAmountOwner | undefined;
78
85
  /** A sole typed preparation owns the amount before a later administration.
79
86
  * Ordinary primary-only graphs return before the ownership walk. */
80
87
  export declare function instructionGraphPreparationOwnsDose(clause: CanonicalSigClause, options?: Pick<ParseOptions, "instructionActionMap">): boolean;
@@ -1,4 +1,6 @@
1
1
  import { AdviceFrame, AdviceRelation, CanonicalInstructionCoverage, CanonicalInstructionGraph, CanonicalInstructionRelation, CanonicalSigClause, CanonicalAdditionalInstructionExpr, CanonicalSourceSpan, FhirCodeableConcept, ParseOptions, TextRange } from "./types";
2
+ import { type InstructionActionProgram } from "./instruction-action-parser";
3
+ import { type PrimaryDoseAmountOwner } from "./instruction-graph-ownership";
2
4
  export { actionMatchAt, parseQuantityArgument, actionFrameHasEmbeddedModal, parseInstructionActions } from "./instruction-action-parser";
3
5
  export { frameActionDefinition, sameTypedWarning, instructionSourceRange, instructionHasCompleteFrameEvidence, instructionGraphPostAdministrationDiscourseConnector, canonicalSiteOwnsPrimaryPhrase, instructionGraphPreparationOwnsDose, instructionGraphSourceConflictsWithDose, instructionGraphRichPrimaryAction, instructionGraphRoundTripPrimaryAction, instructionGraphPrimarySiteRelation, instructionGraphPrimaryAdministrationModality, instructionGraphPrimaryOverlap, isInstructionGraphDisplayWarning } from "./instruction-graph-ownership";
4
6
  /** An undosed administration frame can supply counsel about an existing dose.
@@ -6,9 +8,13 @@ export { frameActionDefinition, sameTypedWarning, instructionSourceRange, instru
6
8
  export declare function isMedicationAdministrationAdvice(frame: AdviceFrame, options?: ParseOptions): boolean;
7
9
  export declare function isSupplementalHydrationInstruction(frame: AdviceFrame, allowMeasured?: boolean): boolean;
8
10
  export declare function relationFromSourceText(text: string): AdviceRelation | undefined;
11
+ interface EmbeddedProcedureReference {
12
+ procedure: AdviceFrame;
13
+ reference: AdviceFrame;
14
+ }
9
15
  export declare function buildInstructionCoverage(actions: AdviceFrame[], relations: CanonicalInstructionRelation[], opaqueSpans: CanonicalSourceSpan[]): CanonicalInstructionCoverage;
10
- export declare function refreshInstructionGraphDerivedState(graph: CanonicalInstructionGraph, selectedOpaqueSpans?: readonly CanonicalSourceSpan[], selectedGapSpans?: readonly TextRange[]): void;
11
- export declare function buildInstructionGraph(input: string, clause: CanonicalSigClause, options?: ParseOptions, semanticOwnershipRanges?: readonly TextRange[], proceduralFrames?: readonly AdviceFrame[], proceduralOpaqueSpans?: readonly CanonicalSourceSpan[]): CanonicalInstructionGraph | undefined;
16
+ export declare function refreshInstructionGraphDerivedState(graph: CanonicalInstructionGraph, selectedOpaqueSpans?: readonly CanonicalSourceSpan[], selectedGapSpans?: readonly TextRange[], procedureReference?: EmbeddedProcedureReference): void;
17
+ export declare function buildInstructionGraph(input: string, clause: CanonicalSigClause, options?: ParseOptions, semanticOwnershipRanges?: readonly TextRange[], proceduralProgram?: InstructionActionProgram): CanonicalInstructionGraph | undefined;
12
18
  /** Select complete administration techniques from the already-composed clause
13
19
  * and action program. Interchange only projects these selected codings. */
14
20
  export declare function instructionGraphAdministrationTechnique(clause: CanonicalSigClause): {
@@ -24,7 +30,7 @@ export declare function realizeInstructionAction(frame: AdviceFrame, locale?: st
24
30
  * This is a display-only frame copy, not an edit of source graph/provenance. */
25
31
  export declare function realizeRichPrimaryWithCanonicalDose(frame: AdviceFrame, clause: CanonicalSigClause, locale: string, options?: Pick<ParseOptions, "instructionActionMap" | "realizationMode">, coverage?: {
26
32
  singleScheduledEvent: boolean;
27
- }): string;
33
+ }, amountOwner?: PrimaryDoseAmountOwner | null | undefined, trailingPreparations?: string[]): string;
28
34
  /** A graph condition whose primary action is rendered by the clause formatter. */
29
35
  export interface InstructionGraphPrimaryCondition {
30
36
  text: string;
@@ -55,11 +61,16 @@ interface ClauseInstructionRealization {
55
61
  whole?: string;
56
62
  patient?: string;
57
63
  preFlowsIntoAdministration?: boolean;
64
+ preAdministrationSeparator?: string;
58
65
  postFlowsFromAdministration?: boolean;
66
+ postAdministrationSeparator?: string;
59
67
  }
60
68
  /** Internal clause preview uses the same selected node walk as the public graph
61
69
  * realizer. No receipt or source ownership is stored on the clinical values. */
62
- export declare function realizeClauseInstructions(clause: CanonicalSigClause, locale: string, options: Parameters<typeof realizeInstructionGraph>[2], render: (instruction: CanonicalAdditionalInstructionExpr) => string | undefined, alreadyRendered?: readonly CanonicalAdditionalInstructionExpr[], presentGraphAction?: (text: string) => string | undefined): ClauseInstructionRealization;
70
+ export declare function realizeClauseInstructions(clause: CanonicalSigClause, locale: string, options: NonNullable<Parameters<typeof realizeInstructionGraph>[2]> & {
71
+ /** Null records a completed lookup with no owner. */
72
+ amountOwner?: PrimaryDoseAmountOwner | null;
73
+ }, render: (instruction: CanonicalAdditionalInstructionExpr) => string | undefined, alreadyRendered?: readonly CanonicalAdditionalInstructionExpr[], presentGraphAction?: (text: string) => string | undefined): ClauseInstructionRealization;
63
74
  export declare function realizeInstructionGraph(graph: CanonicalInstructionGraph, locale?: string, options?: {
64
75
  includeWarnings?: boolean;
65
76
  onlyWarnings?: boolean;
@@ -8,6 +8,8 @@ export interface LocaleRealizationProfile {
8
8
  }
9
9
  export declare function localeRealizationProfile(locale: string | undefined): LocaleRealizationProfile;
10
10
  export declare function joinLocalizedTokens(locale: string | undefined, parts: Array<string | undefined>): string;
11
+ /** Labels for an already selected complete medication dose-slot nominal. */
12
+ export declare function medicationDoseSlotNominalLabels(event: string): Readonly<Record<string, string>> | undefined;
11
13
  export declare function localizedTimeArgument(value: string, locale: string | undefined): string | undefined;
12
14
  export declare function localizedRecordValue(record: Record<string, string> | undefined, locale: string | undefined): string | undefined;
13
15
  export declare function renderLocaleTemplate(template: string, values: Record<string, string | undefined>): string;
@@ -11,10 +11,15 @@ export declare const ENGLISH_CLAUSE_TIMING: {
11
11
  offset: (minutes: number) => string;
12
12
  dayShift: (days: number) => string;
13
13
  };
14
- /** English route labels retain their existing lexical specificity in every locale. */
15
- export declare function routeCodeFromDisplayText(text: string | undefined, includeOtic: boolean): RouteCode | undefined;
16
- /** Retain authored route detail while leaving recognized route grammar in its owner. */
17
- export declare function retainedRouteDisplayText(text: string | undefined, code?: RouteCode): {
14
+ export interface RetainedRouteDisplay {
18
15
  text: string;
19
16
  kind: "technique" | "qualified" | "authored";
20
- } | undefined;
17
+ }
18
+ type RouteDisplayMatch = {
19
+ code?: RouteCode;
20
+ } & (RetainedRouteDisplay | {
21
+ kind?: undefined;
22
+ });
23
+ /** Classify a display label once for both route grammar and authored wording. */
24
+ export declare function matchRouteDisplay(text: string | undefined, suppliedCode: RouteCode | undefined, includeOtic: boolean): RouteDisplayMatch | undefined;
25
+ export {};
@@ -29,6 +29,8 @@ export interface CourseLanguage {
29
29
  readonly exceptWeekdays: string;
30
30
  readonly choicePrefix: string;
31
31
  readonly stageSeparator: string;
32
+ /** Contextual sequence wording; authored/custom text is never inflected. */
33
+ sequentialPhase?(text: string, style: "short" | "long", generatedPrimary: boolean): string;
32
34
  readonly doseLabel: string;
33
35
  amountRoleLabel(kind: "dose" | "rate" | "rateRange", role: "ordered" | "calculated" | undefined, sourceRole: string): string;
34
36
  applicationSites(count: number): string;
@@ -48,6 +50,8 @@ export interface CourseLanguage {
48
50
  readonly maxAdministrationLabel: string;
49
51
  readonly maxLifetimeLabel: string;
50
52
  readonly maxPeriodLabel: string;
53
+ /** Compose the localized limit and period in the language pack's word order. */
54
+ limitPeriod?(value: string, period: string, style: "short" | "long"): string;
51
55
  readonly maxDosageLabel: string;
52
56
  readonly courseLimitsLabel: string;
53
57
  readonly stageLimitsLabel: string;
@@ -83,5 +87,5 @@ export interface CourseLanguage {
83
87
  phaseCount(count: number): string;
84
88
  unresolvedPhaseCount: string;
85
89
  repeatCount(count: number): string;
86
- repeatCycle(interval: string, exact: boolean, count?: number): string;
90
+ repeatCycle(interval: string, exact: boolean, count?: number, pause?: string): string;
87
91
  }
@@ -17,6 +17,8 @@ export interface MedicationConditionLexicalFeatures {
17
17
  pattern: RegExp;
18
18
  }>;
19
19
  stateLeads: readonly RegExp[];
20
+ /** Additional morphology only for a completely resolved registered finding. */
21
+ registeredStateLeads?: readonly RegExp[];
20
22
  /** A predicate-initial qualifier that selects a registered nonfinite activity. */
21
23
  activityConcernLead?: RegExp;
22
24
  /** A predicate-final qualifier that selects an administration activity. */
@@ -93,7 +95,7 @@ export interface MedicationConditionLexicalFeatures {
93
95
  /** Existing advice providers supply lexical features; HPSG still owns the tree. */
94
96
  export declare function medicationConditionLexicalFeatures(locale?: string): MedicationConditionLexicalFeatures;
95
97
  /** Remove registered state leads without interpreting the remaining predicate. */
96
- export declare function normalizeMedicationConditionStateText(value: string, lexicon: MedicationConditionLexicalFeatures): string;
98
+ export declare function normalizeMedicationConditionStateText(value: string, lexicon: MedicationConditionLexicalFeatures, registeredFinding?: boolean): string;
97
99
  export interface MedicationGuardLeadLexeme {
98
100
  start: number;
99
101
  end: number;
package/dist/types.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  import type { SigTranslationConfig } from "./i18n";
2
+ import type { CanonicalBoundary } from "./canonical/course";
2
3
  export interface FhirCoding {
3
4
  id?: string;
4
5
  system?: string;
@@ -973,8 +974,8 @@ export interface FormatOptions {
973
974
  }
974
975
  export interface FormatBatchOptions extends FormatOptions {
975
976
  /**
976
- * String inserted between formatted clauses. Defaults to ", " so output can
977
- * be fed back into `parseSig` as a multi-clause instruction.
977
+ * String inserted between formatted clauses. For ordinary same-stage rows,
978
+ * defaults to a space between complete long sentences, otherwise ", ".
978
979
  */
979
980
  separator?: string;
980
981
  }
@@ -1881,6 +1882,8 @@ export interface CanonicalCycleDayConstraint {
1881
1882
  sourceText: string;
1882
1883
  }
1883
1884
  export interface CanonicalScheduleExpr {
1885
+ /** Exclusive event-offset daughters, lowered to ordinary native choice members. */
1886
+ eventAlternatives?: Array<Pick<CanonicalScheduleExpr, "when" | "offset" | "offsetMin" | "offsetMax">>;
1884
1887
  /** Required cycle-day eligibility; do not execute the independent cadence until resolved. */
1885
1888
  cycleDayConstraint?: CanonicalCycleDayConstraint;
1886
1889
  /** Typed whole-course interval for a recurring active/rest construction. */
@@ -2011,6 +2014,10 @@ export interface CanonicalAdditionalInstructionExpr {
2011
2014
  * Boolean scope is distinct from medication administration eligibility. */
2012
2015
  export type CanonicalInstructionCondition = (AdviceArgument & {
2013
2016
  aspect?: "persists" | "worsens";
2017
+ /** The selected predicate's live observation fields, independent of wording. */
2018
+ measurement?: Extract<MedicationCondition, {
2019
+ kind: "measurement";
2020
+ }>;
2014
2021
  }) | {
2015
2022
  operator: "all" | "any";
2016
2023
  operands: CanonicalInstructionCondition[];
@@ -2032,6 +2039,9 @@ export interface CanonicalInstructionRelation {
2032
2039
  condition?: CanonicalInstructionCondition;
2033
2040
  /** Temporal adjunct of the complete predicate, separate from its action. */
2034
2041
  conditionTiming?: AdviceArgument;
2042
+ /** The regimen target binder proved the complete medication nominal on this
2043
+ * conditional action. An absent/false value cannot authorize its suppression. */
2044
+ targetBindingComplete?: boolean;
2035
2045
  span?: TextRange;
2036
2046
  }
2037
2047
  export interface CanonicalInstructionCoverage {
@@ -2087,6 +2097,8 @@ export interface CanonicalSourceSpan extends TextRange {
2087
2097
  sourceExtensions?: FhirExtension[];
2088
2098
  text: string;
2089
2099
  tokenIndices?: number[];
2100
+ /** Conjunction or disjunction selected by the originating lexical sign. */
2101
+ coordination?: Exclude<AdministrationTargetCoordinationKind, "mixed">;
2090
2102
  }
2091
2103
  /** Lexical grammatical role carried from the originating typed sign.
2092
2104
  * Production names remain diagnostic labels, never semantic dispatch keys. */
@@ -2097,7 +2109,7 @@ export interface CanonicalEvidence {
2097
2109
  lexicalCategory?: CanonicalLexicalCategory;
2098
2110
  /** Clinical role supplied by the typed sign. For conditions, the first span
2099
2111
  * owns the antecedent; later spans may retain ancillary no-dose branches. */
2100
- clinicalKind?: "condition" | "calendar-exclusion" | "treatment-pause" | "unresolved";
2112
+ clinicalKind?: "condition" | "calendar-exclusion" | "treatment-pause" | "course-boundary" | "unresolved";
2101
2113
  spans: CanonicalSourceSpan[];
2102
2114
  /** Exact schedule semantics owned by this evidence, independent of rule names. */
2103
2115
  scheduleFields?: CanonicalScheduleSemanticField[];
@@ -2110,6 +2122,9 @@ export interface CanonicalEvidence {
2110
2122
  * scope; FHIR only projects the resulting semantics. Raw/source data is kept.
2111
2123
  */
2112
2124
  export interface CanonicalClinicalAdjuncts {
2125
+ /** Authored event boundaries selected by the administration grammar. */
2126
+ courseStart?: CanonicalBoundary;
2127
+ courseEnd?: CanonicalBoundary;
2113
2128
  /** Finite medication-free interval selected by a typed withholding head. */
2114
2129
  treatmentPause?: {
2115
2130
  durationDays: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ezmedicationinput",
3
- "version": "0.3.1",
3
+ "version": "0.3.2-beta.0",
4
4
  "description": "Parse clinician SIGs into extended R5-style dosages with strict R5 and R6 projections",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",