Skip to content

Commit

Permalink
Added authored on to medication request
Browse files Browse the repository at this point in the history
  • Loading branch information
vigneshhari committed Jan 21, 2025
1 parent f1686c7 commit 0a8f6ee
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 0 deletions.
18 changes: 18 additions & 0 deletions care/emr/migrations/0009_medicationrequest_authored_on.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Generated by Django 5.1.4 on 2025-01-21 11:15

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('emr', '0008_medicationrequest_medication'),
]

operations = [
migrations.AddField(
model_name='medicationrequest',
name='authored_on',
field=models.DateTimeField(blank=True, default=None, 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 @@ -16,3 +16,4 @@ class MedicationRequest(EMRBaseModel):
encounter = models.ForeignKey("emr.Encounter", on_delete=models.CASCADE)
dosage_instruction = models.JSONField(default=list, null=True, blank=True)
note = models.TextField(null=True, blank=True)
authored_on = models.DateTimeField(null=True, blank=True, default=None)
1 change: 1 addition & 0 deletions care/emr/resources/medication/request/spec.py
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,7 @@ class BaseMedicationRequestSpec(MedicationRequestResource):
encounter: UUID4

dosage_instruction: list[DosageInstruction] = Field()
authored_on: datetime

note: str | None = Field(None)

Expand Down

0 comments on commit 0a8f6ee

Please sign in to comment.