We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f746b29 commit 1100a9cCopy full SHA for 1100a9c
routers/patients.py
@@ -98,7 +98,7 @@ async def filter_patients(
98
query = Patient.find(Patient.doctor_id == current_doctor)
99
100
if disease_name:
101
- query = query.find({"diagnoses_history.disease": disease_name})
+ query = query.find({"diagnoses_history.disease": {"$regex": disease_name, "$options": "i"}})
102
103
if condition:
104
query = query.find({"diagnoses_history.condition": condition})
0 commit comments