Issue #937: Mechanism for finding the category of an HPO term in PatientSheet.

This small fix has the potential of breaking something else. Be careful when applying.