That would still be due process, as that decision is for the prosecution to make. Usually the reasons to drop a case are limited, though. And in medical fitness, there usually has to be an evaluation by an independent appointed medical / psychological professional specialised in the field.