ezmedicationinput 0.1.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.
- package/README.md +153 -0
- package/dist/context.d.ts +3 -0
- package/dist/context.js +29 -0
- package/dist/fhir.d.ts +4 -0
- package/dist/fhir.js +158 -0
- package/dist/format.d.ts +2 -0
- package/dist/format.js +322 -0
- package/dist/index.d.ts +7 -0
- package/dist/index.js +57 -0
- package/dist/maps.d.ts +51 -0
- package/dist/maps.js +729 -0
- package/dist/parser.d.ts +33 -0
- package/dist/parser.js +870 -0
- package/dist/safety.d.ts +8 -0
- package/dist/safety.js +12 -0
- package/dist/schedule.d.ts +6 -0
- package/dist/schedule.js +653 -0
- package/dist/types.d.ts +363 -0
- package/dist/types.js +224 -0
- package/package.json +32 -0
package/dist/parser.d.ts
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { EventTiming, FhirDayOfWeek, FhirPeriodUnit, ParseOptions, RouteCode } from "./types";
|
|
2
|
+
export interface Token {
|
|
3
|
+
original: string;
|
|
4
|
+
lower: string;
|
|
5
|
+
index: number;
|
|
6
|
+
}
|
|
7
|
+
export interface ParsedSigInternal {
|
|
8
|
+
input: string;
|
|
9
|
+
tokens: Token[];
|
|
10
|
+
consumed: Set<number>;
|
|
11
|
+
dose?: number;
|
|
12
|
+
doseRange?: {
|
|
13
|
+
low: number;
|
|
14
|
+
high: number;
|
|
15
|
+
};
|
|
16
|
+
unit?: string;
|
|
17
|
+
routeCode?: RouteCode;
|
|
18
|
+
routeText?: string;
|
|
19
|
+
frequency?: number;
|
|
20
|
+
frequencyMax?: number;
|
|
21
|
+
period?: number;
|
|
22
|
+
periodMax?: number;
|
|
23
|
+
periodUnit?: FhirPeriodUnit;
|
|
24
|
+
dayOfWeek: FhirDayOfWeek[];
|
|
25
|
+
when: EventTiming[];
|
|
26
|
+
timingCode?: string;
|
|
27
|
+
asNeeded?: boolean;
|
|
28
|
+
asNeededReason?: string;
|
|
29
|
+
warnings: string[];
|
|
30
|
+
siteText?: string;
|
|
31
|
+
}
|
|
32
|
+
export declare function tokenize(input: string): Token[];
|
|
33
|
+
export declare function parseInternal(input: string, options?: ParseOptions): ParsedSigInternal;
|