From 64485ebbe4905a51fc93d86684402d8017b28bb8 Mon Sep 17 00:00:00 2001 From: Gampa Sri Harsh <114745442+sriharsh05@users.noreply.github.com> Date: Tue, 16 Jan 2024 20:19:47 +0530 Subject: [PATCH] Added new routes in prescription (#1808) add new routes in prescription --- .../0405_alter_prescription_route.py | 32 +++++++++++++++++++ care/facility/models/prescription.py | 5 +++ 2 files changed, 37 insertions(+) create mode 100644 care/facility/migrations/0405_alter_prescription_route.py diff --git a/care/facility/migrations/0405_alter_prescription_route.py b/care/facility/migrations/0405_alter_prescription_route.py new file mode 100644 index 0000000000..20ab79d1c6 --- /dev/null +++ b/care/facility/migrations/0405_alter_prescription_route.py @@ -0,0 +1,32 @@ +# Generated by Django 4.2.5 on 2024-01-05 10:41 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + dependencies = [ + ("facility", "0404_merge_20231220_2227"), + ] + + operations = [ + migrations.AlterField( + model_name="prescription", + name="route", + field=models.CharField( + blank=True, + choices=[ + ("ORAL", "Oral"), + ("IV", "IV"), + ("IM", "IM"), + ("SC", "S/C"), + ("INHALATION", "Inhalation"), + ("NASOGASTRIC", "Nasogastric/Gastrostomy tube"), + ("INTRATHECAL", "intrathecal injection"), + ("TRANSDERMAL", "Transdermal"), + ("RECTAL", "Rectal"), + ], + max_length=100, + null=True, + ), + ), + ] diff --git a/care/facility/models/prescription.py b/care/facility/models/prescription.py index 3a7eac5190..d7f70521a1 100644 --- a/care/facility/models/prescription.py +++ b/care/facility/models/prescription.py @@ -27,6 +27,11 @@ class Routes(enum.Enum): IV = "IV" IM = "IM" SC = "S/C" + INHALATION = "Inhalation" + NASOGASTRIC = "Nasogastric/Gastrostomy tube" + INTRATHECAL = "intrathecal injection" + TRANSDERMAL = "Transdermal" + RECTAL = "Rectal" class PrescriptionType(enum.Enum):