davebridges / mousedb

Django Based Database System for Experimental Subjects
http://davebridges.github.com/mousedb
BSD 3-Clause "New" or "Revised" License
6 stars 4 forks source link

Add Cohort Model #38

Closed davebridges closed 11 years ago

davebridges commented 11 years ago

A cohort would be a group of animals undergoing a set of treatments. So for example there could be a High Fat Diet cohort containing the treatment groups Normal Chow Diet and High Fat Diet. An animal would be part of a particular cohort, as well as part of a particular treatment group. Cohorts should be closer linked with Experiment objects and Study objects. Therefore the model should be

in Experiment:

cohort = models.ManyToManyField(Cohort, blank=True, null=True, help_text = "Which cohort(s) of mice were used in this experiment")

in Study:

cohort = models.ManyToManyField(Cohort, blank=True, null=True, help_text = "Which cohort(s) of mice were used in this experiment")

Cohort(models.Model):

start_date
end_date
treatment_groups = ManyToManyField(Treatment)
animals = ManyToManyField(Animal)
notes = TextField

There should also be links within a mouse page to cohort and treatment groups containing that animal.