formanitor 0.0.36 → 0.0.37
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 +29 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.mjs +29 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
package/dist/index.d.ts
CHANGED
package/dist/index.mjs
CHANGED
|
@@ -3123,6 +3123,19 @@ var BEFORE_AFTER_NORMALIZATION_MAP = {
|
|
|
3123
3123
|
AF: "AFTER FOOD",
|
|
3124
3124
|
BF: "BEFORE FOOD"
|
|
3125
3125
|
};
|
|
3126
|
+
var ROUTE_OPTIONS = [
|
|
3127
|
+
{ label: "Select route", value: "" },
|
|
3128
|
+
{ label: "Per Os", value: "Per Os" },
|
|
3129
|
+
{ label: "Intravenous", value: "Intravenous" },
|
|
3130
|
+
{ label: "Intramuscular", value: "Intramuscular" },
|
|
3131
|
+
{ label: "Subcutaneous", value: "Subcutaneous" },
|
|
3132
|
+
{ label: "Sublingual", value: "Sublingual" },
|
|
3133
|
+
{ label: "Intranasal", value: "Intranasal" },
|
|
3134
|
+
{ label: "Topical", value: "Topical" },
|
|
3135
|
+
{ label: "Per Rectum", value: "Per Rectum" },
|
|
3136
|
+
{ label: "Inhalation", value: "Inhalation" },
|
|
3137
|
+
{ label: "ID Intradermal", value: "ID Intradermal" }
|
|
3138
|
+
];
|
|
3126
3139
|
function mapToMedication(result) {
|
|
3127
3140
|
return {
|
|
3128
3141
|
id: result.id,
|
|
@@ -3133,6 +3146,7 @@ function mapToMedication(result) {
|
|
|
3133
3146
|
duration_value: "3",
|
|
3134
3147
|
duration_unit: "days",
|
|
3135
3148
|
before_after: "AFTER FOOD",
|
|
3149
|
+
route: "",
|
|
3136
3150
|
morning: "0",
|
|
3137
3151
|
afternoon: "0",
|
|
3138
3152
|
night: "0",
|
|
@@ -3150,6 +3164,7 @@ function mapAIMedicationToMedication(ai) {
|
|
|
3150
3164
|
duration_value: "3",
|
|
3151
3165
|
duration_unit: "days",
|
|
3152
3166
|
before_after: "AFTER FOOD",
|
|
3167
|
+
route: "",
|
|
3153
3168
|
morning: "1",
|
|
3154
3169
|
afternoon: "0",
|
|
3155
3170
|
night: "1",
|
|
@@ -3166,6 +3181,7 @@ function createCustomMedication(name, customId) {
|
|
|
3166
3181
|
duration_value: "3",
|
|
3167
3182
|
duration_unit: "days",
|
|
3168
3183
|
before_after: "AFTER FOOD",
|
|
3184
|
+
route: "",
|
|
3169
3185
|
morning: "0",
|
|
3170
3186
|
afternoon: "0",
|
|
3171
3187
|
night: "0",
|
|
@@ -3199,6 +3215,7 @@ function mapFrequentItemToMedication(item) {
|
|
|
3199
3215
|
duration_value,
|
|
3200
3216
|
duration_unit,
|
|
3201
3217
|
before_after,
|
|
3218
|
+
route: item.route ?? "",
|
|
3202
3219
|
morning: item.morning ?? "0",
|
|
3203
3220
|
afternoon: item.afternoon ?? "0",
|
|
3204
3221
|
night: item.night ?? "0",
|
|
@@ -3266,7 +3283,9 @@ function MedicationCard({
|
|
|
3266
3283
|
/* @__PURE__ */ jsx("option", { value: "as_needed", children: "As needed" }),
|
|
3267
3284
|
/* @__PURE__ */ jsx("option", { value: "fort_night", children: "Fort night" }),
|
|
3268
3285
|
/* @__PURE__ */ jsx("option", { value: "at_bed_time", children: "At Bed time" }),
|
|
3269
|
-
/* @__PURE__ */ jsx("option", { value: "sos", children: "SOS only" })
|
|
3286
|
+
/* @__PURE__ */ jsx("option", { value: "sos", children: "SOS only" }),
|
|
3287
|
+
/* @__PURE__ */ jsx("option", { value: "biweekly", children: "Biweekly" }),
|
|
3288
|
+
/* @__PURE__ */ jsx("option", { value: "stat", children: "STAT" })
|
|
3270
3289
|
]
|
|
3271
3290
|
}
|
|
3272
3291
|
),
|
|
@@ -3327,6 +3346,15 @@ function MedicationCard({
|
|
|
3327
3346
|
onChange: (e) => set("before_after", e.target.value),
|
|
3328
3347
|
children: BEFORE_AFTER_OPTIONS.map((option) => /* @__PURE__ */ jsx("option", { value: option.value, children: option.label }, option.label))
|
|
3329
3348
|
}
|
|
3349
|
+
),
|
|
3350
|
+
/* @__PURE__ */ jsx(
|
|
3351
|
+
"select",
|
|
3352
|
+
{
|
|
3353
|
+
className: "text-xs border border-border rounded px-2 py-1 bg-white shrink-0",
|
|
3354
|
+
value: med.route ?? "",
|
|
3355
|
+
onChange: (e) => set("route", e.target.value),
|
|
3356
|
+
children: ROUTE_OPTIONS.map((option) => /* @__PURE__ */ jsx("option", { value: option.value, children: option.label }, option.value))
|
|
3357
|
+
}
|
|
3330
3358
|
)
|
|
3331
3359
|
] }),
|
|
3332
3360
|
/* @__PURE__ */ jsxs(
|