Ali2206 commited on
Commit
69db116
·
verified ·
1 Parent(s): 0aec591

Update api/routes.py

Browse files
Files changed (1) hide show
  1. api/routes.py +1 -1
api/routes.py CHANGED
@@ -183,7 +183,7 @@ async def fetch_and_store_patients_from_fhir():
183
  if n.get("text"):
184
  notes.append(n["text"])
185
 
186
- if not notes:
187
  continue # ✅ Skip if no notes
188
 
189
  valid_patients.append({
 
183
  if n.get("text"):
184
  notes.append(n["text"])
185
 
186
+ if not encounter_entries:
187
  continue # ✅ Skip if no notes
188
 
189
  valid_patients.append({