A 42-year-old woman presents with pleuritic chest pain and shortness of breath. She recently had knee surgery and has been relatively immobile. Heart rate is 110 beats/min, oxygen saturation 93% on room air and D-dimer is elevated. Wells score indicates intermediate probability of pulmonary embolism. She is haemodynamically stable and not pregnant. Which is the most appropriate next diagnostic test?