Spaces:
Sleeping
Sleeping
Upload engine.py
Browse files
engine.py
CHANGED
|
@@ -746,21 +746,22 @@ def process_question(question):
|
|
| 746 |
user_q=question,
|
| 747 |
error="Unsupported question"
|
| 748 |
)
|
| 749 |
-
|
| 750 |
return {
|
| 751 |
"status": "ok",
|
| 752 |
"message": (
|
| 753 |
"That information isn’t available in the system.\n\n"
|
| 754 |
"You can ask about:\n"
|
| 755 |
"• Patients\n"
|
| 756 |
-
"• Visits\n"
|
| 757 |
-
"•
|
| 758 |
-
"•
|
|
|
|
| 759 |
),
|
| 760 |
"data": []
|
| 761 |
}
|
| 762 |
|
| 763 |
|
|
|
|
| 764 |
# ----------------------------------
|
| 765 |
# Generate SQL
|
| 766 |
# ----------------------------------
|
|
|
|
| 746 |
user_q=question,
|
| 747 |
error="Unsupported question"
|
| 748 |
)
|
|
|
|
| 749 |
return {
|
| 750 |
"status": "ok",
|
| 751 |
"message": (
|
| 752 |
"That information isn’t available in the system.\n\n"
|
| 753 |
"You can ask about:\n"
|
| 754 |
"• Patients\n"
|
| 755 |
+
"• Admissions / Visits\n"
|
| 756 |
+
"• ICU stays\n"
|
| 757 |
+
"• Diagnoses / Conditions\n"
|
| 758 |
+
"• Vitals & lab measurements"
|
| 759 |
),
|
| 760 |
"data": []
|
| 761 |
}
|
| 762 |
|
| 763 |
|
| 764 |
+
|
| 765 |
# ----------------------------------
|
| 766 |
# Generate SQL
|
| 767 |
# ----------------------------------
|