ezmedicationinput 0.1.67 → 0.3.0-beta.1

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 (69) hide show
  1. package/README.md +222 -28
  2. package/dist/adapters/canonical-course.d.ts +128 -0
  3. package/dist/adapters/r5-course.d.ts +24 -0
  4. package/dist/advice.d.ts +52 -1
  5. package/dist/body-site-grammar.d.ts +34 -1
  6. package/dist/body-site-lookup.d.ts +3 -0
  7. package/dist/body-site-spatial.d.ts +6 -2
  8. package/dist/body-site-target.d.ts +9 -3
  9. package/dist/canonical/compile.d.ts +79 -0
  10. package/dist/canonical/course.d.ts +352 -0
  11. package/dist/canonical/format-course.d.ts +36 -0
  12. package/dist/date-interpretation.d.ts +2 -0
  13. package/dist/dosage-course.d.ts +453 -0
  14. package/dist/execution/calendar.d.ts +107 -0
  15. package/dist/execution/engine.d.ts +11 -0
  16. package/dist/fhir-quantity-operator.d.ts +53 -0
  17. package/dist/fhir-translations.d.ts +5 -6
  18. package/dist/fhir.d.ts +233 -13
  19. package/dist/format.d.ts +113 -3
  20. package/dist/hpsg/constructions.d.ts +113 -0
  21. package/dist/hpsg/defaults.d.ts +2 -0
  22. package/dist/hpsg/lexical-classes.d.ts +282 -2
  23. package/dist/hpsg/procedural-context.d.ts +18 -4
  24. package/dist/hpsg/projection.d.ts +38 -3
  25. package/dist/hpsg/rule-context.d.ts +117 -7
  26. package/dist/hpsg/rules/clinical-quantity-rules.d.ts +18 -0
  27. package/dist/hpsg/rules/condition-rules.d.ts +14 -0
  28. package/dist/hpsg/rules/core-rules.d.ts +32 -0
  29. package/dist/hpsg/rules/instruction-rules.d.ts +11 -1
  30. package/dist/hpsg/rules/prn-rules.d.ts +3 -1
  31. package/dist/hpsg/rules/timing-rules.d.ts +138 -8
  32. package/dist/hpsg/signature.d.ts +353 -5
  33. package/dist/hpsg/type-system.d.ts +16 -1
  34. package/dist/hpsg/unification.d.ts +4 -1
  35. package/dist/i18n.d.ts +39 -1
  36. package/dist/index.cjs +65539 -30893
  37. package/dist/index.d.ts +35 -7
  38. package/dist/index.js +65505 -30892
  39. package/dist/instruction-action-locale-adapter.d.ts +32 -3
  40. package/dist/instruction-action-terminology.d.ts +38 -3
  41. package/dist/instruction-concept-terminology.d.ts +8 -1
  42. package/dist/instruction-graph-fhir.d.ts +9 -3
  43. package/dist/instruction-graph.d.ts +85 -7
  44. package/dist/ir.d.ts +13 -2
  45. package/dist/lexer/surface-segmenter.d.ts +1 -1
  46. package/dist/lexer/surface.d.ts +1 -0
  47. package/dist/locale-detection.d.ts +3 -0
  48. package/dist/locales/course/en.d.ts +15 -0
  49. package/dist/locales/course/th.d.ts +12 -0
  50. package/dist/localization.d.ts +73 -0
  51. package/dist/maps.d.ts +24 -1
  52. package/dist/medication-condition.d.ts +42 -0
  53. package/dist/parser-state.d.ts +6 -2
  54. package/dist/parser.d.ts +5 -2
  55. package/dist/regimen/coordination-scope.d.ts +53 -0
  56. package/dist/regimen/grammar.d.ts +79 -0
  57. package/dist/regimen/parallel-course.d.ts +52 -0
  58. package/dist/regimen/planner.d.ts +19 -0
  59. package/dist/regimen/regimen.d.ts +70 -0
  60. package/dist/relation-terminology.d.ts +1 -0
  61. package/dist/schedule.d.ts +12 -5
  62. package/dist/stable-structure.d.ts +23 -1
  63. package/dist/timing-summary.d.ts +82 -1
  64. package/dist/types.d.ts +899 -40
  65. package/dist/unit-lexicon.d.ts +7 -0
  66. package/dist/utils/strength.d.ts +16 -0
  67. package/dist/utils/text.d.ts +3 -0
  68. package/dist/utils/units.d.ts +19 -0
  69. package/package.json +3 -2
