Skip to content

Commit

Permalink
Added new routes to prescriptions. (#6982)
Browse files Browse the repository at this point in the history
* add new routes to prescriptions

* Implemented requested changes
  • Loading branch information
sriharsh05 authored Jan 17, 2024
1 parent afe04b9 commit eb64b28
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 2 deletions.
12 changes: 11 additions & 1 deletion src/Components/Medicine/CreatePrescriptionForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
3 changes: 2 additions & 1 deletion src/Components/Medicine/models.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { PerformedByModel } from "../HCX/misc";
import { PRESCRIPTION_ROUTES } from "./CreatePrescriptionForm";

export const DOSAGE_UNITS = [
"mg",
Expand All @@ -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;
Expand Down
5 changes: 5 additions & 0 deletions src/Locale/en/Medicine.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit eb64b28

Please sign in to comment.