ezmedicationinput 0.1.44 → 0.1.46

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 (75) hide show
  1. package/README.md +265 -2
  2. package/dist/body-site-grammar.d.ts +39 -0
  3. package/dist/body-site-lookup.d.ts +84 -0
  4. package/dist/body-site-resolution.d.ts +9 -0
  5. package/dist/body-site-spatial.d.ts +6 -0
  6. package/dist/clause-tail-grammar.d.ts +18 -0
  7. package/dist/fhir-translations.d.ts +4 -1
  8. package/dist/fhir.d.ts +9 -1
  9. package/dist/hpsg/chart.d.ts +14 -0
  10. package/dist/hpsg/clause-parser.d.ts +3 -0
  11. package/dist/hpsg/defaults.d.ts +9 -0
  12. package/dist/hpsg/lexical-classes.d.ts +89 -0
  13. package/dist/hpsg/method-lexicon.d.ts +13 -0
  14. package/dist/hpsg/projection.d.ts +12 -0
  15. package/dist/hpsg/rule-context.d.ts +32 -0
  16. package/dist/hpsg/rules/core-rules.d.ts +8 -0
  17. package/dist/hpsg/rules/instruction-rules.d.ts +4 -0
  18. package/dist/hpsg/rules/prn-rules.d.ts +3 -0
  19. package/dist/hpsg/rules/product-route.d.ts +2 -0
  20. package/dist/hpsg/rules/site-rules.d.ts +4 -0
  21. package/dist/hpsg/rules/timing-rules.d.ts +12 -0
  22. package/dist/hpsg/segmenter.d.ts +6 -0
  23. package/dist/hpsg/signature.d.ts +116 -0
  24. package/dist/hpsg/timing-lexicon.d.ts +31 -0
  25. package/dist/hpsg/unification.d.ts +8 -0
  26. package/dist/index.cjs +21052 -0
  27. package/dist/index.d.ts +5 -0
  28. package/dist/index.js +20865 -680
  29. package/dist/maps.d.ts +4 -2
  30. package/dist/parser-state.d.ts +4 -1
  31. package/dist/parser.d.ts +3 -13
  32. package/dist/prn-reason-coding.d.ts +8 -0
  33. package/dist/site-coding.d.ts +5 -0
  34. package/dist/snomed-postcoordination.d.ts +25 -0
  35. package/dist/snomed.d.ts +13 -0
  36. package/dist/types.d.ts +61 -16
  37. package/dist/unit-lexicon.d.ts +4 -0
  38. package/package.json +17 -6
  39. package/dist/advice-rules.json +0 -772
  40. package/dist/advice-terminology.json +0 -104
  41. package/dist/advice.js +0 -1375
  42. package/dist/context.js +0 -50
  43. package/dist/event-trigger.d.ts +0 -14
  44. package/dist/event-trigger.js +0 -501
  45. package/dist/fhir-translations.js +0 -117
  46. package/dist/fhir.js +0 -693
  47. package/dist/format.js +0 -1034
  48. package/dist/i18n.js +0 -1341
  49. package/dist/internal-types.d.ts +0 -60
  50. package/dist/internal-types.js +0 -2
  51. package/dist/ir.js +0 -178
  52. package/dist/lexer/lex.js +0 -401
  53. package/dist/lexer/meaning.js +0 -619
  54. package/dist/lexer/surface.js +0 -62
  55. package/dist/lexer/token-types.js +0 -19
  56. package/dist/maps.js +0 -2226
  57. package/dist/package.json +0 -3
  58. package/dist/parser-state.js +0 -441
  59. package/dist/parser.js +0 -5631
  60. package/dist/prn.js +0 -59
  61. package/dist/safety.js +0 -15
  62. package/dist/schedule.js +0 -1636
  63. package/dist/segment.d.ts +0 -6
  64. package/dist/segment.js +0 -203
  65. package/dist/site-phrases.js +0 -344
  66. package/dist/suggest.js +0 -907
  67. package/dist/timing-summary.js +0 -138
  68. package/dist/types.js +0 -276
  69. package/dist/utils/array.js +0 -11
  70. package/dist/utils/enum.d.ts +0 -2
  71. package/dist/utils/enum.js +0 -7
  72. package/dist/utils/object.js +0 -34
  73. package/dist/utils/strength.js +0 -149
  74. package/dist/utils/text.js +0 -48
  75. package/dist/utils/units.js +0 -82