@@ -0,0 +1,79 @@
1
+ import { type CanonicalSigClause } from "../types";
2
+ import type { BoundaryDecision, BoundarySite, CoordinationConnectorKind, CoordinationScopeFacts, Proposal, ProbeSummary, RegimenSemanticConstruction, RegimenSemanticSelection, TrailingInstructionScopeFacts } from '../hpsg/signature';
3
+ /** A recognized modifier of an administration remains meaningful even when
4
+ * it cannot be assigned a clock time (for example an accompanying snack).
5
+ * @param clause Source-typed clause whose explicit dose is being segmented.
6
+ */
7
+ export declare function hasAdministrationAdjunct(clause: CanonicalSigClause): boolean;
8
+ /** Typed boundary facts are a separate signature from the production clause grammar. */
9
+ export interface BoundaryFacts {
10
+ site: BoundarySite;
11
+ left: ProbeSummary;
12
+ right: ProbeSummary;
13
+ inheritedAdministration: boolean;
14
+ connectorKind: CoordinationConnectorKind;
15
+ explicitRightUnit: boolean;
16
+ rightHasProcedure: boolean;
17
+ rightAfterFirstAdministration: boolean;
18
+ leftDateSpan: boolean;
19
+ rightDateSpan: boolean;
20
+ leftTargetCue: boolean;
21
+ rightTargetCue: boolean;
22
+ }
23
+ interface Constraint {
24
+ feature: string;
25
+ satisfied: (facts: BoundaryFacts) => boolean;
26
+ }
27
+ interface Construction {
28
+ id: string;
29
+ priority: number;
30
+ constraints: readonly Constraint[];
31
+ relation: Proposal['relation'];
32
+ acceptsAdjacentDose?: boolean;
33
+ inheritFollowingDuration?: boolean;
34
+ preserveRelationAtSequenceSurface?: boolean;
35
+ semanticLicense?: Proposal['semanticLicense'];
36
+ }
37
+ interface SemanticConstraint {
38
+ feature: string;
39
+ satisfied: (facts: CoordinationScopeFacts) => boolean;
40
+ }
41
+ interface SemanticConstruction extends RegimenSemanticConstruction {
42
+ constraints: readonly SemanticConstraint[];
43
+ }
44
+ /** A source-unowned single count is an execution default, not a written
45
+ * schedule or phase bound. Both boundary planning and cadence inheritance use
46
+ * this same distinction before a later adjunct completes the administration. */
47
+ export declare function hasImplicitSingleCount(clause: CanonicalSigClause): boolean;
48
+ /** A postposed onset completes a dose whose only timing is local runtime
49
+ * or delay. Independent recurrence, anchored positions and authored bounds
50
+ * remain capable of establishing a separate treatment phase. */
51
+ export declare function canReceivePostposedOnset(probe: ProbeSummary): boolean;
52
+ /** A single clock without independent recurrence or phase boundaries can
53
+ * locate the initial administration in an explicitly ordered clock sequence. */
54
+ export declare function singleClockWithoutRecurrence(schedule: CanonicalSigClause['schedule']): string | undefined;
55
+ /**
56
+ * Distributive cadence is licensed only for a coordinated dose continuation.
57
+ * The right daughter is the scoped cadence donor; an independently headed,
58
+ * incomplete, conflicting, or already-timed daughter cannot participate.
59
+ */
60
+ export declare const COORDINATION_SCOPE_CONSTRUCTIONS: readonly SemanticConstruction[];
61
+ export declare function grammaticalCoordinationScopes(facts: CoordinationScopeFacts): RegimenSemanticSelection[];
62
+ /**
63
+ * License a terminal negative adjunct from typed action and regimen facts.
64
+ * Surface recognition has already happened in HPSG; this rule only decides
65
+ * whether that local adjunct scopes over a related compatible administration.
66
+ */
67
+ export declare function grammaticalTrailingInstructionScope(facts: TrailingInstructionScopeFacts): RegimenSemanticSelection | undefined;
68
+ /** Exact elapsed interval on a terminal wait action, already composed by HPSG. */
69
+ export declare function terminalAdministrationDelay(clause: CanonicalSigClause): number | undefined;
70
+ /** Rules inspect features only. Surface/locale recognition belongs to lexical and span producers. */
71
+ export declare const CONSTRUCTIONS: readonly Construction[];
72
+ export interface RejectedConstruction {
73
+ rule: string;
74
+ failedConstraints: string[];
75
+ }
76
+ export declare function grammaticalProposals(f: BoundaryFacts, rejected?: RejectedConstruction[]): Proposal[];
77
+ /** Hard constraints dominate licensed rules; equal-priority conflicting actions stay unresolved/kept. */
78
+ export declare function arbitrate(site: BoundarySite, proposals: Proposal[]): BoundaryDecision;
79
+ export {};
@@ -0,0 +1,52 @@
1
+ import { type CanonicalBoundary, type RegimenPosition } from '../canonical/course';
2
+ import type { HpsgSigSegment } from '../hpsg/segmenter';
3
+ import type { BoundaryPlan } from '../hpsg/signature';
4
+ import { type RegimenGraph } from './regimen';
5
+ import type { CanonicalSigClause } from '../types';
6
+ export type { RegimenPosition } from '../canonical/course';
7
+ export interface CanonicalParallelComponent {
8
+ member: number;
9
+ clause: CanonicalSigClause;
10
+ /** Stage-local inclusive end without replacing explicit source semantics. */
11
+ effectiveBoundsEnd?: string;
12
+ boundsEndBasis?: 'next-phase-start' | 'anchored-duration';
13
+ /** Original track-phase origin retained when copied across global steps. */
14
+ phaseOrigin?: RegimenPosition;
15
+ }
16
+ export interface CanonicalParallelPhase {
17
+ kind: 'relative' | 'calendar';
18
+ members: CanonicalParallelComponent[];
19
+ start?: RegimenPosition;
20
+ /** Origin of the known relative start; absent retains elapsed semantics. */
21
+ startReference?: "treatment-day-start";
22
+ end?: RegimenPosition;
23
+ /** A known same-track successor caps this phase without replacing its own end. */
24
+ phaseEnd?: CanonicalBoundary;
25
+ }
26
+ export interface CanonicalParallelTrack {
27
+ phases: CanonicalParallelPhase[];
28
+ }
29
+ export interface CanonicalParallelStage {
30
+ sequence: number;
31
+ start: RegimenPosition;
32
+ end?: RegimenPosition;
33
+ components: CanonicalParallelComponent[];
34
+ }
35
+ export type CanonicalParallelRegimen = {
36
+ kind: 'not-parallel';
37
+ } | {
38
+ kind: 'unresolved';
39
+ reason: string;
40
+ tracks?: CanonicalParallelTrack[];
41
+ } | {
42
+ kind: 'resolved';
43
+ tracks: CanonicalParallelTrack[];
44
+ stages: CanonicalParallelStage[];
45
+ };
46
+ /**
47
+ * Build independent track windows and canonical global stages from typed HPSG
48
+ * clauses and licensed regimen relations. No FHIR object or source text is
49
+ * inspected. Unsupported relationships remain editable through ordinary
50
+ * per-clause results while this richer course projection stays unresolved.
51
+ */
52
+ export declare function buildCanonicalParallelRegimen(clauses: readonly CanonicalSigClause[], segments: readonly HpsgSigSegment[], plan: BoundaryPlan, graph: RegimenGraph): CanonicalParallelRegimen;
@@ -0,0 +1,19 @@
1
+ import { type ParseOptions } from '../types';
2
+ import type { ParserState } from '../parser-state';
3
+ import type { HpsgSigSegment } from '../hpsg/segmenter';
4
+ import type { BoundaryPlan, PlannerOptions } from '../hpsg/signature';
5
+ /** Reuse exact completed HPSG probes, but never a partial probe. Carry-forward
6
+ * is applied to the returned state by the same production consumer as a fresh
7
+ * parse, so it does not invalidate an exact segment result. */
8
+ export declare function takeBoundaryParsedState(plan: BoundaryPlan, start: number, end: number, text: string): ParserState | undefined;
9
+ /** Production boundary grammar: lexical candidates are arbitrated using typed
10
+ * constituent ownership before final clause parsing.
11
+ * @param input Original clinician instruction.
12
+ * @param options Terminology and interpretation context.
13
+ * @param experiment Optional diagnostic switches used by the comparison harness.
14
+ */
15
+ export declare function planBoundaries(input: string, options?: ParseOptions, experiment?: PlannerOptions): BoundaryPlan;
16
+ /** Return the segment view of the production boundary plan. */
17
+ export declare function parseSigSegments(input: string, options?: ParseOptions): HpsgSigSegment[];
18
+ /** The public parse pipelines use the production planner directly. */
19
+ export { planBoundaries as createBoundaryPlan };
@@ -0,0 +1,70 @@
1
+ import type { BoundaryPlan, BoundaryRelation } from '../hpsg/signature';
2
+ import type { HpsgSigSegment } from '../hpsg/segmenter';
3
+ import { ParserState } from '../parser-state';
4
+ import type { CanonicalSigClause, FhirQuantity, ParseOptions } from '../types';
5
+ export interface RegimenPhase {
6
+ id: number;
7
+ members: number[];
8
+ /** Cycle agreed by every typed administration member in this phase. */
9
+ repeatCycle?: FhirQuantity;
10
+ repeatCount?: number;
11
+ }
12
+ export interface PhaseEdge {
13
+ from: number;
14
+ to: number;
15
+ relation: BoundaryRelation;
16
+ }
17
+ export interface RegimenGraph {
18
+ /** Per-administration dependencies within a repeating phase. */
19
+ administrationDependencies?: Array<{
20
+ from: number;
21
+ to: number;
22
+ delayMinutes: number;
23
+ }>;
24
+ phases: RegimenPhase[];
25
+ sequences: PhaseEdge[];
26
+ /** Whole-course interval contributed by a typed recurring cycle sign. */
27
+ repeatCycle?: FhirQuantity;
28
+ /** Explicit finite number of whole-course repetitions. */
29
+ repeatCount?: number;
30
+ }
31
+ export interface InheritanceEvidence {
32
+ rule: string;
33
+ phase: number;
34
+ sources: number[];
35
+ target: number;
36
+ fields: string[];
37
+ }
38
+ /** Retain coordination as a group; sequence and independent delimiters start new groups. */
39
+ export declare function buildRegimenGraph(plan: BoundaryPlan, segments: readonly HpsgSigSegment[], states?: readonly ParserState[]): RegimenGraph;
40
+ /** Whether the authored endpoints identify one exact course duration. */
41
+ export declare function hasExactScheduleDuration(schedule: CanonicalSigClause["schedule"]): schedule is NonNullable<CanonicalSigClause["schedule"]> & {
42
+ duration: number;
43
+ };
44
+ /**
45
+ * A date-anchored whole-day or calendar-month duration has one inclusive window.
46
+ * Materialize that window on the typed schedule before FHIR projection so the
47
+ * wire layer never has to choose between boundsPeriod and boundsDuration.
48
+ */
49
+ export declare function anchoredScheduleDurationEnd(schedule: CanonicalSigClause['schedule']): string | undefined;
50
+ /**
51
+ * License sequential schedule inheritance on the typed regimen graph before
52
+ * canonical clauses are lowered to FHIR. A complete predecessor phase owns
53
+ * the derived start, and only anchors shared by every predecessor daughter
54
+ * may fill an otherwise unanchored successor.
55
+ */
56
+ export declare function scopeSequentialPhaseSemantics(states: readonly ParserState[], segments: readonly HpsgSigSegment[], graph: RegimenGraph, source: string, options?: ParseOptions): InheritanceEvidence[];
57
+ /** Sequence belongs to the typed graph, before FHIR projection. */
58
+ export declare function regimenMemberSequences(graph: RegimenGraph): number[];
59
+ /** Materialize an explicit ADD phase over its preceding typed regimen.
60
+ * Source-only operation resolution runs before FHIR; ordinary parses return
61
+ * their original arrays and unrelated parallel tracks are never inspected.
62
+ * @param states Interpreted source clause states.
63
+ * @param segments Source ranges corresponding to those states.
64
+ * @param graph Source-licensed phase relations before wire projection.
65
+ */
66
+ export declare function expandRegimenAdjustmentPhases(states: ParserState[], segments: HpsgSigSegment[], graph: RegimenGraph): {
67
+ states: ParserState[];
68
+ segments: HpsgSigSegment[];
69
+ graph: RegimenGraph;
70
+ };
@@ -74,6 +74,7 @@ export declare function resolveActionRelationSurfaceCandidates(surface: string):
74
74
  export declare function resolveActionRelationSurface(surface: string, preferredSemanticClasses?: readonly string[]): AdviceRelation | undefined;
