Skip to content

Commit abb73af

Browse files
committed
Fix medication request issues
1 parent 109e855 commit abb73af

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Generated by Django 5.1.4 on 2025-01-15 13:45
2+
3+
from django.db import migrations, models
4+
5+
6+
class Migration(migrations.Migration):
7+
8+
dependencies = [
9+
('emr', '0007_remove_medicationrequest_authored_on_and_more'),
10+
]
11+
12+
operations = [
13+
migrations.AddField(
14+
model_name='medicationrequest',
15+
name='medication',
16+
field=models.JSONField(blank=True, default=dict, null=True),
17+
),
18+
]

care/emr/models/medication_request.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ class MedicationRequest(EMRBaseModel):
1111
priority = models.CharField(max_length=100, null=True, blank=True)
1212
do_not_perform = models.BooleanField()
1313
method = models.JSONField(default=dict, null=True, blank=True)
14+
medication = models.JSONField(default=dict, null=True, blank=True)
1415
patient = models.ForeignKey("emr.Patient", on_delete=models.CASCADE)
1516
encounter = models.ForeignKey("emr.Encounter", on_delete=models.CASCADE)
1617
dosage_instruction = models.JSONField(default=list, null=True, blank=True)

0 commit comments

Comments
 (0)