emvecchi commited on
Commit
fe603db
·
verified ·
1 Parent(s): 859226d

Update annotation_questions.py

Browse files
Files changed (1) hide show
  1. annotation_questions.py +47 -46
annotation_questions.py CHANGED
@@ -54,7 +54,8 @@ accuracy_contributor_labels = [
54
  "Self-criticism",
55
  "Blaming others",
56
  "Shows insight",
57
- "Emotional expressiveness"
 
58
  ]
59
 
60
  tone_behavior_labels = [
@@ -149,27 +150,27 @@ fields0: List[Field] = [
149
  title="Does the patient explicitly mention **symptoms** related to their psychological state?", other_params={'labels': yes_no_other_labels}, mandatory=True),
150
  Field(name="symptom_desc", type="text", title="If so, which symptoms?", mandatory=False),
151
  Field(name="stressor", type="y_n_radio",
152
- title="Does the patient talk about specific things that are adding psychological pressure or making their mental state worse?",
153
  other_params={'labels': yes_no_other_labels}, mandatory=True),
154
  Field(name="stressor_desc", type="text", title="If so, list stressors:", mandatory=False),
155
  Field(name="trigger", type="y_n_radio",
156
- 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?",
157
  other_params={'labels': yes_no_other_labels}, mandatory=True),
158
  Field(name="trigger_desc", type="text", title="If so, describe:", mandatory=False),
159
 
160
  ]),
161
  Field(type="container", title="##### Conversational Style", children=[
162
  Field(name="conciseness", type="likert_radio",
163
- title="Are the patient's responses concise?", other_params={"labels": degree_labels}, mandatory=True),
164
  # Field(name="symptom_desc1", type="text", title="If so, which symptoms?", mandatory=False),
165
  Field(name="colloquial", type="likert_radio",
166
- title="Does the patient use the colloquial speach?",
167
  other_params={"labels": degree_labels}, mandatory=True),
168
  Field(name="detailedness", type="likert_radio",
169
- title="Does the patient describe specific details to help the therapist understand the situation better?",
170
  other_params={"labels": degree_labels}, mandatory=True),
171
  Field(name="self-awareness", type="likert_radio",
172
- title="Does the patient show self-awareness and expresses thoughts in an organized manner?",
173
  other_params={"labels": degree_labels}, mandatory=True),
174
 
175
  ]),
