A 46-year-old woman presents with pleuritic chest pain and dyspnoea. She has recently undergone knee surgery and has been relatively immobile. Examination shows tachycardia 110 bpm and oxygen saturation 92% on room air. Wells score indicates moderate probability of pulmonary embolism (PE). D-dimer is not yet done. According to best practice, what is the most appropriate next investigation?