# Contact questionnaire 

class ContactQ1(d.Question):
  question = 'How many people did you have conversational contact with' +\
             ' yesterday?'

0-4 years
5-18 years
19-44 years
45-64 years
65+ years

Home

Work

Other


class ContactQ2(d.Question):
  question = 'How many people did you have physical contact with yesterday?'

0-4 years
5-18 years
19-44 years
45-64 years
65+ years

Home

Work

Other



class ContactQ3(d.Question):
  question = 'On a normal day, how much time do you spend on public ' +\
             'transport (bus, train, undergound)?'
  type = 'options-single'
  options = (
    (0, 'No time at all'),
    (1, '0-30 minutes'),
    (2, '30 minutes – 1,5 hours'),
    (3, '1,5 hours – 4 hours'),
    (4, '>4 hours'),
    )

class ContactQ4(d.Question):
  question = 'Not including public transport, how long did you spend in an' +\
             'enclosed indoor space (e.g. office, classroom, bar, cinema)' +\
             ' with more than 10 other people yesterday ?'
  type = 'options-single'
  options = (
    (0, 'No time at all'),
    (1, '0-30 minutes'),
    (2, '30 minutes – 1,5 hours'),
    (3, '1,5 hours – 4 hours'),
    (4, '>4 hours'),
    )
  

class GoldStandardContact(d.Survey):
    id = 'gold-standard-contact-0.1.0'
    rules = (
        ContactQ1,
        ContactQ2,
        ContactQ3,
        ContactQ4,
    )

@@ -19,16 +19,50 @@
 naire %0A%0A
+# Table functionality required%0A%0A# 
 class Co
@@ -74,32 +74,34 @@
 Q1(d.Question):%0A
+# 
   question = 'Ho
@@ -155,24 +155,26 @@
 ct with' +%5C%0A
+# 
             
@@ -180,33 +180,37 @@
   ' yesterday?'%0A
-%0A
+# %0A# 
 0-4 years%0A5-18 y
@@ -195,32 +195,34 @@
 %0A# %0A# 0-4 years%0A
+# 
 5-18 years%0A19-44
@@ -208,32 +208,34 @@
 rs%0A# 5-18 years%0A
+# 
 19-44 years%0A45-6
@@ -222,32 +222,34 @@
 s%0A# 19-44 years%0A
+# 
 45-64 years%0A65+ 
@@ -236,32 +236,34 @@
 s%0A# 45-64 years%0A
+# 
 65+ years%0A%0AHome%0A
@@ -256,37 +256,55 @@
 + years%0A
-%0AHome%0A%0AWork%0A%0AOther%0A%0A%0A
+# %0A# Home%0A# %0A# Work%0A# %0A# Other%0A# %0A# %0A# 
 class Co
@@ -316,32 +316,34 @@
 Q2(d.Question):%0A
+# 
   question = 'Ho
@@ -403,17 +403,21 @@
 erday?'%0A
-%0A
+# %0A# 
 0-4 year
@@ -418,16 +418,18 @@
 4 years%0A
+# 
 5-18 yea
@@ -431,16 +431,18 @@
 8 years%0A
+# 
 19-44 ye
@@ -445,16 +445,18 @@
 4 years%0A
+# 
 45-64 ye
@@ -459,16 +459,18 @@
 4 years%0A
+# 
 65+ year
@@ -475,21 +475,33 @@
 ars%0A
-%0AHome%0A%0AWork%0A%0A
+# %0A# Home%0A# %0A# Work%0A# %0A# 
 Othe
@@ -1369,24 +1369,17 @@
 ules = (
-%0A       
+#
  Contact
@@ -1382,32 +1382,40 @@
 tactQ1,%0A        
+     
+#  
 ContactQ2,%0A     
@@ -1409,32 +1409,37 @@
 tactQ2,%0A        
+    
+ 
 ContactQ3,%0A     
@@ -1433,16 +1433,21 @@
 tactQ3,%0A
+     
         

Comment out questions which require functionality not yet present.