What this is: the full Layer 2 specialist agent fleet for YBA Med, designed by 5 parallel research specialists on 2026-05-02. Sits ON TOP of the 8 universal Layer 1 foundation agents, with the Layer 3 Richards-Brain markdown vault per tenant.
Total: 42 specialist agents across 5 teams, each agent with defined role / skills / SOPs / Layer 1 interactions / hard NEVER rules.
| # | Team | Agents | Domain |
|---|---|---|---|
| 1 | Clinical Workflow | 9 | What happens between the doctor saying hello and the patient walking out — SOAP notes, diagnosis support, prescriptions, referrals, results |
| 2 | Billing & Medical-Aid Claims | 7 | The moat — submission, rejection auto-fix, gap-cover, reconciliation, debt collection |
| 3 | Patient Lifecycle & WhatsApp | 10 | First contact → visit → retention. WhatsApp-first. Red-flag triage |
| 4 | Compliance, Records & Safety | 9 | HPCSA, BHF, POPIA, S5/S6 controlled substances, infection control, insurance |
| 5 | Practice Operations | 7 | Roster, locum, stock, equipment, suppliers, building, continuity |
Plus the 8 universal Layer 1 agents (Infrastructure, Development, HR, Accounts, Front Desk, Customer Care, Call Transcription, Executive Assistant) → 50 agents total per Med tenant.
The full per-team specialist briefs from each specialist are preserved below.
These are the agents that ride with the doctor through every consultation.
| # | Agent | One-line job |
|---|---|---|
| 1 | Pre-Consult Briefer | 15 min before visit, drops a one-page brief on the doctor’s screen |
| 2 | Clinical Scribe | Live transcription + structures conversation into SOAP note |
| 3 | Vitals & Examination Recorder | Pulls vitals from devices + dictated exam findings into the chart |
| 4 | Diagnosis Co-Pilot | Suggests differentials with reasoning + verified ICD-10 codes |
| 5 | Prescription Drafter | Drug name → verified NAPPI lookup + interaction/allergy/dosage check |
| 6 | Referral Coordinator | Drafts referral letters, books with specialists/labs, tracks completion |
| 7 | Results Watchdog | Catches lab/imaging results, flags abnormal, pages on critical |
| 8 | Follow-up & Recall Scheduler | “See me in 2 weeks” actually happens; runs proactive recalls |
| 9 | Handoff & Continuity Agent | Multi-doctor practices feel like one doctor; chronic disease summaries |
The hard rule across this team: agents draft, doctors sign. Every diagnosis, prescription, referral is doctor-approved before action. NAPPI/ICD-10/drug-interactions come from verified lookups, NEVER from LLM generation.
This is the moat. Claims processing is what doctors complain about most.
| # | Agent | One-line job |
|---|---|---|
| 1 | Claims Submission Agent | Builds EDI/HSP claim file → Healthbridge/MediKredit submission |
| 2 | Rejection Auto-Fix Agent | Classifies rejections, fixes admin issues, re-submits, escalates the rest |
| 3 | Pre-Authorisation Agent | Gets medical-aid auth BEFORE the procedure happens |
| 4 | Gap Cover Agent | Claims shortfalls from gap-cover insurers (Stratum, Sanlam, Zestlife etc.) |
| 5 | Cash Patient Agent | Pricing, deposits, payment plans, default risk |
| 6 | Reconciliation Agent | Matches every payment to the invoice, daily bank-statement pull (Stitch) |
| 7 | Statements & Follow-up Agent | Monthly statements, dunning sequence, write-off recommendation |
The Rejection Auto-Fix algorithm (the moat): 1. Classify rejection into ~30 known categories (NAPPI/ICD mismatch, missing field, exhausted savings, prior auth needed, etc.) 2. Apply playbook per category 3. Re-submit if fixable; escalate to human if not 4. Three failed auto-fixes = mandatory human escalation 5. Trust ratchet: 200 successful auto-submissions of a claim type → that type unlocks for auto-submit-without-approval
What this saves a 2-doctor GP practice: R50-85k/month in recovered revenue + freed staff time. Justifies R20k/mo subscription many times over.
Patient journey from first Google search to long-term retention. WhatsApp-first because that’s what SA patients use.
| # | Agent | One-line job |
|---|---|---|
| 1 | Intake Agent | First-contact: Maps / website / WhatsApp → captures, eligibility-checks medical aid |
| 2 | Booking Agent | Multi-doctor calendar with urgency triage (sick child = same-day) |
| 3 | Pre-Visit Agent | 24h before: intake form via WhatsApp, parking info, check-in QR |
| 4 | Reminder Agent | 24h reminder + T-3h nudge; one-tap confirm/reschedule/cancel |
| 5 | Queue Agent | In-clinic flow: arrival QR, queue display, doctor “next ready” |
| 6 | Post-Visit Agent | Script-ready notification, results delivery (doctor-templated only), repeat scripts, satisfaction |
| 7 | WhatsApp Portal Agent | Central nervous system; routes inbound to right specialist; multi-language |
| 8 | Triage Agent (Red-Flag) | Detects “chest pain” / “bleeding” / “can’t breathe” — kills auto-replies, alerts human in 30 seconds |
| 9 | Retention Agent | Annual check-up, vaccination schedule, age-based screening reminders |
| 10 | Family Graph Agent | Knows household structure (parent-child, spouse) with consent rules |
Critical sub-systems: - WhatsApp Portal uses 360dialog (or Infobip) — the WhatsApp Business API, not the free app. Tracks the 24h customer-care window, language detection, opt-out enforcement. - Red-flag triage is uninterruptible. Trigger phrases (clinically reviewed): chest pain · can’t breathe · bleeding heavily · stroke signs · paediatric red flags · suicidal ideation · trauma. Multi-language. Single safe reply: “This sounds urgent. Call 10177 or 112 NOW. Alerting the doctor — please stay on this chat.” Telegram + SMS + voice call to on-duty doctor in 30 seconds. Weekly synthetic test messages.
What this changes: No-show rate drops from 15-25% → 3-6% (R40-80k/month recovered). Front-desk phone load drops 60-70%. Patient satisfaction measurable for the first time.
Layer 1 HR has BCEA/LRA. Layer 1 Accounts has SARS/VAT. Med Compliance team adds the medical-specific regulatory layer.
| # | Agent | One-line job |
|---|---|---|
| 1 | HPCSA-Compliance-Officer | Doctor registration, CPD points (30/cycle), indemnity, complaint handling |
| 2 | Practice-Numbers-Admin (BHF) | PCN + doctor numbers + Healthbridge credentials + tariff updates |
| 3 | Records-Custodian (POPIA) | 6-year retention, encryption, audit trail, subject access requests, breach notification |
| 4 | Controlled-Substances-Register-Keeper (S5/S6) | Receipt/dispense/wastage log, monthly stock count, SAHPRA reports |
| 5 | Clinical-Safety-Officer (OHSA-medical) | PPE, sharps disposal, autoclave certs, needlestick protocol |
| 6 | Medical-Waste-Contracts-Officer | Compass/Buhle/Averda manifests + collection schedule |
| 7 | Complaints-and-Adverse-Events-Officer | 24h acknowledgement → 7-day pack → 30-day formal response |
| 8 | Practice-Insurance-Tracker | Indemnity, public liability, business interruption renewals |
| 9 | CPD-Coordinator | Per-practitioner CPD ledger, certificate filing, gap-fill suggestions |
The compliance brain structure (markdown vault):
wiki/compliance/
├── hpcsa/practitioners/<doctor>.md # registration, scope, CPD ledger, indemnity
├── bhf/practice-pcn.md
├── popia/{information-officer,breaches,subject-access-requests}/
├── controlled-substances/{register-current,monthly-counts}/
├── infection-control/{autoclave,sharps,incidents}/
├── insurance/{professional-indemnity,public-liability}/
└── calendar.md # the master annual compliance calendar
Hard bright lines (no exceptions): Agents NEVER auto-submit to HPCSA, IR, SAHPRA. Patient records never deleted before retention expires. Audit log is append-only — even the agents can’t edit it. The doctor signs every release of a record, every contract, every complaint response.
Layer 1 HR handles employment law in general. Med Operations team adds medical-practice-specific resource management.
| # | Agent | One-line job |
|---|---|---|
| 1 | Roster Maestro | Multi-doctor master schedule, room allocation, leave coverage |
| 2 | Locum Coordinator | 90-min find-vet-contract-brief: HPCSA verify + indemnity check + DocuSign + briefing pack |
| 3 | Staff Roster | Nurses, receptionists, admin — daily roster + leave + sick days (BCEA-compliant) |
| 4 | Stock & Cold-Chain Sentinel | Inventory + expiry tracking + vaccine fridge sensor (5-min reads, 15-min excursion alert) |
| 5 | Equipment Custodian | Asset register: autoclave, ECG, X-ray, fridge, defibrillator. Service intervals + inspection certs |
| 6 | Supplier & Contract Registrar | Pharma, waste, internet, security — contract renewals + price comparisons |
| 7 | Building & Continuity Officer | Rent, utilities, EskomSePush integration, generator + UPS, disaster recovery runbook |
Disaster scenarios + agent response:
| Scenario | Lead | Response (under 10 min) |
|---|---|---|
| Load-shedding stage 6 declared mid-shift | Building & Continuity | Confirm generator on within 30s; alert if not; SMS owner; confirm fridge 2-8°C |
| Doctor calls in sick at 06:00 | Locum Coordinator | 06:01 query 3 agencies; 06:30 candidate confirmed + HPCSA verified; 07:00 contract signed; 07:30 briefed; 08:00 first patient seen |
| Autoclave fails Bowie-Dick test | Equipment Custodian | Switch to single-use packs; technician dispatched; affected procedures rescheduled |
| Vaccine fridge >8°C for 15+ min | Stock & Cold-Chain Sentinel | Alert owner+nurse; vaccines moved to backup fridge; log captured; wastage claim drafted |
| Network drops | Building & Continuity | LTE failover triggers; offline mode if both fail; queued ops sync on restore |
| Receptionist resigns 24h notice | Staff Roster + Locum Coordinator | Temp agency briefed within 30 min; handover doc auto-generated |
What this saves the owner: 15-20 hrs/week of admin (~R28-35k/mo of practice-manager time freed); R30-80k/year vaccine wastage avoided; R15-25k/year stock-out savings; zero missed equipment services.
| Business dimension | Owned by |
|---|---|
| Booking + scheduling | Team 3 (Booking, Pre-Visit, Reminder) + Team 5 (Roster Maestro) |
| Patient comms (WhatsApp / SMS / voice) | Team 3 (WhatsApp Portal, Customer Care via Layer 1) |
| Clinical work (consultation, exam, diagnosis, treatment) | Team 1 (all 9 agents) |
| Prescription / dispensing | Team 1 (Prescription Drafter) + Team 4 (Controlled Substances Keeper) |
| Referrals + lab orders | Team 1 (Referral Coordinator, Results Watchdog) |
| Medical-aid claims | Team 2 (all 7 agents) |
| Cash billing + debt collection | Team 2 (Cash Patient, Statements) + Layer 1 Accounts |
| Patient records (POPIA, retention) | Team 4 (Records Custodian) |
| HPCSA / BHF / SAHPRA / IR compliance | Team 4 (HPCSA Officer, Practice Numbers Admin) |
| Controlled drugs (S5/S6) | Team 4 (Controlled Substances Keeper) |
| Infection control + OHSA-medical | Team 4 (Clinical Safety Officer) |
| Doctor roster + locum cover | Team 5 (Roster Maestro, Locum Coordinator) |
| Nurse + admin staff | Team 5 (Staff Roster) + Layer 1 HR |
| Stock + cold chain (vaccines) | Team 5 (Stock Sentinel) |
| Equipment service + inspection certs | Team 5 (Equipment Custodian) |
| Suppliers + contracts | Team 5 (Supplier Registrar) |
| Building + load-shedding + continuity | Team 5 (Building & Continuity Officer) |
| Insurance (indemnity, PL, BI) | Team 4 (Insurance Tracker) |
| Complaints + adverse events | Team 4 (Complaints Officer) |
| CPD tracking | Team 4 (CPD Coordinator) |
| Daily owner briefing | Layer 1 Executive Assistant (rolls up amber/red items from all 5 teams) |
| Voice calls (inbound/outbound) | Layer 1 Front Desk + Customer Care + Call Transcription |
| Bookkeeping (general SARS / VAT / payroll) | Layer 1 Accounts |
| Employment law (BCEA / LRA / EEA) | Layer 1 HR |
| Server/uptime/backups | Layer 1 Infrastructure & Security |
| Site updates / custom features | Layer 1 Development |
Across all 5 Med teams:
wiki/.— Synthesised by Niki on 2026-05-02 from 5 parallel research specialist outputs.