You can definitely have elective surgery through the public health system but there's a set number done per year whereas all other treatment are done as soon as possible.
Like with most things in life being a purist is damaging, you need to be pragmatic and let capitalism do what it's good at and temper it with socialism when it's counterproductive.