This sentence talks about something that did not happen in the past, so we need the exact tense pairing English uses for that idea.
- Option A (would have taken care): an if-clause should never contain "would have". This breaks a basic conditional rule right away.
- Option B (took care): simple past in the if-clause pairs with "would + base verb" for present results, not with "would have + past participle" for past results. Mismatch.
- Option C (take care): simple present in the if-clause belongs to a conditional about general or future possibilities, which does not fit a sentence about a past illness.
- Option D (had taken care): past perfect in the if-clause is the exact partner for "would have got" in the result clause. This is the standard past-unreal, third conditional pattern.
Since only option D matches the required tense pair, it is the correct construction.
Let's summarize:
- A past perfect result clause needs a past perfect if-clause.
- If-clauses never use "would have".
Matching the two halves of the conditional sentence gives the answer directly.