Ali2206 commited on
Commit
27a8b0f
·
verified ·
1 Parent(s): 7e654ed

Update api/routes.py

Browse files
Files changed (1) hide show
  1. api/routes.py +4 -4
api/routes.py CHANGED
@@ -343,7 +343,7 @@ async def import_patients(
343
  errors.append(f"No valid patient data in {file_path}")
344
 
345
  except Exception as e:
346
- 流量 logger.error(f"Error processing {file_path}: {str(e)}")
347
  errors.append(f"Error in {file_path}: {str(e)}")
348
  continue
349
 
@@ -417,7 +417,7 @@ async def list_patients(
417
  query[f"notes.{min_notes-1}"] = {"$exists": True}
418
 
419
  if min_conditions > 0:
420
- query[f"conditions.{min_conditions-1}"] = {"$exists": True}
421
 
422
  # Removed $slice to return full arrays for the frontend
423
  projection = {
@@ -731,8 +731,8 @@ $encounters
731
  \end{document}
732
  """)
733
 
734
- # Set the generated_on date to 04:51 PM CET, May 16, 2025
735
- generated_on = datetime.strptime("2025-05-16 16:51:00+01:00", "%Y-%m-%d %H:%M:%S%z").strftime("%A, %B %d, %Y at %I:%M %p")
736
 
737
  latex_filled = latex_template.substitute(
738
  generated_on=generated_on,
 
343
  errors.append(f"No valid patient data in {file_path}")
344
 
345
  except Exception as e:
346
+ logger.error(f"Error processing {file_path}: {str(e)}")
347
  errors.append(f"Error in {file_path}: {str(e)}")
348
  continue
349
 
 
417
  query[f"notes.{min_notes-1}"] = {"$exists": True}
418
 
419
  if min_conditions > 0:
420
+ query[f"conditions.{min_conditions-1}"] = {"$exists": True"}
421
 
422
  # Removed $slice to return full arrays for the frontend
423
  projection = {
 
731
  \end{document}
732
  """)
733
 
734
+ # Set the generated_on date to 04:55 PM CET, May 16, 2025
735
+ generated_on = datetime.strptime("2025-05-16 16:55:00+01:00", "%Y-%m-%d %H:%M:%S%z").strftime("%A, %B %d, %Y at %I:%M %p")
736
 
737
  latex_filled = latex_template.substitute(
738
  generated_on=generated_on,