The Architecture of Medical Simulation