Skip to content

Instantly share code, notes, and snippets.

@danbarua
Last active January 21, 2025 14:23
Show Gist options
  • Save danbarua/76fc6061f1ee8a820b676af85b4c7eca to your computer and use it in GitHub Desktop.
Save danbarua/76fc6061f1ee8a820b676af85b4c7eca to your computer and use it in GitHub Desktop.

Improved versions of all the additional visualisations, based on refinement principles to enhance clarity and usability.

High Level Overview

graph TD
    classDef clinical fill:#e3f2fd,stroke:#1976d2
    classDef finding fill:#f3e5f5,stroke:#7b1fa2
    classDef action fill:#e8f5e9,stroke:#388e3c
    
    Start[Patient Presentation]:::clinical
    
    subgraph Key Findings
        N[Neurological<br/>Progressive bilateral LRPN]:::finding
        V[Vascular<br/>Arterial flow abnormalities]:::finding
        S[Systemic<br/>Immune activation markers]:::finding
    end
    
    subgraph Main Hypotheses
        H1[Autoimmune Process]:::clinical
        H2[Paraneoplastic]:::clinical
        H3[Vascular Contribution]:::clinical
    end
    
    subgraph Priority Actions
        A1[Autoimmune Testing]:::action
        A2[Cancer Screening]:::action
        A3[Vascular Studies]:::action
    end
    
    Start --> N & V & S
    N & S --> H1
    S --> H2
    V --> H3
    
    H1 --> A1
    H2 --> A2
    H3 --> A3
    
    note[High-level overview showing main findings,<br/>working diagnoses, and next steps]
Loading

Enhanced Temporal Progression

gantt
    title Disease Evolution & Key Findings
    dateFormat YYYY-MM
    axisFormat %Y-%m
    
    section Clinical Course
    Initial Symptoms    :milestone, m1, 2023-06,1d
    Disease Progression :active, 2023-06, 2025-01
    Current Status     :milestone, m2, 2025-01,1d
    
    section Key Events
    MRI (Disc disease)           :2023-06, 1M
    First NCS (Left LRPN)        :crit, 2023-10, 1M
    CSF Analysis (OGBs+)         :crit, 2024-07, 1M
    Vascular Studies             :2024-12, 1M
    Latest NCS (Bilateral)       :crit, 2025-01, 1M
    
    section Progression Notes
    Initial Unilateral       :done, 2023-06, 2024-07
    Systemic Features        :active, 2024-07, 2024-12
    Bilateral Involvement    :active, 2024-12, 2025-01
Loading

Detailed Clinical Findings

graph TB
    classDef clinical fill:#e3f2fd,stroke:#1976d2
    classDef finding fill:#f3e5f5,stroke:#7b1fa2
    classDef critical fill:#ffebee,stroke:#c62828
    
    subgraph Neurological["Neurological Findings"]
        N1[Initial Left LRPN]:::finding
        N2[Severe Denervation]:::finding
        N3[Progression to Bilateral]:::critical
        
        note_N[Key Point:<br/>Atypical progression<br/>suggests systemic process]
    end
    
    subgraph Laboratory["Laboratory Evidence"]
        L1[Matched OGBs]:::critical
        L2[CSF Protein ⬆️]:::critical
        L3[Normal WCC]:::finding
        
        note_L[Significant:<br/>Dramatic protein rise<br/>suggests inflammation]
    end
    
    subgraph Imaging["Imaging Results"]
        I1[No Nerve Compression]:::finding
        I2[Vascular Changes]:::finding
        I3[No Active Vasculitis]:::finding
        
        note_I[Consider:<br/>Vascular contribution<br/>to progression]
    end
    
    N1 --> N2 --> N3
    L1 --> L2
    I1 --> I2 --> I3
    
    N3 -.-> L1
    L2 -.-> I2
Loading

Prioritised Investigation Pathways

graph LR
    classDef urgent fill:#ffebee,stroke:#c62828
    classDef priority fill:#fff3e0,stroke:#ef6c00
    classDef routine fill:#e8f5e9,stroke:#388e3c
    
    subgraph "Priority 1: Autoimmune"
        A1[ANA/ANCA Panel]:::urgent
        A2[Serial NCS]:::urgent
        A3[CSF Analysis]:::urgent
    end
    
    subgraph "Priority 2: Oncological"
        O1[Paraneoplastic Screen]:::priority
        O2[Colonoscopy]:::priority
        O3[PET Follow-up]:::priority
    end
    
    subgraph "Priority 3: Vascular"
        V1[Thrombophilia Screen]:::routine
        V2[Vascular Imaging]:::routine
        V3[Flow Studies]:::routine
    end
    
    A1 & A2 & A3 --> AD[Autoimmune<br/>Decision]
    O1 & O2 & O3 --> OD[Oncological<br/>Decision]
    V1 & V2 & V3 --> VD[Vascular<br/>Decision]
    
    note[Color indicates urgency:<br/>Red = Immediate<br/>Orange = Soon<br/>Green = Routine]
Loading

I'll adapt the visualizations following this feedback, starting with standardized styling and layered complexity.​​​​​​​​​​​​​​​​

​​​​​​​​​​​​​​​​

​​​​​​​​​​​​​​​​

​​​​​​​​​​​​​​​​

These adapted visualizations incorporate the feedback with:

  1. Standardized Elements:

    • Consistent color scheme across diagrams
    • Clear annotations explaining significance
    • Unified terminology
  2. Layered Complexity:

    • Overview diagram for high-level understanding
    • Detailed progression timeline
    • Specific finding relationships
    • Prioritized action pathways
  3. Stakeholder-Specific Features:

    • Clinical annotations for specialists
    • Clear progression markers for patients
    • Priority levels for administrative planning
  4. Integrated Next Steps:

    • Clear action priorities
    • Decision points highlighted
    • Critical findings emphasized

Would you like me to:

  1. Create simplified versions for patient communication?
  2. Add more detailed clinical annotations?
  3. Develop additional specialist-specific views?
  4. Modify any of the current visualizations?​​​​​​​​​​​​​​​​
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment