BackgroundCompetence in palliative medicine is required in clinical practice. Based on a literature review, we developed a two-week elective course in palliative medicine for 5th and 6th year medical students. We wanted to study learning outcomes from the course, especially related to knowledge, confidence, and reflections on the doctor’s role in palliative care.MethodsA multiple-choice questionnaire (MCQ) assessed knowledge in palliative care pre and post course. The Thanatophobia Scale (TS) and the Self-efficacy in Palliative Care Scale (SEPC) measured confidence in communication with patients close to death and in providing palliative care, respectively. Reflection notes were analysed using Systematic Text Condensation, a cross-case thematic analysis. Lave & Wenger’s theory about situated learning was used to support interpretations.ResultsFrom 2018 to 2022 we ran four courses for a total of 48 students. Test results improved over the course in all four groups. On average, MCQ scores increased by 22% (range 13–33), TS scores were reduced by 28% (24–32), and SEPC scores increased by 50% (42–64), reflecting increased confidence in dealing with seriously ill and dying patients and their relatives. The participants prepared reflection notes describing their main impressions and take-home messages from the course, focusing specifically on the role of the doctor. They described the doctor’s role linked to an overarching task of creating a sense of security for patients and relatives. Through the course, and especially through talking to patients and relatives and being part of the interprofessional team, the participants learned how this sense of security was built by gaining competence in the following domains: 1) Patient-centred communication about the disease, expected trajectory, and needs, establishing common ground and support; 2) Being the medical expert in symptom relief and decision-making, providing guidance and reassurance in difficult situations; 3) Professionalism rooted in a holistic and relational approach; and 4) Being a good team player, aware of their function and limitations.ConclusionsA two-week student-selected course in palliative medicine improved knowledge and skills and increased confidence in providing palliative care. The comprehensive understanding of the doctor’s role obtained in this course may also be relevant to other clinical specialties.Trial registrationNot applicable (no clinical trial).