It is unfortunately not as uncommon as you would think for the maggots to breach the abdominal cavity with fly strike and I would certainly euthanize in that situation.
I suspect that your hen may have had Salpingitis which is where an infection causes the build up of rubbery solidified pus and egg material in the oviduct which becomes impacted. That causes the abdomen just below the vent to be swollen and poop to get caught in the feathers. The poop attracts flies and they lay eggs and the maggots hatch and eat into the hen. If that turns out to be the case, it may be some consolation to know that the Salpingitis would eventually have caused her death anyway. The dehydration you noticed may have been as a result of the maggots eating into her or just being unwell with the underlying issue on such a hot day. Of course it may also be cancer as that too is sadly quite common in chickens
I suspect that your hen may have had Salpingitis which is where an infection causes the build up of rubbery solidified pus and egg material in the oviduct which becomes impacted. That causes the abdomen just below the vent to be swollen and poop to get caught in the feathers. The poop attracts flies and they lay eggs and the maggots hatch and eat into the hen. If that turns out to be the case, it may be some consolation to know that the Salpingitis would eventually have caused her death anyway. The dehydration you noticed may have been as a result of the maggots eating into her or just being unwell with the underlying issue on such a hot day. Of course it may also be cancer as that too is sadly quite common in chickens