ezmedicationinput 0.1.50 → 0.1.53
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.
- package/dist/body-site-target.d.ts +18 -0
- package/dist/hpsg/lexical-classes.d.ts +2 -0
- package/dist/hpsg/signature.d.ts +1 -0
- package/dist/index.cjs +971 -468
- package/dist/index.d.ts +1 -0
- package/dist/index.js +967 -468
- package/dist/localized-timing.d.ts +15 -0
- package/dist/parser-state.d.ts +2 -0
- package/dist/types.d.ts +3 -0
- package/package.json +1 -1
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { CanonicalScheduleExpr, EventTiming } from "./types";
|
|
2
|
+
import { type MealTimingGroup, type TimingSummaryOptions } from "./timing-summary";
|
|
3
|
+
export type BedtimeJoinStyle = "adjacent" | "conjunction" | "separate";
|
|
4
|
+
export interface LocalizedTimingGrammar {
|
|
5
|
+
readonly whenText: Partial<Record<EventTiming, string>>;
|
|
6
|
+
joinList(parts: string[]): string;
|
|
7
|
+
summarizeMealTimingGroup(group: MealTimingGroup): string;
|
|
8
|
+
bedtimeJoinStyle?(dailyCount: number | undefined): BedtimeJoinStyle;
|
|
9
|
+
}
|
|
10
|
+
export declare function filterLocalizedWhenEvents(schedule: CanonicalScheduleExpr | undefined): EventTiming[];
|
|
11
|
+
export declare function collectLocalizedWhenPhrases(schedule: CanonicalScheduleExpr | undefined, grammar: LocalizedTimingGrammar, options?: TimingSummaryOptions): string[];
|
|
12
|
+
export declare function combineLocalizedFrequencyAndEvents(schedule: CanonicalScheduleExpr | undefined, frequency: string | undefined, events: string[], grammar: LocalizedTimingGrammar, options?: TimingSummaryOptions): {
|
|
13
|
+
frequency?: string;
|
|
14
|
+
event?: string;
|
|
15
|
+
};
|
package/dist/parser-state.d.ts
CHANGED
|
@@ -87,6 +87,8 @@ export declare class ParserState {
|
|
|
87
87
|
set siteCoding(value: LocalizedCoding | undefined);
|
|
88
88
|
get siteSpatialRelation(): BodySiteSpatialRelation | undefined;
|
|
89
89
|
set siteSpatialRelation(value: BodySiteSpatialRelation | undefined);
|
|
90
|
+
get siteAdministrationTargetCount(): number | undefined;
|
|
91
|
+
set siteAdministrationTargetCount(value: number | undefined);
|
|
90
92
|
get additionalInstructions(): CanonicalAdditionalInstructionExpr[];
|
|
91
93
|
set additionalInstructions(value: CanonicalAdditionalInstructionExpr[]);
|
|
92
94
|
get patientInstruction(): string | undefined;
|
package/dist/types.d.ts
CHANGED
|
@@ -416,6 +416,7 @@ export interface BodySiteDefinition {
|
|
|
416
416
|
text?: string;
|
|
417
417
|
spatialRelation?: BodySiteSpatialRelation;
|
|
418
418
|
routeHint?: RouteCode;
|
|
419
|
+
administrationTargetCount?: number;
|
|
419
420
|
/** Optional translations for different locales (e.g., { "th": "ตา" }) */
|
|
420
421
|
i18n?: Record<string, string>;
|
|
421
422
|
/**
|
|
@@ -761,6 +762,7 @@ export interface CanonicalSiteExpr {
|
|
|
761
762
|
i18n?: Record<string, string>;
|
|
762
763
|
coding?: BodySiteCode;
|
|
763
764
|
spatialRelation?: BodySiteSpatialRelation;
|
|
765
|
+
administrationTargetCount?: number;
|
|
764
766
|
source?: "abbreviation" | "text" | "selection" | "resolver";
|
|
765
767
|
inferred?: boolean;
|
|
766
768
|
evidence?: CanonicalEvidence[];
|
|
@@ -877,6 +879,7 @@ export interface BodySiteDetail {
|
|
|
877
879
|
text?: string;
|
|
878
880
|
coding?: BodySiteCode;
|
|
879
881
|
spatialRelation?: BodySiteSpatialRelation;
|
|
882
|
+
administrationTargetCount?: number;
|
|
880
883
|
}
|
|
881
884
|
export interface ConceptSiteDetail {
|
|
882
885
|
text?: string;
|