Implements basic patient-delivery scoring. OK to merge.