ezmedicationinput 0.3.0 → 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.
Files changed (42) hide show
  1. package/README.md +138 -0
  2. package/dist/adapters/r5-course.d.ts +6 -0
  3. package/dist/body-site-grammar.d.ts +6 -2
  4. package/dist/body-site-target.d.ts +4 -1
  5. package/dist/canonical/course.d.ts +4 -1
  6. package/dist/canonical/dosage-agreement.d.ts +84 -0
  7. package/dist/canonical/format-course.d.ts +8 -1
  8. package/dist/combine-multilingual-dosages.d.ts +32 -0
  9. package/dist/event-timing-expression.d.ts +3 -1
  10. package/dist/execution/engine.d.ts +2 -1
  11. package/dist/fhir-translations.d.ts +13 -0
  12. package/dist/fhir.d.ts +1 -1
  13. package/dist/format.d.ts +4 -1
  14. package/dist/hpsg/constructions.d.ts +3 -0
  15. package/dist/hpsg/lexical-classes.d.ts +6 -0
  16. package/dist/hpsg/procedural-context.d.ts +11 -6
  17. package/dist/hpsg/projection.d.ts +2 -2
  18. package/dist/hpsg/rule-context.d.ts +9 -4
  19. package/dist/hpsg/rules/core-rules.d.ts +5 -3
  20. package/dist/hpsg/rules/prn-rules.d.ts +2 -1
  21. package/dist/hpsg/rules/timing-rules.d.ts +35 -25
  22. package/dist/hpsg/signature.d.ts +31 -1
  23. package/dist/hpsg/timing-lexicon.d.ts +5 -0
  24. package/dist/i18n.d.ts +3 -0
  25. package/dist/index.cjs +49230 -43847
  26. package/dist/index.d.ts +6 -1
  27. package/dist/index.js +49218 -43846
  28. package/dist/instruction-action-locale-adapter.d.ts +21 -3
  29. package/dist/instruction-action-parser.d.ts +16 -1
  30. package/dist/instruction-action-terminology.d.ts +7 -0
  31. package/dist/instruction-concept-terminology.d.ts +1 -0
  32. package/dist/instruction-graph-ownership.d.ts +9 -2
  33. package/dist/instruction-graph.d.ts +15 -4
  34. package/dist/locale-realization.d.ts +2 -0
  35. package/dist/locales/course/en.d.ts +10 -5
  36. package/dist/localization.d.ts +8 -1
  37. package/dist/medication-condition.d.ts +36 -1
  38. package/dist/prn.d.ts +2 -0
  39. package/dist/schedule.d.ts +5 -2
  40. package/dist/timing-summary.d.ts +3 -2
  41. package/dist/types.d.ts +104 -4
  42. package/package.json +1 -1
@@ -1,7 +1,7 @@
1
1
  import { Token } from "../../parser-state";
2
2
  import { type ParseOptions } from "../../types";
3
3
  import { HpsgClauseContext } from "../rule-context";
4
- import { HpsgLexicalRule } from "../signature";
4
+ import { HpsgLexicalRule, HpsgSign } from "../signature";
5
5
  /** Bounded lexical recognition shared by chart and boundary candidacy.
6
6
  * @param tokens Source tokens with the existing locale normalization.
7
7
  * @param start Candidate head index; never searches arbitrary later text.
@@ -22,8 +22,10 @@ export declare function directiveMarkerLexicalRule(): HpsgLexicalRule<HpsgClause
22
22
  export declare function methodLexicalRule(): HpsgLexicalRule<HpsgClauseContext>;
23
23
  /** An exact end lets an adjacent constituent request this same route owner. */
24
24
  export declare function routeLexicalRule(exactEnd?: number): HpsgLexicalRule<HpsgClauseContext>;
25
- /** Complete governed route boundary; the route lexical rule still owns its value. */
26
- export declare function governedRouteLexicalEnd(tokens: readonly Token[], start: number, options?: ParseOptions, limit?: number): number | undefined;
25
+ /** A licensed compound can replace two adjacent lexical mentions of the same route. */
26
+ export declare function configuredRouteCoveringSplit(routes: ReadonlyMap<number, readonly HpsgSign[]>, left: HpsgSign, right: HpsgSign): HpsgSign | undefined;
27
+ /** An action needs a route boundary. The chart selects its extent and value. */
28
+ export declare function hasGovernedRouteAt(tokens: readonly Token[], start: number, options?: ParseOptions): boolean;
27
29
  export declare function fillerLexicalRule(): HpsgLexicalRule<HpsgClauseContext>;
