Exemple #1
0
    def __init__(
        cls: Type["Isaaq"],
        name: str,
        bases: Tuple[Type, ...],
        classdict: Dict[str, Any],
    ) -> None:

        add_multiple_columns(
            cls,
            cls.A_PREFIX,
            cls.FIRST_Q,
            cls.LAST_A_Q,
            coltype=Integer,
            minimum=0,
            maximum=5,
            comment_fmt=cls.A_PREFIX + "{n} - {s}",
            comment_strings=[
                "losing track of time 0-5 (not at all - all the time)",
                "block disturbing thoughts 0-5 (not at all - all the time)",
                "loneliness or boredom 0-5 (not at all - all the time)",
                "neglect normal activities 0-5 (not at all - all the time)",
                "choose over intimacy 0-5 (not at all - all the time)",
                "financial consequences 0-5 (not at all - all the time)",
                "school/study suffers 0-5 (not at all - all the time)",
                "check email or social media 0-5 (not at all - all the time)",
                "others complain 0-5 (not at all - all the time)",
                "defensive or secretive 0-5 (not at all - all the time)",
                "try to arrest 0-5 (not at all - all the time)",
                "preoccupied when offline 0-5 (not at all - all the time)",
                "lose sleep 0-5 (not at all - all the time)",
                ("physical or psychological problems 0-5 "
                 "(not at all - all the time)"),
                "try to cut down 0-5 (not at all - all the time)",
            ],
        )

        add_multiple_columns(
            cls,
            cls.B_PREFIX,
            cls.FIRST_Q,
            cls.LAST_B_Q,
            coltype=Integer,
            minimum=0,
            maximum=5,
            comment_fmt=cls.B_PREFIX + "{n} - {s}",
            comment_strings=[
                "general surfing 0-5 (not at all - all the time)",
                "internet gaming 0-5 (not at all - all the time)",
                "skill games 0-5 (not at all - all the time)",
                "online shopping 0-5 (not at all - all the time)",
                "online gaming 0-5 (not at all - all the time)",
                "social networking 0-5 (not at all - all the time)",
                "health and medicine 0-5 (not at all - all the time)",
                "pornography 0-5 (not at all - all the time)",
                "streaming media 0-5 (not at all - all the time)",
                "cyberbullying 0-5 (not at all - all the time)",
            ],
        )

        super().__init__(name, bases, classdict)
Exemple #2
0
 def __init__(
     cls: Type["Pswq"],
     name: str,
     bases: Tuple[Type, ...],
     classdict: Dict[str, Any],
 ) -> None:
     add_multiple_columns(
         cls,
         "q",
         1,
         cls.NQUESTIONS,
         minimum=cls.MIN_PER_Q,
         maximum=cls.MAX_PER_Q,
         comment_fmt="Q{n}, {s} (1-5)",
         comment_strings=[
             "OK if not enough time [REVERSE SCORE]",  # 1
             "worries overwhelm",
             "do not tend to worry [REVERSE SCORE]",
             "many situations make me worry",
             "cannot help worrying",  # 5
             "worry under pressure",
             "always worrying",
             "easily dismiss worries [REVERSE SCORE]",
             "finish then worry about next thing",
             "never worry [REVERSE SCORE]",  # 10
             "if nothing more to do, I do not worry [REVERSE SCORE]",
             "lifelong worrier",
             "have been worrying",
             "when start worrying cannot stop",
             "worry all the time",  # 15
             "worry about projects until done",
         ],
     )
     super().__init__(name, bases, classdict)
Exemple #3
0
 def __init__(
     cls: Type["Gad7"],
     name: str,
     bases: Tuple[Type, ...],
     classdict: Dict[str, Any],
 ) -> None:
     add_multiple_columns(
         cls,
         "q",
         1,
         cls.NQUESTIONS,
         minimum=0,
         maximum=3,
         comment_fmt="Q{n}, {s} (0 not at all - 3 nearly every day)",
         comment_strings=[
             "nervous/anxious/on edge",
             "can't stop/control worrying",
             "worrying too much about different things",
             "trouble relaxing",
             "restless",
             "irritable",
             "afraid",
         ],
     )
     super().__init__(name, bases, classdict)
