Students gravitated toward courses aligned with their role as professional doctors within the HPCSA competency framework. More studies are needed to understand how medical students develop the six non-clinical roles in the HPCSA framework and the effectiveness of MOOCs in a medical curriculum.