Update Inamdar Hospital Diabetic Dost

This commit is contained in:
Sanika Gurav
2026-10-16 16:13:15 +05:30
parent 100e36cc84
commit a078f3e51e
14 changed files with 65 additions and 62 deletions
@@ -133,7 +133,7 @@ def generate_pdf(summary: Dict[str, Any]) -> bytes:
header_data = [
[
Paragraph("<b>🏥 Sancheti Hospital</b>", ps("Hdr1", fontName="Helvetica-Bold", fontSize=11, textColor=colors.white)),
Paragraph("<b>🏥 Inamdar Hospital</b>", ps("Hdr1", fontName="Helvetica-Bold", fontSize=11, textColor=colors.white)),
Paragraph(f"<b>Session:</b> {session_id}<br/><b>Generated:</b> {gen_at}", ps("Hdr2", fontName="Helvetica", fontSize=7.5, textColor=colors.HexColor("#cbd5e1"), alignment=TA_RIGHT)),
]
]
@@ -302,7 +302,7 @@ def generate_pdf(summary: Dict[str, Any]) -> bytes:
story.append(Paragraph(
"⚠️ DISCLAIMER: This is an AI-assisted pre-screening summary generated by Diabetes Dost. "
"It is NOT a medical diagnosis. All findings must be reviewed and confirmed by a qualified physician. "
"Sancheti Hospital — ॥ आरोग्यक्षेमं वहाम्यहम् ॥",
"Inamdar Hospital — ॥ आरोग्यक्षेमं वहाम्यहम् ॥",
s_disclaimer
))
@@ -125,26 +125,26 @@ FOLLOWUP_TEMPLATES = {
"label": "Follow-up अपॉइंटमेंट रिमाइंडर",
"icon": "📅",
"mr": (
"🏥 *दीनानाथ मंगेशकर हॉस्पिटल — Diabetes Dost*\n\n"
"🏥 *इनामदार हॉस्पिटल — Diabetes Dost*\n\n"
"नमस्कार {name} जी! 🙏\n\n"
"📅 *Follow-up भेटीची आठवण*\n\n"
"तुमची Diabetes Dost AI pre-screening झाली आहे.\n"
"आता डॉक्टरांशी प्रत्यक्ष भेट घेणे महत्त्वाचे आहे!\n\n"
"🏥 *Sancheti Hospital OPD — Diabetes Care*\n"
"📞 अपॉइंटमेंट बुक करा: 020-28999999\n"
"🌐 ऑनलाईन: www.sanchetihospital.org\n\n"
"🏥 *Inamdar Hospital OPD — Diabetes Care*\n"
"📞 अपॉइंटमेंट बुक करा: 020-66811200\n"
"🌐 ऑनलाईन: www.inamdarhospital.com\n\n"
"Session ID: `{session_id}`\n\n"
"⚕️ हा अहवाल डॉक्टरांना दाखवा."
),
"hi": (
"🏥 *संचेती हॉस्पिटल — Diabetes Dost*\n\n"
"🏥 *इनामदार हॉस्पिटल — Diabetes Dost*\n\n"
"नमस्ते {name} जी! 🙏\n\n"
"📅 *Follow-up अपॉइंटमेंट रिमाइंडर*\n\n"
"आपकी Diabetes Dost AI pre-screening हो गई है।\n"
"अब डॉक्टर से मिलना जरूरी है!\n\n"
"🏥 *Sancheti Hospital OPD — Diabetes Care*\n"
"📞 अपॉइंटमेंट: 020-28999999\n"
"🌐 Online: www.sanchetihospital.org\n\n"
"🏥 *Inamdar Hospital OPD — Diabetes Care*\n"
"📞 अपॉइंटमेंट: 020-66811200\n"
"🌐 Online: www.inamdarhospital.com\n\n"
"Session ID: `{session_id}`\n\n"
"⚕️ यह रिपोर्ट डॉक्टर को दिखाएं।"
)
@@ -287,17 +287,17 @@ class WhatsAppDeliveryService:
f"📄 *अहवाल डाउनलोड करा:*\n"
f"Session ID: `{session_id}`\n\n"
f"⚠️ हा अहवाल AI-आधारित आहे. कृपया डॉक्टरांचा सल्ला घ्या.\n"
f"📞 संचेती हॉस्पिटल हेल्पलाईन: 020-28999999"
f"📞 इनामदार हॉस्पिटल हेल्पलाईन: 020-66811200"
)
else:
message_body = (
f"🏥 *Sancheti Hospital — Diabetes Dost*\n\n"
f"🏥 *Inamdar Hospital — Diabetes Dost*\n\n"
f"Hello {patient_name}! 🙏\n"
f"Your diabetes pre-screening report is ready.\n\n"
f"📄 *Download Report:*\n"
f"Session ID: `{session_id}`\n\n"
f"⚠️ This is an AI-assisted pre-screening. Please consult your doctor.\n"
f"📞 Sancheti Hospital Helpline: 020-28999999"
f"📞 Inamdar Hospital Helpline: 020-66811200"
)
if self.is_twilio_configured:
@@ -418,7 +418,7 @@ class WhatsAppDeliveryService:
pdf_block = f"\n📄 *Clinical PDF Report:* {pdf_url}" if pdf_url else ""
msg = (
f"🏥 *SANCHETI HOSPITAL*\n"
f"🏥 *INAMDAR HOSPITAL*\n"
f"🩺 *DIABETES DOST — PRE-SCREENING SUMMARY*\n"
f"━━━━━━━━━━━━━━━━━━━━━━━━\n"
f"👤 *Patient:* {p_name} | {p_age} yrs | {p_sex}\n"
@@ -434,7 +434,7 @@ class WhatsAppDeliveryService:
f"📝 *Clinician Handover Note:*\n"
f"{narrative}{pdf_block}\n\n"
f"━━━━━━━━━━━━━━━━━━━━━━━━\n"
f"⚕️ *Sancheti Hospital Clinical Triage Desk*\n"
f"⚕️ *Inamdar Hospital Clinical Triage Desk*\n"
f"🔗 Full EHR Record available in Hospital Admin Portal"
)
return msg