R code that writes the Nottinghamshire Healthcare Service user survey report in HTML with graphics etc.
Every level of the Trust is included, the whole Trust, Divisions, directorates, and teams.
Each part is automatically excluded if there is not enough data.
Code commenting to be improved as time allows