Skip to content
Snippets Groups Projects
Commit 8efe9f64 authored by Hervé  MENAGER's avatar Hervé MENAGER
Browse files

add imported MDDR and define MDDR activity classes as an enum type

closes #40


Former-commit-id: 7d5595a4c6209b146a27f09a8151d6734b9d9660
parent f5d34f75
No related branches found
No related tags found
No related merge requests found
File deleted
22fcf51cee85dcecd7c0de2fecdd0852abb2ce71
\ No newline at end of file
# -*- coding: utf-8 -*-
# Generated by Django 1.11.1 on 2017-05-23 13:11
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('ippidb', '0021_auto_20170522_1949'),
]
operations = [
migrations.AlterField(
model_name='mddrcompoundimport',
name='dvpmt_phase',
field=models.CharField(choices=[('Biological Testing', ''), ('Preclinical', ''), ('Phase III', ''), ('Phase II', ''), ('Phase I/II', ''), ('Phase I', ''), ('Launched', ''), ('Pre-Registered', ''), ('Not Applicable', ''), ('Discontinued', ''), ('Clinical', ''), ('Withdrawn', ''), ('Registered', ''), ('Not Determined', ''), ('Phase II/III', ''), ('IND Filed', '')], max_length=20, verbose_name='Development phase'),
),
]
......@@ -253,8 +253,28 @@ class MDDRActivityClass(models.Model):
return self.name
class MDDRCompoundImport(models.Model):
MDDR_DEVELOPMENT_PHASES = (
('Biological Testing',''),
('Preclinical',''),
('Phase III',''),
('Phase II',''),
('Phase I/II',''),
('Phase I',''),
('Launched',''),
('Pre-Registered',''),
('Not Applicable',''),
('Discontinued',''),
('Clinical',''),
('Withdrawn',''),
('Registered',''),
('Not Determined',''),
('Phase II/III',''),
('IND Filed',''),
)
mddr_name = models.CharField('MDDR name', max_length=40)
dvpmt_phase = models.CharField('Development phase', max_length=20)
dvpmt_phase = models.CharField('Development phase', max_length=20, choices=MDDR_DEVELOPMENT_PHASES)
canonical_smile = models.CharField('Canonical Smile', max_length=500, blank=True, null=True)
#TODO index this table on canonical_smile
db_import_date = models.DateTimeField('MDDR release year/month')
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment