Skip to content

Commit

Permalink
latest change according to ssf fro new table sosysproduct and subProd…
Browse files Browse the repository at this point in the history
…uct_id in tblClaim
  • Loading branch information
sudishrestha committed Mar 29, 2021
1 parent ae33048 commit d5ebbdd
Show file tree
Hide file tree
Showing 57 changed files with 175 additions and 482 deletions.
Binary file modified __pycache__/__init__.cpython-38.pyc
Binary file not shown.
Binary file modified __pycache__/admin.cpython-38.pyc
Binary file not shown.
Binary file modified __pycache__/apps.cpython-38.pyc
Binary file not shown.
Binary file modified __pycache__/gql_mutations.cpython-38.pyc
Binary file not shown.
Binary file modified __pycache__/gql_queries.cpython-38.pyc
Binary file not shown.
Binary file modified __pycache__/models.cpython-38.pyc
Binary file not shown.
Binary file modified __pycache__/schema.cpython-38.pyc
Binary file not shown.
Binary file modified __pycache__/services.cpython-38.pyc
Binary file not shown.
Binary file modified __pycache__/urls.cpython-38.pyc
Binary file not shown.
Binary file modified __pycache__/validations.cpython-38.pyc
Binary file not shown.
Binary file modified __pycache__/views.cpython-38.pyc
Binary file not shown.
6 changes: 3 additions & 3 deletions gql_queries.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from location.schema import HealthFacilityGQLType
from medical.schema import DiagnosisGQLType
from claim_batch.schema import BatchRunGQLType
from .models import Claim, ClaimAdmin, Feedback, ClaimItem, ClaimService, ClaimAttachment,SSFScheme
from .models import Claim, ClaimAdmin, Feedback, ClaimItem, ClaimService, ClaimAttachment,SosysSubProduct
from core.models import Officer


Expand Down Expand Up @@ -39,11 +39,11 @@ class SsfSchemeServiceGQLType(DjangoObjectType):
"""

class Meta:
model = SSFScheme
model = SosysSubProduct
exclude_fields = ('row_id',)
interfaces = (graphene.relay.Node,)
filter_fields = {
"SCH_NAME": ["exact"]
"sch_name": ["exact"]
}
connection_class = ExtendedConnection

Expand Down
96 changes: 61 additions & 35 deletions migrations/0001_initial.py

Large diffs are not rendered by default.

31 changes: 0 additions & 31 deletions migrations/0002_batchrun.py

This file was deleted.

65 changes: 65 additions & 0 deletions migrations/0002_claimattachment_claimmutation_sosyssubproduct.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
# Generated by Django 2.1.14 on 2021-03-29 21:57

import core.fields
import datetime
from django.db import migrations, models
import django.db.models.deletion
import uuid


class Migration(migrations.Migration):

dependencies = [
('core', '0009_mutationlog_client_mutation_details'),
('claim', '0001_initial'),
]

operations = [
migrations.CreateModel(
name='ClaimAttachment',
fields=[
('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)),
('validity_from', core.fields.DateTimeField(db_column='ValidityFrom', default=datetime.datetime.now)),
('validity_to', core.fields.DateTimeField(blank=True, db_column='ValidityTo', null=True)),
('legacy_id', models.UUIDField(blank=True, db_column='LegacyID', null=True)),
('type', models.TextField(blank=True, null=True)),
('title', models.TextField(blank=True, null=True)),
('date', core.fields.DateField(blank=True, null=True)),
('filename', models.TextField(blank=True, null=True)),
('mime', models.TextField(blank=True, null=True)),
('url', models.TextField(blank=True, null=True)),
('document', models.TextField(blank=True, null=True)),
('claim', models.ForeignKey(on_delete=django.db.models.deletion.DO_NOTHING, related_name='attachments', to='claim.Claim')),
],
options={
'db_table': 'claim_ClaimAttachment',
'managed': True,
},
),
migrations.CreateModel(
name='ClaimMutation',
fields=[
('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)),
('claim', models.ForeignKey(on_delete=django.db.models.deletion.DO_NOTHING, related_name='mutations', to='claim.Claim')),
('mutation', models.ForeignKey(on_delete=django.db.models.deletion.DO_NOTHING, related_name='claims', to='core.MutationLog')),
],
options={
'db_table': 'claim_ClaimMutation',
'managed': True,
},
),
migrations.CreateModel(
name='SosysSubProduct',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('sch_name', models.CharField(db_column='sch_name', max_length=100)),
('sch_name_eng', models.CharField(db_column='sch_name_eng', max_length=100)),
('status', models.BooleanField(blank=True, db_column='status', null=True)),
('product_id', models.IntegerField(db_column='VISIT_TYPE')),
('sosys_type', models.CharField(db_column='type', max_length=1)),
],
options={
'db_table': 'sosys_subproduct',
},
),
]
18 changes: 18 additions & 0 deletions migrations/0003_auto_20210329_2212.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Generated by Django 2.1.14 on 2021-03-29 22:12

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('claim', '0002_claimattachment_claimmutation_sosyssubproduct'),
]

operations = [
migrations.AlterField(
model_name='sosyssubproduct',
name='product_id',
field=models.IntegerField(db_column='product_id'),
),
]
26 changes: 0 additions & 26 deletions migrations/0003_claimofficer.py

This file was deleted.

36 changes: 0 additions & 36 deletions migrations/0004_claimattachment.py

This file was deleted.

28 changes: 0 additions & 28 deletions migrations/0005_claimmutation.py

This file was deleted.

18 changes: 0 additions & 18 deletions migrations/0006_claimattachment_url.py

This file was deleted.

18 changes: 0 additions & 18 deletions migrations/0007_auto_20200318_1443.py

This file was deleted.

16 changes: 0 additions & 16 deletions migrations/0008_create_claim_attachments_count_view.py

This file was deleted.

57 changes: 0 additions & 57 deletions migrations/0009_auto_20200421_1657.py

This file was deleted.

29 changes: 0 additions & 29 deletions migrations/0010_ssfscheme.py

This file was deleted.

18 changes: 0 additions & 18 deletions migrations/0011_auto_20210221_1223.py

This file was deleted.

Loading

0 comments on commit d5ebbdd

Please sign in to comment.