Exemple #4
0
    def __init__(
        cls: Type["Hamd7"],
        name: str,
        bases: Tuple[Type, ...],
        classdict: Dict[str, Any],
    ) -> None:
        add_multiple_columns(
            cls,
            "q",
            1,
            cls.NQUESTIONS,
            minimum=0,
            maximum=4,  # see below
            comment_fmt="Q{n}, {s} (0-4, except Q6 0-2; higher worse)",
            comment_strings=[
                "depressed mood",
                "guilt",
                "interest/pleasure/level of activities",
                "psychological anxiety",
                "somatic anxiety",
                "energy/somatic symptoms",
                "suicide",
            ],
        )
        # Now fix the wrong bits. Hardly elegant!
        cls.q6.set_permitted_value_checker(ZERO_TO_TWO_CHECKER)

        super().__init__(name, bases, classdict)
Exemple #5
0
 def __init__(cls: Type['Honosca'], name: str, bases: Tuple[Type, ...],
              classdict: Dict[str, Any]) -> None:
     add_multiple_columns(
         cls,
         "q",
         1,
         cls.NQUESTIONS,
         pv=PV_MAIN,
         comment_fmt="Q{n}, {s} (0-4, higher worse)",
         comment_strings=[
             "disruptive/antisocial/aggressive",
             "overactive/inattentive",
             "self-harm",
             "alcohol/drug misuse",
             "scholastic/language problems",
             "physical illness/disability",
             "delusions/hallucinations",
             "non-organic somatic symptoms",
             "emotional symptoms",
             "peer relationships",
             "self-care and independence",
             "family life/relationships",
             "school attendance",
             "problems with knowledge/understanding of child's problems",
             "lack of information about services",
         ])
     super().__init__(name, bases, classdict)
Exemple #6
0
    def __init__(
        cls: Type["IsaaqEd"],
        name: str,
        bases: Tuple[Type, ...],
        classdict: Dict[str, Any],
    ) -> None:

        add_multiple_columns(
            cls,
            cls.Q_PREFIX,
            cls.FIRST_Q,
            cls.LAST_Q,
            coltype=Integer,
            minimum=0,
            maximum=5,
            comment_fmt=cls.Q_PREFIX + "{n} - {s}",
            comment_strings=[
                "pro-ED websites 0-5 (not at all - all the time)",
                "fitspiration 0-5 (not at all - all the time)",
                "thinspiration 0-5 (not at all - all the time)",
                "bonespiration 0-5 (not at all - all the time)",
                "online dating 0-5 (not at all - all the time)",
                "calorie tracking 0-5 (not at all - all the time)",
                "fitness tracking 0-5 (not at all - all the time)",
                "cyberbullying victimization 0-5 (not at all - all the time)",
                "mukbang 0-5 (not at all - all the time)",
                "appearance-focused gaming 0-5 (not at all - all the time)",
            ],
        )

        super().__init__(name, bases, classdict)
Exemple #7
0
 def __init__(cls: Type['Cesd'], name: str, bases: Tuple[Type, ...],
              classdict: Dict[str, Any]) -> None:
     add_multiple_columns(
         cls,
         "q",
         1,
         cls.N_QUESTIONS,
         minimum=0,
         maximum=4,
         comment_fmt=(
             "Q{n} ({s}) (0 rarely/none of the time - 4 all of the time)"),
         comment_strings=[
             "sensitivity/irritability",
             "poor appetite",
             "unshakeable blues",
             "low self-esteem",
             "poor concentration",
             "depressed",
             "everything effortful",
             "hopeful",
             "feelings of failure",
             "fearful",
             "sleep restless",
             "happy",
             "uncommunicative",
             "lonely",
             "perceived unfriendliness",
             "enjoyment",
             "crying spells",
             "sadness",
             "feeling disliked",
             "could not get going",
         ])
     super().__init__(name, bases, classdict)
