ezmedicationinput 0.1.65 → 0.1.67

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/index.cjs CHANGED
@@ -37775,10 +37775,11 @@ function parseSigSegments(input, options) {
37775
37775
  continue;
37776
37776
  }
37777
37777
  const nextToken = tokens[index + 1];
37778
- const commaInsideDateList = token.original === "," && dateSpans.some(
37778
+ const tokenInsideDateList = dateSpans.some(
37779
37779
  (span) => token.sourceStart >= span.start && token.sourceEnd <= span.end
37780
37780
  );
37781
- if (commaInsideDateList) {
37781
+ const dateListSeparator = tokenInsideDateList && (token.original === "," || normalizeSegmentLexeme(token) === "and" || normalizeSegmentLexeme(token) === "\u0E41\u0E25\u0E30");
37782
+ if (dateListSeparator) {
37782
37783
  scannedOffset = token.sourceEnd;
37783
37784
  continue;
37784
37785
  }
package/dist/index.js CHANGED
@@ -37619,10 +37619,11 @@ function parseSigSegments(input, options) {
37619
37619
  continue;
37620
37620
  }
37621
37621
  const nextToken = tokens[index + 1];
37622
- const commaInsideDateList = token.original === "," && dateSpans.some(
37622
+ const tokenInsideDateList = dateSpans.some(
37623
37623
  (span) => token.sourceStart >= span.start && token.sourceEnd <= span.end
37624
37624
  );
37625
- if (commaInsideDateList) {
37625
+ const dateListSeparator = tokenInsideDateList && (token.original === "," || normalizeSegmentLexeme(token) === "and" || normalizeSegmentLexeme(token) === "\u0E41\u0E25\u0E30");
37626
+ if (dateListSeparator) {
37626
37627
  scannedOffset = token.sourceEnd;
37627
37628
  continue;
37628
37629
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ezmedicationinput",
3
- "version": "0.1.65",
3
+ "version": "0.1.67",
4
4
  "description": "Parse concise medication sigs into FHIR R5 Dosage JSON",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
@@ -21,7 +21,14 @@
21
21
  "bench:torture": "npm run build && node bench/real-world-torture.mjs",
22
22
  "bench:adversarial": "npm run build && node bench/adversarial.mjs",
23
23
  "bench:roundtrip": "npm run build && node bench/roundtrip.mjs",
24
- "bench:suggest": "npm run build && node --expose-gc bench/suggest.mjs"
24
+ "bench:suggest": "npm run build && node --expose-gc bench/suggest.mjs",
25
+ "experiment:boundaries": "node experiments/boundary-planner/run.mjs --audit --bench --strict",
26
+ "test:boundaries": "vitest run --config experiments/boundary-planner/vitest.experiment.config.ts",
27
+ "test:shadow-boundaries": "vitest run --config experiments/boundary-planner/vitest.shadow.config.ts",
28
+ "typecheck:boundaries": "tsc -p experiments/boundary-planner/tsconfig.json",
29
+ "explain:boundaries": "node experiments/boundary-planner/explain.mjs",
30
+ "test:boundary-clinical": "vitest run --config experiments/boundary-planner/vitest.acceptance.config.ts",
31
+ "typecheck:boundary-integration": "node experiments/boundary-planner/typecheck-integration.mjs"
25
32
  },
26
33
  "files": [
27
34
  "dist"