Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -51,6 +51,7 @@ COLS_TO_SAVE = ['dialogue_id','dialogue_name','generatedPatient']
|
|
| 51 |
|
| 52 |
agreement_labels = ['strongly disagree', 'disagree', 'neither agree no disagree', 'agree', 'strongly agree']
|
| 53 |
mentioned_y_n = ['yes, explicitly', 'yes, implicitly', 'no', 'not sure', 'other']
|
|
|
|
| 54 |
quality_labels = ['very poor', 'poor', 'acceptable', 'good', 'very good']
|
| 55 |
priority_labels = ['not a priority', 'low priority', 'neutral', 'moderate priority', 'high priority']
|
| 56 |
yes_no_labels = ['no','yes']
|
|
@@ -145,19 +146,18 @@ fields: List[Field] = [
|
|
| 145 |
# Field(type="expander", title="**Patient Role Description:** *(expand)*", children=[
|
| 146 |
# Field(name="role_name", type="input_col", title=""),
|
| 147 |
# ]),
|
| 148 |
-
Field(name="
|
| 149 |
-
title="
|
| 150 |
-
other_params={"labels":
|
| 151 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 152 |
Field(name="fidelity", type="likert_radio",
|
| 153 |
-
title="
|
| 154 |
-
other_params={"labels":
|
| 155 |
-
mandatory=True, following_mandatory_values=[1]),
|
| 156 |
-
Field(name="diagnosis", type="likert_radio",
|
| 157 |
-
title="Is there mention of a specific [possible] clinical diagnosis?", other_params={'labels': mentioned_y_n}, mandatory=True),
|
| 158 |
-
Field(name="stressor", type="likert_radio",
|
| 159 |
-
title="Does the patient mention sources of psychological pressure that contribute to the development or worsening of the patient's state?",
|
| 160 |
-
other_params={'labels': mentioned_y_n}, mandatory=True),
|
| 161 |
]),
|
| 162 |
|
| 163 |
Field(type="container", title="#### Interpersonal therapeutic competence", children=[
|
|
|
|
| 51 |
|
| 52 |
agreement_labels = ['strongly disagree', 'disagree', 'neither agree no disagree', 'agree', 'strongly agree']
|
| 53 |
mentioned_y_n = ['yes, explicitly', 'yes, implicitly', 'no', 'not sure', 'other']
|
| 54 |
+
degree_labels = ['Not at all', 'Slightly', 'Moderately', 'Very much', 'Extremely']
|
| 55 |
quality_labels = ['very poor', 'poor', 'acceptable', 'good', 'very good']
|
| 56 |
priority_labels = ['not a priority', 'low priority', 'neutral', 'moderate priority', 'high priority']
|
| 57 |
yes_no_labels = ['no','yes']
|
|
|
|
| 146 |
# Field(type="expander", title="**Patient Role Description:** *(expand)*", children=[
|
| 147 |
# Field(name="role_name", type="input_col", title=""),
|
| 148 |
# ]),
|
| 149 |
+
Field(name="emotion", type="likert_radio",
|
| 150 |
+
title="To what extent did the simulated patient’s emotional expressions (e.g., frustration, sadness, guardedness) align with those expected for this role?",
|
| 151 |
+
other_params={"labels": degree_labels}, mandatory=True),
|
| 152 |
+
Field(name="conversationalStyle", type="likert_radio",
|
| 153 |
+
title="How well did the patient consistently exhibit the conversational style they were assigned, and did this feel realistic compared to actual patients with this style?",
|
| 154 |
+
other_params={"labels": degree_labels}, mandatory=True),
|
| 155 |
+
Field(name="maladaptive", type="likert_radio",
|
| 156 |
+
title="How accurately did the patient’s statements reflect distorted thoughts consistent with the underlying cognitive model?",
|
| 157 |
+
other_params={"labels": degree_labels}, mandatory=True),
|
| 158 |
Field(name="fidelity", type="likert_radio",
|
| 159 |
+
title="Overall, how closely did the patient reflect real patients in terms of realism, variability, and challenge during the session?",
|
| 160 |
+
other_params={"labels": degree_labels}, mandatory=True),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 161 |
]),
|
| 162 |
|
| 163 |
Field(type="container", title="#### Interpersonal therapeutic competence", children=[
|