Loading...
Loading...
AI patient simulator for medical education and clinical skills training
lattice template use carecollaborative/clinical-scenarioThis will create a new workspace using this template configuration.
Deploy AI-powered patient simulations for medical students to practice clinical skills including history-taking, diagnosis, and treatment planning.
The VM you run Lattice on must have a running Docker socket:
# Add lattice user to Docker group
sudo adduser lattice docker
sudo systemctl restart lattice
Configure your AI and voice providers:
# Required
export OPENAI_API_KEY="your-openai-key"
export LIVEKIT_URL="wss://your-livekit.livekit.cloud"
export LIVEKIT_API_KEY="your-livekit-key"
export LIVEKIT_API_SECRET="your-livekit-secret"
# Optional - for avatar support
export TAVUS_API_KEY="your-tavus-key"
export TAVUS_REPLICA_ID="your-replica-id"
export TAVUS_PERSONA_ID="your-persona-id"
This template provisions:
Customize the patient persona via Terraform variables:
# terraform.tfvars
patient_name = "Maria Santos"
patient_age = 58
patient_gender = "female"
patient_cultural_background = "Filipino-American"
patient_diagnosis = "Type 2 Diabetes with hypertension"
patient_emotional_state = "Anxious about medication side effects"
patient_health_literacy = "Moderate"
patient_symptoms = ["fatigue", "increased thirst", "frequent urination"]
patient_medical_history = ["Hypertension diagnosed 5 years ago"]
patient_medications = ["Lisinopril 10mg daily"]
patient_allergies = ["Penicillin - causes rash"]
patient_introduction = "Hello doctor. I'm here because my sugar levels are too high."
persona.json with your patient profileBuilt for medical education and clinical skills training.