Spaces:
Sleeping
Sleeping
Update api/routes.py
Browse files- 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
|
| 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({
|