Exemple #8
0
 def __init__(
     cls: Type["PclCommon"],
     name: str,
     bases: Tuple[Type, ...],
     classdict: Dict[str, Any],
 ) -> None:
     add_multiple_columns(
         cls,
         "q",
         1,
         cls.NQUESTIONS,
         minimum=1,
         maximum=5,
         comment_fmt="Q{n} ({s}) (1 not at all - 5 extremely)",
         comment_strings=[
             "disturbing memories/thoughts/images",
             "disturbing dreams",
             "reliving",
             "upset at reminders",
             "physical reactions to reminders",
             "avoid thinking/talking/feelings relating to experience",
             "avoid activities/situations because they remind",
             "trouble remembering important parts of stressful event",
             "loss of interest in previously enjoyed activities",
             "feeling distant/cut off from people",
             "feeling emotionally numb",
             "feeling future will be cut short",
             "hard to sleep",
             "irritable",
             "difficulty concentrating",
             "super alert/on guard",
             "jumpy/easily startled",
         ],
     )
     super().__init__(name, bases, classdict)
Exemple #9
0
 def __init__(cls: Type['Pcl5'], name: str, bases: Tuple[Type, ...],
              classdict: Dict[str, Any]) -> None:
     add_multiple_columns(
         cls,
         "q",
         1,
         cls.N_QUESTIONS,
         minimum=0,
         maximum=4,
         comment_fmt="Q{n} ({s}) (0 not at all - 4 extremely)",
         comment_strings=[
             "disturbing memories/thoughts/images",
             "disturbing dreams",
             "reliving",
             "upset at reminders",
             "physical reactions to reminders",
             "avoid thinking/talking/feelings relating to experience",
             "avoid activities/situations because they remind",
             "trouble remembering important parts of stressful event",
             "strong negative beliefs about self/others/world",
             "blaming",
             "strong negative emotions",
             "loss of interest in previously enjoyed activities",
             "feeling distant / cut off from people",
             "feeling emotionally numb",
             "irritable, angry and/or aggressive",
             "risk-taking and/or self-harming behaviour",
             "super alert/on guard",
             "jumpy/easily startled",
             "difficulty concentrating",
             "hard to sleep",
         ])
     super().__init__(name, bases, classdict)
Exemple #10
0
 def __init__(
     cls: Type["Phq9"],
     name: str,
     bases: Tuple[Type, ...],
     classdict: Dict[str, Any],
 ) -> None:
     add_multiple_columns(
         cls,
         "q",
         1,
         cls.N_MAIN_QUESTIONS,
         minimum=0,
         maximum=3,
         comment_fmt="Q{n} ({s}) (0 not at all - 3 nearly every day)",
         comment_strings=[
             "anhedonia",
             "mood",
             "sleep",
             "energy",
             "appetite",
             "self-esteem/guilt",
             "concentration",
             "psychomotor",
             "death/self-harm",
         ],
     )
     super().__init__(name, bases, classdict)
Exemple #11
0
 def __init__(cls: Type['Phq15'], name: str, bases: Tuple[Type, ...],
              classdict: Dict[str, Any]) -> None:
     add_multiple_columns(cls,
                          "q",
                          1,
                          cls.NQUESTIONS,
                          minimum=0,
                          maximum=2,
                          comment_fmt="Q{n} ({s}) (0 not bothered at all - "
                          "2 bothered a lot)",
                          comment_strings=[
                              "stomach pain",
                              "back pain",
                              "limb/joint pain",
                              "F - menstrual",
                              "headaches",
                              "chest pain",
                              "dizziness",
                              "fainting",
                              "palpitations",
                              "breathless",
                              "sex",
                              "constipation/diarrhoea",
                              "nausea/indigestion",
                              "energy",
                              "sleep",
                          ])
     super().__init__(name, bases, classdict)