28
30
  export declare function productLexicalRule(cacheLookahead?: boolean): HpsgLexicalRule<HpsgClauseContext>;
29
31
  /**
@@ -12,7 +12,8 @@ export declare function matchContextualPrnReasonLead(context: HpsgClauseContext,
12
12
  export declare function tokenBelongsToContextualPrnReasonLead(context: HpsgClauseContext, tokenIndex: number): boolean;
13
13
  export declare function hasSymptomOnsetPrnAt(context: HpsgClauseContext, start: number): boolean;
14
14
  export declare function symptomOnsetPrnRule(): HpsgLexicalRule<HpsgClauseContext>;
15
- /** Offer an established indication before the conditional target is selected. */
15
+ /** Locate the end of an established indication before conditional attachment. */
16
+ export declare function knownPrnNominalEndBefore(context: HpsgClauseContext, start: number, boundary: number): number | undefined;
16
17
  export declare function hasKnownPrnNominalBefore(context: HpsgClauseContext, start: number, boundary: number): boolean;
17
18
  /** Existing maximum-boundary callers use the same complete nominal proof. */
18
19
  export declare const prnEndsBeforeMaximum: typeof hasKnownPrnNominalBefore;
@@ -1,8 +1,9 @@
1
1
  import { type QuantityLexicalContext } from "../quantity-lexicon";
2
2
  import { Token } from "../../parser-state";
3
- import { type AdviceFrame, AdviceRelation, EventTiming, FhirDayOfWeek, FhirPeriodUnit, type CanonicalCalendarEventExpr, type CanonicalAdditionalInstructionExpr, type FhirQuantity, type ParseOptions } from "../../types";
3
+ import { type AdviceFrame, AdviceRelation, EventTiming, FhirDayOfWeek, FhirPeriodUnit, type CanonicalCalendarEventExpr, type CanonicalAdditionalInstructionExpr, type FhirCoding, type FhirQuantity, type ParseOptions } from "../../types";
4
+ import { type EventTimingExpression } from "../../event-timing-expression";
4
5
  import { HpsgClauseContext, maximumCountLeadAt, maximumDosePerPeriodAt, maximumDosePeriodAt, clinicalDurationAt } from "../rule-context";
5
- import { HpsgLexicalRule, HpsgSign } from "../signature";
6
+ import { HpsgLexicalRule, HpsgScheduleFeature, HpsgSign } from "../signature";
6
7
  export { followingCourseDurationHeaderAt } from "../timing-lexicon";