75
75
  export declare function resolveActionRelationSurfaceByGrammarFeature(surface: string, feature: keyof AdviceRelationGrammarFeatures): AdviceRelation | undefined;
76
76
  export declare function resolveAdviceRelationSurface(surface: string): AdviceRelation | undefined;
77
+ /** Vocabulary definitions are borrowed under the immutable-output contract. */
77
78
  export declare function getAdviceRelationDefinition(relation: AdviceRelation): AdviceRelationDefinition | undefined;
78
79
  export declare function relationHasGrammarFeature(relation: AdviceRelation | undefined, feature: keyof AdviceRelationGrammarFeatures): boolean;
79
80
  export declare function getUniqueAdviceRelationByGrammarFeature(feature: keyof AdviceRelationGrammarFeatures): AdviceRelation | undefined;
@@ -1,7 +1,14 @@
1
- import { FhirDosage, NextDueDoseOptions, TotalUnitsOptions, TotalUnitsResult } from "./types";
2
1
  /**
3
- * Produces the next dose timestamps in ascending order according to the
4
- * provided configuration and dosage metadata.
2
+ * Public medication execution boundary.
3
+ *
4
+ * Accept the established R5/R6/batch inputs and normalize them ONCE to the
5
+ * canonical course. All calendar, phase, occurrence and supply semantics are
6
+ * implemented in execution/engine, which has no import/export dependency.
7
+ * Canonical callers bypass interchange completely.
5
8
  */
