It is was nice that the order of lines was consistent. lines, 2,10,14 and 18 were key and tagging when \doctor\ appeared in the html to start the processing.
There are a couple of minor differences in my solution as the solution mislabels a couple of data points / doesn't extract the data. But the solution is slightly shorter and the difference is minor.