sujataprakashdatycs commited on
Commit
de338d1
·
verified ·
1 Parent(s): f57b391

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -14
app.py CHANGED
@@ -14,20 +14,6 @@ APP_TITLE = "Risk Adjustment (HCC Chart Validation)"
14
  CSV_PATH = "hcc_mapping.csv"
15
  SAMPLE_PDF = "sample_patient_chart.pdf"
16
 
17
- # Create a dummy sample PDF for testing if it doesn't exist
18
- if not os.path.exists(SAMPLE_PDF):
19
- try:
20
- from fpdf import FPDF
21
- pdf = FPDF()
22
- pdf.add_page()
23
- pdf.set_font("Arial", size=12)
24
- pdf.cell(200, 10, txt="Patient Chart: John Doe", ln=1, align="C")
25
- pdf.ln(10)
26
- pdf.multi_cell(0, 10, txt="Medical History:\n- Patient presents with symptoms of fatigue and increased thirst.\n- Lab results indicate high blood sugar levels.\n\nDiagnosis:\n- Type 2 diabetes mellitus with diabetic nephropathy (E11.22).\n\nPlan:\n- Monitor blood glucose levels daily.\n- Prescribed Metformin 500mg twice daily (Treat).\n- Evaluate kidney function every 3 months (Evaluate).")
27
- pdf.output(SAMPLE_PDF)
28
- except ImportError:
29
- print(f"Please install fpdf ('pip install fpdf') to create a sample PDF, or provide your own '{SAMPLE_PDF}'.")
30
- with open(SAMPLE_PDF, 'w') as f: f.write('')
31
 
32
 
33
  # ---------- Helper: JSON → Markdown (Unchanged) ----------
 
14
  CSV_PATH = "hcc_mapping.csv"
15
  SAMPLE_PDF = "sample_patient_chart.pdf"
16
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
17
 
18
 
19
  # ---------- Helper: JSON → Markdown (Unchanged) ----------