Beatrix Potter wrote Peter Rabbit for a child who was sick.
Debbie Duncan wrote a book ABOUT a sick child (her daughter) for her other daughters. It was about being the siblings of a sick child
Johnny Gruelle wrote the Raggedy Ann and Andy Stories for his sick daughter.
THE WIND IN THE WILLOWS was
written for Grahame's son when he was sick.