Exemple #12
0
    def __init__(
        cls: Type["Basdai"],
        name: str,
        bases: Tuple[Type, ...],
        classdict: Dict[str, Any],
    ) -> None:

        add_multiple_columns(
            cls,
            "q",
            1,
            cls.N_QUESTIONS,
            coltype=Float,
            minimum=0,
            maximum=10,
            comment_fmt="Q{n} - {s}",
            comment_strings=[
                "fatigue/tiredness 0-10 (none - very severe)",
                "AS neck, back, hip pain 0-10 (none - very severe)",
                "other joint pain/swelling 0-10 (none - very severe)",
                "discomfort from tender areas 0-10 (none - very severe)",
                "morning stiffness level 0-10 (none - very severe)",
                "morning stiffness duration 0-10 (none - 2 or more hours)",
            ],
        )

        super().__init__(name, bases, classdict)
Exemple #13
0
 def __init__(
     cls: Type["Zbi12"],
     name: str,
     bases: Tuple[Type, ...],
     classdict: Dict[str, Any],
 ) -> None:
     add_multiple_columns(
         cls,
         "q",
         1,
         cls.NQUESTIONS,
         minimum=cls.MIN_PER_Q,
         maximum=cls.MAX_PER_Q,
         comment_fmt="Q{n}, {s} (0-4, higher worse)",
         comment_strings=[
             "insufficient time for self",  # 1
             "stressed with other responsibilities",
             "angry",
             "other relationships affected",
             "strained",  # 5
             "health suffered",
             "insufficient privacy",
             "social life suffered",
             "lost control",
             "uncertain",  # 10
             "should do more",
             "could care better",
         ],
     )
     super().__init__(name, bases, classdict)
Exemple #14
0
 def __init__(
     cls: Type["Pdss"],
     name: str,
     bases: Tuple[Type, ...],
     classdict: Dict[str, Any],
 ) -> None:
     add_multiple_columns(
         cls,
         "q",
         1,
         cls.NQUESTIONS,
         minimum=cls.MIN_PER_Q,
         maximum=cls.MAX_PER_Q,
         comment_fmt="Q{n}, {s} (0-4, higher worse)",
         comment_strings=[
             "frequency",
             "distressing during",
             "anxiety about panic",
             "places or situations avoided",
             "activities avoided",
             "interference with responsibilities",
             "interference with social life",
         ],
     )
     super().__init__(name, bases, classdict)
 def __init__(
     cls: Type["Icd10Schizotypal"],
     name: str,
     bases: Tuple[Type, ...],
     classdict: Dict[str, Any],
 ) -> None:
     add_multiple_columns(
         cls,
         "a",
         1,
         cls.N_A,
         Boolean,
         pv=PV.BIT,
         comment_fmt="Criterion A({n}), {s}",
         comment_strings=[
             "inappropriate/constricted affect",
             "odd/eccentric/peculiar",
             "poor rapport/social withdrawal",
             "odd beliefs/magical thinking",
             "suspiciousness/paranoid ideas",
             "ruminations without inner resistance",
             "unusual perceptual experiences",
             "vague/circumstantial/metaphorical/over-elaborate/stereotyped thinking",  # noqa
             "occasional transient quasi-psychotic episodes",
         ],
     )
     super().__init__(name, bases, classdict)
Exemple #16
0
 def __init__(
     cls: Type["Wemwbs"],
     name: str,
     bases: Tuple[Type, ...],
     classdict: Dict[str, Any],
 ) -> None:
     add_multiple_columns(
         cls,
         "q",
         1,
         cls.N_QUESTIONS,
         minimum=1,
         maximum=5,
         comment_fmt="Q{n} ({s}) (1 none of the time - 5 all of the time)",
         comment_strings=[
             "optimistic",
             "useful",
             "relaxed",
             "interested in other people",
             "energy",
             "dealing with problems well",
             "thinking clearly",
             "feeling good about myself",
             "feeling close to others",
             "confident",
             "able to make up my own mind",
             "feeling loved",
             "interested in new things",
             "cheerful",
         ],
     )
     super().__init__(name, bases, classdict)
