ezmedicationinput 0.1.43 → 0.1.44
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 +4 -1
- package/dist/advice-rules.json +772 -0
- package/dist/advice-terminology.json +104 -0
- package/dist/advice.d.ts +16 -0
- package/dist/advice.js +1375 -0
- package/dist/event-trigger.d.ts +14 -0
- package/dist/event-trigger.js +501 -0
- package/dist/fhir-translations.d.ts +5 -0
- package/dist/fhir-translations.js +117 -0
- package/dist/fhir.d.ts +6 -4
- package/dist/fhir.js +566 -134
- package/dist/format.d.ts +4 -2
- package/dist/format.js +515 -218
- package/dist/i18n.d.ts +2 -2
- package/dist/i18n.js +641 -199
- package/dist/index.d.ts +0 -1
- package/dist/index.js +219 -168
- package/dist/internal-types.d.ts +5 -5
- package/dist/ir.d.ts +4 -0
- package/dist/ir.js +178 -0
- package/dist/lexer/lex.d.ts +2 -0
- package/dist/lexer/lex.js +401 -0
- package/dist/lexer/meaning.d.ts +71 -0
- package/dist/lexer/meaning.js +619 -0
- package/dist/lexer/surface.d.ts +2 -0
- package/dist/lexer/surface.js +62 -0
- package/dist/lexer/token-types.d.ts +36 -0
- package/dist/lexer/token-types.js +19 -0
- package/dist/maps.d.ts +6 -12
- package/dist/maps.js +793 -247
- package/dist/parser-state.d.ts +101 -0
- package/dist/parser-state.js +441 -0
- package/dist/parser.d.ts +7 -7
- package/dist/parser.js +3598 -1974
- package/dist/prn.d.ts +4 -0
- package/dist/prn.js +59 -0
- package/dist/schedule.js +230 -32
- package/dist/site-phrases.d.ts +35 -0
- package/dist/site-phrases.js +344 -0
- package/dist/timing-summary.d.ts +13 -3
- package/dist/timing-summary.js +7 -7
- package/dist/types.d.ts +237 -32
- package/dist/types.js +49 -1
- package/dist/utils/text.d.ts +3 -0
- package/dist/utils/text.js +48 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -307,7 +307,7 @@ const result = await parseSigAsync("apply to {left temple} nightly", {
|
|
|
307
307
|
text: "Scalp"
|
|
308
308
|
},
|
|
309
309
|
{
|
|
310
|
-
coding: { system: "http://snomed.info/sct", code: "
|
|
310
|
+
coding: { system: "http://snomed.info/sct", code: "450721000", display: "Temple region structure" },
|
|
311
311
|
text: "Temple"
|
|
312
312
|
}
|
|
313
313
|
];
|
|
@@ -375,6 +375,9 @@ You can specify the number of times (total count) the medication is supposed to
|
|
|
375
375
|
combinations (e.g. `1x3` → breakfast/lunch/dinner). This also respects
|
|
376
376
|
`context.mealRelation` when provided and only applies to schedules with four
|
|
377
377
|
or fewer daily doses.
|
|
378
|
+
- `smartMealExpansionScope`: optional include/exclude overrides for route codes
|
|
379
|
+
and dosage forms. When omitted, smart meal expansion uses the built-in
|
|
380
|
+
default heuristic. Exclusions take precedence over includes.
|
|
378
381
|
- `enableMealDashSyntax`: when `true`, enables shorthand meal-dose patterns
|
|
379
382
|
such as `1-0-1`, `1-0-1 pc`, `10-12-0 ac`, and `1-0-0-1 ac`. The parser
|
|
380
383
|
expands them into multiple dosage clauses aligned to breakfast/lunch/dinner
|