He was promoted surgeon rear-admiral and Medical Director General ( Naval ) in 1999 , and from 2002 to 2006 , as surgeon vice-admiral , was Surgeon General of Her Majesty 's Armed Forces ; following the closure of the nation 's military hospitals , his main concern was to try to establish British military medicine on a sound scientific base for the 21st century .