Exemple #17
0
 def __init__(cls: Type['Iesr'], name: str, bases: Tuple[Type, ...],
              classdict: Dict[str, Any]) -> None:
     add_multiple_columns(
         cls,
         "q",
         1,
         cls.NQUESTIONS,
         minimum=cls.MIN_SCORE,
         maximum=cls.MAX_SCORE,
         comment_fmt="Q{n}, {s} (0-4, higher worse)",
         comment_strings=[
             "reminder feelings",  # 1
             "sleep maintenance",
             "reminder thinking",
             "irritable",
             "avoided getting upset",  # 5
             "thought unwanted",
             "unreal",
             "avoided reminder",
             "mental pictures",
             "jumpy",  # 10
             "avoided thinking",
             "feelings undealt",
             "numb",
             "as if then",
             "sleep initiation",  # 15
             "waves of emotion",
             "tried forgetting",
             "concentration",
             "reminder physical",
             "dreams",  # 20
             "vigilant",
             "avoided talking",
         ])
     super().__init__(name, bases, classdict)
Exemple #18
0
    def __init__(
        cls: Type["Shaps"],
        name: str,
        bases: Tuple[Type, ...],
        classdict: Dict[str, Any],
    ) -> None:

        add_multiple_columns(
            cls,
            "q",
            1,
            cls.N_QUESTIONS,
            minimum=0,
            maximum=3,
            comment_fmt="Q{n} - {s}",
            comment_strings=[
                "television",
                "family",
                "hobbies",
                "meal",
                "bath",
                "flowers",
                "smiling",
                "smart",
                "book",
                "tea",
                "sunny",
                "landscape",
                "helping",
                "praise",
            ],
        )

        super().__init__(name, bases, classdict)
Exemple #19
0
 def __init__(cls: Type['Cesdr'], name: str, bases: Tuple[Type, ...],
              classdict: Dict[str, Any]) -> None:
     add_multiple_columns(cls,
                          "q",
                          1,
                          cls.N_QUESTIONS,
                          minimum=0,
                          maximum=4,
                          comment_fmt=("Q{n} ({s}) (0 not at all - "
                                       "4 nearly every day for two weeks)"),
                          comment_strings=[
                              "poor appetite",
                              "unshakable blues",
                              "poor concentration",
                              "depressed",
                              "sleep restless",
                              "sad",
                              "could not get going",
                              "nothing made me happy",
                              "felt a bad person",
                              "loss of interest",
                              "oversleeping",
                              "moving slowly",
                              "fidgety",
                              "wished were dead",
                              "wanted to hurt self",
                              "tiredness",
                              "disliked self",
                              "unintended weight loss",
                              "difficulty getting to sleep",
                              "lack of focus",
                          ])
     super().__init__(name, bases, classdict)
Exemple #20
0
 def __init__(
     cls: Type["Honos"],
     name: str,
     bases: Tuple[Type, ...],
     classdict: Dict[str, Any],
 ) -> None:
     add_multiple_columns(
         cls,
         "q",
         1,
         cls.NQUESTIONS,
         pv=PV_MAIN,
         comment_fmt="Q{n}, {s} (0-4, higher worse)",
         comment_strings=[
             "overactive/aggressive/disruptive/agitated",
             "deliberate self-harm",
             "problem-drinking/drug-taking",
             "cognitive problems",
             "physical illness/disability",
             "hallucinations/delusions",
             "depressed mood",
             "other mental/behavioural problem",
             "relationship problems",
             "activities of daily living",
             "problems with living conditions",
             "occupation/activities",
         ],
     )
     super().__init__(name, bases, classdict)
Exemple #21
0
 def __init__(
     cls: Type["Audit"],
     name: str,
     bases: Tuple[Type, ...],
     classdict: Dict[str, Any],
 ) -> None:
     add_multiple_columns(
         cls,
         "q",
         1,
         cls.NQUESTIONS,
         minimum=0,
         maximum=4,
         comment_fmt="Q{n}, {s} (0-4, higher worse)",
         comment_strings=[
             "how often drink",
             "drinks per day",
             "how often six drinks",
             "unable to stop",
             "unable to do what was expected",
             "eye opener",
             "guilt",
             "unable to remember",
             "injuries",
             "others concerned",
         ],
     )
     super().__init__(name, bases, classdict)
