Researchers suggest an algorithm can be used as a tool for justice in healthcare.