@@ -280,18 +281,18 @@ fields1: List[Field] = [
280
  # ]),
281
  # FIDELITY:
282
  Field(type="container", title="##### Resemblance to real patients/Realism of patient portrayal", children=[
283
- Field(name="resemblence", type="y_n_radio",
284
- title="The simulated patient (SP) resembled a real patient", other_params={"labels": degree_labels}, mandatory=True),
285
- Field(name="reaction", type="y_n_radio",
286
- title="The SP reacted naturally during the consultation", other_params={"labels": degree_labels}, mandatory=True),
287
- Field(name="authenticity", type="y_n_radio",
288
- title="SP appears authentic", other_params={"labels": degree_labels}, mandatory=True),
289
- Field(name="questions", type="y_n_radio",
290
- title="SP answers questions in a natural manner", other_params={"labels": degree_labels}, mandatory=True),
291
- Field(name="physical_complaints", type="y_n_radio",
292
- title="SP simulates physical complaints realistically", other_params={"labels": degree_labels}, mandatory=True),
293
- Field(name="emotional_complaints", type="y_n_radio",
294
- title="The SP simulates psychological/emotional complaints realistically", other_params={"labels": degree_labels}, mandatory=True),
295
 
296
  ]),
297
 
@@ -299,44 +300,44 @@ fields1: List[Field] = [
299
  # ACCURACY
300
  Field(type="container", title="##### Overlap with role description", children=[
301
  # 1. Played well
302
- Field(name="played_well", type="y_n_radio",
303
- title="The SP played the role well", other_params={"labels": degree_labels}, mandatory=True),
304
- Field(type="expander", title="**Justification for 'played well'** *(expand)*", children=[
305
- Field(type="markdown", title="", other_params={"content": "Select traits that support your rating."}),
306
- ]),
307
- Field(name="played_well_just", type="accuracy_justification", title="", mandatory=False),
308
 
309
  # 2. Knew well
310
- Field(name="knew_well", type="y_n_radio",
311
- title="The SP knew his or her role well", other_params={"labels": degree_labels}, mandatory=True),
312
- Field(type="expander", title="**Justification for 'knew well'** *(expand)*", children=[
313
- Field(type="markdown", title="", other_params={"content": "Select traits that support your rating."}),
314
- ]),
315
- Field(name="knew_well_just", type="accuracy_justification", title="", mandatory=False),
316
 
317
  # 3. Withhold
318
- Field(name="withhold", type="y_n_radio",
319
  title="The SP seemed to withhold information unnecessarily", other_params={"labels": degree_labels}, mandatory=True),
320
- Field(type="expander", title="**Justification for 'withhold'** *(expand)*", children=[
321
- Field(type="markdown", title="", other_params={"content": "Select traits that support your rating."}),
322
- ]),
323
- Field(name="withhold_just", type="accuracy_justification", title="", mandatory=False),
324
 
325
  # 4. Stayed in role well
326
- Field(name="stayed_in_role_well", type="y_n_radio",
327
  title="The SP stayed in role very well during consultation", other_params={"labels": degree_labels}, mandatory=True),
328
- Field(type="expander", title="**Justification for 'stayed in role well'** *(expand)*", children=[
329
- Field(type="markdown", title="", other_params={"content": "Select traits that support your rating."}),
330
- ]),
331
- Field(name="stayed_in_role_well_just", type="accuracy_justification", title="", mandatory=False),
332
 
333
  # 5. Stayed in role always
334
- Field(name="stayed_in_role_always", type="y_n_radio",
335
  title="SP stays in his/her role all the time", other_params={"labels": degree_labels}, mandatory=True),
336
- Field(type="expander", title="**Justification for 'stayed in role always'** *(expand)*", children=[
337
- Field(type="markdown", title="", other_params={"content": "Select traits that support your rating."}),
338
- ]),
339
- Field(name="stayed_in_role_always_just", type="accuracy_justification", title="", mandatory=False),
340
  ]),
341
 
342
  ####--- END EDIT MARKER
 
54
  "Self-criticism",
55
  "Blaming others",
56
  "Shows insight",
57
+ "Emotional expressiveness",
58
+ "Other (please specify)"
59
  ]
60
 
61
  tone_behavior_labels = [
 
150
  title="Does the patient explicitly mention **symptoms** related to their psychological state?", other_params={'labels': yes_no_other_labels}, mandatory=True),
151
  Field(name="symptom_desc", type="text", title="If so, which symptoms?", mandatory=False),
152
  Field(name="stressor", type="y_n_radio",
153
+ title="Does the patient talk about specific things that are adding **psychological pressure** or making their mental state worse?",
154
  other_params={'labels': yes_no_other_labels}, mandatory=True),
155
  Field(name="stressor_desc", type="text", title="If so, list stressors:", mandatory=False),
156
  Field(name="trigger", type="y_n_radio",
157
+ 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?",
158
  other_params={'labels': yes_no_other_labels}, mandatory=True),
159
  Field(name="trigger_desc", type="text", title="If so, describe:", mandatory=False),
160
 
161
  ]),
162
  Field(type="container", title="##### Conversational Style", children=[
163
  Field(name="conciseness", type="likert_radio",
164
+ title="Are the patient's responses **concise**?", other_params={"labels": degree_labels}, mandatory=True),
165
  # Field(name="symptom_desc1", type="text", title="If so, which symptoms?", mandatory=False),
166
  Field(name="colloquial", type="likert_radio",
167
+ title="Does the patient use the **colloquial** speach?",
168
  other_params={"labels": degree_labels}, mandatory=True),
169
  Field(name="detailedness", type="likert_radio",
170
+ title="Does the patient describe **specific details** to help the therapist understand the situation better?",
171
  other_params={"labels": degree_labels}, mandatory=True),
172
  Field(name="self-awareness", type="likert_radio",
173
+ title="Does the patient show **self-awareness** and expresses thoughts in an organized manner?",
174
  other_params={"labels": degree_labels}, mandatory=True),
175
 
176
  ]),
 
281
  # ]),
282
  # FIDELITY:
