コード例 #1
0
def get_one(sid):
    pr = get_one_p(sid)
    return Question(
        sid,
        "Since your last report: Did you smoke a cigarette and/or E-cigarette? [no=0; cig=1; "
        "Ecig=2; both=3]", "cigEcig", pr, False,
        "Invalid response - Must be 0, 1, 2 or 3", False)
コード例 #2
0
def get_three(sid):
    return Question(
        sid, "How many minutes after waking did you use your first E-cig?",
        "ecig_wake", None, True, "", False)
コード例 #3
0
def get_two(sid):
    return Question(
        sid,
        "How many minutes after waking did you smoke your first cigarette?",
        "cig_wake", None, True, "", False)
コード例 #4
0
def get_twenty_one(sid):
    return Question(sid, "Thank you for completing the survey.", "thanks",
                    None, True, True)
コード例 #5
0
def get_nineteen(sid):
    pr = get_nineteen_p(sid)
    return Question(
        sid,
        "On a scale of 0-9, how satisfying was your last E-cigarette? [0=Not at all – "
        "9=Extremely Satisfying]", "Ecig_sat", pr, True, False)
コード例 #6
0
def get_twenty(sid):
    pr = get_twenty_p(sid)
    return Question(
        sid,
        "On a scale of 0-9, how much do you want to smoke a CIGARETTE right now? [0=Not at all – "
        "9=Very, Very much]", "cig_want", pr, True, False)
コード例 #7
0
def get_seventeen(sid):
    pr = get_seventeen_p(sid)
    return Question(
        sid,
        "Since your last report: How many separate times did you smoke an E-cigarette? ",
        "Ecig_num", pr, True, False)
コード例 #8
0
def get_eighteen(sid):
    pr = get_eighteen_p(sid)
    return Question(
        sid,
        "If you smoked an E-cigarette was it JUUL or another type?If JUUL- Did you smoke T, "
        "Mint, Mango, Brule ", "Ecig_type", pr, True, False)
コード例 #9
0
def get_sixteen(sid):
    pr = get_sixteen_p(sid)
    return Question(
        sid, "Since your last report: How many cigarettes did you smoke?",
        "cig_num", pr, True, False)
コード例 #10
0
def get_fifteen(sid):
    return Question(sid, "Thank you for completing the survey.", "thanks",
                    None, True, "", True)
コード例 #11
0
def get_fourteen(sid):
    pr = get_fourteen_p(sid)
    return Question(
        sid,
        "On a scale of 0-9, how much do you want to smoke a CIGARETTE right now? [0=Not at all "
        "– 9=Very, Very much]", "cig_want", pr, True, "", False)
コード例 #12
0
def get_twelve(sid):
    pr = get_twelve_p(sid)
    return Question(sid, "On average, how many puffs did you take each time?",
                    "Ecig_puffs", pr, True, "", False)
コード例 #13
0
def get_seven(sid):
    pr = get_seven_p(sid)
    return Question(
        sid,
        "On a scale of 0-9, how satisfying was your last cigarette? [0=Not at all – 9=Extremely "
        "Satisfying]", "cig_sat", pr, True, "", False)