From 5fcc835da36cd823a63a354c21b02069467e0015 Mon Sep 17 00:00:00 2001 From: sriharsh05 Date: Mon, 1 Jan 2024 11:44:00 +0530 Subject: [PATCH] add new routes to prescriptions --- src/Components/Medicine/CreatePrescriptionForm.tsx | 12 +++++++++++- src/Components/Medicine/models.ts | 11 ++++++++++- src/Locale/en/Medicine.json | 5 +++++ 3 files changed, 26 insertions(+), 2 deletions(-) diff --git a/src/Components/Medicine/CreatePrescriptionForm.tsx b/src/Components/Medicine/CreatePrescriptionForm.tsx index 2725ab4e728..9ab1d3276a6 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", +]; export const PRESCRIPTION_FREQUENCIES = { STAT: { slots: 1, diff --git a/src/Components/Medicine/models.ts b/src/Components/Medicine/models.ts index 4fca9b6f972..2e9d3ed346b 100644 --- a/src/Components/Medicine/models.ts +++ b/src/Components/Medicine/models.ts @@ -16,7 +16,16 @@ interface BasePrescription { medicine?: string; medicine_object?: MedibaseMedicine; medicine_old?: string; - route?: "ORAL" | "IV" | "IM" | "SC"; + route?: + | "ORAL" + | "IV" + | "IM" + | "SC" + | "INHALATION" + | "NASOGASTRIC" + | "INTRATHECAL" + | "TRANSDERMAL" + | "RECTAL"; 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",