Exemple #22
0
 def __init__(
     cls: Type["Honos65"],
     name: str,
     bases: Tuple[Type, ...],
     classdict: Dict[str, Any],
 ) -> None:
     add_multiple_columns(
         cls,
         "q",
         1,
         cls.NQUESTIONS,
         pv=PV_MAIN,
         comment_fmt="Q{n}, {s} (0-4, higher worse)",
         comment_strings=[  # not exactly identical to HoNOS
             "behavioural disturbance",
             "deliberate self-harm",
             "problem drinking/drug-taking",
             "cognitive problems",
             "physical illness/disability",
             "hallucinations/delusions",
             "depressive symptoms",
             "other mental/behavioural problem",
             "relationship problems",
             "activities of daily living",
             "living conditions",
             "occupation/activities",
         ],
     )
     super().__init__(name, bases, classdict)
Exemple #23
0
 def __init__(
     cls: Type["CbiR"],
     name: str,
     bases: Tuple[Type, ...],
     classdict: Dict[str, Any],
 ) -> None:
     add_multiple_columns(
         cls,
         "frequency",
         1,
         cls.NQUESTIONS,
         comment_fmt="Frequency Q{n}, {s} (0-4, higher worse)",
         minimum=cls.MIN_SCORE,
         maximum=cls.MAX_SCORE,
         comment_strings=QUESTION_SNIPPETS,
     )
     add_multiple_columns(
         cls,
         "distress",
         1,
         cls.NQUESTIONS,
         comment_fmt="Distress Q{n}, {s} (0-4, higher worse)",
         minimum=cls.MIN_SCORE,
         maximum=cls.MAX_SCORE,
         comment_strings=QUESTION_SNIPPETS,
     )
     super().__init__(name, bases, classdict)
Exemple #24
0
 def __init__(
     cls: Type["HadsBase"],
     name: str,
     bases: Tuple[Type, ...],
     classdict: Dict[str, Any],
 ) -> None:
     add_multiple_columns(
         cls,
         "q",
         1,
         cls.NQUESTIONS,
         minimum=0,
         maximum=3,
         comment_fmt="Q{n}: {s} (0-3)",
         comment_strings=[
             "tense",
             "enjoy usual",
             "apprehensive",
             "laugh",
             "worry",
             "cheerful",
             "relaxed",
             "slow",
             "butterflies",
             "appearance",
             "restless",
             "anticipate",
             "panic",
             "book/TV/radio",
         ],
     )
     super().__init__(name, bases, classdict)
Exemple #25
0
 def __init__(
     cls: Type["Ciwa"],
     name: str,
     bases: Tuple[Type, ...],
     classdict: Dict[str, Any],
 ) -> None:
     add_multiple_columns(
         cls,
         "q",
         1,
         cls.NSCOREDQUESTIONS - 1,
         minimum=0,
         maximum=7,
         comment_fmt="Q{n}, {s} (0-7, higher worse)",
         comment_strings=[
             "nausea/vomiting",
             "tremor",
             "paroxysmal sweats",
             "anxiety",
             "agitation",
             "tactile disturbances",
             "auditory disturbances",
             "visual disturbances",
             "headache/fullness in head",
         ],
     )
     super().__init__(name, bases, classdict)
Exemple #26
0
    def __init__(cls: Type['Aims'], name: str, bases: Tuple[Type, ...],
                 classdict: Dict[str, Any]) -> None:
        add_multiple_columns(cls,
                             "q",
                             1,
                             cls.NSCOREDQUESTIONS,
                             minimum=0,
                             maximum=4,
                             comment_fmt="Q{n}, {s} (0 none - 4 severe)",
                             comment_strings=[
                                 "facial_expression", "lips", "jaw", "tongue",
                                 "upper_limbs", "lower_limbs", "trunk",
                                 "global", "incapacitation", "awareness"
                             ])
        add_multiple_columns(
            cls,
            "q",
            cls.NSCOREDQUESTIONS + 1,
            cls.NQUESTIONS,
            pv=PV.BIT,
            comment_fmt="Q{n}, {s} (not scored) (0 no, 1 yes)",
            comment_strings=[
                "problems_teeth_dentures", "usually_wears_dentures"
            ])

        super().__init__(name, bases, classdict)
