hplx-feature-library 1.0.25 → 1.0.27

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.
@@ -1,4 +1,4 @@
1
- const s = [
1
+ const t = [
2
2
  "Medicine Name",
3
3
  "Generic Name",
4
4
  "Type",
@@ -6,50 +6,123 @@ const s = [
6
6
  "Additional Information",
7
7
  "Dosage",
8
8
  "Options"
9
- ], a = [
10
- "TAB.",
11
- "SYP.",
12
- "CRM.",
13
- "POW.",
14
- "INJ.",
15
- "CAP.",
16
- "DRP.",
17
- "SUS.",
18
- "LIQ.",
19
- "SAC.",
20
- "EXP.",
21
- "OIN.",
22
- "GEN.",
23
- "LOT.",
24
- "GEL.",
25
- "GRA.",
26
- "SOAP.",
27
- "SOL.",
28
- "VAC.",
29
- "PAS.",
30
- "INH.",
31
- "OTH.",
32
- "SPR."
33
- ], g = ["1(OD)", "2(BD)", "3(TDS)", "4(QID)", "6(Q4H)"], X = {
9
+ ], l = [
10
+ {
11
+ type: "",
12
+ val: ""
13
+ },
14
+ {
15
+ type: "TAB.",
16
+ val: 2
17
+ },
18
+ {
19
+ type: "SYP.",
20
+ val: 3
21
+ },
22
+ {
23
+ type: "CRM.",
24
+ val: 4
25
+ },
26
+ {
27
+ type: "POW.",
28
+ val: 5
29
+ },
30
+ {
31
+ type: "INJ.",
32
+ val: 6
33
+ },
34
+ {
35
+ type: "CAP.",
36
+ val: 7
37
+ },
38
+ {
39
+ type: "DRP.",
40
+ val: 8
41
+ },
42
+ {
43
+ type: "SUS.",
44
+ val: 9
45
+ },
46
+ {
47
+ type: "LIQ.",
48
+ val: 10
49
+ },
50
+ {
51
+ type: "SAC.",
52
+ val: 11
53
+ },
54
+ {
55
+ type: "EXP.",
56
+ val: 12
57
+ },
58
+ {
59
+ type: "OIN.",
60
+ val: 13
61
+ },
62
+ {
63
+ type: "GEN.",
64
+ val: 14
65
+ },
66
+ {
67
+ type: "LOT.",
68
+ val: 15
69
+ },
70
+ {
71
+ type: "GEL",
72
+ val: 16
73
+ },
74
+ {
75
+ type: "GRA.",
76
+ val: 17
77
+ },
78
+ {
79
+ type: "SOAP",
80
+ val: 18
81
+ },
82
+ {
83
+ type: "SOL.",
84
+ val: 19
85
+ },
86
+ {
87
+ type: "VAC.",
88
+ val: 20
89
+ },
90
+ {
91
+ type: "PAP.",
92
+ val: 21
93
+ },
94
+ {
95
+ type: "INH.",
96
+ val: 22
97
+ },
98
+ {
99
+ type: "OTH",
100
+ val: 23
101
+ },
102
+ {
103
+ type: "SPR.",
104
+ val: 24
105
+ }
106
+ ], p = ["1(OD)", "2(BD)", "3(TDS)", "4(QID)", "6(Q4H)"], y = {
34
107
  "1(OD)": ["X-0-0", "0-X-0", "0-0-X"],
35
108
  "2(BD)": ["X-X-0", "X-0-X", "0-X-X"],
36
109
  "3(TDS)": ["X-X-X"],
37
110
  "4(QID)": ["X-X-X-X"],
38
111
  "6(Q4H)": ["X-X-X-X-X-X"]
39
112
  };
40
- var o = /* @__PURE__ */ ((e) => (e.MgKgDose = "mg/kg/dose", e.MlKg = "mL/kg", e))(o || {});
41
- const _ = [
113
+ var a = /* @__PURE__ */ ((e) => (e.MgKgDose = "mg/kg/dose", e.MlKg = "mL/kg", e))(a || {});
114
+ const o = [
42
115
  "mg/kg/dose",
43
116
  "mL/kg"
44
117
  /* MlKg */
45
- ], n = {
118
+ ], s = {
46
119
  drug_strength: "",
47
120
  dose_mg_kg: "",
48
121
  frequency: "",
49
122
  max_mg_dose: "",
50
123
  max_mg_day: "",
51
124
  pedia_dosage: ""
52
- }, d = {
125
+ }, v = {
53
126
  multiplier: "",
54
127
  dose_ml_kg: "",
55
128
  frequency: "",
@@ -58,12 +131,12 @@ const _ = [
58
131
  pedia_dosage: ""
59
132
  };
60
133
  export {
61
- n as C_DefaultMgKgFields,
62
- d as C_DefaultMlKgFields,
63
- X as C_FrequencyDosageMap,
64
- _ as C_MedicineCalculatorList,
65
- g as C_MedicineFrequencyList,
66
- a as C_MedicineTypeList,
67
- s as C_Table_Column_Name,
68
- o as E_CalculationType
134
+ s as C_DefaultMgKgFields,
135
+ v as C_DefaultMlKgFields,
136
+ y as C_FrequencyDosageMap,
137
+ o as C_MedicineCalculatorList,
138
+ p as C_MedicineFrequencyList,
139
+ l as C_MedicineTypeList,
140
+ t as C_Table_Column_Name,
141
+ a as E_CalculationType
69
142
  };
@@ -1,6 +1,12 @@
1
1
  import { I_CalcFields_MgKg, I_CalcFields_MlKg } from '../types/PediatricsCalculatorTypes';
2
2
  export declare const C_Table_Column_Name: string[];
3
- export declare const C_MedicineTypeList: string[];
3
+ export declare const C_MedicineTypeList: ({
4
+ type: string;
5
+ val: string;
6
+ } | {
7
+ type: string;
8
+ val: number;
9
+ })[];
4
10
  export declare const C_MedicineFrequencyList: string[];
5
11
  export declare const C_FrequencyDosageMap: Record<string, string[]>;
6
12
  export declare enum E_CalculationType {
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { P as o } from "./PediatricsCalculatorTable-BWktuG48.js";
1
+ import { P as o } from "./PediatricsCalculatorTable-EXQG5lZv.js";
2
2
  export {
3
3
  o as PediatricsCalculator
4
4
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "hplx-feature-library",
3
3
  "private": false,
4
- "version": "1.0.25",
4
+ "version": "1.0.27",
5
5
  "type": "module",
6
6
  "scripts": {
7
7
  "dev": "vite",
@@ -47,6 +47,7 @@
47
47
  "dependencies": {
48
48
  "hplx-font-icons": "^2.20.0",
49
49
  "hplx-react-elements-dev": "1.3.54",
50
+ "lodash.debounce": "^4.0.8",
50
51
  "nanoid": "^5.1.5",
51
52
  "react": "^18.3.1",
52
53
  "react-dom": "^18.3.1",