Were any of these attacks on the NHS?
I strongly suspect that none of these were attacks on the NHS in the sense of the NHS being targeted. More likely they are self propagating shotgun attacks on all and sundry but the NHS is wide open to anything that comes along. So were gazillions of other organisations world wide in the case of WannaCry.
If the general standard of robustness was higher, most of these "attacks" would simply bounce off harmlessly. We have to dispel the myth of the Űberhacker and the "secure" victim and face facts - almost no organisation really gives two hoots about cyber threats until they get hit. I remember talking to a senior director of an international corporation about the cyber threat and he responded "but we don't have enemies..."