Step 1: Identify the relationship.
Writer : Book is a creator–creation relationship.
So the first blank must also be a person related to surgery (as performer).
Step 2: Check each option.
(A) Plan : outline — Not a creator–creation pair.
(B) Hospital : library — These are places, not creators.
(C) Doctor : book — A doctor performs surgery, and a writer creates a book. This matches the pattern.
(D) Medicine : grammar — No creator relationship.
Step 3: Final conclusion.
Doctor is to surgery as writer is to book.