i guess they should be released on humanitarian grounds...but then it depends, quite a few things should be considered as well...
the offence, the threat they could be...
some inmates who're terminally ill may still be in good condition ie they can walk and stuff...so they could be a threat to the society..
cant they get their family to visit them for short durations same as they would if they were in a hospital except with prison guards and bars on windows