This report looks at how BJSS Limited worked with the NHS to overhaul its Hospital Episode Statistics (HES) system and bring it back in-house; a complex undertaking involving a major change of scope and the rewriting of millions of lines of code.