Spaces:
Runtime error
Runtime error
Update endpoints.py
Browse files- endpoints.py +10 -13
endpoints.py
CHANGED
@@ -89,19 +89,16 @@ def create_router(agent, logger, patients_collection, analysis_collection, users
|
|
89 |
},
|
90 |
"summary": analysis.get("summary", ""),
|
91 |
"recommendations": analysis.get("recommendations", []),
|
92 |
-
|
93 |
-
|
94 |
-
|
95 |
-
|
96 |
-
|
97 |
-
|
98 |
-
|
99 |
-
|
100 |
-
|
101 |
-
|
102 |
-
"insurance_policy_number": patient.get("insurance_policy_number"),
|
103 |
-
"emergency_contact_name": patient.get("emergency_contact_name"),
|
104 |
-
"emergency_contact_phone": patient.get("emergency_contact_phone")
|
105 |
}
|
106 |
enriched_results.append(formatted_analysis)
|
107 |
|
|
|
89 |
},
|
90 |
"summary": analysis.get("summary", ""),
|
91 |
"recommendations": analysis.get("recommendations", []),
|
92 |
+
# Add patient demographic information for modal display
|
93 |
+
"date_of_birth": patient.get("date_of_birth"),
|
94 |
+
"gender": patient.get("gender"),
|
95 |
+
"city": patient.get("city"),
|
96 |
+
"state": patient.get("state"),
|
97 |
+
"address": patient.get("address"),
|
98 |
+
"postal_code": patient.get("postal_code"),
|
99 |
+
"country": patient.get("country"),
|
100 |
+
"marital_status": patient.get("marital_status"),
|
101 |
+
"language": patient.get("language")
|
|
|
|
|
|
|
102 |
}
|
103 |
enriched_results.append(formatted_analysis)
|
104 |
|