Northern Ireland’s chief medical officer said it had been a very difficult to strike the right balance during the coronavirus pandemic.