Government ministers have also written to health boards reminding them of the importance of following the law.