ezmedicationinput 0.1.47 → 0.1.48

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 (2) hide show
  1. package/dist/types.d.ts +13 -2
  2. package/package.json +7 -7
package/dist/types.d.ts CHANGED
@@ -18,9 +18,20 @@ export interface FhirExtension {
18
18
  extension?: FhirExtension[];
19
19
  valueCode?: string;
20
20
  valueString?: string;
21
+ valueBoolean?: boolean;
22
+ valueInteger?: number;
23
+ valueDecimal?: number;
24
+ valueQuantity?: FhirQuantity;
21
25
  valueCoding?: FhirCoding;
22
26
  valueCodeableConcept?: FhirCodeableConcept;
23
27
  }
28
+ export interface FhirElement {
29
+ id?: string;
30
+ extension?: FhirExtension[];
31
+ }
32
+ export interface FhirBackboneElement extends FhirElement {
33
+ modifierExtension?: FhirExtension[];
34
+ }
24
35
  export interface FhirPrimitiveElement {
25
36
  extension?: FhirExtension[];
26
37
  }
@@ -309,7 +320,7 @@ export interface FhirTiming {
309
320
  repeat?: FhirTimingRepeat;
310
321
  code?: FhirCodeableConcept;
311
322
  }
312
- export interface FhirDoseAndRate {
323
+ export interface FhirDoseAndRate extends FhirBackboneElement {
313
324
  type?: FhirCodeableConcept;
314
325
  doseRange?: FhirRange;
315
326
  doseQuantity?: FhirQuantity;
@@ -317,7 +328,7 @@ export interface FhirDoseAndRate {
317
328
  rateRange?: FhirRange;
318
329
  rateQuantity?: FhirQuantity;
319
330
  }
320
- export interface FhirDosage {
331
+ export interface FhirDosage extends FhirBackboneElement {
321
332
  text?: string;
322
333
  patientInstruction?: string;
323
334
  timing?: FhirTiming;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ezmedicationinput",
3
- "version": "0.1.47",
3
+ "version": "0.1.48",
4
4
  "description": "Parse concise medication sigs into FHIR R5 Dosage JSON",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
@@ -14,11 +14,6 @@
14
14
  "default": "./dist/index.js"
15
15
  }
16
16
  },
17
- "scripts": {
18
- "test:dist": "npm run build && vitest run test-dist",
19
- "build": "tsup && tsc -p tsconfig.types.json",
20
- "test": "vitest run --dir test"
21
- },
22
17
  "files": [
23
18
  "dist"
24
19
  ],
@@ -39,5 +34,10 @@
39
34
  "tsup": "^8.5.1",
40
35
  "typescript": "^5.4.0",
41
36
  "vitest": "^1.5.0"
37
+ },
38
+ "scripts": {
39
+ "test:dist": "npm run build && vitest run test-dist",
40
+ "build": "tsup && tsc -p tsconfig.types.json",
41
+ "test": "vitest run --dir test"
42
42
  }
43
- }
43
+ }