ezmedicationinput 0.1.49 → 0.1.52
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/fhir-translations.d.ts +3 -0
- package/dist/fhir.d.ts +5 -0
- package/dist/hpsg/lexical-classes.d.ts +1 -0
- package/dist/hpsg/signature.d.ts +1 -0
- package/dist/index.cjs +764 -454
- package/dist/index.d.ts +1 -0
- package/dist/index.js +760 -454
- package/dist/localized-timing.d.ts +15 -0
- package/dist/parser-state.d.ts +2 -0
- package/dist/types.d.ts +5 -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
|
/**
|
|
@@ -758,8 +759,10 @@ export interface CanonicalRouteExpr {
|
|
|
758
759
|
}
|
|
759
760
|
export interface CanonicalSiteExpr {
|
|
760
761
|
text?: string;
|
|
762
|
+
i18n?: Record<string, string>;
|
|
761
763
|
coding?: BodySiteCode;
|
|
762
764
|
spatialRelation?: BodySiteSpatialRelation;
|
|
765
|
+
administrationTargetCount?: number;
|
|
763
766
|
source?: "abbreviation" | "text" | "selection" | "resolver";
|
|
764
767
|
inferred?: boolean;
|
|
765
768
|
evidence?: CanonicalEvidence[];
|
|
@@ -788,6 +791,7 @@ export interface CanonicalScheduleExpr {
|
|
|
788
791
|
}
|
|
789
792
|
export interface CanonicalPrnReasonExpr {
|
|
790
793
|
text?: string;
|
|
794
|
+
i18n?: Record<string, string>;
|
|
791
795
|
coding?: FhirCoding;
|
|
792
796
|
spatialRelation?: BodySiteSpatialRelation;
|
|
793
797
|
}
|
|
@@ -875,6 +879,7 @@ export interface BodySiteDetail {
|
|
|
875
879
|
text?: string;
|
|
876
880
|
coding?: BodySiteCode;
|
|
877
881
|
spatialRelation?: BodySiteSpatialRelation;
|
|
882
|
+
administrationTargetCount?: number;
|
|
878
883
|
}
|
|
879
884
|
export interface ConceptSiteDetail {
|
|
880
885
|
text?: string;
|