Implement the medViewFactory.