I would never have guessed!
Huh? You asked
How do you write such a law that only works sometimes?
what does this, and the ensuing paragraph, have to do with that?
Blatantly false. Here are some of the various other things will be deterred:
1. Giving help when help is needed
2. Doing harm in the name of help when help is needed
3. Both (1) and (2) simultaneously
4. (3), but in the situation where someone else could have helped without harm
5. Doing harm in the name of help when help is unneeded
Are you seriously expecting me to believe that, despite everything in this thread, you were completely unaware of these other aspects of the situation?
(If you actually were aware, then might I suggest you withdraw until such time as you can be intellectually honest about the discussion)
(Snipping mine) But it does have to do with your assertion:
The ruling says that it is OK to give doctors the green light to behave with as much wrecklessness as they want in order to save someones life
Again, the two cases: people trained for such action, and people not trained for such action. The medical doctor is (generally) not trained for rescuing people from burning buildings.
And of course the specific law under discussion does not shield the medical doctor from pulling the guy out of the building -- it was never meant to!
* It was (presumably) meant to protect people who perform aid within their area of expertise (assuming 'good faith', 'reasonable care', and all that). This does not prevent some other law from protecting the doctor.
*: In my estimation as a non-lawyer / non-legislator