6
- export declare function nextDueDoses(dosage: FhirDosage, options: NextDueDoseOptions): string[];
7
- export declare function calculateTotalUnits(options: TotalUnitsOptions): TotalUnitsResult;
9
+ import type { FhirDosage, FhirR6DosageInstructionInput, ParseBatchResult, NextDueDoseOptions, TotalUnitsOptions, TotalUnitsResult } from "./types";
10
+ import type { CanonicalScheduleInput, CanonicalSupplyOptions } from "./canonical/course";
11
+ import { MedicationQuantityCalculationError } from "./execution/engine";
12
+ export { MedicationQuantityCalculationError };
13
+ export declare function nextDueDoses(input: FhirDosage | readonly FhirDosage[] | FhirR6DosageInstructionInput | ParseBatchResult | CanonicalScheduleInput, options: NextDueDoseOptions): string[];
14
+ export declare function calculateTotalUnits(options: TotalUnitsOptions | CanonicalSupplyOptions): TotalUnitsResult;
@@ -1 +1,23 @@
1
- export declare function stableStructureKey(value: unknown): string;
1
+ /**
2
+ * Compare acyclic parser/FHIR data directly. Object property order is not
3
+ * meaning; omitted optional fields equal explicit undefined. Array order and
4
+ * primitive types remain significant. No sorting or normalized copy is needed.
5
+ * @param left First structured value.
6
+ * @param right Second structured value.
7
+ */
8
+ export declare function equalStructuredValues(left: unknown, right: unknown): boolean;
9
+ /**
10
+ * Copy acyclic plain data while preserving optional properties and primitive
11
+ * types. Each call owns its nested objects, including unfamiliar FHIR fields.
12
+ * This is not a serializer and never invokes an object's toJSON hook.
13
+ * @param value Plain parser/FHIR data to detach from an editable source.
14
+ */
15
+ export declare function cloneStructuredValue<T>(value: T): T;
16
+ /**
17
+ * Order-independent object / order-sensitive array hash for candidate buckets.
18
+ * A hash is NOT semantic equality: every consumer must compare bucket members
19
+ * with equalStructuredValues before packing or dropping a candidate. Optional
20
+ * undefined fields are omitted consistently with that comparator.
21
+ * @param value Acyclic structured value whose candidate bucket is needed.
22
+ */
23
+ export declare function hashStructuredValue(value: unknown): number;
@@ -1,5 +1,86 @@
1
- import { EventTiming, FhirDayOfWeek, FhirPeriodUnit } from "./types";
1
+ import { EventTiming, FhirDayOfWeek, FhirPeriodUnit, type ParseOptions } from "./types";
2
+ /** Exact standard timing identities shared by native compilation and wire
3
+ * projection. Local codes remain text unless this vocabulary recognizes them. */
4
+ export declare const FHIR_GTS_TIMING_SYSTEM = "http://terminology.hl7.org/CodeSystem/v3-GTSAbbreviation";
5
+ export declare const FHIR_GTS_TIMING_CODES: Set<string>;
6
+ /** Supported standard identity for coding selection and wire projection. */
7
+ export declare function isStandardTimingCoding(coding: {
8
+ system?: string;
9
+ code?: string;
10
+ } | undefined): boolean;
11
+ /** Existing compact interval vocabulary applies to text and systemless codes. */
12
+ export declare function isCompactIntervalTimingCode(code: string): boolean;
13
+ /** Existing clinical preview abbreviations include shorthand such as QHS
14
+ * that is not emitted as a standard FHIR code. Foreign systems stay opaque. */
15
+ export declare function isPreviewTimingCoding(coding: {
16
+ system?: string;
17
+ code?: string;
18
+ } | undefined): boolean;
19
+ /** Prefer an understood cadence over a local translation without changing
20
+ * either coding or its authored order. Local-only concepts keep their first code. */
21
+ export declare function preferredTimingCoding<T extends {
22
+ system?: string;
23
+ code?: string;
24
+ }>(timing: {
25
+ code?: {
26
+ coding?: readonly T[];
27
+ };
28
+ }, includePreview?: boolean): T | undefined;
29
+ /** Display-only coding is authored text, never an executable cadence. */
30
+ export declare function codeLessTimingDisplay(timing: {
31
+ code?: {
32
+ coding?: readonly {
33
+ code?: string;
34
+ display?: string;
35
+ }[];
36
+ };
37
+ } | undefined): string | undefined;
38
+ /** Preview shorthand does not change execution's standard-code preference. */
39
+ export declare function preferredPreviewTimingCoding<T extends {
40
+ system?: string;
41
+ code?: string;
42
+ }>(timing: {
43
+ code?: {
44
+ coding?: readonly T[];
45
+ };
46
+ }): T | undefined;
47
+ /** Recognized daily cadence, independent of configured clock realization. */
48
+ export declare const TIMING_CODE_DAILY_FREQUENCIES: Readonly<Record<string, number>>;
49
+ /** Exact standard elapsed intervals, separate from daily clock codes and
50
+ * language-specific SIG abbreviation recognition. */
51
+ export declare const TIMING_CODE_HOURLY_PERIODS: Readonly<Record<string, number>>;
52
+ /** Exact elapsed scales used to compare a numeric cadence, without assigning
53
+ * calendar-month lengths or choosing clinic clocks. */
54
+ export declare const FIXED_TIMING_PERIOD_SECONDS: Readonly<Record<string, number>>;
55
+ /** One exact cadence comparison for execution and clinical preview. */
56
+ export declare function matchesDailyCodeCadence(daily: number, repeat: {
57
+ frequency?: number;
58
+ period?: number;
59
+ periodUnit?: string;
60
+ }): boolean;
61
+ /** Standard coding has its own clinical meaning; free SIG shorthand stays lexical. */
62
+ export declare function timingCodeMeaning(coding: {
63
+ system?: string;
64
+ code?: string;
65
+ } | undefined): string | undefined;
66
+ /** Emit a standard identity only when its meaning matches the parsed shorthand. */
67
+ export declare function standardTimingCodingFromSig(code: string | undefined): {
68
+ system: string;
69
+ code: string;
70
+ } | undefined;
71
+ /** Standard BED supplies an event anchor independently of the repeat cadence. */
72
+ export declare function timingPreviewDescriptor(code: string): import("./maps").FrequencyDescriptor;
73
+ /** Human previews also recognize existing SIG shorthand without treating it
74
+ * as a standard FHIR timing identity or changing its structured projection. */
75
+ export declare function intervalTimingPreviewDescriptor(code: string): {
76
+ period: number;
77
+ periodMax?: number;
78
+ periodUnit: FhirPeriodUnit;
79
+ } | undefined;
2
80
  export interface TimingSummaryOptions {
81
+ /** Scoped vocabulary in the original parse/format request. Do not build
82
+ * any second registry or retain it on the canonical clinical course. */
83
+ instructionActionMap?: ParseOptions["instructionActionMap"];
3
84
  realizationMode?: "normalized" | "roundtrip";
4
85
  groupMealTimingsByRelation?: boolean;
5
86
  includeTimesPerDaySummary?: boolean;