It appears to be a prolapsed cloaca or vent. Is all the tissue red or is any of it dark or brown? Aapply some honey from your cupboard, or if you have Preparation H, that will also help to reduce the osmotic pressure and swelling. Lube it up well, and attempt to push the red tissue back inside, and then hold it there for as long as she can tolerate it. It may come back out, but each time you can push it back. Prolapse can occur when straining to lay an egg or egg binding, if dehydrated, or from a lack of calcium. I would may sure that she is pooping.