7
8
  export interface OrdinalWeekStageHeader {
8
9
  tokenStart: number;
@@ -28,6 +29,14 @@ export declare function monthlyOrdinalWeekdayParts(context: HpsgClauseContext, s
28
29
  } | undefined;
29
30
  export declare function multiplicativeDoseFrequencyRule(): HpsgLexicalRule<HpsgClauseContext>;
30
31
  export declare function compactIntervalRule(): HpsgLexicalRule<HpsgClauseContext>;
32
+ interface CadenceNominal {
33
+ end: number;
34
+ schedule: HpsgScheduleFeature;
35
+ rule: string;
36
+ score: number;
37
+ scheduleDefault?: HpsgSign["evidence"][number]["scheduleDefault"];
38
+ countedIntervalStart?: number;
39
+ }
31
40
  export declare function separatedIntervalRule(): HpsgLexicalRule<HpsgClauseContext>;
32
41
  /** One complete occurrence maximum is shared by the schedule chart and guard scope. */
33
42
  export declare function maximumOccurrenceAt(context: Parameters<typeof maximumCountLeadAt>[0], start: number, lead?: {
@@ -51,7 +60,6 @@ export type MaximumPredicateScope = "unresolved" | "condition" | "measurement" |
51
60
  * an opaque Boolean predicate. Explicit separators/maximum heads retain their
52
61
  * independent instruction license. */
53
62
  export declare function isIndependentMaximum(context: Parameters<typeof maximumCountLeadAt>[0], start: number, maximum: NonNullable<ReturnType<typeof maximumOccurrenceAt> | ReturnType<typeof maximumDosePerPeriodAt>>, predicateScope?: MaximumPredicateScope, endSource?: number): boolean;
54
- export declare function separatedFrequencyRangeRule(): HpsgLexicalRule<HpsgClauseContext>;
55
63
  /**
56
64
  * A distributive cadence followed directly by a discrete unit licenses an
57
65
  * elided cardinal one: Thai `วันละเม็ด` => one tablet daily. This is narrower
@@ -60,45 +68,41 @@ export declare function separatedFrequencyRangeRule(): HpsgLexicalRule<HpsgClaus
60
68
  export declare function cadenceFirstImplicitSingleDoseRule(): HpsgLexicalRule<HpsgClauseContext>;
61
69
  export declare function cadenceFirstFrequencyRule(): HpsgLexicalRule<HpsgClauseContext>;
62
70
  export declare function singleOccurrencePhraseRule(): HpsgLexicalRule<HpsgClauseContext>;
63
- /** Complete declared cardinal/cadence nominal, shared with local action
64
- * boundaries. HPSG's contextual ownership guards remain at its lexical rule. */
65
- export declare function countFrequencyNominalAt(context: QuantityLexicalContext, start: number): HpsgSign | undefined;
66
- /** Complete recurrence morphology shared with action-valence boundaries.
67
- * The lexical productions below still own the schedule meaning and evidence. */
71
+ /** A complete count selects a cadence daughter or denotes the course count.
72
+ * Action boundaries share this reading without allocating a chart sign. */
73
+ export declare function countFrequencyNominalAt(context: QuantityLexicalContext, start: number): CadenceNominal | undefined;
74
+ /** Reuse the provider's annotated abbreviation while keeping exact compact
75
+ * spellings available to consumers of raw (unannotated) action tokens. */
76
+ export declare function timingAbbreviationAt(token: Token, lower: string): import("../../maps").FrequencyDescriptor;
77
+ /** Complete recurrence morphology shared with action-valence boundaries. */
68
78
  export declare function cadenceNominalEnd(context: QuantityLexicalContext, start: number): number | undefined;
69
79
  export declare function countFrequencyRule(): HpsgLexicalRule<HpsgClauseContext>;
80
+ /** A complete standalone cadence between two independently owned constituents. */
81
+ export declare function recurrenceFillsSpan(context: HpsgClauseContext, start: number, end: number): boolean;
70
82
  export declare function alternateEventCadenceRule(): HpsgLexicalRule<HpsgClauseContext>;
71
83
  export declare function calendarDateListRule(): HpsgLexicalRule<HpsgClauseContext>;
72
84
  export declare function timingLexicalRule(): HpsgLexicalRule<HpsgClauseContext>;
73
85
  /** The same relation-selected event owns bare, immediate, and quantified
74
86
  * timing constituents. Sleep and wake keep their established lexical aliases. */
75
- export declare function relatedEventTimingExpression(parts: readonly string[], relation: "before" | "after" | "with"): {
76
- timing: EventTiming;
77
- length: number;
78
- } | undefined;
87
+ export declare function relatedEventTimingExpression(parts: readonly string[], relation: "before" | "after" | "with"): EventTimingExpression | undefined;
79
88
  interface QualifiedEventAdvice {
80
89
  start: number;
81
90
  end: number;
82
91
  frame?: AdviceFrame;
83
92
  alternative?: true;
93
+ measuredAlternative?: {
94
+ left: EventTiming;
95
+ right: EventTiming;
96
+ quantity: EventOffsetQuantity;
97
+ };
84
98
  registeredInstruction?: CanonicalAdditionalInstructionExpr;
85
99
  }
86
100
  /** A selected MealState owns its complete nominal before a contained generic
87
101
  * event. Reuse the selected argument's provider and occurrence proof; unheaded
88
102
  * stock compounds keep their existing lexical fallback. */
89
103
  export declare function qualifiedEventAdviceAt(context: HpsgClauseContext, index: number): QualifiedEventAdvice | undefined;
90
- interface CoordinatedRelatedEvents {
91
- timings: EventTiming[];
92
- members: Token[];
93
- next: number;
94
- }
95
- /**
96
- * Compose a relation-scoped list of event daughters. English commonly names
97
- * every meal (`breakfast, lunch and dinner`), while Thai commonly shares the
98
- * nominal head (`อาหารเช้า กลางวัน และเย็น`). Both are the same typed list;
99
- * disjunction remains outside this conjunctive construction.
100
- */
101
- export declare function coordinatedRelatedEventsAt(context: QuantityLexicalContext, start: number, relation: "before" | "after" | "with", measuredOffset?: boolean): CoordinatedRelatedEvents | undefined;
104
+ /** Action lookahead admits an unqualified event, then extends its measured meal list. */
105
+ export declare function measuredActionEventEnd(tokens: readonly Token[], start: number, relation: AdviceRelation | undefined): number | undefined;
102
106
  type EventOffsetQuantity = {
103
107
  value: number;
104
108
  unit: FhirPeriodUnit;
@@ -135,7 +139,7 @@ export declare function semanticActivityWindowAt(context: QuantityLexicalContext
135
139
  length: number;
136
140
  display: string;
137
141
  i18n?: Record<string, string>;
138
- coding?: import("../../types").FhirCoding;
142
+ coding?: FhirCoding;
139
143
  } | undefined;
140
144
  } | undefined;
141
145
  export declare function quantityFirstActivityTimingRule(): HpsgLexicalRule<HpsgClauseContext>;
@@ -234,6 +238,10 @@ export interface CycleSchedule {
234
238
  anchor?: string;
235
239
  events: CanonicalCalendarEventExpr[];
236
240
  error?: string;
241
+ cycleConcept?: FhirCoding;
242
+ startDay?: number;
243
+ maxTreatmentDays?: number;
244
+ dayOneEvent?: FhirCoding;
237
245
  kind?: 'calendar-days' | 'recurring-on-off';
238
246
  onDuration?: FhirQuantity;
239
247
  offDuration?: FhirQuantity;
@@ -245,6 +253,8 @@ export interface CycleSchedule {
245
253
  }
246
254
  /** Recognize finite anchored cycle/day-offset expressions; never guess an absent anchor or cycle length. */
247
255
  export declare function recognizeCycles(input: string, options?: ParseOptions, sourceTokens?: readonly Token[]): CycleSchedule[];
256
+ type CycleClauseContext = Pick<HpsgClauseContext, "state" | "options">;
257
+ export declare function cycleSchedulesForContext(context: CycleClauseContext): readonly CycleSchedule[];
248
258
  /** Finite cycles emit exact events; recurring active/rest cycles emit their
249
259
  * typed active duration and whole-course repeat interval on the same sign. */
250
260
  export declare function cycleScheduleRule(): HpsgLexicalRule<HpsgClauseContext>;
@@ -1,7 +1,7 @@
1
1
  import type { HpsgSigSegment } from "./segmenter";
2
2
  import type { CanonicalEvidence, CanonicalSigClause, CanonicalScheduleExpr, ParseOptions } from "../types";
3
3
  import type { MedicationDateListMatch } from "../date-interpretation";
4
- import { AdviceFrame, AdviceRelation, CanonicalDoseRange, CanonicalClinicalAdjuncts, CanonicalAdditionalInstructionExpr, CanonicalActivityTimingExpr, CanonicalCalendarEventExpr, CanonicalCycleDayConstraint, CanonicalDosePeriodMaximumExpr, CanonicalOccurrenceCapExpr, AdministrationTargetCoordinationKind, CanonicalScheduleSemanticField, CanonicalLexicalCategory, BodySiteRestriction, BodySiteRestrictionPredicate, BodySiteSpatialRelation, EventTiming, FhirCoding, FhirDayOfWeek, FhirPeriodUnit, FhirPrimitiveElement, FhirQuantity, MedicationCondition, RouteCode, PrnReasonLookupRequest, SiteCodeLookupRequest, TextRange } from "../types";
4
+ import { AdviceArgument, CanonicalInstructionCondition, AdviceFrame, AdviceRelation, CanonicalDoseRange, CanonicalClinicalAdjuncts, CanonicalAdditionalInstructionExpr, CanonicalActivityTimingExpr, CanonicalCalendarEventExpr, CanonicalCycleDayConstraint, CanonicalDosePeriodMaximumExpr, CanonicalOccurrenceCapExpr, AdministrationTargetCoordinationKind, CanonicalScheduleSemanticField, CanonicalLexicalCategory, BodySiteRestriction, BodySiteRestrictionPredicate, BodySiteSpatialRelation, EventTiming, FhirCoding, FhirDayOfWeek, FhirPeriodUnit, FhirPrimitiveElement, FhirQuantity, MedicationCondition, RouteCode, PrnReasonLookupRequest, SiteCodeLookupRequest, TextRange } from "../types";
5
5
  import { Token, type ParserState } from "../parser-state";
6
6
  import type { HpsgFeatureNode } from "./type-system";
7
7
  export type HpsgType = "sign" | "word-sign" | "phrase-sign" | "headed-phrase" | "head-complement-phrase" | "head-adjunct-phrase" | "head-marker-phrase" | "procedure-sequence-phrase" | "conditional-instruction-phrase" | "coordination-phrase" | "site-coordination-phrase" | "clause-sign" | "administration-clause" | "method-sign" | "route-sign" | "site-sign" | "site-relative-marker-sign" | "site-predicate-sign" | "site-relative-clause" | "restricted-site-phrase" | "recurring-course-phrase" | "dose-sign" | "schedule-sign" | "prn-sign" | "instruction-sign" | "conditional-sign" | "clinical-adjunct-sign" | "guard-predicate-sign" | "guard-operator-sign" | "guard-marker-sign" | "guard-predicate-phrase" | "guard-coordination-tail" | "guard-negation-phrase" | "medication-guard-phrase" | "adjustment-sign" | "connector-sign";
@@ -9,7 +9,12 @@ export interface HpsgEvidence {
9
9
  rule: string;
10
10
  /** Canonical provenance comes from the typed lexical sign, not its rule ID. */
11
11
  lexicalCategory?: CanonicalLexicalCategory;
12
+ /** Selected connective retained for canonical graph projection. */
13
+ coordination?: HpsgCoordinationMarkerFeature["coordination"];
12
14
  tokenIndices: number[];
15
+ /** Route lexical evidence identifies a registered constituent at a chart split. */
16
+ routeLexeme?: RouteCode;
17
+ configuredRoute?: true;
13
18
  /** Lexical evidence that a schedule field is an inferred, construction-local default. */
14
19
  scheduleDefault?: "daily-frequency" | "weekday-recurrence";
15
20
  /** Exact typed schedule fields contributed by this lexical evidence. */
@@ -26,6 +31,8 @@ export interface HpsgConstruction {
26
31
  }
27
32
  export interface HpsgMethodFeature {
28
33
  verb: string;
34
+ /** An unqualified registered support head admits a more specific method. */
35
+ supportVerb?: true;
29
36
  headClass?: "administration" | "procedure";
30
37
  text?: string;
31
38
  textElement?: FhirPrimitiveElement;
@@ -33,6 +40,7 @@ export interface HpsgMethodFeature {
33
40
  }
34
41
  export interface HpsgRouteFeature {
35
42
  code: RouteCode;
43
+ productFormKey?: string;
36
44
  attachmentClass?: "administration" | "procedure";
37
45
  text?: string;
38
46
  }
@@ -88,6 +96,8 @@ export interface HpsgConditionFeature {
88
96
  relation: AdviceRelation;
89
97
  text: string;
90
98
  fullText: string;
99
+ predicate?: CanonicalInstructionCondition;
100
+ predicateTiming?: AdviceArgument;
91
101
  sourceStart: number;
92
102
  sourceEnd: number;
93
103
  targetStart: number;
@@ -102,12 +112,24 @@ export interface HpsgConditionFeature {
102
112
  * sign. This is distinct from HpsgConditionFeature, which scopes procedural
103
113
  * instruction programs such as "if irritation occurs, stop use".
104
114
  */
115
+ /** Selected procedural meaning travels with its lexical predicate daughter. */
116
+ export interface HpsgInstructionPredicateSelection {
117
+ condition: Extract<CanonicalInstructionCondition, {
118
+ text: string;
119
+ }>;
120
+ /** A bare nominal may share the following source-final aspect. */
121
+ bareNominal?: boolean;
122
+ closingAspect?: Extract<CanonicalInstructionCondition, {
123
+ text: string;
124
+ }>["aspect"];
125
+ }
105
126
  /** A predicate daughter can require a measurement head from an adjacent
106
127
  * coordinate. Only the HPSG coordination construction may discharge it. */
107
128
  export type HpsgGuardExpression = {
108
129
  kind: "predicate";
109
130
  value: MedicationCondition;
110
131
  dayInvariant?: true;
132
+ instruction?: HpsgInstructionPredicateSelection;
111
133
  } | {
112
134
  kind: "measurement-complement";
113
135
  operation: "gt" | "ge" | "lt" | "le" | "eq";
@@ -127,9 +149,12 @@ export interface HpsgGuardFeature {
127
149
  expression?: HpsgGuardExpression;
128
150
  operator?: "all" | "any" | "not";
129
151
  marker?: "if" | "only-if" | "unless";
152
+ intervalEligibility?: true;
130
153
  licensesBareIf?: true;
131
154
  }
132
155
  export interface HpsgClinicalAdjunctFeature {
156
+ courseStart?: CanonicalClinicalAdjuncts["courseStart"];
157
+ courseEnd?: CanonicalClinicalAdjuncts["courseEnd"];
133
158
  treatmentPause?: CanonicalClinicalAdjuncts["treatmentPause"];
134
159
  condition?: MedicationCondition;
135
160
  /** Day-domain meaning retained separately for typed anaphoric complements. */
@@ -232,6 +257,7 @@ declare module "../types" {
232
257
  }
233
258
  }
234
259
  export interface HpsgScheduleFeature {
260
+ eventAlternatives?: CanonicalScheduleExpr["eventAlternatives"];
235
261
  cycleDayConstraint?: CanonicalCycleDayConstraint;
236
262
  /** Typed whole-course interval for a recurring active/rest construction. */
237
263
  repeatCycle?: FhirQuantity;
@@ -345,6 +371,8 @@ export interface HpsgSign {
345
371
  fs: HpsgFeatureNode;
346
372
  /** Immediate phrase-construction provenance for non-lexical signs. */
347
373
  construction?: HpsgConstruction;
374
+ /** Clause-local start of an exact schedule daughter selected by this sign. */
375
+ ownedScheduleDaughterStart?: number;
348
376
  consumedTokenIndices: number[];
349
377
  siteTokenIndices?: number[];
350
378
  warnings?: string[];
@@ -445,6 +473,8 @@ export interface ProbeSummary extends Range {
445
473
  hasClocks: boolean;
446
474
  hasOffset: boolean;
447
475
  method: boolean;
476
+ methodVerb?: string;
477
+ productFormKey?: string;
448
478
  prn: boolean;
449
479
  clocks: readonly string[];
450
480
  conditionStarts: readonly number[];
@@ -28,6 +28,10 @@ export declare function periodUnitSuffix(unit: FhirPeriodUnit): string | undefin
28
28
  export declare function applyPeriod(internal: ParserState, period: number, unit: FhirPeriodUnit): void;
29
29
  export declare function buildPeriodScheduleFeature(period: number, unit: FhirPeriodUnit, when?: EventTiming): HpsgScheduleFeature;
30
30
  export declare function mapIntervalUnit(token: string): FhirPeriodUnit.Minute | FhirPeriodUnit.Hour | FhirPeriodUnit.Day | FhirPeriodUnit.Week | FhirPeriodUnit.Month | undefined;
31
+ /** Complete remaining-day nominal shared by calendar and preposition ownership. */
32
+ export declare function weekdayComplementNominalEnd(tokens: readonly LexToken[], start: number, limit?: number): number | undefined;
33
+ /** A course licenses temporal units from the shared instruction vocabulary. */
34
+ export declare function courseDurationUnit(surface: string): FhirPeriodUnit | undefined;
31
35
  /** Bounded lexical constituent for a fronted following treatment course.
32
36
  * The planner reuses its source extent; duration consumers retain the
33
37
  * same selected numeric daughter.
@@ -38,6 +42,7 @@ export declare function followingCourseDurationHeaderAt(tokens: readonly LexToke
38
42
  valueIndex: number;
39
43
  tokenEnd: number;
40
44
  implicitSingle?: boolean;
45
+ prospective?: true;
41
46
  range?: {
42
47
  low: number;
43
48
  high: number;
package/dist/i18n.d.ts CHANGED
@@ -15,6 +15,7 @@ export interface SigFormatContext {
15
15
  readonly includeTimesPerDaySummary: boolean;
16
16
  readonly realizationMode: "normalized" | "roundtrip";
17
17
  readonly sitePlacement: "natural" | "trailing";
18
+ readonly pairedSiteWording: NonNullable<TimingSummaryOptions["pairedSiteWording"]>;
18
19
  readonly instructionActionMap?: TimingSummaryOptions["instructionActionMap"];
19
20
  readonly resolvedMethod?: MedicationInstructionActionDefinition;
20
21
  formatDefault(style: "short" | "long"): string;
@@ -52,6 +53,8 @@ interface NativeClauseRendering {
52
53
  short: typeof formatShortEnglish;
53
54
  timing: typeof ENGLISH_CLAUSE_TIMING;
54
55
  dose: NonNullable<SigLocalization["formatDose"]>;
56
+ /** An amount without administration or per-target wording, for scoped limits. */
57
+ quantity: NonNullable<SigLocalization["formatDose"]>;
55
58
  }
56
59
  export declare function registerSigLocalization(localization: SigLocalization): void;
57
60
  export declare function getRegisteredSigLocalizations(): SigLocalization[];