vikramvasudevan commited on
Commit
4187049
·
verified ·
1 Parent(s): 9fe3a32

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. graph.py +3 -2
graph.py CHANGED
@@ -205,7 +205,7 @@ async def fn_standardize_current_report_node(state: SheamiState):
205
  if(not result.lab_results):
206
  state["messages"].append(f"⛔ OCR couldn't extract : {report.report_file_name}.")
207
  else:
208
- state["messages"].append(f"✅ Extracted data for repor : {report.report_file_name}.")
209
 
210
  state["standardized_reports"].append(result)
211
 
@@ -464,6 +464,7 @@ async def fn_interpreter_node(state: SheamiState):
464
  )
465
 
466
  # logger.info("llm_input = %s", llm_input)
 
467
 
468
  # 1. LLM narrative
469
  messages = [
@@ -471,7 +472,7 @@ async def fn_interpreter_node(state: SheamiState):
471
  content=(
472
  "Interpret the following medical trends and produce a clean, structured **HTML** report without any markdown formatting like backquotes etc. "
473
  "The report should have: "
474
- "1. A header with the report generation date."
475
  "2. The names of the reports used to summarize this information."
476
  "3. Patient summary (patient id, name, age, sex if available)"
477
  "4. Test window (mention the from and to dates)"
 
205
  if(not result.lab_results):
206
  state["messages"].append(f"⛔ OCR couldn't extract : {report.report_file_name}.")
207
  else:
208
+ state["messages"].append(f"✅ Extracted data for report : {report.report_file_name}.")
209
 
210
  state["standardized_reports"].append(result)
211
 
 
464
  )
465
 
466
  # logger.info("llm_input = %s", llm_input)
467
+ report_date = datetime.now().strftime("%d %B %Y") # e.g., "22 August 2025"
468
 
469
  # 1. LLM narrative
470
  messages = [
 
472
  content=(
473
  "Interpret the following medical trends and produce a clean, structured **HTML** report without any markdown formatting like backquotes etc. "
474
  "The report should have: "
475
+ f"1. A header that says report generated on : {report_date}."
476
  "2. The names of the reports used to summarize this information."
477
  "3. Patient summary (patient id, name, age, sex if available)"
478
  "4. Test window (mention the from and to dates)"