It is realistic and has historical and recent usage proof/
From the Wikipedia page of Maggot therapy (Warning: This page contains graphic images):
Written records have documented that maggots have been used since antiquity as a wound treatment. There are reports of the use of maggots for wound healing by Maya, Native Americans, and Aboriginal tribes in Australia. Maggot treatment was reported in Renaissance times. Military physicians observed that soldiers whose wounds had become colonized with maggots experienced significantly less morbidity and mortality than soldiers whose wounds had not become colonized. These physicians included Napoleon’s general surgeon, Baron Dominique Larrey. Larrey reported during France's Egyptian campaign in Syria (1798–1801) that certain species of fly consumed only dead tissue and helped wounds to heal.
Even from the same page:
There were reports that American prisoners of war of the Japanese in World War II resorted to maggot therapy to treat severe wounds.
A survey of US Army doctors published in 2013 found that 10% of them had used maggot therapy.
Some other useful links are provided by justanothercoder and mgarey in the comments respectively:
From NHS
Larval debridement therapy (biosurgery)
Certain types of fly larvae are ideal for this because they feed on dead and infected tissue but leave healthy tissue alone. They also help fight infection by releasing substances that kill bacteria and stimulate the healing process.
Maggots used for larval therapy are specially bred in a laboratory using eggs that have been treated to remove bacteria. The maggots are placed on the wound and covered with gauze, under a firm dressing, which keeps them on the wound (and out of sight). After a few days, the dressing is cut away and the maggots are removed.
Medical studies have shown larval debridement therapy can achieve more effective results than surgical debridement. However, because of the nature of this type of treatment, many people are reluctant to try it.
Also, KSL artilce provides as latest as 2006 for the case of such treatment.