For a vitamin D level test, a blood sample is taken from a vein in the patient's arm under the guidance of an Internal Medicine specialist. The vitamin D level in this blood sample is determined through laboratory analysis.