@@ -1,104 +0,0 @@
1
- {
2
- "lexemes": [
3
- { "surface": "with", "lemma": "with", "partOfSpeech": "relation", "semanticClass": "relation" },
4
- { "surface": "without", "lemma": "without", "partOfSpeech": "relation", "semanticClass": "relation" },
5
- { "surface": "before", "lemma": "before", "partOfSpeech": "relation", "semanticClass": "relation" },
6
- { "surface": "after", "lemma": "after", "partOfSpeech": "relation", "semanticClass": "relation" },
7
- { "surface": "during", "lemma": "during", "partOfSpeech": "relation", "semanticClass": "relation" },
8
- { "surface": "then", "lemma": "then", "partOfSpeech": "relation", "semanticClass": "sequence" },
9
- { "surface": "until", "lemma": "until", "partOfSpeech": "relation", "semanticClass": "relation" },
10
- { "surface": "for", "lemma": "for", "partOfSpeech": "relation", "semanticClass": "relation" },
11
- { "surface": "in", "lemma": "in", "partOfSpeech": "relation", "semanticClass": "relation" },
12
- { "surface": "on", "lemma": "on", "partOfSpeech": "relation", "semanticClass": "relation" },
13
- { "surface": "avoid", "lemma": "avoid", "partOfSpeech": "verb", "semanticClass": "avoidance" },
14
- { "surface": "drink", "lemma": "drink", "partOfSpeech": "verb", "semanticClass": "ingest" },
15
- { "surface": "swallow", "lemma": "swallow", "partOfSpeech": "verb", "semanticClass": "ingest" },
16
- { "surface": "crush", "lemma": "crush", "partOfSpeech": "verb", "semanticClass": "manipulate" },
17
- { "surface": "chew", "lemma": "chew", "partOfSpeech": "verb", "semanticClass": "manipulate" },
18
- { "surface": "mix", "lemma": "mix", "partOfSpeech": "verb", "semanticClass": "prepare" },
19
- { "surface": "dissolve", "lemma": "dissolve", "partOfSpeech": "verb", "semanticClass": "prepare" },
20
- { "surface": "wash", "lemma": "wash", "partOfSpeech": "verb", "semanticClass": "cleanse" },
21
- { "surface": "clean", "lemma": "clean", "partOfSpeech": "verb", "semanticClass": "cleanse" },
22
- { "surface": "dry", "lemma": "dry", "partOfSpeech": "verb", "semanticClass": "cleanse" },
23
- { "surface": "rinse", "lemma": "rinse", "partOfSpeech": "verb", "semanticClass": "cleanse" },
24
- { "surface": "cover", "lemma": "cover", "partOfSpeech": "verb", "semanticClass": "cover" },
25
- { "surface": "leave", "lemma": "leave", "partOfSpeech": "verb", "semanticClass": "retain" },
26
- { "surface": "drive", "lemma": "drive", "partOfSpeech": "verb", "semanticClass": "activity" },
27
- { "surface": "driving", "lemma": "drive", "partOfSpeech": "verb", "semanticClass": "activity" },
28
- { "surface": "eat", "lemma": "eat", "partOfSpeech": "verb", "semanticClass": "ingest" },
29
- { "surface": "cause", "lemma": "cause", "partOfSpeech": "verb", "semanticClass": "effect" },
30
- { "surface": "causes", "lemma": "cause", "partOfSpeech": "verb", "semanticClass": "effect" },
31
- { "surface": "use", "lemma": "use", "partOfSpeech": "verb", "semanticClass": "administration" },
32
- { "surface": "take", "lemma": "take", "partOfSpeech": "verb", "semanticClass": "administration" },
33
- { "surface": "apply", "lemma": "apply", "partOfSpeech": "verb", "semanticClass": "administration" },
34
- { "surface": "do", "lemma": "do", "partOfSpeech": "auxiliary", "semanticClass": "auxiliary" },
35
- { "surface": "not", "lemma": "not", "partOfSpeech": "negator", "semanticClass": "negation" },
36
- { "surface": "don't", "lemma": "not", "partOfSpeech": "negator", "semanticClass": "negation" },
37
- { "surface": "dont", "lemma": "not", "partOfSpeech": "negator", "semanticClass": "negation" },
38
- { "surface": "no", "lemma": "no", "partOfSpeech": "negator", "semanticClass": "negation" },
39
- { "surface": "may", "lemma": "may", "partOfSpeech": "modifier", "semanticClass": "modal" },
40
- { "surface": "can", "lemma": "can", "partOfSpeech": "modifier", "semanticClass": "modal" },
41
- { "surface": "might", "lemma": "might", "partOfSpeech": "modifier", "semanticClass": "modal" },
42
- { "surface": "could", "lemma": "could", "partOfSpeech": "modifier", "semanticClass": "modal" },
43
- { "surface": "should", "lemma": "should", "partOfSpeech": "modifier", "semanticClass": "modal" },
44
- { "surface": "must", "lemma": "must", "partOfSpeech": "modifier", "semanticClass": "modal" },
45
- { "surface": "whole", "lemma": "whole", "partOfSpeech": "modifier", "semanticClass": "amount_style" },
46
- { "surface": "thin layer", "lemma": "thin layer", "partOfSpeech": "noun", "semanticClass": "amount_style" },
47
- { "surface": "thin film", "lemma": "thin film", "partOfSpeech": "noun", "semanticClass": "amount_style" },
48
- { "surface": "sparingly", "lemma": "sparingly", "partOfSpeech": "modifier", "semanticClass": "amount_style" },
49
- { "surface": "liberally", "lemma": "liberally", "partOfSpeech": "modifier", "semanticClass": "amount_style" },
50
- { "surface": "slowly", "lemma": "slowly", "partOfSpeech": "modifier", "semanticClass": "manner_style" },
51
- { "surface": "pea sized amount", "lemma": "pea sized amount", "partOfSpeech": "noun", "semanticClass": "amount_style" },
52
- { "surface": "pea-sized amount", "lemma": "pea sized amount", "partOfSpeech": "noun", "semanticClass": "amount_style" },
53
- { "surface": "fingertip unit", "lemma": "fingertip unit", "partOfSpeech": "noun", "semanticClass": "amount_style" },
54
- { "surface": "fingertip units", "lemma": "fingertip unit", "partOfSpeech": "noun", "semanticClass": "amount_style" },
55
- { "surface": "inject", "lemma": "inject", "partOfSpeech": "verb", "semanticClass": "administration" },
56
- { "surface": "infuse", "lemma": "infuse", "partOfSpeech": "verb", "semanticClass": "administration" },
57
- { "surface": "instill", "lemma": "instill", "partOfSpeech": "verb", "semanticClass": "administration" },
58
- { "surface": "insert", "lemma": "insert", "partOfSpeech": "verb", "semanticClass": "administration" },
59
- { "surface": "spray", "lemma": "spray", "partOfSpeech": "verb", "semanticClass": "administration" },
60
- { "surface": "administer", "lemma": "administer", "partOfSpeech": "verb", "semanticClass": "administration" },
61
- { "surface": "give", "lemma": "give", "partOfSpeech": "verb", "semanticClass": "administration" }
62
- ],
63
- "concepts": [
64
- { "surface": "food", "lemma": "food", "semanticClass": "meal_state", "conceptId": "food" },
65
- { "surface": "meal", "lemma": "meal", "semanticClass": "meal_state", "conceptId": "meal" },
66
- { "surface": "meals", "lemma": "meal", "semanticClass": "meal_state", "conceptId": "meal" },
67
- {
68
- "surface": "empty stomach",
69
- "lemma": "empty stomach",
70
- "semanticClass": "meal_state",
71
- "conceptId": "empty_stomach",
72
- "implicitRelation": "on"
73
- },
74
- { "surface": "water", "lemma": "water", "semanticClass": "substance", "conceptId": "water" },
75
- { "surface": "plenty of water", "lemma": "water", "semanticClass": "substance", "conceptId": "water" },
76
- { "surface": "lots of water", "lemma": "water", "semanticClass": "substance", "conceptId": "water" },
77
- { "surface": "alcohol", "lemma": "alcohol", "semanticClass": "substance", "conceptId": "alcohol" },
78
- { "surface": "alc", "lemma": "alcohol", "semanticClass": "substance", "conceptId": "alcohol" },
79
- { "surface": "alcoholic drink", "lemma": "alcohol", "semanticClass": "substance", "conceptId": "alcohol" },
80
- { "surface": "alcoholic drinks", "lemma": "alcohol", "semanticClass": "substance", "conceptId": "alcohol" },
81
- { "surface": "sun", "lemma": "sun", "semanticClass": "object", "conceptId": "sunlight" },
82
- { "surface": "sunlight", "lemma": "sunlight", "semanticClass": "object", "conceptId": "sunlight" },
83
- { "surface": "sun lamps", "lemma": "sun lamps", "semanticClass": "object", "conceptId": "sun_lamps" },
84
- { "surface": "drowsiness", "lemma": "drowsiness", "semanticClass": "effect", "conceptId": "drowsiness" },
85
- { "surface": "drowsy", "lemma": "drowsiness", "semanticClass": "effect", "conceptId": "drowsiness" },
86
- { "surface": "next day", "lemma": "next day", "semanticClass": "time", "conceptId": "next_day" },
87
- { "surface": "overnight", "lemma": "overnight", "semanticClass": "duration", "conceptId": "overnight" },
88
- { "surface": "morning", "lemma": "morning", "semanticClass": "time", "conceptId": "morning" },
89
- { "surface": "evening", "lemma": "evening", "semanticClass": "time", "conceptId": "evening" },
90
- { "surface": "night", "lemma": "night", "semanticClass": "time", "conceptId": "night" },
91
- { "surface": "bedtime", "lemma": "bedtime", "semanticClass": "time", "conceptId": "bedtime" },
92
- { "surface": "showering", "lemma": "showering", "semanticClass": "activity", "conceptId": "showering" },
93
- { "surface": "shower", "lemma": "showering", "semanticClass": "activity", "conceptId": "showering" },
94
- { "surface": "bathing", "lemma": "bathing", "semanticClass": "activity", "conceptId": "bathing" },
95
- { "surface": "bath", "lemma": "bathing", "semanticClass": "activity", "conceptId": "bathing" },
96
- { "surface": "washing", "lemma": "washing", "semanticClass": "activity", "conceptId": "washing" },
97
- { "surface": "washing hair", "lemma": "washing hair", "semanticClass": "activity", "conceptId": "washing_hair" },
98
- { "surface": "shampooing", "lemma": "shampooing", "semanticClass": "activity", "conceptId": "shampooing" },
99
- { "surface": "dressing", "lemma": "dressing", "semanticClass": "material", "conceptId": "dressing" },
100
- { "surface": "affected area", "lemma": "affected area", "semanticClass": "site", "conceptId": "affected_area" },
101
- { "surface": "affected areas", "lemma": "affected area", "semanticClass": "site", "conceptId": "affected_area" },
102
- { "surface": "slowly", "lemma": "slowly", "semanticClass": "manner_style", "conceptId": "slowly" }
103
- ]
104
- }