From 24edf382d33c52efaec129bde844f4497d2e497c Mon Sep 17 00:00:00 2001 From: Carlos Vega <carlos.vega@uni.lu> Date: Tue, 28 May 2019 14:17:44 +0200 Subject: [PATCH] added model redcap columns --- smash/web/models/__init__.py | 3 ++- smash/web/models/redcap_columns.py | 32 ++++++++++++++++++++++++++++++ 2 files changed, 34 insertions(+), 1 deletion(-) create mode 100644 smash/web/models/redcap_columns.py diff --git a/smash/web/models/__init__.py b/smash/web/models/__init__.py index 9edb9cb0..3dc346ec 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 00000000..fe403db7 --- /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 + ) -- GitLab