283
  Field(type="container", title="##### Resemblance to real patients/Realism of patient portrayal", children=[
284
+ Field(name="resemblence", type="likert_radio",
285
+ title="The simulated patient resembles a **real patient**", other_params={"labels": degree_labels}, mandatory=True),
286
+ Field(name="reaction", type="likert_radio",
287
+ title="The simulated patient **reacts naturally** during the consultation", other_params={"labels": degree_labels}, mandatory=True),
288
+ Field(name="authenticity", type="likert_radio",
289
+ title="The simulated patient appears **authentic**.", other_params={"labels": degree_labels}, mandatory=True),
290
+ #Field(name="questions", type="likert_radio",
291
+ # title="The simulated patient answers questions in a **natural manner**.", other_params={"labels": degree_labels}, mandatory=True),
292
+ Field(name="physical_complaints", type="likert_radio",
293
+ title="The simulated patient portrays **physical complaints** realistically.", other_params={"labels": degree_labels}, mandatory=True),
294
+ Field(name="emotional_complaints", type="likert_radio",
295
+ title="The simulated patient portrays **psychological/emotional complaints** realistically", other_params={"labels": degree_labels}, mandatory=True),
296
 
297
  ]),
298
 
 
300
  # ACCURACY
301
  Field(type="container", title="##### Overlap with role description", children=[
302
  # 1. Played well
303
+ Field(name="played_well", type="likert_radio",
304
+ title="The simulated patient portrayed the role descriptions well.", other_params={"labels": degree_labels}, mandatory=True),
305
+ Field(name="played_well_properties", type="multiselect",
306
+ title="Select traits that support your rating *(Multiple selection possible)*",
307
+ other_params={'choices': accuracy_contributor_labels}, mandatory=True, following_mandatory_values=['Other (please specify)']),
308
+ Field(name="played_well_properties_other", type="text", title="*If Other, please specify:*", mandatory=False),
309
 
310
  # 2. Knew well
311
+ Field(name="knew_well", type="likert_radio",
312
+ title="The simulated patient knew his or her role well", other_params={"labels": degree_labels}, mandatory=True),
313
+ Field(name="knew_well_properties", type="multiselect",
314
+ title="Select traits that support your rating *(Multiple selection possible)*",
315
+ other_params={'choices': accuracy_contributor_labels}, mandatory=True, following_mandatory_values=['Other (please specify)']),
316
+ Field(name="knew_well_properties_other", type="text", title="*If Other, please specify:*", mandatory=False),
317
 
318
  # 3. Withhold
319
+ Field(name="withhold", type="likert_radio",
320
  title="The SP seemed to withhold information unnecessarily", other_params={"labels": degree_labels}, mandatory=True),
321
+ Field(name="withhold_properties", type="multiselect",
322
+ title="Select traits that support your rating *(Multiple selection possible)*",
323
+ other_params={'choices': accuracy_contributor_labels}, mandatory=True, following_mandatory_values=['Other (please specify)']),
324
+ Field(name="withhold_properties_other", type="text", title="*If Other, please specify:*", mandatory=False),
325
 
326
  # 4. Stayed in role well
327
+ Field(name="stayed_in_role_well", type="likert_radio",
328
  title="The SP stayed in role very well during consultation", other_params={"labels": degree_labels}, mandatory=True),
329
+ Field(name="stayed_in_role_well_properties", type="multiselect",
330
+ title="Select traits that support your rating *(Multiple selection possible)*",
331
+ other_params={'choices': accuracy_contributor_labels}, mandatory=True, following_mandatory_values=['Other (please specify)']),
332
+ Field(name="stayed_in_role_well_other", type="text", title="*If Other, please specify:*", mandatory=False),
333
 
334
  # 5. Stayed in role always
335
+ Field(name="stayed_in_role_always", type="likert_radio",
336
  title="SP stays in his/her role all the time", other_params={"labels": degree_labels}, mandatory=True),
337
+ Field(name="stayed_in_role_always_properties", type="multiselect",
338
+ title="Select traits that support your rating *(Multiple selection possible)*",
339
+ other_params={'choices': accuracy_contributor_labels}, mandatory=True, following_mandatory_values=['Other (please specify)']),
340
+ Field(name="stayed_in_role_always_other", type="text", title="*If Other, please specify:*", mandatory=False),
341
  ]),
342
 
343
  ####--- END EDIT MARKER