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 CHANGED
@@ -3158,6 +3158,19 @@ var BEFORE_AFTER_NORMALIZATION_MAP = {
3158
3158
  AF: "AFTER FOOD",
3159
3159
  BF: "BEFORE FOOD"
3160
3160
  };
3161
+ var ROUTE_OPTIONS = [
3162
+ { label: "Select route", value: "" },
3163
+ { label: "Per Os", value: "Per Os" },
3164
+ { label: "Intravenous", value: "Intravenous" },
3165
+ { label: "Intramuscular", value: "Intramuscular" },
3166
+ { label: "Subcutaneous", value: "Subcutaneous" },
3167
+ { label: "Sublingual", value: "Sublingual" },
3168
+ { label: "Intranasal", value: "Intranasal" },
3169
+ { label: "Topical", value: "Topical" },
3170
+ { label: "Per Rectum", value: "Per Rectum" },
3171
+ { label: "Inhalation", value: "Inhalation" },
3172
+ { label: "ID Intradermal", value: "ID Intradermal" }
3173
+ ];
3161
3174
  function mapToMedication(result) {
3162
3175
  return {
3163
3176
  id: result.id,
@@ -3168,6 +3181,7 @@ function mapToMedication(result) {
3168
3181
  duration_value: "3",
3169
3182
  duration_unit: "days",
3170
3183
  before_after: "AFTER FOOD",
3184
+ route: "",
3171
3185
  morning: "0",
3172
3186
  afternoon: "0",
3173
3187
  night: "0",
@@ -3185,6 +3199,7 @@ function mapAIMedicationToMedication(ai) {
3185
3199
  duration_value: "3",
3186
3200
  duration_unit: "days",
3187
3201
  before_after: "AFTER FOOD",
3202
+ route: "",
3188
3203
  morning: "1",
3189
3204
  afternoon: "0",
3190
3205
  night: "1",
@@ -3201,6 +3216,7 @@ function createCustomMedication(name, customId) {
3201
3216
  duration_value: "3",
3202
3217
  duration_unit: "days",
3203
3218
  before_after: "AFTER FOOD",
3219
+ route: "",
3204
3220
  morning: "0",
3205
3221
  afternoon: "0",
3206
3222
  night: "0",
@@ -3234,6 +3250,7 @@ function mapFrequentItemToMedication(item) {
3234
3250
  duration_value,
3235
3251
  duration_unit,
3236
3252
  before_after,
3253
+ route: item.route ?? "",
3237
3254
  morning: item.morning ?? "0",
3238
3255
  afternoon: item.afternoon ?? "0",
3239
3256
  night: item.night ?? "0",
@@ -3301,7 +3318,9 @@ function MedicationCard({
3301
3318
  /* @__PURE__ */ jsxRuntime.jsx("option", { value: "as_needed", children: "As needed" }),
3302
3319
  /* @__PURE__ */ jsxRuntime.jsx("option", { value: "fort_night", children: "Fort night" }),
3303
3320
  /* @__PURE__ */ jsxRuntime.jsx("option", { value: "at_bed_time", children: "At Bed time" }),
3304
- /* @__PURE__ */ jsxRuntime.jsx("option", { value: "sos", children: "SOS only" })
3321
+ /* @__PURE__ */ jsxRuntime.jsx("option", { value: "sos", children: "SOS only" }),
3322
+ /* @__PURE__ */ jsxRuntime.jsx("option", { value: "biweekly", children: "Biweekly" }),
3323
+ /* @__PURE__ */ jsxRuntime.jsx("option", { value: "stat", children: "STAT" })
3305
3324
  ]
3306
3325
  }
3307
3326
  ),
@@ -3362,6 +3381,15 @@ function MedicationCard({
3362
3381
  onChange: (e) => set("before_after", e.target.value),
3363
3382
  children: BEFORE_AFTER_OPTIONS.map((option) => /* @__PURE__ */ jsxRuntime.jsx("option", { value: option.value, children: option.label }, option.label))
3364
3383
  }
3384
+ ),
3385
+ /* @__PURE__ */ jsxRuntime.jsx(
3386
+ "select",
3387
+ {
3388
+ className: "text-xs border border-border rounded px-2 py-1 bg-white shrink-0",
3389
+ value: med.route ?? "",
3390
+ onChange: (e) => set("route", e.target.value),
3391
+ children: ROUTE_OPTIONS.map((option) => /* @__PURE__ */ jsxRuntime.jsx("option", { value: option.value, children: option.label }, option.value))
3392
+ }
3365
3393
  )
3366
3394
  ] }),
3367
3395
  /* @__PURE__ */ jsxRuntime.jsxs(