Skip to content

Commit

Permalink
fixed migration conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
khavinshankar committed Dec 29, 2024
1 parent 6c6c9c3 commit 9b6c03c
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Generated by Django 5.1.3 on 2024-12-29 07:59

from django.db import migrations


class Migration(migrations.Migration):

dependencies = [
('emr', '0046_merge_20241227_1152'),
('emr', '0056_fileupload'),
]

operations = [
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Generated by Django 5.1.3 on 2024-12-29 08:02

import django.db.models.deletion
from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('emr', '0057_merge_0046_merge_20241227_1152_0056_fileupload'),
]

operations = [
migrations.AlterField(
model_name='medicationadministration',
name='encounter',
field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='emr.encounter'),
),
migrations.AlterField(
model_name='medicationadministration',
name='patient',
field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='emr.patient'),
),
]
6 changes: 2 additions & 4 deletions care/emr/models/medication_administration.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,9 @@ class MedicationAdministration(EMRBaseModel):
status_reason = models.JSONField(null=True, blank=True)
category = models.CharField(max_length=100, null=True, blank=True)
medication = models.JSONField(default=dict)
patient = models.ForeignKey(
"facility.PatientRegistration", on_delete=models.CASCADE
)
patient = models.ForeignKey("emr.Patient", on_delete=models.CASCADE)
encounter = models.ForeignKey(
"facility.PatientConsultation", on_delete=models.CASCADE, null=True, blank=True
"emr.Encounter", on_delete=models.CASCADE, null=True, blank=True
)
request = models.ForeignKey(
"emr.MedicationRequest", on_delete=models.CASCADE, null=True, blank=True
Expand Down

0 comments on commit 9b6c03c

Please sign in to comment.