Skip to content

Commit

Permalink
Fix medication request issues
Browse files Browse the repository at this point in the history
  • Loading branch information
vigneshhari committed Jan 15, 2025
1 parent 109e855 commit abb73af
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
18 changes: 18 additions & 0 deletions care/emr/migrations/0008_medicationrequest_medication.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Generated by Django 5.1.4 on 2025-01-15 13:45

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('emr', '0007_remove_medicationrequest_authored_on_and_more'),
]

operations = [
migrations.AddField(
model_name='medicationrequest',
name='medication',
field=models.JSONField(blank=True, default=dict, null=True),
),
]
1 change: 1 addition & 0 deletions care/emr/models/medication_request.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ class MedicationRequest(EMRBaseModel):
priority = models.CharField(max_length=100, null=True, blank=True)
do_not_perform = models.BooleanField()
method = models.JSONField(default=dict, null=True, blank=True)
medication = models.JSONField(default=dict, null=True, blank=True)
patient = models.ForeignKey("emr.Patient", on_delete=models.CASCADE)
encounter = models.ForeignKey("emr.Encounter", on_delete=models.CASCADE)
dosage_instruction = models.JSONField(default=list, null=True, blank=True)
Expand Down

0 comments on commit abb73af

Please sign in to comment.