diff --git a/src/Components/Medicine/CreatePrescriptionForm.tsx b/src/Components/Medicine/CreatePrescriptionForm.tsx index 2725ab4e728..e62004756f9 100644 --- a/src/Components/Medicine/CreatePrescriptionForm.tsx +++ b/src/Components/Medicine/CreatePrescriptionForm.tsx @@ -137,7 +137,17 @@ export default function CreatePrescriptionForm(props: { ); } -export const PRESCRIPTION_ROUTES = ["ORAL", "IV", "IM", "SC"]; +export const PRESCRIPTION_ROUTES = [ + "ORAL", + "IV", + "IM", + "SC", + "INHALATION", + "NASOGASTRIC", + "INTRATHECAL", + "TRANSDERMAL", + "RECTAL", +] as const; export const PRESCRIPTION_FREQUENCIES = { STAT: { slots: 1, diff --git a/src/Components/Medicine/models.ts b/src/Components/Medicine/models.ts index 4fca9b6f972..b97e2c52252 100644 --- a/src/Components/Medicine/models.ts +++ b/src/Components/Medicine/models.ts @@ -1,4 +1,5 @@ import { PerformedByModel } from "../HCX/misc"; +import { PRESCRIPTION_ROUTES } from "./CreatePrescriptionForm"; export const DOSAGE_UNITS = [ "mg", @@ -16,7 +17,7 @@ interface BasePrescription { medicine?: string; medicine_object?: MedibaseMedicine; medicine_old?: string; - route?: "ORAL" | "IV" | "IM" | "SC"; + route?: (typeof PRESCRIPTION_ROUTES)[number]; dosage: DosageValue; notes?: string; meta?: object; diff --git a/src/Locale/en/Medicine.json b/src/Locale/en/Medicine.json index d32015e7618..f15bd7c802f 100644 --- a/src/Locale/en/Medicine.json +++ b/src/Locale/en/Medicine.json @@ -40,6 +40,11 @@ "PRESCRIPTION_ROUTE_IV": "IV", "PRESCRIPTION_ROUTE_IM": "IM", "PRESCRIPTION_ROUTE_SC": "S/C", + "PRESCRIPTION_ROUTE_INHALATION": "Inhalation", + "PRESCRIPTION_ROUTE_NASOGASTRIC": "Nasogastric/Gastrostomy tube", + "PRESCRIPTION_ROUTE_INTRATHECAL": "intrathecal injection", + "PRESCRIPTION_ROUTE_TRANSDERMAL": "Transdermal", + "PRESCRIPTION_ROUTE_RECTAL": "Rectal", "PRESCRIPTION_FREQUENCY_STAT": "Imediately", "PRESCRIPTION_FREQUENCY_OD": "Once daily", "PRESCRIPTION_FREQUENCY_HS": "Night only",