Skip to content

Commit

Permalink
Add geo organization for patient
Browse files Browse the repository at this point in the history
  • Loading branch information
vigneshhari committed Dec 25, 2024
1 parent f728d1c commit 0f7648f
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions care/facility/migrations/0477_patientorganizations.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# Generated by Django 5.1.3 on 2024-12-25 08:18

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


class Migration(migrations.Migration):

dependencies = [
('emr', '0041_facilityorganization_metadata_organization_metadata'),
('facility', '0476_historicalpatientregistration_geo_organization_and_more'),
]

operations = [
migrations.CreateModel(
name='PatientOrganizations',
fields=[
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('external_id', models.UUIDField(db_index=True, default=uuid.uuid4, unique=True)),
('created_date', models.DateTimeField(auto_now_add=True, db_index=True, null=True)),
('modified_date', models.DateTimeField(auto_now=True, db_index=True, null=True)),
('deleted', models.BooleanField(db_index=True, default=False)),
('organization', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='emr.organization')),
('patient', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='facility.patientregistration')),
],
options={
'abstract': False,
},
),
]

0 comments on commit 0f7648f

Please sign in to comment.