The Clinical Insights Engine analyzes SOAP notes and patient history to generate AI-powered clinical decision support. Using GPT-4, the system identifies risk factors, suggests differential diagnoses, and recommends evidence-based treatments—all with confidence scoring.
Purpose: Flag potential complications or contraindicationsExample Insight:
{ "type": "risk", "priority": "high", "title": "Anesthesia risk due to brachycephalic syndrome", "description": "Patient is a bulldog (brachycephalic breed) with noted respiratory sounds during auscultation. Higher risk for anesthesia complications. Consider pre-anesthetic blood work and have intubation equipment ready.", "confidence": 0.87}
Common Risk Patterns:
Breed-specific conditions (hip dysplasia in large breeds)
Age-related concerns (anesthesia in seniors, hypoglycemia in puppies)
Purpose: Suggest next steps, tests, or treatmentsExample Insight:
{ "type": "suggestion", "priority": "medium", "title": "Recommend dental radiographs", "description": "Physical exam noted moderate tartar buildup and grade 2 gingivitis. Dental radiographs recommended to assess periodontal disease severity and check for tooth root abscesses, which are common with this level of disease.", "confidence": 0.75}
const handleInsightFeedback = (id: string, feedback: 'accepted' | 'rejected') => { setInsightFeedback(prev => ({ ...prev, [id]: feedback })); setInsights(prev => prev.map(i => i.id === id ? { ...i, status: feedback } : i) ); // Future: Send feedback to backend for model fine-tuning // This will be implemented in a future version to improve AI accuracy};
S: Max (Beagle, 7y) presented with increased thirst and urination for 5 days. Owner reports weight loss despite good appetite.O: T 101.2°F, HR 92, RR 24. BCS 4/9. Mild cataracts bilaterally. No other abnormalities on PE.A: Rule out diabetes mellitusP: Blood glucose, urinalysis, chemistry panel. Recheck in 3 days with results.
Generated Insights:
Diagnosis (High priority, 0.91 confidence)
Title: “Highly suspicious for diabetes mellitus”
Description: “Classic triad: polydipsia, polyuria, weight loss with polyphagia. Cataracts also common in diabetic dogs. Blood glucose >250 mg/dL would confirm.”
Suggestion (Medium priority, 0.78 confidence)
Title: “Consider fructosamine test”
Description: “Fructosamine provides 2-3 week glucose average, useful if stress hyperglycemia suspected or for monitoring once treatment started.”
Risk (Medium priority, 0.72 confidence)
Title: “Monitor for diabetic ketoacidosis”
Description: “If diagnosis confirmed, educate owner on DKA symptoms (vomiting, lethargy, sweet breath odor). This is an emergency requiring immediate hospitalization.”
SOAP Input:
S: Bella (English Bulldog, 3y) in for dental cleaning estimate.O: T 101.8°F, HR 108, RR 32 at rest. Moderate stertor. Grade 3/4 dental disease. Obese (BCS 8/9).A: Periodontal disease. Brachycephalic syndrome.P: Pre-anesthetic blood work. Dental prophylaxis under anesthesia scheduled.
Description: “Bulldogs have increased risk of anesthesia complications due to airway anatomy. Ensure experienced anesthetist, have emergency intubation equipment ready, consider pre-oxygenation.”
Risk (High priority, 0.88 confidence)
Title: “Obesity increases anesthetic risk”
Description: “BCS 8/9 (obese) further elevates anesthetic risk. Dosing should be based on lean body weight. Consider delaying procedure until weight loss achieved if not urgent.”
Description: “Brachycephalic dogs often have concurrent respiratory disease. Chest X-rays can identify aspiration pneumonia, tracheal hypoplasia, or other issues before anesthesia.”
SOAP Input:
S: Whiskers (DSH cat, 12y) vomiting for 3 days. Decreased appetite. Hiding more than usual.O: T 100.1°F, HR 180, RR 36. 5% dehydrated. Painful on abdominal palpation. No foreign body felt.A: Acute vomiting — rule out pancreatitis, IBD, foreign body, CKDP: Blood work (Chem, CBC), fPLI, abdominal ultrasound. Fluid therapy. Anti-emetics.
Generated Insights:
Diagnosis (High priority, 0.85 confidence)
Title: “Pancreatitis likely — recommend fPLI”
Description: “Senior cat with acute vomiting, anorexia, and cranial abdominal pain is classic for pancreatitis. Feline pancreatic lipase immunoreactivity (fPLI) highly sensitive and specific. Consider fasting and pain management.”
Suggestion (Medium priority, 0.76 confidence)
Title: “Check kidney values (SDMA, creatinine)”
Description: “Chronic kidney disease very common in senior cats and can cause vomiting. SDMA detects early CKD. Azotemia combined with low USG would confirm.”
Risk (Low priority, 0.68 confidence)
Title: “Monitor for hepatic lipidosis”
Description: “Cats that stop eating for >3 days are at risk for hepatic lipidosis (fatty liver). If anorexia persists, appetite stimulants or feeding tube may be needed.”
Insights generated from text only — cannot see X-rays, blood work, or ultrasound images.Workaround: Include diagnostic findings in SOAP text (“Radiographs show pulmonary edema”)
Limited Rare Disease Recognition
GPT-4 trained primarily on common conditions. Exotic/rare diseases may not be suggested.Workaround: Provide more context in Assessment section to guide AI
Can't Calculate Drug Dosages
Insights suggest medications but don’t calculate mg/kg dosages.Workaround: Always verify dosages in reference formulary
No Learning from Feedback (Yet)
Accept/Reject buttons logged but not yet used to fine-tune model.Roadmap: Future update will use feedback for practice-specific customization