diff --git a/smash/web/models/__init__.py b/smash/web/models/__init__.py index 9edb9cb0982da082f3fd3011ce76607ae0970748..3dc346ec8d6b719b90273225b1626aa765571ac8 100644 --- a/smash/web/models/__init__.py +++ b/smash/web/models/__init__.py @@ -11,6 +11,7 @@ from country import Country from appointment_columns import AppointmentColumns from subject_columns import SubjectColumns from study_columns import StudyColumns +from redcap_columns import StudyRedCapColumns from visit_columns import VisitColumns from notification_columns import StudyNotificationParameters from study import Study @@ -41,4 +42,4 @@ __all__ = [Study, FlyingTeam, Appointment, AppointmentType, Availability, Holida Subject, StudySubject, StudySubjectList, SubjectColumns, StudyNotificationParameters, AppointmentList, AppointmentColumns, Visit, Worker, ContactAttempt, ConfigurationItem, MailTemplate, AppointmentTypeLink, VoucherType, VoucherTypePrice, Voucher, WorkerStudyRole, - MissingSubject, InconsistentSubject, InconsistentField, Country, StudyColumns, VisitColumns, StudyVisitList] + MissingSubject, InconsistentSubject, InconsistentField, Country, StudyColumns, StudyRedCapColumns, VisitColumns, StudyVisitList] diff --git a/smash/web/models/redcap_columns.py b/smash/web/models/redcap_columns.py new file mode 100644 index 0000000000000000000000000000000000000000..fe403db7b0af58b8a730340bc2c2b7bfe7bb73f6 --- /dev/null +++ b/smash/web/models/redcap_columns.py @@ -0,0 +1,32 @@ +# coding=utf-8 +from django.db import models + + +class StudyRedCapColumns(models.Model): + class Meta: + app_label = 'web' + + sex = models.BooleanField( + verbose_name='Sex', + default=True + ) + + date_born = models.BooleanField( + verbose_name='Date of birth', + default=True + ) + + dead = models.BooleanField( + verbose_name='Dead', + default=True + ) + + mpower_id = models.BooleanField( + verbose_name='MPower ID', + default=True + ) + + languages = models.BooleanField( + verbose_name='Languages', + default=True + )