Spaces:
Sleeping
Sleeping
Update annotation_questions.py
#2
by
Varvara-Gumirova
- opened
- annotation_questions.py +70 -23
annotation_questions.py
CHANGED
|
@@ -96,33 +96,80 @@ fields0: List[Field] = [
|
|
| 96 |
title="Does the patient describe a particular event or circumstance (e.g., an argument, job loss, injury, crisis) that led them to come to this appointment?",
|
| 97 |
other_params={'labels': yes_no_other_labels}, mandatory=True),
|
| 98 |
Field(name="trigger_desc", type="text", title="If so, describe:", mandatory=False),
|
|
|
|
| 99 |
]),
|
| 100 |
Field(type="container", title="##### Conversational Style", children=[
|
| 101 |
-
Field(name="
|
| 102 |
-
title="
|
| 103 |
-
Field(name="symptom_desc1", type="text", title="If so, which symptoms?", mandatory=False),
|
| 104 |
-
Field(name="
|
| 105 |
-
title="Does the patient
|
| 106 |
-
other_params={
|
| 107 |
-
Field(name="
|
| 108 |
-
|
| 109 |
-
|
| 110 |
-
|
| 111 |
-
|
|
|
|
|
|
|
| 112 |
]),
|
| 113 |
Field(type="container", title="##### Behavioral & Pragmatic Properties", children=[
|
| 114 |
-
Field(name="
|
| 115 |
-
title="Does the patient
|
| 116 |
-
|
| 117 |
-
Field(name="
|
| 118 |
-
|
| 119 |
-
|
| 120 |
-
Field(name="
|
| 121 |
-
|
| 122 |
-
|
| 123 |
-
|
| 124 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 125 |
]),
|
|
|
|
| 126 |
|
| 127 |
####--- END EDIT MARKER
|
| 128 |
]
|
|
@@ -250,7 +297,7 @@ SHOW_VALIDATION_ERROR_MESSAGE = True
|
|
| 250 |
# Optional convenience functions, if you really want to "call" them:
|
| 251 |
def get_steps() -> List[List[Field]]:
|
| 252 |
"""Return the list of pages to show."""
|
| 253 |
-
return STEPS
|
| 254 |
|
| 255 |
def get_input_defaults() -> dict:
|
| 256 |
return INPUT_FIELD_DEFAULT_VALUES
|
|
|
|
| 96 |
title="Does the patient describe a particular event or circumstance (e.g., an argument, job loss, injury, crisis) that led them to come to this appointment?",
|
| 97 |
other_params={'labels': yes_no_other_labels}, mandatory=True),
|
| 98 |
Field(name="trigger_desc", type="text", title="If so, describe:", mandatory=False),
|
| 99 |
+
|
| 100 |
]),
|
| 101 |
Field(type="container", title="##### Conversational Style", children=[
|
| 102 |
+
Field(name="conciseness", type="likert_radio",
|
| 103 |
+
title="Are the patient's responses concise? To what degree?", other_params={"labels": degree_labels}, mandatory=True),
|
| 104 |
+
# Field(name="symptom_desc1", type="text", title="If so, which symptoms?", mandatory=False),
|
| 105 |
+
Field(name="colloquial", type="likert_radio",
|
| 106 |
+
title="Does the patient use the colloquial speach? To what degree?",
|
| 107 |
+
other_params={"labels": degree_labels}, mandatory=True),
|
| 108 |
+
Field(name="detailedness", type="likert_radio",
|
| 109 |
+
title="Does the patient describe specific details to help the therapist understand the situation better? To what degree?",
|
| 110 |
+
other_params={"labels": degree_labels}, mandatory=True),
|
| 111 |
+
Field(name="self-awareness", type="likert_radio",
|
| 112 |
+
title="Does the patient show low self-awareness and expresses thoughts in an disorganized way? To what degree?",
|
| 113 |
+
other_params={"labels": degree_labels}, mandatory=True),
|
| 114 |
+
|
| 115 |
]),
|
| 116 |
Field(type="container", title="##### Behavioral & Pragmatic Properties", children=[
|
| 117 |
+
Field(name="openness", type="likert_radio",
|
| 118 |
+
title="Does the patient appear willing to engage in the therapeutic process and work on their concerns? To what degree?",
|
| 119 |
+
other_params={"labels": degree_labels}, mandatory=True),
|
| 120 |
+
Field(name="sarcasm", type="likert_radio",
|
| 121 |
+
title="Does the patient use sarcasm in their responses to the therapist? To what degree?",
|
| 122 |
+
other_params={"labels": degree_labels}, mandatory=True),
|
| 123 |
+
Field(name="agression", type="likert_radio",
|
| 124 |
+
title="Does the patient express verbal aggression (e.g., hostile tone, blaming, threatening language)? To what degree?",
|
| 125 |
+
other_params={"labels": degree_labels}, mandatory=True),
|
| 126 |
+
Field(name="controlling", type="likert_radio",
|
| 127 |
+
title="Does the patient attempt to control the direction, pace, or content of the session (e.g., interrupting, redirecting, dismissing the therapist’s input)? To what degree?",
|
| 128 |
+
other_params={"labels": degree_labels}, mandatory=True),
|
| 129 |
+
Field(name="defiant", type="likert_radio",
|
| 130 |
+
title="Does the patient openly resist, challenge, or reject the therapist’s suggestions, interpretations, or authority? To what degree?",
|
| 131 |
+
other_params={"labels": degree_labels}, mandatory=True),
|
| 132 |
+
Field(name="aviodant", type="likert_radio",
|
| 133 |
+
title="Does the patient avoid discussing certain topics, emotions, or questions? To what degree?",
|
| 134 |
+
other_params={"labels": degree_labels}, mandatory=True),
|
| 135 |
+
Field(name="hesitant", type="likert_radio",
|
| 136 |
+
title="Does the patient show any signs of mistrust and hesitation with the idea of seeking help? To what degree?",
|
| 137 |
+
other_params={"labels": degree_labels}, mandatory=True),
|
| 138 |
+
Field(name="self-awareness", type="likert_radio",
|
| 139 |
+
title="Is the patient more focused on seeking out solutions rather than just sharing thoughts and feelings? To what degree?",
|
| 140 |
+
other_params={"labels": degree_labels}, mandatory=True),
|
| 141 |
+
Field(name="humor", type="likert_radio",
|
| 142 |
+
title="Does the patient use humor, jokes, or lighthearted comments (not sarcasm) to communicate or cope? To what degree?",
|
| 143 |
+
other_params={"labels": degree_labels}, mandatory=True),
|
| 144 |
+
Field(name="empathetic", type="likert_radio",
|
| 145 |
+
title="Does the patient show understanding, concern, or emotional attunement—either toward the therapist or others mentioned in the session? To what degree?",
|
| 146 |
+
other_params={"labels": degree_labels}, mandatory=True),
|
| 147 |
+
Field(name="distracted", type="likert_radio",
|
| 148 |
+
title="Does the patient seem mentally disengaged, lose track of the conversation, or struggle to stay focused? To what degree?",
|
| 149 |
+
other_params={"labels": degree_labels}, mandatory=True),
|
| 150 |
+
Field(name="responsive", type="likert_radio",
|
| 151 |
+
title="Does the patient directly address the therapist’s questions, comments, or interventions in a relevant way? To what degree?",
|
| 152 |
+
other_params={"labels": degree_labels}, mandatory=True),
|
| 153 |
+
Field(name="engaged", type="likert_radio",
|
| 154 |
+
title="Does the patient appear actively engaged when the therapist is speaking? To what degree?",
|
| 155 |
+
other_params={"labels": degree_labels}, mandatory=True),
|
| 156 |
+
Field(name="defensive", type="likert_radio",
|
| 157 |
+
title="Does the patient react protectively or justify themselves when faced with feedback, interpretations, or questions about their behavior? To what degree?",
|
| 158 |
+
other_params={"labels": degree_labels}, mandatory=True),
|
| 159 |
+
Field(name="self-critical", type="likert_radio",
|
| 160 |
+
title="Does the patient make negative or harsh judgments about themselves (e.g., “I’m worthless,” “It’s all my fault”)? To what degree?",
|
| 161 |
+
other_params={"labels": degree_labels}, mandatory=True),
|
| 162 |
+
Field(name="blaming", type="likert_radio",
|
| 163 |
+
title="Does the patient attribute their problems or emotions to other people or external circumstances? To what degree?",
|
| 164 |
+
other_params={"labels": degree_labels}, mandatory=True),
|
| 165 |
+
Field(name="insightful", type="likert_radio",
|
| 166 |
+
title="Does the patient demonstrate awareness of their own patterns, motivations, or emotions? To what degree?",
|
| 167 |
+
other_params={"labels": degree_labels}, mandatory=True),
|
| 168 |
+
Field(name="expressive", type="likert_radio",
|
| 169 |
+
title="Does the patient openly convey emotions? To what degree?",
|
| 170 |
+
other_params={"labels": degree_labels}, mandatory=True),
|
| 171 |
]),
|
| 172 |
+
|
| 173 |
|
| 174 |
####--- END EDIT MARKER
|
| 175 |
]
|
|
|
|
| 297 |
# Optional convenience functions, if you really want to "call" them:
|
| 298 |
def get_steps() -> List[List[Field]]:
|
| 299 |
"""Return the list of pages to show."""
|
| 300 |
+
return STEPS
|
| 301 |
|
| 302 |
def get_input_defaults() -> dict:
|
| 303 |
return INPUT_FIELD_DEFAULT_VALUES
|