1. A method for designing a medical device for accessing a body cavity or lumen of a patient comprising: (a) providing data relating to a three-dimensional geometric model of the cavity or lumen to a system comprising a knowledge base; (b) obtaining a recommendation from the system relating to the geometry of a device for placement into the cavity or lumen.