# CT Surgery Patient Intake Model

## 1. Problem Being Solved

Junior medical staff often cannot produce a clear, structured, readable patient summary for senior doctors. This system solves that — by guiding the intake conversation and automatically generating a professional summary once the session is complete.

---

## 2. Intake Flow

```
Patient arrives
     ↓
Medical staff enters basic patient info (name, age, gender, patient ID)
     ↓
System presents standard CT Surgery questions one by one
     ↓
Medical staff reads question → patient responds → staff speaks answer into app
     ↓
Audio transcribed to English text
     ↓
Transcribed text sent to LLM (with CT Surgery prompt — dos and don'ts)
     ↓
LLM analyzes response → follow-up needed? → asks next question
     ↓ (loop continues until no more follow-ups)
LLM signals intake is complete
     ↓
Medical staff hits Submit
     ↓
LLM generates clean, presentable summary for senior doctor
```

---

## 3. Basic Patient Information

Collected at the start of every session before the clinical questionnaire begins.

| Field | Required |
|---|---|
| Name | Yes |
| Age | Yes |
| Gender | Yes |
| Patient ID | If available |

---

## 4. Standard CT Surgery Intake Questions

These are the base questions asked in every session. The LLM decides follow-ups based on patient answers.

### Chief Complaint
- What brings the patient in today?
- When did the symptoms start?

### Cardiac Symptoms
- Chest pain?
  - If yes → location, nature (sharp / dull / pressure), does it radiate to arm or jaw, duration, what triggers it
- Shortness of breath?
  - If yes → at rest or only on exertion, how many steps before becoming breathless
- Palpitations?
  - If yes → fast, irregular, or skipping beats
- Dizziness or fainting episodes?
- Leg or ankle swelling?
- Fatigue?
- Waking up at night unable to breathe?
- Difficulty breathing when lying flat?

### Respiratory Symptoms
- Cough?
  - If yes → dry or with phlegm, any blood in cough
- Wheezing?

### Medical History
- Previous heart conditions? (heart attack, heart failure, valve disease, irregular heart rhythm)
- Previous lung conditions? (COPD, asthma, TB, pneumonia)
- Any prior cardiac or thoracic surgeries?
- Hypertension?
- Diabetes?
- High cholesterol?
- Kidney problems?

### Family History
- Heart disease in the family?
- Any sudden cardiac deaths in the family?

### Medications & Allergies
- Current medications? (especially blood thinners, beta blockers, diuretics)
- Any known allergies?

### Lifestyle
- Smoking? → current or past, how many years, how many per day
- Alcohol use?
- Exercise tolerance — how much activity before symptoms appear?

### Prior Investigations
- Any previous ECG, echo, or angiography done?
- Known coronary artery disease or valve problems?

---

## 5. LLM Behaviour During Intake

- The LLM receives the CT Surgery question prompt (dos and don'ts) + all previous question-answer pairs + the latest transcribed answer
- Based on this, the LLM either:
  - Returns a follow-up question for the medical staff to ask
  - Signals that intake is complete — no more questions needed
- The LLM does **not** diagnose, classify emergencies, or suggest treatment
- The LLM does **not** speak directly to the patient — all questions go through the medical staff

---

## 6. Summary Generation

Once the session is marked complete:

- The LLM generates a structured, readable patient summary
- Summary must be ready within **30 seconds** of session completion
- Summary is designed for a senior doctor to review within **1–2 minutes**
- Summary includes: key symptoms, relevant history, concerning patterns (if any), and answers to all captured questions
- No diagnosis or treatment suggestion is included in the summary