Exemple #27
0
 def __init__(
     cls: Type["Cape42"],
     name: str,
     bases: Tuple[Type, ...],
     classdict: Dict[str, Any],
 ) -> None:
     add_multiple_columns(
         cls,
         "frequency",
         1,
         NQUESTIONS,
         minimum=MIN_SCORE_PER_Q,
         maximum=MAX_SCORE_PER_Q,
         comment_fmt=(
             "Q{n} ({s}): frequency? (1 never, 2 sometimes, 3 often, "
             "4 nearly always)"),
         comment_strings=QUESTION_SNIPPETS,
     )
     add_multiple_columns(
         cls,
         "distress",
         1,
         NQUESTIONS,
         minimum=MIN_SCORE_PER_Q,
         maximum=MAX_SCORE_PER_Q,
         comment_fmt=(
             "Q{n} ({s}): distress (1 not, 2 a bit, 3 quite, 4 very), if "
             "frequency > 1"),
         comment_strings=QUESTION_SNIPPETS,
     )
     super().__init__(name, bases, classdict)
Exemple #28
0
 def __init__(cls: Type['Gds15'], name: str, bases: Tuple[Type, ...],
              classdict: Dict[str, Any]) -> None:
     add_multiple_columns(
         cls,
         "q",
         1,
         cls.NQUESTIONS,
         String(length=1),
         pv=[NO_CHAR, YES_CHAR],
         comment_fmt="Q{n}, {s} ('Y' or 'N')",
         comment_strings=[
             "satisfied",
             "dropped activities",
             "life empty",
             "bored",
             "good spirits",  # 5
             "afraid",
             "happy",
             "helpless",
             "stay at home",
             "memory problems",  # 10
             "wonderful to be alive",
             "worthless",
             "full of energy",
             "hopeless",
             "others better off",  # 15
         ])
     super().__init__(name, bases, classdict)
Exemple #29
0
 def __init__(cls: Type['Smast'], name: str, bases: Tuple[Type, ...],
              classdict: Dict[str, Any]) -> None:
     add_multiple_columns(
         cls,
         "q",
         1,
         cls.NQUESTIONS,
         CharColType,
         pv=['Y', 'N'],
         comment_fmt="Q{n}: {s} (Y or N)",
         comment_strings=[
             "believe you are a normal drinker",
             "near relative worries/complains",
             "feel guilty",
             "friends/relative think you are a normal drinker",
             "stop when you want to",
             "ever attended Alcoholics Anonymous",
             "problems with close relative",
             "trouble at work",
             "neglected obligations for >=2 days",
             "sought help",
             "hospitalized",
             "arrested for drink-driving",
             "arrested for other drunken behaviour",
         ])
     super().__init__(name, bases, classdict)
Exemple #30
0
 def __init__(
     cls: Type["CgiSch"],
     name: str,
     bases: Tuple[Type, ...],
     classdict: Dict[str, Any],
 ) -> None:
     add_multiple_columns(
         cls,
         "severity",
         1,
         5,
         minimum=1,
         maximum=7,
         comment_fmt="Severity Q{n}, {s} (1-7, higher worse)",
         comment_strings=QUESTION_FRAGMENTS,
     )
     add_multiple_columns(
         cls,
         "change",
         1,
         5,
         pv=list(range(1, 7 + 1)) + [9],
         comment_fmt="Change Q{n}, {s} (1-7, higher worse, or 9 N/A)",
         comment_strings=QUESTION_FRAGMENTS,
     )
     super().__init__(name, bases, classdict)