Skip to content

Commit

Permalink
Adds additional units and route to prescriptions (#8075)
Browse files Browse the repository at this point in the history
* Add mcg as new dosage unit; Add Sublingual;

* Update src/Components/Medicine/models.ts

Co-authored-by: Mohammed Nihal <[email protected]>

* Add missing unit `unit(s)`

---------

Co-authored-by: Mohammed Nihal <[email protected]>
Co-authored-by: rithviknishad <[email protected]>
  • Loading branch information
3 people authored Jul 9, 2024
1 parent 7f9a474 commit 36e156f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Components/Medicine/CreatePrescriptionForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,9 @@ export const PRESCRIPTION_ROUTES = [
"INTRATHECAL",
"TRANSDERMAL",
"RECTAL",
"SUBLINGUAL",
] as const;

export const PRESCRIPTION_FREQUENCIES = {
STAT: {
slots: 1,
Expand Down
2 changes: 2 additions & 0 deletions src/Components/Medicine/models.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ export const DOSAGE_UNITS = [
"drop(s)",
"ampule(s)",
"tsp",
"mcg",
"unit(s)",
] as const;

export type DosageValue = `${number} ${(typeof DOSAGE_UNITS)[number]}`;
Expand Down
1 change: 1 addition & 0 deletions src/Locale/en/Medicine.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@
"PRESCRIPTION_ROUTE_INTRATHECAL": "intrathecal injection",
"PRESCRIPTION_ROUTE_TRANSDERMAL": "Transdermal",
"PRESCRIPTION_ROUTE_RECTAL": "Rectal",
"PRESCRIPTION_ROUTE_SUBLINGUAL": "Sublingual",
"PRESCRIPTION_FREQUENCY_STAT": "Imediately",
"PRESCRIPTION_FREQUENCY_OD": "Once daily",
"PRESCRIPTION_FREQUENCY_HS": "Night only",
Expand Down

0 comments on commit 36e156f

Please sign in to comment.